diff options
author | Sreenivasa Honnur <sreenivasa.honnur@exar.com> | 2010-04-08 04:48:57 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-04-08 04:48:57 -0400 |
commit | cb27ec60640b3d3b40412c57a3fa92a0ae88dd2f (patch) | |
tree | 9e3d86c987a4a75fe72d09d7bdf0016869d7ced7 /drivers/net/vxge/vxge-main.h | |
parent | 9002397e2999b53a0d673cd89892c4cda58e1416 (diff) |
vxge: Pass correct number of VFs value to pci_sriov_enable().
- max_config_dev loadable parameter is set to 0xFF by default. Pass correct
number of VFs value to pci_sriov_enable() if max_config_dev is set to its
default value.
Signed-off-by: Sreenivasa Honnur <sreenivasa.honnur@exar.com>
Signed-off-by: Ramkrishna Vepa <ram.vepa@exar.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/vxge/vxge-main.h')
-rw-r--r-- | drivers/net/vxge/vxge-main.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/net/vxge/vxge-main.h b/drivers/net/vxge/vxge-main.h index 0441d5aa3042..60276b20fa5e 100644 --- a/drivers/net/vxge/vxge-main.h +++ b/drivers/net/vxge/vxge-main.h | |||
@@ -90,6 +90,11 @@ | |||
90 | 90 | ||
91 | #define VXGE_LL_MAX_FRAME_SIZE(dev) ((dev)->mtu + VXGE_HW_MAC_HEADER_MAX_SIZE) | 91 | #define VXGE_LL_MAX_FRAME_SIZE(dev) ((dev)->mtu + VXGE_HW_MAC_HEADER_MAX_SIZE) |
92 | 92 | ||
93 | #define is_sriov(function_mode) \ | ||
94 | ((function_mode == VXGE_HW_FUNCTION_MODE_SRIOV) || \ | ||
95 | (function_mode == VXGE_HW_FUNCTION_MODE_SRIOV_8) || \ | ||
96 | (function_mode == VXGE_HW_FUNCTION_MODE_SRIOV_4)) | ||
97 | |||
93 | enum vxge_reset_event { | 98 | enum vxge_reset_event { |
94 | /* reset events */ | 99 | /* reset events */ |
95 | VXGE_LL_VPATH_RESET = 0, | 100 | VXGE_LL_VPATH_RESET = 0, |