rtl8169: fix cache misalignment message on transmit.
authorPeter Chubb <Peter.Chubb@data61.csiro.au>
Wed, 14 Sep 2016 01:29:03 +0000 (01:29 +0000)
committerJoe Hershberger <joe.hershberger@ni.com>
Thu, 13 Oct 2016 17:25:29 +0000 (12:25 -0500)
commit7377647a3678c50c1913f05d8ad8d685b05e52d1
tree3505578bf558c212ac7a96a61079ac612b5a657b
parentc86ff7fdb2272e25c8abba2e36d4f28f9282cd37
rtl8169: fix cache misalignment message on transmit.

The call to flush cache on the transmit buffer was misplaced (for very
short packets) and asked to flush less than a cacheline.

Move the flush cache call to after a short packet has been padded
to minimum length (so the padding is flushed too), and round the size
up to a cacheline.

Signed-off-by: Peter Chubb <peter.chubb@data61.csiro.au>
Acked-by: Joe Hershberger <joe.hershberger@ni.com>
drivers/net/rtl8169.c