]> git.baikalelectronics.ru Git - kernel.git/commit
ixgbe: ixgbe_atr() should access udp_hdr(skb) only for UDP packets
authorSowmini Varadhan <sowmini.varadhan@oracle.com>
Mon, 24 Oct 2016 22:36:38 +0000 (15:36 -0700)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Sat, 5 Nov 2016 00:34:49 +0000 (17:34 -0700)
commitffd4a09f452fd9015c1f8d227f91c7b5a67cdf01
treea3fccd379b750895bf86b44040c4709de4745b5c
parentf1e2f7e2b1f426837f7247241e2f045eebdd659c
ixgbe: ixgbe_atr() should access udp_hdr(skb) only for UDP packets

Commit 4606ec1d927a ("ixgbe: Store VXLAN port number in network order")
incorrectly checks for hdr.ipv4->protocol != IPPROTO_UDP
in ixgbe_atr(). This check should be for "==" instead.

Signed-off-by: Sowmini Varadhan <sowmini.varadhan@oracle.com>
Reviewed-by: Alexander Duyck <alexander.h.duyck@intel.com>
Tested-by: Krishneil Singh <krishneil.k.singh@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/ixgbe/ixgbe_main.c