[dpdk-dev] net/ena: use correct field for Rx offload features
Checks
Commit Message
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>
---
drivers/net/ena/ena_ethdev.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Comments
On 1/4/2017 1:58 PM, Jakub Palider wrote:
> 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>
Applied to dpdk-next-net/master, thanks.
@@ -1466,7 +1466,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 |