git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ethdev: remove jumbo offload flag
[dpdk.git]
/
drivers
/
net
/
cnxk
/
cn9k_tx_vec.c
diff --git
a/drivers/net/cnxk/cn9k_tx_vec.c
b/drivers/net/cnxk/cn9k_tx_vec.c
index
9ade66d
..
b424f95
100644
(file)
--- a/
drivers/net/cnxk/cn9k_tx_vec.c
+++ b/
drivers/net/cnxk/cn9k_tx_vec.c
@@
-5,7
+5,7
@@
#include "cn9k_ethdev.h"
#include "cn9k_tx.h"
#include "cn9k_ethdev.h"
#include "cn9k_tx.h"
-#define T(name, f
5, f4, f3, f2, f1, f0, sz, flags)
\
+#define T(name, f
6, f5, f4, f3, f2, f1, f0, sz, flags)
\
uint16_t __rte_noinline __rte_hot \
cn9k_nix_xmit_pkts_vec_##name(void *tx_queue, \
struct rte_mbuf **tx_pkts, \
uint16_t __rte_noinline __rte_hot \
cn9k_nix_xmit_pkts_vec_##name(void *tx_queue, \
struct rte_mbuf **tx_pkts, \
@@
-13,8
+13,9
@@
{ \
uint64_t cmd[sz]; \
\
{ \
uint64_t cmd[sz]; \
\
- /* TSO is not supported by vec */ \
- if ((flags) & NIX_TX_OFFLOAD_TSO_F) \
+ /* For TSO inner checksum is a must */ \
+ if (((flags) & NIX_TX_OFFLOAD_TSO_F) && \
+ !((flags) & NIX_TX_OFFLOAD_L3_L4_CSUM_F)) \
return 0; \
return cn9k_nix_xmit_pkts_vector(tx_queue, tx_pkts, pkts, cmd, \
(flags)); \
return 0; \
return cn9k_nix_xmit_pkts_vector(tx_queue, tx_pkts, pkts, cmd, \
(flags)); \