[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20140227.160741.1837528571194344504.davem@redhat.com>
Date: Thu, 27 Feb 2014 16:07:41 -0500 (EST)
From: David Miller <davem@...hat.com>
To: f.fainelli@...il.com
Cc: netdev@...r.kernel.org, e1000-devel@...ts.sourceforge.net,
aaron.f.brown@...el.com, alexander.h.duyck@...el.com,
jesse.brandeburg@...el.com
Subject: Re: [PATCH net-next] ixgbevf: fix skb->pkt_type checks
From: Florian Fainelli <f.fainelli@...il.com>
Date: Wed, 26 Feb 2014 14:44:00 -0800
> skb->pkt_type is not a bitmask, but contains only value at a time from
> the range defined in include/uapi/linux/if_packet.h.
>
> Checking it like if it was a bitmask of values would also cause
> PACKET_OTHERHOST, PACKET_LOOPBACK and PACKET_FASTROUTE to be matched by this
> check since their lower 2 bits are also set, although that does not fix a real
> bug due to how the checks are used, it is still potentially confusing.
>
> This bogus check was introduced in commit 815cccbf ("ixgbe: add setlink,
> getlink support to ixgbe and ixgbevf").
>
> Signed-off-by: Florian Fainelli <f.fainelli@...il.com>
Intel folks, I assume you will pick this up?
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists