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
net/cnxk: support telemetry
[dpdk.git]
/
drivers
/
net
/
cnxk
/
cn10k_tx_vec.c
diff --git
a/drivers/net/cnxk/cn10k_tx_vec.c
b/drivers/net/cnxk/cn10k_tx_vec.c
index
beb5c64
..
2789b13
100644
(file)
--- a/
drivers/net/cnxk/cn10k_tx_vec.c
+++ b/
drivers/net/cnxk/cn10k_tx_vec.c
@@
-5,7
+5,7
@@
#include "cn10k_ethdev.h"
#include "cn10k_tx.h"
#include "cn10k_ethdev.h"
#include "cn10k_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 \
cn10k_nix_xmit_pkts_vec_##name(void *tx_queue, \
struct rte_mbuf **tx_pkts, \
uint16_t __rte_noinline __rte_hot \
cn10k_nix_xmit_pkts_vec_##name(void *tx_queue, \
struct rte_mbuf **tx_pkts, \
@@
-13,12
+13,12
@@
{ \
uint64_t cmd[sz]; \
\
{ \
uint64_t cmd[sz]; \
\
- /*
VLAN, TSTMP, TSO is not supported by vec */
\
- if ((
flags) & NIX_TX_OFFLOAD_TSTAMP_F ||
\
-
(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 cn10k_nix_xmit_pkts_vector(tx_queue, tx_pkts, pkts, cmd,\
return 0; \
return cn10k_nix_xmit_pkts_vector(tx_queue, tx_pkts, pkts, cmd,\
-
(flags));
\
+
0, (flags));
\
}
NIX_TX_FASTPATH_MODES
}
NIX_TX_FASTPATH_MODES