From: Jakub Palider Date: Wed, 4 Jan 2017 13:58:54 +0000 (+0100) Subject: net/ena: use correct field for Rx offload features X-Git-Tag: spdx-start~4908 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=4eea092b71e11c850baef2c092edb8bd3180f38d;p=dpdk.git net/ena: use correct field for Rx offload features Previously the capability bitmap for Rx offloads was mistakenly taken from Tx capability bitmap field. This patch fixes the problem. Signed-off-by: Jakub Palider --- diff --git a/drivers/net/ena/ena_ethdev.c b/drivers/net/ena/ena_ethdev.c index e99bf299e7..b9d0e8a405 100644 --- a/drivers/net/ena/ena_ethdev.c +++ b/drivers/net/ena/ena_ethdev.c @@ -1478,7 +1478,7 @@ static void ena_infos_get(struct rte_eth_dev *dev, DEV_TX_OFFLOAD_UDP_CKSUM | DEV_TX_OFFLOAD_TCP_CKSUM; - if (feat.offload.tx & + if (feat.offload.rx_supported & ENA_ADMIN_FEATURE_OFFLOAD_DESC_RX_L4_IPV4_CSUM_MASK) rx_feat |= DEV_RX_OFFLOAD_IPV4_CKSUM | DEV_RX_OFFLOAD_UDP_CKSUM |