[ovs-dev] [PATCH] netdev-dpdk: Remove duplicate code.

wllabs wllabs at 163.com
Thu Mar 26 07:38:10 UTC 2020


sorry, No problem. I'm wrong.










At 2020-03-26 15:28:47, "wllabs" <wllabs at 163.com> wrote:

Fixes: Remove duplicate code.
Signed-off-by: wllabs <wllabs at 163.com>
---
 lib/netdev-dpdk.c | 1 -
 1 file changed, 0 insertion(+), 1 deletion(-)

diff --git a/lib/netdev-dpdk.c b/lib/netdev-dpdk.c
index 6187129..2f388ae 100644

--- a/lib/netdev-dpdk.c

+++ b/lib/netdev-dpdk.c

@@ -1832,7 +1832,6 @@ netdev_dpdk_process_devargs(struct netdev_dpdk *dev,

             if (rte_dev_probe(devargs)) {

                 new_port_id = DPDK_ETH_PORT_ID_INVALID;

             } else {

-                new_port_id = netdev_dpdk_get_port_by_devargs(devargs);

                 if (rte_eth_dev_is_valid_port(new_port_id)) {

                     /* Attach successful */

                     dev->attached = true;




 


More information about the dev mailing list