Thread (35 messages) 35 messages, 11 authors, 2010-07-20

Re: [PATCH] vlan_dev: VLAN 0 should be treated as "no vlan tag" (802.1p packet)

From: David Miller <davem@davemloft.net>
Date: 2010-06-30 20:16:03

From: Pedro Garcia <redacted>
Date: Mon, 28 Jun 2010 01:21:19 +0200
Last version of the patch. Now I think it is OK, of course pending 
Eric's signed-off-by for the accel HW part.
Eric, please review.
If this is too long for a changelog, tell me and I will try to sum it
up:
To me, not commit message is too long, the more the better. :)
+       if ((event == NETDEV_UP) &&
+           (dev->features & NETIF_F_HW_VLAN_FILTER) &&
+           (dev->netdev_ops->ndo_vlan_rx_add_vid)) {
There is no reason to surround this final NULL pointer check with
parenthesis, it just makes reading it confusing.
+       if (vlan_dev)
+               skb->dev = vlan_dev;
+       else
+               if (vlan_id)
+                       goto drop;
Please format this as:

	if (a)
		b;
	else if (c)
		d;

+       if (vlan_dev)
+               skb->dev = vlan_dev;
+       else
+               if (vlan_id)
+                       goto drop;
Same here.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help