From: Arjun Vynipadath Date: Fri, 19 Jan 2018 09:41:48 +0000 (+0530) Subject: cxgb3: assign port id to net_device->dev_port X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=8fc79766a5b4e33be10f686847ee845c784523f6;p=linux.git cxgb3: assign port id to net_device->dev_port T3 devices have different ports on same PCI function, so using dev_port to identify ports. Signed-off-by: Arjun Vynipadath Signed-off-by: Ganesh Goudar Signed-off-by: David S. Miller --- diff --git a/drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c b/drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c index 6a015362c3406..185fe8df76282 100644 --- a/drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c +++ b/drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c @@ -3304,6 +3304,7 @@ static int init_one(struct pci_dev *pdev, const struct pci_device_id *ent) netdev->ethtool_ops = &cxgb_ethtool_ops; netdev->min_mtu = 81; netdev->max_mtu = ETH_MAX_MTU; + netdev->dev_port = pi->port_id; } pci_set_drvdata(pdev, adapter);