aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/broadcom/bnxt/bnxt_sriov.c
diff options
context:
space:
mode:
authorMichael Chan <mchan@broadcom.com>2015-12-09 19:35:42 -0500
committerDavid S. Miller <davem@davemloft.net>2015-12-11 23:34:06 -0500
commitcaefe526d7b5af11d9b5977b2862eb144fa45537 (patch)
tree04ad52a6f18d14b7abe3c832e3445961e2f33c09 /drivers/net/ethernet/broadcom/bnxt/bnxt_sriov.c
parentbnxt_en: Fix bitmap declaration to work on 32-bit arches. (diff)
downloadlinux-dev-caefe526d7b5af11d9b5977b2862eb144fa45537.tar.xz
linux-dev-caefe526d7b5af11d9b5977b2862eb144fa45537.zip
bnxt_en: Change bp->state to bitmap.
This allows multiple independent bits to be set for various states. Subsequent patches to implement tx timeout reset will require this. Signed-off-by: Michael Chan <mchan@broadcom.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/broadcom/bnxt/bnxt_sriov.c')
-rw-r--r--drivers/net/ethernet/broadcom/bnxt/bnxt_sriov.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/broadcom/bnxt/bnxt_sriov.c b/drivers/net/ethernet/broadcom/bnxt/bnxt_sriov.c
index 7a9af2887d8e..ea044bbcd384 100644
--- a/drivers/net/ethernet/broadcom/bnxt/bnxt_sriov.c
+++ b/drivers/net/ethernet/broadcom/bnxt/bnxt_sriov.c
@@ -21,7 +21,7 @@
#ifdef CONFIG_BNXT_SRIOV
static int bnxt_vf_ndo_prep(struct bnxt *bp, int vf_id)
{
- if (bp->state != BNXT_STATE_OPEN) {
+ if (!test_bit(BNXT_STATE_OPEN, &bp->state)) {
netdev_err(bp->dev, "vf ndo called though PF is down\n");
return -EINVAL;
}