git.droids-corp.org
/
dpdk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9ba3d0a
)
net/ena: use correct field for Rx offload features
author
Jakub Palider
<jpa@semihalf.com>
Wed, 4 Jan 2017 13:58:54 +0000
(14:58 +0100)
committer
Ferruh Yigit
<ferruh.yigit@intel.com>
Tue, 17 Jan 2017 18:40:52 +0000
(19:40 +0100)
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
patch
|
blob
|
history
diff --git
a/drivers/net/ena/ena_ethdev.c
b/drivers/net/ena/ena_ethdev.c
index
e99bf29
..
b9d0e8a
100644
(file)
--- 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 |