src/dpdk/drivers/net/igc/base/igc_mac.c
static void igc_set_lan_id_multi_port_pcie(struct igc_hw *hw)
{
	struct igc_bus_info *bus = &hw->bus;
	u32 reg;

	/* The status register reports the correct function number
	 * for the device regardless of function swap state.
	 */
	reg = IGC_READ_REG(hw, IGC_STATUS);
	bus->func = (reg & IGC_STATUS_FUNC_MASK) >> IGC_STATUS_FUNC_SHIFT;
}
/**
 *  igc_set_lan_id_multi_port_pcie - Set LAN id for PCIe multiple port devices
 *
 *  @hw: pointer to the HW structure
 *
 *  Determines the LAN function id by reading memory-mapped registers
 *  and swaps the port value if requested.
 **/
Set LAN id for PCIe multiple port devices
@hw: pointer to the HW structure

Determines the LAN function id by reading memory-mapped registers
and swaps the port value if requested.
Set LAN id for PCIe multiple port devices @hw : pointer to the HW structure Determines the LAN function id by reading memory - mapped registers and swaps the port value if requested .
static void igc_set_lan_id_multi_port_pcie(struct igc_hw *hw)
{
	struct igc_bus_info *bus = &hw->bus;
	u32 reg;
	reg = IGC_READ_REG(hw, IGC_STATUS);
	bus->func = (reg & IGC_STATUS_FUNC_MASK) >> IGC_STATUS_FUNC_SHIFT;
}
static void igc_set_lan_id_multi_port_pcie ( struct igc_hw * hw ) { struct igc_bus_info * bus = & hw -> bus ; u32 reg ; reg = IGC_READ_REG ( hw , IGC_STATUS ) ; bus -> func = ( reg & IGC_STATUS_FUNC_MASK ) >> IGC_STATUS_FUNC_SHIFT ; }
igc_set_lan_id_multi_port_pcie - Set LAN id for PCIe multiple port devices
  @hw: pointer to the HW structure
igc_set_lan_id_multi_port_pcie - Set LAN id for PCIe multiple port devices @hw : pointer to the HW structure
/* The status register reports the correct function number
	 * for the device regardless of function swap state.
	 */