]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitbae2a2a219dd19b5ab5b5f6d71a869636ef87d3b
tree38710f1472b99bb28a0f62223e59ac826b50ad27
parentc4609bf42f9f57ade9b7a10557eee25f3d9dbf57
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