summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorThomas Monjalon <thomas@monjalon.net>2019-03-13 11:09:09 +0100
committerFerruh Yigit <ferruh.yigit@intel.com>2019-03-20 18:15:42 +0100
commite00a5eaab2a9bbfc0b0ddf04ac2c62fe53e2f001 (patch)
tree05092b9a68cd7adfa508f3843a800b9102187837 /examples
parent5ab51dbfd4e7f14d0b0329cec33d5d545bd610bc (diff)
downloaddpdk-next-eventdev-e00a5eaab2a9bbfc0b0ddf04ac2c62fe53e2f001.zip
dpdk-next-eventdev-e00a5eaab2a9bbfc0b0ddf04ac2c62fe53e2f001.tar.gz
dpdk-next-eventdev-e00a5eaab2a9bbfc0b0ddf04ac2c62fe53e2f001.tar.xz
examples/ethtool: remove query of default config
The default config is used if the setup parameter is NULL. No need to query the default config with rte_eth_dev_info_get(). The function call will be removed with another useless info. Signed-off-by: Thomas Monjalon <thomas@monjalon.net> Acked-by: Bruce Richardson <bruce.richardson@intel.com> Reviewed-by: Rami Rosen <ramirose@gmail.com>
Diffstat (limited to 'examples')
-rw-r--r--examples/ethtool/ethtool-app/main.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/examples/ethtool/ethtool-app/main.c b/examples/ethtool/ethtool-app/main.c
index dc93adf..e23d3af 100644
--- a/examples/ethtool/ethtool-app/main.c
+++ b/examples/ethtool/ethtool-app/main.c
@@ -95,7 +95,6 @@ static void setup_ports(struct app_config *app_cfg, int cnt_ports)
char str_name[16];
uint16_t nb_rxd = PORT_RX_QUEUE_SIZE;
uint16_t nb_txd = PORT_TX_QUEUE_SIZE;
- struct rte_eth_txconf txconf;
memset(&cfg_port, 0, sizeof(cfg_port));
cfg_port.txmode.mq_mode = ETH_MQ_TX_NONE;
@@ -140,10 +139,9 @@ static void setup_ports(struct app_config *app_cfg, int cnt_ports)
rte_exit(EXIT_FAILURE,
"rte_eth_rx_queue_setup failed"
);
- txconf = dev_info.default_txconf;
if (rte_eth_tx_queue_setup(
idx_port, 0, nb_txd,
- rte_eth_dev_socket_id(idx_port), &txconf) < 0)
+ rte_eth_dev_socket_id(idx_port), NULL) < 0)
rte_exit(EXIT_FAILURE,
"rte_eth_tx_queue_setup failed"
);