net: Add an option for RX checksum offload
authorBarret Rhoden <brho@cs.berkeley.edu>
Wed, 8 Nov 2017 20:49:49 +0000 (15:49 -0500)
committerBarret Rhoden <brho@cs.berkeley.edu>
Thu, 16 Nov 2017 15:46:56 +0000 (10:46 -0500)
commitdc1b7baf72f7c733ff30747c80e40dee5afd3beb
tree50623b9ba8b1a9e7fe7309302925cd740729a3e5
parentbff9133b5646aa8829ed65d27a26e59fd5e2feb1
net: Add an option for RX checksum offload

Plan 9 drivers assume that this feature is always on, if available, and it
is unqueryable.

Linux drivers have a flag for this, and by setting that flag to zero, NICs
(e.g. r8169) turn off their feature since they think the user doesn't want
it.

It's likely this will turn on RX checksumming on bnx2x and mlx4.

Signed-off-by: Barret Rhoden <brho@cs.berkeley.edu>
kern/drivers/net/ether82563.c
kern/drivers/net/etherigbe.c
kern/include/linux_compat.h
kern/include/net/ip.h
kern/src/net/ethermedium.c
kern/src/net/netif.c