projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5c1c190
)
RDMA/i40iw: Initialize max enabled vfs variable
author
Ismail, Mustafa
<
[email protected]
>
Mon, 18 Apr 2016 15:33:05 +0000
(10:33 -0500)
committer
Doug Ledford
<
[email protected]
>
Thu, 28 Apr 2016 20:32:54 +0000
(16:32 -0400)
Initialize max enabled vfs to max rdma vfs instead of 0.
Signed-off-by: Mustafa Ismail <
[email protected]
>
Signed-off-by: Faisal Latif <
[email protected]
>
Signed-off-by: Doug Ledford <
[email protected]
>
drivers/infiniband/hw/i40iw/i40iw_main.c
patch
|
blob
|
history
diff --git
a/drivers/infiniband/hw/i40iw/i40iw_main.c
b/drivers/infiniband/hw/i40iw/i40iw_main.c
index 9cf5b3e743ee47add2b775db80014d78496ab5d9..e7b7724b40401f1955eed94799627c54287ffe26 100644
(file)
--- 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;