From: xubinbin Date: Thu, 21 Jul 2016 13:52:29 +0000 (+0800) Subject: netdev-dpdk: remove duplicated code in netdev_dpdk_get_status X-Git-Url: http://git.cascardo.eti.br/?p=cascardo%2Fovs.git;a=commitdiff_plain;h=b3790370798134fb34f749b64ac55a0570b18f4d 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 Signed-off-by: Daniele Di Proietto --- diff --git a/AUTHORS b/AUTHORS index cc6eb5fc3..334e17fbd 100644 --- a/AUTHORS +++ b/AUTHORS @@ -35,6 +35,7 @@ Benli Ye daniely@vmware.com Bert Vermeulen bert@biot.com Bhanuprakash Bodireddy bhanuprakash.bodireddy@intel.com Billy O'Mahony billy.o.mahony@intel.com +Binbin Xu xu.binbin1@zte.com.cn Brian Kruger bkruger+ovsdev@gmail.com Bruce Davie bsd@nicira.com Bryan Phillippe bp@toroki.com diff --git a/lib/netdev-dpdk.c b/lib/netdev-dpdk.c index 8ca7af491..af87f1893 100644 --- a/lib/netdev-dpdk.c +++ b/lib/netdev-dpdk.c @@ -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);