]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit3becb87ed7008bce5310f428b22cd448d71b37dd
tree9fccae4546ce7df0646a101c2eda002152ffe229
parent1309dc0864eb157f3bb7dcd8a27b3bc97d95b472
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