Browse Source

bnx2x: Add num of VFs to Management statistics

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>
Yuval Mintz 11 years ago
parent
commit
0c757dee6a
1 changed files with 2 additions and 0 deletions
  1. 2 0
      drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c

+ 2 - 0
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->txq_size = bp->tx_ring_size;
 	ether_stat->rxq_size = bp->rx_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)
 static void bnx2x_drv_info_fcoe_stat(struct bnx2x *bp)