net: systemport: pad packets to a minimum of 68 bytes
authorFlorian Fainelli <f.fainelli@gmail.com>
Thu, 15 May 2014 02:32:14 +0000 (19:32 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 15 May 2014 20:48:38 +0000 (16:48 -0400)
commitdab531b4305bc2852ce6f934dc283464d46871a5
tree9fccae4546ce7df0646a101c2eda002152ffe229
parentd5e32cc7c997d1d4f18031f5ff88512bd65118f7
net: systemport: pad packets to a minimum of 68 bytes

Packets need to be at least 64 bytes to enter the switch port logic,
including the FCS, otherwise they will be discarded as RUNT packets.

With packets having Broadcom tags, the 4-bytes tag is first stripped
off the packet, and the packet length is then checked, so we need to
make sure that the packet length with FCS is at least 64 bytes.

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bcmsysport.c
drivers/net/ethernet/broadcom/bcmsysport.h