]> 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)
commit76d8ff795ea238b9ba0e0fac11659d3f558b0e03
tree222c0914e1065ca37fb58bbce5843e2814cdafb5
parent2822aac6c1d36e514bb8bc7dbb41ab194e5e316d
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