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
mbuf: fix segments number type increase
[dpdk.git]
/
lib
/
librte_pdump
/
rte_pdump.c
diff --git
a/lib/librte_pdump/rte_pdump.c
b/lib/librte_pdump/rte_pdump.c
index
fec49b5
..
00ab87e
100644
(file)
--- a/
lib/librte_pdump/rte_pdump.c
+++ b/
lib/librte_pdump/rte_pdump.c
@@
-139,7
+139,7
@@
pdump_pktmbuf_copy(struct rte_mbuf *m, struct rte_mempool *mp)
{
struct rte_mbuf *m_dup, *seg, **prev;
uint32_t pktlen;
{
struct rte_mbuf *m_dup, *seg, **prev;
uint32_t pktlen;
- uint
8
_t nseg;
+ uint
16
_t nseg;
m_dup = rte_pktmbuf_alloc(mp);
if (unlikely(m_dup == NULL))
m_dup = rte_pktmbuf_alloc(mp);
if (unlikely(m_dup == NULL))
@@
-227,7
+227,7
@@
pdump_tx(uint16_t port __rte_unused, uint16_t qidx __rte_unused,
}
static int
}
static int
-pdump_regi
ts
er_rx_callbacks(uint16_t end_q, uint16_t port, uint16_t queue,
+pdump_regi
st
er_rx_callbacks(uint16_t end_q, uint16_t port, uint16_t queue,
struct rte_ring *ring, struct rte_mempool *mp,
uint16_t operation)
{
struct rte_ring *ring, struct rte_mempool *mp,
uint16_t operation)
{
@@
-281,7
+281,7
@@
pdump_regitser_rx_callbacks(uint16_t end_q, uint16_t port, uint16_t queue,
}
static int
}
static int
-pdump_regi
ts
er_tx_callbacks(uint16_t end_q, uint16_t port, uint16_t queue,
+pdump_regi
st
er_tx_callbacks(uint16_t end_q, uint16_t port, uint16_t queue,
struct rte_ring *ring, struct rte_mempool *mp,
uint16_t operation)
{
struct rte_ring *ring, struct rte_mempool *mp,
uint16_t operation)
{
@@
-402,7
+402,7
@@
set_pdump_rxtx_cbs(struct pdump_request *p)
/* register RX callback */
if (flags & RTE_PDUMP_FLAG_RX) {
end_q = (queue == RTE_PDUMP_ALL_QUEUES) ? nb_rx_q : queue + 1;
/* register RX callback */
if (flags & RTE_PDUMP_FLAG_RX) {
end_q = (queue == RTE_PDUMP_ALL_QUEUES) ? nb_rx_q : queue + 1;
- ret = pdump_regi
ts
er_rx_callbacks(end_q, port, queue, ring, mp,
+ ret = pdump_regi
st
er_rx_callbacks(end_q, port, queue, ring, mp,
operation);
if (ret < 0)
return ret;
operation);
if (ret < 0)
return ret;
@@
-411,7
+411,7
@@
set_pdump_rxtx_cbs(struct pdump_request *p)
/* register TX callback */
if (flags & RTE_PDUMP_FLAG_TX) {
end_q = (queue == RTE_PDUMP_ALL_QUEUES) ? nb_tx_q : queue + 1;
/* register TX callback */
if (flags & RTE_PDUMP_FLAG_TX) {
end_q = (queue == RTE_PDUMP_ALL_QUEUES) ? nb_tx_q : queue + 1;
- ret = pdump_regi
ts
er_tx_callbacks(end_q, port, queue, ring, mp,
+ ret = pdump_regi
st
er_tx_callbacks(end_q, port, queue, ring, mp,
operation);
if (ret < 0)
return ret;
operation);
if (ret < 0)
return ret;