gianfar: disable TX vlan based on kernel 2.6.x
commit3ae3f8b7150ecde872a4a033127218f43c75d4b6
authorZhu Yanjun <Yanjun.Zhu@windriver.com>
Thu, 3 Apr 2014 08:41:13 +0000 (3 16:41 +0800)
committerWilly Tarreau <w@1wt.eu>
Mon, 19 May 2014 05:54:24 +0000 (19 07:54 +0200)
treef27f68368a46534472ce2f65602cb45214eca8ab
parent00659c4e9ddd25ac81c2ce1490dd0d2b12ff1f1e
gianfar: disable TX vlan based on kernel 2.6.x

2.6.x kernels require a similar logic change as commit e1653c3e
[gianfar: do vlan cleanup] and commit 51b8cbfc
[gianfar: fix bug caused by e1653c3e] introduces for newer kernels.

Since there is something wrong with tx vlan of gianfar nic driver,
in kernel(3.1+), tx vlan is disabled. But in kernel 2.6.x, tx vlan
is still enabled. Thus,gianfar nic driver can not support vlan
packets and non-vlan packets at the same time.

Signed-off-by: Zhu Yanjun <Yanjun.Zhu@windriver.com>
Signed-off-by: Willy Tarreau <w@1wt.eu>
drivers/net/gianfar.c