summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorFerruh Yigit <ferruh.yigit@intel.com>2019-05-24 17:55:20 +0100
committerThomas Monjalon <thomas@monjalon.net>2019-05-29 23:38:45 +0200
commitea6b39b5b847655cf65f283d3cc25d7ab629d039 (patch)
treedcd85b237c840111e5bb9fa9d805e31af410f451 /examples
parent221a07fae7ca58d7357a87259b495d0908bf8642 (diff)
downloaddpdk-ea6b39b5b847655cf65f283d3cc25d7ab629d039.zip
dpdk-ea6b39b5b847655cf65f283d3cc25d7ab629d039.tar.gz
dpdk-ea6b39b5b847655cf65f283d3cc25d7ab629d039.tar.xz
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')
-rw-r--r--examples/kni/main.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/examples/kni/main.c b/examples/kni/main.c
index a4d598b..4710d71 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);