Le jeudi 02 septembre 2010 à 08:33 +0000, Jarek Poplawski a écrit :
Same napi can be used both for vlan tagged trafic and "non tagged
trafic".
vlan_gro_common() does the right thing, when initializing skb->dev to
the vlan device, before doing the GRO loop.
So if we receive two packets on same ethernet device, two different
vlans, vlan_gro_common() automatically say they are not part of the same
flow, even if upper layers would say "it's ok for these two packets to
merge". Of course, we wont ask upper layers what they think :)
So we must keep the test against skb->dev, because of vlans,
diffs = (unsigned long)p->dev ^ (unsigned long)skb->dev;
(both in vlan_gro_common() and __napi_gro_receive())
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html