net: checksum: Introduce fine control over checksum type
At present net_checksum_calculate() blindly calculates all types of checksums (IP, TCP, UDP). Some NICs may have a per type setting in their BDs to control what checksum should be offloaded. To support such hardware behavior, introduce a 'csum_flag' parameter to the net_checksum_calculate() API to allow fine control over what type checksum is calculated. Existing users of this API are updated accordingly. Signed-off-by:Bin Meng <bin.meng@windriver.com> Signed-off-by:
Jason Wang <jasowang@redhat.com>
Showing
- hw/net/allwinner-sun8i-emac.c 1 addition, 1 deletionhw/net/allwinner-sun8i-emac.c
- hw/net/cadence_gem.c 1 addition, 1 deletionhw/net/cadence_gem.c
- hw/net/fsl_etsec/rings.c 9 additions, 9 deletionshw/net/fsl_etsec/rings.c
- hw/net/ftgmac100.c 12 additions, 1 deletionhw/net/ftgmac100.c
- hw/net/imx_fec.c 8 additions, 12 deletionshw/net/imx_fec.c
- hw/net/virtio-net.c 1 addition, 1 deletionhw/net/virtio-net.c
- hw/net/xen_nic.c 1 addition, 1 deletionhw/net/xen_nic.c
- include/net/checksum.h 6 additions, 1 deletioninclude/net/checksum.h
- net/checksum.c 14 additions, 4 deletionsnet/checksum.c
- net/filter-rewriter.c 2 additions, 2 deletionsnet/filter-rewriter.c
Loading
Please register or sign in to comment