Thread (8 messages) 8 messages, 4 authors, 2018-06-04

Re: [PATCH 1/2 net-next] net_failover: fix net_failover_compute_features()

From: David Miller <davem@davemloft.net>
Date: 2018-06-04 13:31:50
Also in: kernel-janitors

From: Dan Carpenter <redacted>
Date: Thu, 31 May 2018 15:01:25 +0300
quoted hunk ↗ jump to hunk
@@ -380,7 +380,8 @@ static rx_handler_result_t net_failover_handle_frame(struct sk_buff **pskb)
 
 static void net_failover_compute_features(struct net_device *dev)
 {
-	u32 vlan_features = FAILOVER_VLAN_FEATURES & NETIF_F_ALL_FOR_ALL;
+	netdev_features_t vlan_features = FAILOVER_VLAN_FEATURES |
+					  NETIF_F_ALL_FOR_ALL;
The type does need to be corrected to netdev_features_t, but the
logical operation is correct.

It's a policy operation that was simply by-hand propagated all
over the place where these kinds of calculations are performed.

So vlan_features is starting with a value of 0 intentionally.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help