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: improve xstats names by IDs get prototype
[dpdk.git]
/
drivers
/
net
/
ionic
/
ionic_rxtx.c
diff --git
a/drivers/net/ionic/ionic_rxtx.c
b/drivers/net/ionic/ionic_rxtx.c
index
b4bdeab
..
b83ea1b
100644
(file)
--- a/
drivers/net/ionic/ionic_rxtx.c
+++ b/
drivers/net/ionic/ionic_rxtx.c
@@
-598,9
+598,9
@@
ionic_xmit_pkts(void *tx_queue, struct rte_mbuf **tx_pkts,
(PKT_TX_OFFLOAD_MASK ^ IONIC_TX_OFFLOAD_MASK)
uint16_t
(PKT_TX_OFFLOAD_MASK ^ IONIC_TX_OFFLOAD_MASK)
uint16_t
-ionic_prep_pkts(void *tx_queue __rte_unused, struct rte_mbuf **tx_pkts,
- uint16_t nb_pkts)
+ionic_prep_pkts(void *tx_queue, struct rte_mbuf **tx_pkts, uint16_t nb_pkts)
{
{
+ struct ionic_tx_qcq *txq = tx_queue;
struct rte_mbuf *txm;
uint64_t offloads;
int i = 0;
struct rte_mbuf *txm;
uint64_t offloads;
int i = 0;
@@
-608,7
+608,7
@@
ionic_prep_pkts(void *tx_queue __rte_unused, struct rte_mbuf **tx_pkts,
for (i = 0; i < nb_pkts; i++) {
txm = tx_pkts[i];
for (i = 0; i < nb_pkts; i++) {
txm = tx_pkts[i];
- if (txm->nb_segs >
IONIC_TX_MAX_SG_ELEMS_V1 + 1
) {
+ if (txm->nb_segs >
txq->num_segs_fw
) {
rte_errno = -EINVAL;
break;
}
rte_errno = -EINVAL;
break;
}