MCPcopy Create free account
hub / github.com/F-Stack/f-stack / igb_identify_hardware

Function igb_identify_hardware

dpdk/drivers/net/e1000/igb_ethdev.c:598–613  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

596}
597
598static void
599igb_identify_hardware(struct rte_eth_dev *dev, struct rte_pci_device *pci_dev)
600{
601 struct e1000_hw *hw =
602 E1000_DEV_PRIVATE_TO_HW(dev->data->dev_private);
603
604
605 hw->vendor_id = pci_dev->id.vendor_id;
606 hw->device_id = pci_dev->id.device_id;
607 hw->subsystem_vendor_id = pci_dev->id.subsystem_vendor_id;
608 hw->subsystem_device_id = pci_dev->id.subsystem_device_id;
609
610 e1000_set_mac_type(hw);
611
612 /* need to check if it is a vf device below */
613}
614
615static int
616igb_reset_swfw_lock(struct e1000_hw *hw)

Callers 1

eth_igb_dev_initFunction · 0.85

Calls 1

e1000_set_mac_typeFunction · 0.85

Tested by

no test coverage detected