]> git.baikalelectronics.ru Git - kernel.git/commit
vlan: fix convertion to net_device_ops
authorEric Dumazet <dada1@cosmosbay.com>
Fri, 26 Dec 2008 00:45:19 +0000 (16:45 -0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 26 Dec 2008 00:45:19 +0000 (16:45 -0800)
commita71b9f909238f608ebbad723bb3b76d936bff2a1
tree7120c076df7226818a416822fe972de2efc74b12
parent237665c2bdfc248a64be55f04061338e6988a606
vlan: fix convertion to net_device_ops

commit 168cdfbced7d9ea86649dfb1096edb2789917870
(vlan: convert to net_device_ops) added a net_device_ops
with a NULL ndo_start_xmit field.

This gives a crash in dev_hard_start_xmit()

Fix it using two net_device_ops structures, one for hwaccel vlan,
one for non hwaccel vlan.

Signed-off-by: Eric Dumazet <dada1@cosmosbay.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/8021q/vlan_dev.c