]> www.infradead.org Git - users/jedix/linux-maple.git/commit
bnxt_en: Fix a VXLAN vs GENEVE issue
authorChristophe Jaillet <christophe.jaillet@wanadoo.fr>
Tue, 22 Nov 2016 05:14:40 +0000 (06:14 +0100)
committerDhaval Giani <dhaval.giani@oracle.com>
Fri, 20 Jan 2017 18:08:06 +0000 (13:08 -0500)
commita68b3f275eb51972b3e29738d6cbee6c4a45253b
tree016f191f9c11fdb4b6e30cc6323cd8fd986120a2
parentc44a7122ad17023b3bb5497ab0f2966d4b9bc07c
bnxt_en: Fix a VXLAN vs GENEVE issue

Orabug: 24567991

Knowing that:
  #define TUNNEL_DST_PORT_FREE_REQ_TUNNEL_TYPE_VXLAN        (0x1UL << 0)
  #define TUNNEL_DST_PORT_FREE_REQ_TUNNEL_TYPE_GENEVE       (0x5UL << 0)
and that 'bnxt_hwrm_tunnel_dst_port_alloc()' is only called with one of
these 2 constants, the TUNNEL_DST_PORT_ALLOC_REQ_TUNNEL_TYPE_GENEVE can not
trigger.

Replace the bit test that overlap by an equality test, just as in
'bnxt_hwrm_tunnel_dst_port_free()' above.

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Acked-by: Michael Chan <michael.chan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
(cherry picked from commit 57aac71b3e9ed890cf2219dd980c36f859b43d6a)
Signed-off-by: Brian Maly <brian.maly@oracle.com>
Signed-off-by: Dhaval Giani <dhaval.giani@oracle.com>
drivers/net/ethernet/broadcom/bnxt/bnxt.c