]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
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)
committerChuck Anderson <chuck.anderson@oracle.com>
Sat, 25 Feb 2017 05:48:14 +0000 (21:48 -0800)
Orabug: 24568240

Commit 9f12df906cd8 ("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>
(cherry picked from commit 520288218cf233f442aa815496a95622c2672c62)
Signed-off-by: Brian Maly <brian.maly@oracle.com>
drivers/net/ethernet/intel/ixgbe/ixgbe_main.c

index cc223dcb3fbc4c534a035050ce24b44cef699f44..ac0013936a072a5af8d693806f5c7918b8e93e32 100644 (file)
@@ -7677,7 +7677,7 @@ static void ixgbe_atr(struct ixgbe_ring *ring,
 #ifdef CONFIG_IXGBE_VXLAN
        if (skb->encapsulation &&
            first->protocol == htons(ETH_P_IP) &&
-           hdr.ipv4->protocol != IPPROTO_UDP) {
+           hdr.ipv4->protocol == IPPROTO_UDP) {
                struct ixgbe_adapter *adapter = q_vector->adapter;
 
                /* verify the port is recognized as VXLAN */