ixgbe: fix masking of bits read from IXGBE_VXLANCTRL register
authorSabrina Dubroca <sd@queasysnail.net>
Mon, 3 Jul 2017 11:02:55 +0000 (13:02 +0200)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Mon, 9 Oct 2017 14:43:06 +0000 (07:43 -0700)
commita39221ce969b316d3c3dcf7fcff8c0d8cf223007
tree46aca632691ce385e45e57fcd0cd6391e0ab0f1d
parente0f06bba9629987fb3ec1d6928bf17ef689702e8
ixgbe: fix masking of bits read from IXGBE_VXLANCTRL register

In ixgbe_clear_udp_tunnel_port(), we read the IXGBE_VXLANCTRL register
and then try to mask some bits out of the value, using the logical
instead of bitwise and operator.

Fixes: a21d0822ff69 ("ixgbe: add support for geneve Rx offload")
Signed-off-by: Sabrina Dubroca <sd@queasysnail.net>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/ixgbe/ixgbe_main.c