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
common/qat: improve multi-process handling
[dpdk.git]
/
app
/
test-pmd
/
testpmd.c
diff --git
a/app/test-pmd/testpmd.c
b/app/test-pmd/testpmd.c
index
b112f83
..
4989d22
100644
(file)
--- a/
app/test-pmd/testpmd.c
+++ b/
app/test-pmd/testpmd.c
@@
-1962,10
+1962,10
@@
fwd_stats_display(void)
#ifdef RTE_TEST_PMD_RECORD_CORE_CYCLES
#define CYC_PER_MHZ 1E6
if (total_recv > 0)
#ifdef RTE_TEST_PMD_RECORD_CORE_CYCLES
#define CYC_PER_MHZ 1E6
if (total_recv > 0)
- printf("\n CPU cycles/packet=%
u
(total cycles="
+ printf("\n CPU cycles/packet=%
.2F
(total cycles="
"%"PRIu64" / total RX packets=%"PRIu64") at %"PRIu64
" MHz Clock\n",
"%"PRIu64" / total RX packets=%"PRIu64") at %"PRIu64
" MHz Clock\n",
- (
unsigned int)(fwd_cycles / total_recv)
,
+ (
double) fwd_cycles / total_recv
,
fwd_cycles, total_recv,
(uint64_t)(rte_get_tsc_hz() / CYC_PER_MHZ));
#endif
fwd_cycles, total_recv,
(uint64_t)(rte_get_tsc_hz() / CYC_PER_MHZ));
#endif
@@
-3460,6
+3460,8
@@
get_eth_dcb_conf(portid_t pid, struct rte_eth_conf *eth_conf,
struct rte_eth_dcb_tx_conf *tx_conf =
ð_conf->tx_adv_conf.dcb_tx_conf;
struct rte_eth_dcb_tx_conf *tx_conf =
ð_conf->tx_adv_conf.dcb_tx_conf;
+ memset(&rss_conf, 0, sizeof(struct rte_eth_rss_conf));
+
rc = rte_eth_dev_rss_hash_conf_get(pid, &rss_conf);
if (rc != 0)
return rc;
rc = rte_eth_dev_rss_hash_conf_get(pid, &rss_conf);
if (rc != 0)
return rc;