aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorEric Dumazet <edumazet@google.com>2013-09-29 01:21:32 -0700
committerDavid S. Miller <davem@davemloft.net>2013-09-30 22:09:00 -0700
commit36a8f39e05ccc308a5619a7edb5ad6e15ee82ff6 (patch)
tree3f3cc0acf69af141e804e0506919f33912e13c1e /include
parentnet: add missing sk_max_pacing_rate doc (diff)
downloadlinux-dev-36a8f39e05ccc308a5619a7edb5ad6e15ee82ff6.tar.xz
linux-dev-36a8f39e05ccc308a5619a7edb5ad6e15ee82ff6.zip
net: skb_is_gso_v6() requires skb_is_gso()
bnx2x makes a dangerous use of skb_is_gso_v6(). It should first make sure skb is a gso packet Signed-off-by: Eric Dumazet <edumazet@google.com> Cc: Eilon Greenstein <eilong@broadcom.com> Acked-by: Dmitry Kravkov <dmitry@broadcom.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include')
-rw-r--r--include/linux/skbuff.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/skbuff.h b/include/linux/skbuff.h
index 6d56840e561e..d72d71efa7a3 100644
--- a/include/linux/skbuff.h
+++ b/include/linux/skbuff.h
@@ -2755,6 +2755,7 @@ static inline bool skb_is_gso(const struct sk_buff *skb)
return skb_shinfo(skb)->gso_size;
}
+/* Note: Should be called only if skb_is_gso(skb) is true */
static inline bool skb_is_gso_v6(const struct sk_buff *skb)
{
return skb_shinfo(skb)->gso_type & SKB_GSO_TCPV6;