netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Yuval Mintz <yuvalmin@broadcom.com>
To: <davem@davemloft.net>, <netdev@vger.kernel.org>
Cc: <ariele@broadcom.com>, Yuval Mintz <yuvalmin@broadcom.com>
Subject: [PATCH net-next 5/6] bnx2x: Add num of VFs to Management statistics
Date: Mon, 23 Dec 2013 20:44:42 +0200	[thread overview]
Message-ID: <1387824283-15687-6-git-send-email-yuvalmin@broadcom.com> (raw)
In-Reply-To: <1387824283-15687-1-git-send-email-yuvalmin@broadcom.com>

Signed-off-by: Yuval Mintz <yuvalmin@broadcom.com>
Signed-off-by: Ariel Elior <ariele@broadcom.com>
---
 drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c b/drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c
index 72973cc..094dfc8 100644
--- a/drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c
+++ b/drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c
@@ -3298,6 +3298,8 @@ static void bnx2x_drv_info_ether_stat(struct bnx2x *bp)
 
 	ether_stat->txq_size = bp->tx_ring_size;
 	ether_stat->rxq_size = bp->rx_ring_size;
+
+	ether_stat->vf_cnt = IS_SRIOV(bp) ? bp->vfdb->sriov.nr_virtfn : 0;
 }
 
 static void bnx2x_drv_info_fcoe_stat(struct bnx2x *bp)
-- 
1.8.1.227.g44fe835

  parent reply	other threads:[~2013-12-23 18:44 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-12-23 18:44 [PATCH net-next 0/6] bnx2x: new features patch series Yuval Mintz
2013-12-23 18:44 ` [PATCH net-next 1/6] bnx2x: Add support for Multi-Function UNDI Yuval Mintz
2013-12-23 18:44 ` [PATCH net-next 2/6] bnx2x: Add AER support (missing bits) Yuval Mintz
2013-12-23 18:44 ` [PATCH net-next 3/6] bnx2x: add Big-Endian ethtool comment Yuval Mintz
2013-12-23 18:44 ` [PATCH net-next 4/6] bnx2x: no error when RSS configuration fails Yuval Mintz
2013-12-23 22:36   ` Sergei Shtylyov
2013-12-23 18:44 ` Yuval Mintz [this message]
2013-12-23 18:44 ` [PATCH net-next 6/6] bnx2x: add VF Multicast filters support Yuval Mintz

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1387824283-15687-6-git-send-email-yuvalmin@broadcom.com \
    --to=yuvalmin@broadcom.com \
    --cc=ariele@broadcom.com \
    --cc=davem@davemloft.net \
    --cc=netdev@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).