* [dpdk-dev] [PATCH] net/octeontx: fix missing offload flags
@ 2018-05-03 11:31 Pavan Nikhilesh
2018-05-04 16:18 ` Ferruh Yigit
0 siblings, 1 reply; 2+ messages in thread
From: Pavan Nikhilesh @ 2018-05-03 11:31 UTC (permalink / raw)
To: jerin.jacob, santosh.shukla, ferruh.yigit; +Cc: dev, Pavan Nikhilesh
Fix missing DEV_RX_OFFLOAD_CHECKSUM flag in RX offloads.
Remove depricated txq_flags field.
Fixes: a92870896b4a ("net/octeontx: use the new offload APIs")
Signed-off-by: Pavan Nikhilesh <pbhagavatula@caviumnetworks.com>
---
drivers/net/octeontx/octeontx_ethdev.c | 5 +----
drivers/net/octeontx/octeontx_ethdev.h | 3 ++-
2 files changed, 3 insertions(+), 5 deletions(-)
diff --git a/drivers/net/octeontx/octeontx_ethdev.c b/drivers/net/octeontx/octeontx_ethdev.c
index 04120f502..261b17f9b 100644
--- a/drivers/net/octeontx/octeontx_ethdev.c
+++ b/drivers/net/octeontx/octeontx_ethdev.c
@@ -627,10 +627,7 @@ octeontx_dev_info(struct rte_eth_dev *dev,
dev_info->default_txconf = (struct rte_eth_txconf) {
.tx_free_thresh = 0,
- .txq_flags =
- ETH_TXQ_FLAGS_NOMULTSEGS |
- ETH_TXQ_FLAGS_NOOFFLOADS |
- ETH_TXQ_FLAGS_NOXSUMS,
+ .offloads = OCTEONTX_TX_OFFLOADS,
};
dev_info->rx_offload_capa = OCTEONTX_RX_OFFLOADS;
diff --git a/drivers/net/octeontx/octeontx_ethdev.h b/drivers/net/octeontx/octeontx_ethdev.h
index 9d6c22b0d..14f169692 100644
--- a/drivers/net/octeontx/octeontx_ethdev.h
+++ b/drivers/net/octeontx/octeontx_ethdev.h
@@ -28,7 +28,8 @@
#define OCTEONTX_MAX_BGX_PORTS 4
#define OCTEONTX_MAX_LMAC_PER_BGX 4
-#define OCTEONTX_RX_OFFLOADS DEV_RX_OFFLOAD_CRC_STRIP
+#define OCTEONTX_RX_OFFLOADS (DEV_RX_OFFLOAD_CRC_STRIP \
+ | DEV_RX_OFFLOAD_CHECKSUM)
#define OCTEONTX_TX_OFFLOADS DEV_TX_OFFLOAD_MT_LOCKFREE
static inline struct octeontx_nic *
--
2.17.0
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [dpdk-dev] [PATCH] net/octeontx: fix missing offload flags
2018-05-03 11:31 [dpdk-dev] [PATCH] net/octeontx: fix missing offload flags Pavan Nikhilesh
@ 2018-05-04 16:18 ` Ferruh Yigit
0 siblings, 0 replies; 2+ messages in thread
From: Ferruh Yigit @ 2018-05-04 16:18 UTC (permalink / raw)
To: Pavan Nikhilesh, jerin.jacob, santosh.shukla; +Cc: dev
On 5/3/2018 12:31 PM, Pavan Nikhilesh wrote:
> Fix missing DEV_RX_OFFLOAD_CHECKSUM flag in RX offloads.
> Remove depricated txq_flags field.
>
> Fixes: a92870896b4a ("net/octeontx: use the new offload APIs")
>
> Signed-off-by: Pavan Nikhilesh <pbhagavatula@caviumnetworks.com>
Applied to dpdk-next-net/master, thanks.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2018-05-04 16:18 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-05-03 11:31 [dpdk-dev] [PATCH] net/octeontx: fix missing offload flags Pavan Nikhilesh
2018-05-04 16:18 ` Ferruh Yigit
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).