examples/ethtool: disable promiscuous mode by default
authorQi Zhang <qi.z.zhang@intel.com>
Wed, 12 Apr 2017 19:58:19 +0000 (15:58 -0400)
committerThomas Monjalon <thomas@monjalon.net>
Fri, 21 Apr 2017 00:24:31 +0000 (02:24 +0200)
Disable promiscuous mode by default since VLAN filter
does not work when promiscuous mode is enabled.

Signed-off-by: Qi Zhang <qi.z.zhang@intel.com>
Acked-by: Remy Horton <remy.horton@intel.com>
examples/ethtool/ethtool-app/main.c

index 2c655d8..6d50d46 100644 (file)
@@ -172,7 +172,6 @@ static void setup_ports(struct app_config *app_cfg, int cnt_ports)
                                 "%s:%i: rte_eth_dev_start failed",
                                 __FILE__, __LINE__
                                );
-               rte_eth_promiscuous_enable(idx_port);
                rte_eth_macaddr_get(idx_port, &ptr_port->mac_addr);
                rte_spinlock_init(&ptr_port->lock);
        }