]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commitdiff
bnxt_en: Assign netdev->dev_port with port ID.
authorMichael Chan <michael.chan@broadcom.com>
Fri, 1 Jul 2016 22:46:28 +0000 (18:46 -0400)
committerDavid S. Miller <davem@davemloft.net>
Sat, 2 Jul 2016 18:52:36 +0000 (14:52 -0400)
This is useful for multi-function devices.

Signed-off-by: Michael Chan <michael.chan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bnxt/bnxt.c

index 2740ac3a2ab4970262fe4c65c842ef12565cbf25..18be62b1e3df1d971f9a4e187c07954723bf820d 100644 (file)
@@ -4026,6 +4026,7 @@ int bnxt_hwrm_func_qcaps(struct bnxt *bp)
 
                pf->fw_fid = le16_to_cpu(resp->fid);
                pf->port_id = le16_to_cpu(resp->port_id);
+               bp->dev->dev_port = pf->port_id;
                memcpy(pf->mac_addr, resp->mac_address, ETH_ALEN);
                memcpy(bp->dev->dev_addr, pf->mac_addr, ETH_ALEN);
                pf->max_rsscos_ctxs = le16_to_cpu(resp->max_rsscos_ctx);