summaryrefslogtreecommitdiff
path: root/kernel
diff options
context:
space:
mode:
authorIgor Ryzhov <iryzhov@nfware.com>2019-06-06 16:26:26 +0300
committerThomas Monjalon <thomas@monjalon.net>2019-06-17 14:22:22 +0300
commitee3cac929ede469522461af1bae220bf440e726f (patch)
tree64021000f5a679ddea18d6c4b7d44c2b27faf386 /kernel
parent87d2f3c576e73ce7714d813436bbf68e3329b87a (diff)
downloaddpdk-ee3cac929ede469522461af1bae220bf440e726f.zip
dpdk-ee3cac929ede469522461af1bae220bf440e726f.tar.gz
dpdk-ee3cac929ede469522461af1bae220bf440e726f.tar.xz
kni: remove PCI related information
As there is no ethtool support in KNI anymore, PCI related information is no longer needed. Fixes: ea6b39b5b847 ("kni: remove ethtool support") Signed-off-by: Igor Ryzhov <iryzhov@nfware.com> Acked-by: Ferruh Yigit <ferruh.yigit@intel.com>
Diffstat (limited to 'kernel')
-rw-r--r--kernel/linux/kni/kni_dev.h3
-rw-r--r--kernel/linux/kni/kni_misc.c6
2 files changed, 0 insertions, 9 deletions
diff --git a/kernel/linux/kni/kni_dev.h b/kernel/linux/kni/kni_dev.h
index 44a5a61..d57bce6 100644
--- a/kernel/linux/kni/kni_dev.h
+++ b/kernel/linux/kni/kni_dev.h
@@ -50,9 +50,6 @@ struct kni_dev {
wait_queue_head_t wq;
struct mutex sync_lock;
- /* PCI device id */
- uint16_t device_id;
-
/* kni device */
struct net_device *net_dev;
diff --git a/kernel/linux/kni/kni_misc.c b/kernel/linux/kni/kni_misc.c
index af18c67..1fc5eeb 100644
--- a/kernel/linux/kni/kni_misc.c
+++ b/kernel/linux/kni/kni_misc.c
@@ -377,12 +377,6 @@ kni_ioctl_create(struct net *net, uint32_t ioctl_num,
(unsigned long long) dev_info.resp_phys, kni->resp_q);
pr_debug("mbuf_size: %u\n", kni->mbuf_size);
- pr_debug("PCI: %02x:%02x.%02x %04x:%04x\n",
- dev_info.bus,
- dev_info.devid,
- dev_info.function,
- dev_info.vendor_id,
- dev_info.device_id);
/* if user has provided a valid mac address */
if (is_valid_ether_addr(dev_info.mac_addr))
memcpy(net_dev->dev_addr, dev_info.mac_addr, ETH_ALEN);