Code Review
/
deb_dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
New upstream version 17.11.5
[deb_dpdk.git]
/
app
/
pdump
/
main.c
diff --git
a/app/pdump/main.c
b/app/pdump/main.c
index
66272f5
..
8e42b36
100644
(file)
--- a/
app/pdump/main.c
+++ b/
app/pdump/main.c
@@
-148,8
+148,8
@@
struct pdump_tuples {
/* params for packet dumping */
enum pdump_by dump_by_type;
/* params for packet dumping */
enum pdump_by dump_by_type;
-
in
t rx_vdev_id;
-
in
t tx_vdev_id;
+
uint16_
t rx_vdev_id;
+
uint16_
t tx_vdev_id;
enum pcap_stream rx_vdev_stream_type;
enum pcap_stream tx_vdev_stream_type;
bool single_pdump_dev;
enum pcap_stream rx_vdev_stream_type;
enum pcap_stream tx_vdev_stream_type;
bool single_pdump_dev;
@@
-301,7
+301,7
@@
parse_pdump(const char *optarg)
&parse_uint_value, &v);
if (ret < 0)
goto free_kvlist;
&parse_uint_value, &v);
if (ret < 0)
goto free_kvlist;
- pt->port = (uint
8
_t) v.val;
+ pt->port = (uint
16
_t) v.val;
pt->dump_by_type = PORT_ID;
} else if (cnt2 == 1) {
ret = rte_kvargs_process(kvlist, PDUMP_PCI_ARG,
pt->dump_by_type = PORT_ID;
} else if (cnt2 == 1) {
ret = rte_kvargs_process(kvlist, PDUMP_PCI_ARG,
@@
-489,7
+489,7
@@
disable_pdump(struct pdump_tuples *pt)
}
static inline void
}
static inline void
-pdump_rxtx(struct rte_ring *ring, uint
8
_t vdev_id, struct pdump_stats *stats)
+pdump_rxtx(struct rte_ring *ring, uint
16
_t vdev_id, struct pdump_stats *stats)
{
/* write input packets of port to vdev for pdump */
struct rte_mbuf *rxtx_bufs[BURST_SIZE];
{
/* write input packets of port to vdev for pdump */
struct rte_mbuf *rxtx_bufs[BURST_SIZE];
@@
-516,7
+516,7
@@
pdump_rxtx(struct rte_ring *ring, uint8_t vdev_id, struct pdump_stats *stats)
}
static void
}
static void
-free_ring_data(struct rte_ring *ring, uint
8
_t vdev_id,
+free_ring_data(struct rte_ring *ring, uint
16
_t vdev_id,
struct pdump_stats *stats)
{
while (rte_ring_count(ring))
struct pdump_stats *stats)
{
while (rte_ring_count(ring))