Skip to content

Commit ef2c57b

Browse files
ecree-solarflaredavem330
authored andcommitted
sfc_ef100: read pf_index at probe time
We'll need it later, for VF representors. Signed-off-by: Edward Cree <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 43c3df0 commit ef2c57b

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

drivers/net/ethernet/sfc/ef100_nic.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1096,6 +1096,10 @@ static int ef100_probe_main(struct efx_nic *efx)
10961096
if (rc)
10971097
goto fail;
10981098

1099+
rc = efx_get_pf_index(efx, &nic_data->pf_index);
1100+
if (rc)
1101+
goto fail;
1102+
10991103
rc = efx_ef100_init_datapath_caps(efx);
11001104
if (rc < 0)
11011105
goto fail;

drivers/net/ethernet/sfc/ef100_nic.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ struct ef100_nic_data {
6363
u32 datapath_caps;
6464
u32 datapath_caps2;
6565
u32 datapath_caps3;
66+
unsigned int pf_index;
6667
u16 warm_boot_count;
6768
u8 port_id[ETH_ALEN];
6869
DECLARE_BITMAP(evq_phases, EFX_MAX_CHANNELS);

0 commit comments

Comments
 (0)