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 <jpa@semihalf.com>
This commit is contained in:
parent
9ba3d0ae20
commit
4eea092b71
@ -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 |
|
||||
|
Loading…
Reference in New Issue
Block a user