net/mlx5: support checksum offload on Windows
authorTal Shnaiderman <talshn@nvidia.com>
Wed, 21 Apr 2021 16:34:41 +0000 (19:34 +0300)
committerRaslan Darawsheh <rasland@nvidia.com>
Wed, 28 Apr 2021 09:16:47 +0000 (11:16 +0200)
commitdb16bbfb5c808e907d815ab9d0523e8ad63e69bf
treededbb10d0d538f8924580d8ad38f5d69b163afe0
parent11e61a9467b9180e872c63466b884ad7f84d3574
net/mlx5: support checksum offload on Windows

Support of the checksum offloading by checking
the relevant FW capability (csum_cap) for NIC support.

RX supported offloads:

DEV_RX_OFFLOAD_IPV4_CKSUM
DEV_RX_OFFLOAD_UDP_CKSUM
DEV_RX_OFFLOAD_TCP_CKSUM

TX supported offloads:

DEV_TX_OFFLOAD_IPV4_CKSUM
DEV_TX_OFFLOAD_UDP_CKSUM
DEV_TX_OFFLOAD_TCP_CKSUM

Signed-off-by: Tal Shnaiderman <talshn@nvidia.com>
Acked-by: Matan Azrad <matan@nvidia.com>
Tested-by: Odi Assli <odia@nvidia.com>
drivers/net/mlx5/windows/mlx5_os.c