diff options
author | Arjun Vynipadath <arjun@chelsio.com> | 2018-01-19 10:41:48 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-01-22 22:15:13 +0100 |
commit | 8fc79766a5b4e33be10f686847ee845c784523f6 (patch) | |
tree | d5bdd01e3a0dc658e72e67540a1686b4a653c8f5 | |
parent | bridge: return boolean instead of integer in br_multicast_is_router (diff) | |
download | linux-8fc79766a5b4e33be10f686847ee845c784523f6.tar.xz linux-8fc79766a5b4e33be10f686847ee845c784523f6.zip |
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 <arjun@chelsio.com>
Signed-off-by: Ganesh Goudar <ganeshgr@chelsio.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c b/drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c index 6a015362c340..185fe8df7628 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); |