]> bbs.cooldavid.org Git - net-next-2.6.git/commit - net/8021q/vlan_dev.c
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)
commitf7d1b9f5aafa371d7f51f644aa3c38bc914e9205
tree7120c076df7226818a416822fe972de2efc74b12
parentd45227391c70ea12ec129ebfa97841e9b7ff34fd
vlan: fix convertion to net_device_ops

commit 656299f706e52e0409733d704c2761f1b12d6954
(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