bnx2x: Add num of VFs to Management statistics
authorYuval Mintz <yuvalmin@broadcom.com>
Thu, 26 Dec 2013 07:57:11 +0000 (09:57 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 26 Dec 2013 18:38:21 +0000 (13:38 -0500)
Signed-off-by: Yuval Mintz <yuvalmin@broadcom.com>
Signed-off-by: Ariel Elior <ariele@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c

index 72973cc7ecbeb7f75ec5962eae9a654ef17ce7e3..094dfc8f7656be13e2f8ec38e7bc9b5e364a8ad7 100644 (file)
@@ -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)