Skip to content

Commit 8090f61

Browse files
mawilli1Jeff Kirsher
authored andcommitted
i40e: register existing client on probe
In some cases, a client (i40iw) may already be present when probe is called. Check for this, and add a client instance if necessary. Change-ID: I2009312694b7ad81f1023919e4c6c86181f21689 Signed-off-by: Mitch Williams <mitch.a.williams@intel.com> Tested-by: Andrew Bowers <andrewx.bowers@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
1 parent 295c0a5 commit 8090f61

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

drivers/net/ethernet/intel/i40e/i40e_client.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -436,6 +436,12 @@ int i40e_lan_add_device(struct i40e_pf *pf)
436436
pf->hw.pf_id, pf->hw.bus.bus_id,
437437
pf->hw.bus.device, pf->hw.bus.func);
438438

439+
/* If a client has already been registered, we need to add an instance
440+
* of it to our new LAN device.
441+
*/
442+
if (registered_client)
443+
i40e_client_add_instance(pf);
444+
439445
/* Since in some cases register may have happened before a device gets
440446
* added, we can schedule a subtask to go initiate the clients if
441447
* they can be launched at probe time.

0 commit comments

Comments
 (0)