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
sched: remove useless malloc in PIE data init
[dpdk.git]
/
examples
/
l2fwd-jobstats
/
main.c
diff --git
a/examples/l2fwd-jobstats/main.c
b/examples/l2fwd-jobstats/main.c
index
6298166
..
9e71ba2
100644
(file)
--- a/
examples/l2fwd-jobstats/main.c
+++ b/
examples/l2fwd-jobstats/main.c
@@
-93,7
+93,7
@@
static struct rte_eth_conf port_conf = {
.split_hdr_size = 0,
},
.txmode = {
.split_hdr_size = 0,
},
.txmode = {
- .mq_mode = ETH_MQ_TX_NONE,
+ .mq_mode =
RTE_
ETH_MQ_TX_NONE,
},
};
},
};
@@
-468,7
+468,7
@@
l2fwd_flush_job(__rte_unused struct rte_timer *timer, __rte_unused void *arg)
qconf->next_flush_time[portid] = rte_get_timer_cycles() + drain_tsc;
}
qconf->next_flush_time[portid] = rte_get_timer_cycles() + drain_tsc;
}
- /* Pass target to indicate that this job is happy of time inter
w
al
+ /* Pass target to indicate that this job is happy of time inter
v
al
* in which it was called. */
rte_jobstats_finish(&qconf->flush_job, qconf->flush_job.target);
}
* in which it was called. */
rte_jobstats_finish(&qconf->flush_job, qconf->flush_job.target);
}
@@
-725,7
+725,7
@@
check_all_ports_link_status(uint32_t port_mask)
continue;
}
/* clear all_ports_up flag if any link down */
continue;
}
/* clear all_ports_up flag if any link down */
- if (link.link_status == ETH_LINK_DOWN) {
+ if (link.link_status ==
RTE_
ETH_LINK_DOWN) {
all_ports_up = 0;
break;
}
all_ports_up = 0;
break;
}
@@
-868,9
+868,9
@@
main(int argc, char **argv)
"Error during getting device (port %u) info: %s\n",
portid, strerror(-ret));
"Error during getting device (port %u) info: %s\n",
portid, strerror(-ret));
- if (dev_info.tx_offload_capa &
DEV
_TX_OFFLOAD_MBUF_FAST_FREE)
+ if (dev_info.tx_offload_capa &
RTE_ETH
_TX_OFFLOAD_MBUF_FAST_FREE)
local_port_conf.txmode.offloads |=
local_port_conf.txmode.offloads |=
-
DEV
_TX_OFFLOAD_MBUF_FAST_FREE;
+
RTE_ETH
_TX_OFFLOAD_MBUF_FAST_FREE;
/* Configure the RX and TX queues. 8< */
ret = rte_eth_dev_configure(portid, 1, 1, &local_port_conf);
if (ret < 0)
/* Configure the RX and TX queues. 8< */
ret = rte_eth_dev_configure(portid, 1, 1, &local_port_conf);
if (ret < 0)