diff options
author | Michal Schmidt <mschmidt@redhat.com> | 2015-04-28 12:34:22 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-04-29 21:48:35 +0300 |
commit | 7e6b4d440b0ae9062b84dfb417ea6d51a45dab76 (patch) | |
tree | ccfc1cbabb682704fc3175fc3231642f18d63e74 /drivers/net/ethernet/broadcom/bnx2x/bnx2x_vfpf.c | |
parent | d9b9e860cef1d904832bc6e92e444adfeabe49e9 (diff) | |
download | linux-7e6b4d440b0ae9062b84dfb417ea6d51a45dab76.tar.xz |
bnx2x: merge fp->disable_tpa with fp->mode
It is simpler to have the TPA mode as one three-state variable.
Signed-off-by: Michal Schmidt <mschmidt@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/broadcom/bnx2x/bnx2x_vfpf.c')
-rw-r--r-- | drivers/net/ethernet/broadcom/bnx2x/bnx2x_vfpf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/broadcom/bnx2x/bnx2x_vfpf.c b/drivers/net/ethernet/broadcom/bnx2x/bnx2x_vfpf.c index 15b2d1647560..06b8c0d8fd3b 100644 --- a/drivers/net/ethernet/broadcom/bnx2x/bnx2x_vfpf.c +++ b/drivers/net/ethernet/broadcom/bnx2x/bnx2x_vfpf.c @@ -594,7 +594,7 @@ int bnx2x_vfpf_setup_q(struct bnx2x *bp, struct bnx2x_fastpath *fp, bnx2x_vfpf_prep(bp, &req->first_tlv, CHANNEL_TLV_SETUP_Q, sizeof(*req)); /* select tpa mode to request */ - if (!fp->disable_tpa) { + if (fp->mode != TPA_MODE_DISABLED) { flags |= VFPF_QUEUE_FLG_TPA; flags |= VFPF_QUEUE_FLG_TPA_IPV6; if (fp->mode == TPA_MODE_GRO) |