]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
be2net: use be_max_vfs() macro to access max-vfs
authorVasundhara Volam <vasundhara.volam@emulex.com>
Thu, 17 Jul 2014 10:50:29 +0000 (16:20 +0530)
committerDavid S. Miller <davem@davemloft.net>
Thu, 17 Jul 2014 23:38:15 +0000 (16:38 -0700)
commitd3518e215af9545eeac1046eec84cde525bae2a5
tree5dc9070d7630e311dd43c3e0f13c17431d44c3ad
parentddf1169fec57c68f9ab561ac818b02aae95943b4
be2net: use be_max_vfs() macro to access max-vfs

max-vfs value must be accessed via the macro be_max_vfs(adapter).
The earlier patch "create optimal number of queues on SR-IOV config"
by mistake, did not use this macro. This patch fixes it.

fixes: bec84e6b ("be2net: create optimal number of queues on SR-IOV config")
Signed-off-by: Vasundhara Volam <vasundhara.volam@emulex.com>
Signed-off-by: Sathya Perla <sathya.perla@emulex.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/emulex/benet/be_main.c