]> git.baikalelectronics.ru Git - kernel.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)
committerDavid S. Miller <davem@davemloft.net>
Thu, 24 Nov 2016 01:18:36 +0000 (20:18 -0500)
commit0168f95c0a789ff271a78dc31f2905a6348cb1b3
tree794d60735c989bae712b7a3dc8e92d43457bb30a
parent519f9474f7b1a19ba5b89bffc7a82dd2f182ba52
bnxt_en: Fix a VXLAN vs GENEVE issue

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>
drivers/net/ethernet/broadcom/bnxt/bnxt.c