]> Git Repo - linux.git/commitdiff
cxgb3: assign port id to net_device->dev_port
authorArjun Vynipadath <[email protected]>
Fri, 19 Jan 2018 09:41:48 +0000 (15:11 +0530)
committerDavid S. Miller <[email protected]>
Mon, 22 Jan 2018 21:15:13 +0000 (16:15 -0500)
T3 devices have different ports on same PCI function,
so using dev_port to identify ports.

Signed-off-by: Arjun Vynipadath <[email protected]>
Signed-off-by: Ganesh Goudar <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c

index 6a015362c34066bf054aeb0f5f7168fbee190858..185fe8df76282437294615ef11a09647c551395d 100644 (file)
@@ -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);
This page took 0.052459 seconds and 4 git commands to generate.