From mboxrd@z Thu Jan 1 00:00:00 1970 From: Shahed Shaikh Subject: [PATCH net-next 3/3] bnx2x: Provide VF link status in ndo_get_vf_config Date: Thu, 20 Sep 2018 11:22:52 -0700 Message-ID: <20180920182252.13457-4-shahed.shaikh@cavium.com> References: <20180920182252.13457-1-shahed.shaikh@cavium.com> Mime-Version: 1.0 Content-Type: text/plain Cc: , , , Shahed Shaikh To: Return-path: Received: from mail-dm3nam03on0068.outbound.protection.outlook.com ([104.47.41.68]:25611 "EHLO NAM03-DM3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726827AbeIUAIZ (ORCPT ); Thu, 20 Sep 2018 20:08:25 -0400 In-Reply-To: <20180920182252.13457-1-shahed.shaikh@cavium.com> Sender: netdev-owner@vger.kernel.org List-ID: From: Shahed Shaikh Provide current link status of VF in ndo_get_vf_config handler. Signed-off-by: Shahed Shaikh Signed-off-by: Ariel Elior --- drivers/net/ethernet/broadcom/bnx2x/bnx2x_sriov.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/ethernet/broadcom/bnx2x/bnx2x_sriov.c b/drivers/net/ethernet/broadcom/bnx2x/bnx2x_sriov.c index 2f76b37..c835f6c 100644 --- a/drivers/net/ethernet/broadcom/bnx2x/bnx2x_sriov.c +++ b/drivers/net/ethernet/broadcom/bnx2x/bnx2x_sriov.c @@ -2638,6 +2638,7 @@ int bnx2x_get_vf_config(struct net_device *dev, int vfidx, ivi->max_tx_rate = 10000; /* always 10G. TBA take from link struct */ ivi->min_tx_rate = 0; ivi->spoofchk = vf->spoofchk ? 1 : 0; + ivi->linkstate = vf->link_cfg; if (vf->state == VF_ENABLED) { /* mac and vlan are in vlan_mac objects */ if (bnx2x_validate_vf_sp_objs(bp, vf, false)) { -- 1.8.3.1