diff options
author | Ferruh Yigit <ferruh.yigit@intel.com> | 2019-05-24 17:55:20 +0100 |
---|---|---|
committer | Thomas Monjalon <thomas@monjalon.net> | 2019-05-29 23:38:45 +0200 |
commit | ea6b39b5b847655cf65f283d3cc25d7ab629d039 (patch) | |
tree | dcd85b237c840111e5bb9fa9d805e31af410f451 /examples/kni/main.c | |
parent | 221a07fae7ca58d7357a87259b495d0908bf8642 (diff) |
kni: remove ethtool support
Current design requires kernel drivers and they need to be probed by
Linux up to some level so that they can be usable by DPDK for ethtool
support, this requires maintaining the Linux drivers in DPDK.
Also ethtool support is limited and hard, if not impossible, to expand
to other PMDs.
Since KNI ethtool support is not used commonly, if not used at all,
removing the support for the sake of simplicity and maintenance.
Signed-off-by: Ferruh Yigit <ferruh.yigit@intel.com>
Acked-by: Stephen Hemminger <stephen@networkplumber.org>
Acked-by: Neil Horman <nhorman@tuxdriver.com>
Acked-by: Thomas Monjalon <thomas@monjalon.net>
Diffstat (limited to 'examples/kni/main.c')
-rw-r--r-- | examples/kni/main.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/examples/kni/main.c b/examples/kni/main.c index a4d598bb7b..4710d71769 100644 --- a/examples/kni/main.c +++ b/examples/kni/main.c @@ -897,19 +897,10 @@ kni_alloc(uint16_t port_id) if (i == 0) { struct rte_kni_ops ops; struct rte_eth_dev_info dev_info; - const struct rte_pci_device *pci_dev; - const struct rte_bus *bus = NULL; memset(&dev_info, 0, sizeof(dev_info)); rte_eth_dev_info_get(port_id, &dev_info); - if (dev_info.device) - bus = rte_bus_find_by_device(dev_info.device); - if (bus && !strcmp(bus->name, "pci")) { - pci_dev = RTE_DEV_TO_PCI(dev_info.device); - conf.addr = pci_dev->addr; - conf.id = pci_dev->id; - } /* Get the interface default mac address */ rte_eth_macaddr_get(port_id, (struct rte_ether_addr *)&conf.mac_addr); |