]> git.baikalelectronics.ru Git - kernel.git/commit
gianfar: Remove wrong buffer size conditioning to VLAN h/w offload
authorClaudiu Manoil <claudiu.manoil@freescale.com>
Thu, 14 Feb 2013 05:00:06 +0000 (05:00 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 14 Feb 2013 18:32:25 +0000 (13:32 -0500)
commitc0997edb72548177944e0f30d8e3cbe59bfce3e9
treeea8b608320b7922ffd4e855e51cb0bf91774b9ae
parentc5a0cd9c02d72b861936c8c87d5b7c5ae59385e6
gianfar: Remove wrong buffer size conditioning to VLAN h/w offload

The controller's ref manual states clearly that when the hw Rx vlan
offload feature is enabled, meaning that the VLEX bit from RCTRL is
correctly enabled, then the hw performs automatic VLAN tag extraction
and deletion from the ethernet frames. So there's no point in trying to
increase the rx buff size when rxvlan is on, as the frame is actually
smaller.
And the Tx vlan hw accel feature (VLINS) has nothing to do with rx buff
size computation.

Signed-off-by: Claudiu Manoil <claudiu.manoil@freescale.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/freescale/gianfar.c