|
@@ -11245,10 +11245,12 @@ static int i40e_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
|
|
|
round_jiffies(jiffies + pf->service_timer_period));
|
|
|
|
|
|
/* add this PF to client device list and launch a client service task */
|
|
|
- err = i40e_lan_add_device(pf);
|
|
|
- if (err)
|
|
|
- dev_info(&pdev->dev, "Failed to add PF to client API service list: %d\n",
|
|
|
- err);
|
|
|
+ if (pf->flags & I40E_FLAG_IWARP_ENABLED) {
|
|
|
+ err = i40e_lan_add_device(pf);
|
|
|
+ if (err)
|
|
|
+ dev_info(&pdev->dev, "Failed to add PF to client API service list: %d\n",
|
|
|
+ err);
|
|
|
+ }
|
|
|
|
|
|
#define PCI_SPEED_SIZE 8
|
|
|
#define PCI_WIDTH_SIZE 8
|
|
@@ -11426,10 +11428,11 @@ static void i40e_remove(struct pci_dev *pdev)
|
|
|
i40e_vsi_release(pf->vsi[pf->lan_vsi]);
|
|
|
|
|
|
/* remove attached clients */
|
|
|
- ret_code = i40e_lan_del_device(pf);
|
|
|
- if (ret_code) {
|
|
|
- dev_warn(&pdev->dev, "Failed to delete client device: %d\n",
|
|
|
- ret_code);
|
|
|
+ if (pf->flags & I40E_FLAG_IWARP_ENABLED) {
|
|
|
+ ret_code = i40e_lan_del_device(pf);
|
|
|
+ if (ret_code)
|
|
|
+ dev_warn(&pdev->dev, "Failed to delete client device: %d\n",
|
|
|
+ ret_code);
|
|
|
}
|
|
|
|
|
|
/* shutdown and destroy the HMC */
|