2
0
mirror of https://github.com/openvswitch/ovs synced 2025-08-31 06:15:47 +00:00

netdev-dpdk: remove duplicated code in netdev_dpdk_get_status

Put "driver_name" into "args" twice, that's meaninglessness.
So need to remove duplicated code.

Signed-off-by: Binbin Xu <xu.binbin1@zte.com.cn>
Signed-off-by: Daniele Di Proietto <diproiettod@vmware.com>
This commit is contained in:
xubinbin
2016-07-21 21:52:29 +08:00
committed by Daniele Di Proietto
parent 7d6d1a40dc
commit b379037079
2 changed files with 1 additions and 2 deletions

View File

@@ -2081,8 +2081,6 @@ netdev_dpdk_get_status(const struct netdev *netdev, struct smap *args)
rte_eth_dev_info_get(dev->port_id, &dev_info);
ovs_mutex_unlock(&dev->mutex);
smap_add_format(args, "driver_name", "%s", dev_info.driver_name);
smap_add_format(args, "port_no", "%d", dev->port_id);
smap_add_format(args, "numa_id", "%d", rte_eth_dev_socket_id(dev->port_id));
smap_add_format(args, "driver_name", "%s", dev_info.driver_name);