alistair23-linux/drivers/net/ethernet/sun
Rob Taglang 14224923c3 net: ethernet: sun: niu set correct packet size in skb
Currently, skb->len and skb->data_len are set to the page size, not
the packet size. This causes the frame check sequence to not be
located at the "end" of the packet resulting in ethernet frame check
errors. The driver does work currently, but stricter kernel facing
networking solutions like OpenVSwitch will drop these packets as
invalid.

These changes set the packet size correctly so that these errors no
longer occur. The length does not include the frame check sequence, so
that subtraction was removed.

Tested on Oracle/SUN Multithreaded 10-Gigabit Ethernet Network
Controller [108e:abcd] and validated in wireshark.

Signed-off-by: Rob Taglang <rob@taglang.io>
Signed-off-by: David S. Miller <davem@davemloft.net>
2018-05-04 13:20:46 -04:00
..
cassini.c sun: Add SPDX license tags to Sun network drivers 2018-02-07 21:51:02 -05:00
cassini.h sun: Add SPDX license tags to Sun network drivers 2018-02-07 21:51:02 -05:00
Kconfig sun: Add SPDX license tags to Sun network drivers 2018-02-07 21:51:02 -05:00
ldmvsw.c sun: Add SPDX license tags to Sun network drivers 2018-02-07 21:51:02 -05:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
niu.c net: ethernet: sun: niu set correct packet size in skb 2018-05-04 13:20:46 -04:00
niu.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
sunbmac.c sun: Add SPDX license tags to Sun network drivers 2018-02-07 21:51:02 -05:00
sunbmac.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
sungem.c sun: Add SPDX license tags to Sun network drivers 2018-02-07 21:51:02 -05:00
sungem.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
sunhme.c sun: Add SPDX license tags to Sun network drivers 2018-02-07 21:51:02 -05:00
sunhme.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
sunqe.c sun: Add SPDX license tags to Sun network drivers 2018-02-07 21:51:02 -05:00
sunqe.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
sunvnet.c sunvnet: does not support GSO for sctp 2018-03-14 14:01:33 -04:00
sunvnet_common.c sun: Add SPDX license tags to Sun network drivers 2018-02-07 21:51:02 -05:00
sunvnet_common.h Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net 2017-11-04 09:26:51 +09:00