]> 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)
commitb7229aff1070a0b6cc250fb8d43ce1f12d1879ae
tree9fccae4546ce7df0646a101c2eda002152ffe229
parent6ec1380d12cafdd8eeb3c6a02dc7252201cb7fd4
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