diff options
author | Ismail, Mustafa <mustafa.ismail@intel.com> | 2016-04-18 15:33:05 (GMT) |
---|---|---|
committer | Doug Ledford <dledford@redhat.com> | 2016-04-28 20:32:54 (GMT) |
commit | eb9b0379f8215345c78a5e105af2f029b3a84095 (patch) | |
tree | 86eec444b60c023c517a28a612d80e12c21c2f77 /drivers/infiniband/hw/i40iw | |
parent | 5c1c1908c124b0be65432177cfcba99a5044fe79 (diff) | |
download | linux-eb9b0379f8215345c78a5e105af2f029b3a84095.tar.xz |
RDMA/i40iw: Initialize max enabled vfs variable
Initialize max enabled vfs to max rdma vfs instead of 0.
Signed-off-by: Mustafa Ismail <mustafa.ismail@intel.com>
Signed-off-by: Faisal Latif <faisal.latif@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'drivers/infiniband/hw/i40iw')
-rw-r--r-- | drivers/infiniband/hw/i40iw/i40iw_main.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/infiniband/hw/i40iw/i40iw_main.c b/drivers/infiniband/hw/i40iw/i40iw_main.c index 9cf5b3e..e7b7724 100644 --- a/drivers/infiniband/hw/i40iw/i40iw_main.c +++ b/drivers/infiniband/hw/i40iw/i40iw_main.c @@ -1509,6 +1509,7 @@ static enum i40iw_status_code i40iw_setup_init_state(struct i40iw_handler *hdl, I40IW_HMC_PROFILE_DEFAULT; iwdev->max_rdma_vfs = (iwdev->resource_profile != I40IW_HMC_PROFILE_DEFAULT) ? max_rdma_vfs : 0; + iwdev->max_enabled_vfs = iwdev->max_rdma_vfs; iwdev->netdev = ldev->netdev; hdl->client = client; iwdev->mss = (!ldev->params.mtu) ? I40IW_DEFAULT_MSS : ldev->params.mtu - I40IW_MTU_TO_MSS; |