]> git.baikalelectronics.ru Git - kernel.git/commit
net: bgmac: Pad packets to a minimum size
authorFlorian Fainelli <f.fainelli@gmail.com>
Fri, 10 Nov 2017 19:33:25 +0000 (11:33 -0800)
committerDavid S. Miller <davem@davemloft.net>
Sat, 11 Nov 2017 12:55:15 +0000 (21:55 +0900)
commit0a3f18b8ceec268bab426ecdb4146069071d80f3
tree222c0914e1065ca37fb58bbce5843e2814cdafb5
parentb2967adb01769d9fbf2ef683b9df6a4c6510172b
net: bgmac: Pad packets to a minimum size

In preparation for enabling Broadcom tags with b53, pad packets to a
minimum size of 64 bytes (sans FCS) in order for the Broadcom switch to
accept ingressing frames. Without this, we would typically be able to
DHCP, but not resolve with ARP because packets are too small and get
rejected by the switch.

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bgmac.c