All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] net/ena: use correct field for Rx offload features
@ 2017-01-04 13:58 Jakub Palider
  2017-01-04 14:27 ` Ferruh Yigit
  0 siblings, 1 reply; 2+ messages in thread
From: Jakub Palider @ 2017-01-04 13:58 UTC (permalink / raw)
  To: dev; +Cc: Jakub Palider

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(-)

diff --git a/drivers/net/ena/ena_ethdev.c b/drivers/net/ena/ena_ethdev.c
index dcee8ed..34e5577 100644
--- a/drivers/net/ena/ena_ethdev.c
+++ b/drivers/net/ena/ena_ethdev.c
@@ -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  |
-- 
2.5.0

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] net/ena: use correct field for Rx offload features
  2017-01-04 13:58 [PATCH] net/ena: use correct field for Rx offload features Jakub Palider
@ 2017-01-04 14:27 ` Ferruh Yigit
  0 siblings, 0 replies; 2+ messages in thread
From: Ferruh Yigit @ 2017-01-04 14:27 UTC (permalink / raw)
  To: Jakub Palider, dev

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.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-01-04 14:27 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-01-04 13:58 [PATCH] net/ena: use correct field for Rx offload features Jakub Palider
2017-01-04 14:27 ` Ferruh Yigit

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.