be2net: use adapter->flags to track SRIOV state
authorVasundhara Volam <vasundhara.volam@emulex.com>
Thu, 17 Jul 2014 10:50:31 +0000 (16:20 +0530)
committerDavid S. Miller <davem@davemloft.net>
Thu, 17 Jul 2014 23:38:15 +0000 (16:38 -0700)
commitf174c7ec10d99e62f7722d0608b2a881ef091d21
tree8eb670855d2a7bbc5aa2071a5e112a8c5205069c
parent962bcb750b47ef0c8d28cc217ec22b4e44413565
be2net: use adapter->flags to track SRIOV state

The driver so far used adapter->num_vfs value to check if SR-IOV is enabled
or not. But, the patch bec84e6("create optimal number of queues on SR-IOV
config") changed this logic. The adapter->num_vfs value is validated and set
much before SR-IOV is enabled. So, we now use an explicit flag to track
SR-IOV enabled state.

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.h
drivers/net/ethernet/emulex/benet/be_main.c