Commit ef2c57b9 authored by Edward Cree's avatar Edward Cree Committed by David S. Miller

sfc_ef100: read pf_index at probe time

We'll need it later, for VF representors.
Signed-off-by: default avatarEdward Cree <ecree@solarflare.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 43c3df0d
...@@ -1096,6 +1096,10 @@ static int ef100_probe_main(struct efx_nic *efx) ...@@ -1096,6 +1096,10 @@ static int ef100_probe_main(struct efx_nic *efx)
if (rc) if (rc)
goto fail; goto fail;
rc = efx_get_pf_index(efx, &nic_data->pf_index);
if (rc)
goto fail;
rc = efx_ef100_init_datapath_caps(efx); rc = efx_ef100_init_datapath_caps(efx);
if (rc < 0) if (rc < 0)
goto fail; goto fail;
......
...@@ -63,6 +63,7 @@ struct ef100_nic_data { ...@@ -63,6 +63,7 @@ struct ef100_nic_data {
u32 datapath_caps; u32 datapath_caps;
u32 datapath_caps2; u32 datapath_caps2;
u32 datapath_caps3; u32 datapath_caps3;
unsigned int pf_index;
u16 warm_boot_count; u16 warm_boot_count;
u8 port_id[ETH_ALEN]; u8 port_id[ETH_ALEN];
DECLARE_BITMAP(evq_phases, EFX_MAX_CHANNELS); DECLARE_BITMAP(evq_phases, EFX_MAX_CHANNELS);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment