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>
This commit is contained in:
parent
87d2f3c576
commit
ee3cac929e
@ -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;
|
||||
|
||||
|
@ -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);
|
||||
|
@ -111,13 +111,6 @@ struct rte_kni_device_info {
|
||||
void * mbuf_va;
|
||||
phys_addr_t mbuf_phys;
|
||||
|
||||
/* PCI info */
|
||||
uint16_t vendor_id; /**< Vendor ID or PCI_ANY_ID. */
|
||||
uint16_t device_id; /**< Device ID or PCI_ANY_ID. */
|
||||
uint8_t bus; /**< Device bus */
|
||||
uint8_t devid; /**< Device ID */
|
||||
uint8_t function; /**< Device function. */
|
||||
|
||||
uint16_t group_id; /**< Group ID */
|
||||
uint32_t core_id; /**< core ID to bind for kernel thread */
|
||||
|
||||
|
@ -252,10 +252,6 @@ rte_kni_alloc(struct rte_mempool *pktmbuf_pool,
|
||||
|
||||
strlcpy(dev_info.name, conf->name, RTE_KNI_NAMESIZE);
|
||||
|
||||
RTE_LOG(INFO, KNI, "pci: %02x:%02x:%02x \t %02x:%02x\n",
|
||||
dev_info.bus, dev_info.devid, dev_info.function,
|
||||
dev_info.vendor_id, dev_info.device_id);
|
||||
|
||||
ret = kni_reserve_mz(kni);
|
||||
if (ret < 0)
|
||||
goto mz_fail;
|
||||
|
Loading…
x
Reference in New Issue
Block a user