Skip to content

Commit 77f972a

Browse files
emuslndavem330
authored andcommitted
ionic: remove support for mgmt device
We no longer support the mgmt device in the ionic driver, so remove the device id and related code. Fixes: b3f064e ("ionic: add support for device id 0x1004") Signed-off-by: Shannon Nelson <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 9334d5b commit 77f972a

File tree

4 files changed

+0
-25
lines changed

4 files changed

+0
-25
lines changed

drivers/net/ethernet/pensando/ionic/ionic.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ struct ionic_lif;
1717

1818
#define PCI_DEVICE_ID_PENSANDO_IONIC_ETH_PF 0x1002
1919
#define PCI_DEVICE_ID_PENSANDO_IONIC_ETH_VF 0x1003
20-
#define PCI_DEVICE_ID_PENSANDO_IONIC_ETH_MGMT 0x1004
2120

2221
#define DEVCMD_TIMEOUT 10
2322

@@ -42,7 +41,6 @@ struct ionic {
4241
struct dentry *dentry;
4342
struct ionic_dev_bar bars[IONIC_BARS_MAX];
4443
unsigned int num_bars;
45-
bool is_mgmt_nic;
4644
struct ionic_identity ident;
4745
struct list_head lifs;
4846
struct ionic_lif *master_lif;

drivers/net/ethernet/pensando/ionic/ionic_bus_pci.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
static const struct pci_device_id ionic_id_table[] = {
1616
{ PCI_VDEVICE(PENSANDO, PCI_DEVICE_ID_PENSANDO_IONIC_ETH_PF) },
1717
{ PCI_VDEVICE(PENSANDO, PCI_DEVICE_ID_PENSANDO_IONIC_ETH_VF) },
18-
{ PCI_VDEVICE(PENSANDO, PCI_DEVICE_ID_PENSANDO_IONIC_ETH_MGMT) },
1918
{ 0, } /* end of table */
2019
};
2120
MODULE_DEVICE_TABLE(pci, ionic_id_table);
@@ -225,9 +224,6 @@ static int ionic_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
225224
pci_set_drvdata(pdev, ionic);
226225
mutex_init(&ionic->dev_cmd_lock);
227226

228-
ionic->is_mgmt_nic =
229-
ent->device == PCI_DEVICE_ID_PENSANDO_IONIC_ETH_MGMT;
230-
231227
/* Query system for DMA addressing limitation for the device. */
232228
err = dma_set_mask_and_coherent(dev, DMA_BIT_MASK(IONIC_ADDR_LEN));
233229
if (err) {
@@ -252,8 +248,6 @@ static int ionic_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
252248
}
253249

254250
pci_set_master(pdev);
255-
if (!ionic->is_mgmt_nic)
256-
pcie_print_link_status(pdev);
257251

258252
err = ionic_map_bars(ionic);
259253
if (err)

drivers/net/ethernet/pensando/ionic/ionic_devlink.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -77,10 +77,6 @@ int ionic_devlink_register(struct ionic *ionic)
7777
return err;
7878
}
7979

80-
/* don't register the mgmt_nic as a port */
81-
if (ionic->is_mgmt_nic)
82-
return 0;
83-
8480
devlink_port_attrs_set(&ionic->dl_port, DEVLINK_PORT_FLAVOUR_PHYSICAL,
8581
0, false, 0, NULL, 0);
8682
err = devlink_port_register(dl, &ionic->dl_port, 0);

drivers/net/ethernet/pensando/ionic/ionic_lif.c

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -99,9 +99,6 @@ static void ionic_link_status_check(struct ionic_lif *lif)
9999
if (!test_bit(IONIC_LIF_F_LINK_CHECK_REQUESTED, lif->state))
100100
return;
101101

102-
if (lif->ionic->is_mgmt_nic)
103-
return;
104-
105102
link_status = le16_to_cpu(lif->info->status.link_status);
106103
link_up = link_status == IONIC_PORT_OPER_STATUS_UP;
107104

@@ -1193,10 +1190,6 @@ static int ionic_init_nic_features(struct ionic_lif *lif)
11931190
netdev_features_t features;
11941191
int err;
11951192

1196-
/* no netdev features on the management device */
1197-
if (lif->ionic->is_mgmt_nic)
1198-
return 0;
1199-
12001193
/* set up what we expect to support by default */
12011194
features = NETIF_F_HW_VLAN_CTAG_TX |
12021195
NETIF_F_HW_VLAN_CTAG_RX |
@@ -2594,12 +2587,6 @@ int ionic_lifs_register(struct ionic *ionic)
25942587
{
25952588
int err;
25962589

2597-
/* the netdev is not registered on the management device, it is
2598-
* only used as a vehicle for napi operations on the adminq
2599-
*/
2600-
if (ionic->is_mgmt_nic)
2601-
return 0;
2602-
26032590
INIT_WORK(&ionic->nb_work, ionic_lif_notify_work);
26042591

26052592
ionic->nb.notifier_call = ionic_lif_notify;

0 commit comments

Comments
 (0)