diff options
author | Ariel Elior | 2013-01-01 06:22:32 +0100 |
---|---|---|
committer | David S. Miller | 2013-01-02 10:45:06 +0100 |
commit | b56e9670ffa4de1a3cf0ca2f89ff5e2e0c31a1f7 (patch) | |
tree | d2b8a133c9f7d8726bea5e16dade32e4b7e56d03 /drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.h | |
parent | bnx2x: Allocate VF database in PF when VFs are present (diff) | |
download | kernel-qcow2-linux-b56e9670ffa4de1a3cf0ca2f89ff5e2e0c31a1f7.tar.gz kernel-qcow2-linux-b56e9670ffa4de1a3cf0ca2f89ff5e2e0c31a1f7.tar.xz kernel-qcow2-linux-b56e9670ffa4de1a3cf0ca2f89ff5e2e0c31a1f7.zip |
bnx2x: Prepare device and initialize VF database
At nic load of the PF, if VFs may be present, prepare the device
for the VFs. Initialize the VF database in preparation of VF arrival.
Signed-off-by: Ariel Elior <ariele@broadcom.com>
Signed-off-by: Eilon Greenstein <eilong@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.h')
-rw-r--r-- | drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.h b/drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.h index 6b0add22641d..9ee67fa0dd94 100644 --- a/drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.h +++ b/drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.h @@ -1106,6 +1106,9 @@ static inline void bnx2x_init_bp_objs(struct bnx2x *bp) bnx2x_init_mac_credit_pool(bp, &bp->macs_pool, BP_FUNC(bp), bnx2x_get_path_func_num(bp)); + bnx2x_init_vlan_credit_pool(bp, &bp->vlans_pool, BP_ABS_FUNC(bp)>>1, + bnx2x_get_path_func_num(bp)); + /* RSS configuration object */ bnx2x_init_rss_config_obj(bp, &bp->rss_conf_obj, bp->fp->cl_id, bp->fp->cid, BP_FUNC(bp), BP_FUNC(bp), |