tg3: Drop non-VLAN rx pkts larger than the MTU
authorMatt Carlson <mcarlson@broadcom.com>
Wed, 25 Feb 2009 14:21:52 +0000 (14:21 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 27 Feb 2009 07:16:31 +0000 (23:16 -0800)
commitf7b493e02101bb5a0a69a91a8b4b7b002cd60eaf
tree1ef3a50ae84210499e231c7404b85ed21132cdd6
parenta6435f3a53746a0eb687a9f636cf1941f35f935e
tg3: Drop non-VLAN rx pkts larger than the MTU

The hardware's MTU is configured so that it will accept packets whose
VLAN tag is left inline.  This means that the hardware will also accept
other packets larger than the desired MTU size.  This patch checks for
and discards packets that are larger than the requested MTU but are not
VLAN tagged frames.

Signed-off-by: Matt Carlson <mcarlson@broadcom.com>
Signed-off-by: Benjamin Li <benli@broadcom.com>
Signed-off-by: Michael Chan <mchan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/tg3.c