via-rhine: hardware VLAN support
authorRoger Luethi <rl@hellgate.ch>
Mon, 6 Dec 2010 00:59:40 +0000 (00:59 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 8 Dec 2010 18:23:36 +0000 (10:23 -0800)
commit38f49e8801565674c424896c3dcb4228410b43a8
tree5765289b26b9b7b4e06f0219d585312a9f78ae11
parent941666c2e3e0f9f6a1cb5808d02352d445bd702c
via-rhine: hardware VLAN support

This patch adds VLAN hardware support for Rhine chips.

The driver uses up to 3 additional bytes of buffer space when extracting
802.1Q headers; PKT_BUF_SZ should still be sufficient.

The initial code was provided by David Lv. I reworked it to use standard
kernel facilities. Coding style clean up mostly follows via-velocity.

Adapted to new interface for VLAN acceleration (per request of Jesse Gross).

Signed-off-by: David Lv <DavidLv@viatech.com.cn>
Signed-off-by: Roger Luethi <rl@hellgate.ch>
 drivers/net/via-rhine.c |  326 +++++++++++++++++++++++++++++++++++++++++++++--
 1 files changed, 312 insertions(+), 14 deletions(-)
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/via-rhine.c