]> 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)
commit4c4d8f3d05e7c97d0d5236cdcb3556742e4f6b36
tree38710f1472b99bb28a0f62223e59ac826b50ad27
parentada484c03043b96c39a15c03b2c47a34993a4cf8
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