net: ethoc: Correctly pad short packets
authorFlorian Fainelli <f.fainelli@gmail.com>
Tue, 12 Jul 2016 23:04:36 +0000 (16:04 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 13 Jul 2016 06:13:01 +0000 (23:13 -0700)
commitee6c21b9c11ad96318160f9a504a3fac2114ddca
tree38710f1472b99bb28a0f62223e59ac826b50ad27
parent386512d18b268c6182903239f9f3390f03ce4c7b
net: ethoc: Correctly pad short packets

Even though the hardware can be doing zero padding, we want the SKB to
be going out on the wire with the appropriate size. This fixes packet
truncations observed with e.g: ARP packets.

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