]> git.baikalelectronics.ru Git - kernel.git/commit
gianfar: Fix frame size calculation when hardware VLAN acceleration is on
authorDai Haruki <dai.haruki@freescale.com>
Mon, 24 Mar 2008 15:53:26 +0000 (10:53 -0500)
committerJeff Garzik <jeff@garzik.org>
Wed, 26 Mar 2008 04:44:33 +0000 (00:44 -0400)
commita9b792028fb6d9cff2003a48eecebac5d57de569
treefbb3e05c341cae5f68170f71d144fcf3a8bf923e
parent58049c51db56f1ad28ce275f89f1107b62dc6f59
gianfar: Fix frame size calculation when hardware VLAN acceleration is on

In gfar_change_mtu(), the frame size needs to be increased to account
for the extra 4 bytes VLAN adds to the ethernet header.  However,
it was being increased by the length of the whole header (18 bytes),
which is wrong.

Signed-off-by: Dai Haruki <dai.haruki@freescale.com>
Signed-off-by: Andy Fleming <afleming@freescale.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
drivers/net/gianfar.c