aboutsummaryrefslogtreecommitdiffstats
path: root/include/net
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2010-12-20 16:24:14 -0500
committerDavid S. Miller <davem@davemloft.net>2010-12-20 16:24:14 -0500
commitd9993be65a77f500ae926176baa264816bfe3816 (patch)
treebbb8c86114bf86e5ca3d1fbf89de3d98be5519ba /include/net
parentc4266263249f22479eb1abb1a1709c38240b1597 (diff)
parentaa3e219997e4b949be4199660936099ded0b401f (diff)
Merge branch 'master' of master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6
Diffstat (limited to 'include/net')
-rw-r--r--include/net/ip6_route.h10
-rw-r--r--include/net/sch_generic.h6
2 files changed, 11 insertions, 5 deletions
diff --git a/include/net/ip6_route.h b/include/net/ip6_route.h
index e06e0ca1e91b..8552f0a2e854 100644
--- a/include/net/ip6_route.h
+++ b/include/net/ip6_route.h
@@ -175,5 +175,15 @@ static inline int ipv6_unicast_destination(struct sk_buff *skb)
175 return rt->rt6i_flags & RTF_LOCAL; 175 return rt->rt6i_flags & RTF_LOCAL;
176} 176}
177 177
178int ip6_fragment(struct sk_buff *skb, int (*output)(struct sk_buff *));
179
180static inline int ip6_skb_dst_mtu(struct sk_buff *skb)
181{
182 struct ipv6_pinfo *np = skb->sk ? inet6_sk(skb->sk) : NULL;
183
184 return (np && np->pmtudisc == IPV6_PMTUDISC_PROBE) ?
185 skb_dst(skb)->dev->mtu : dst_mtu(skb_dst(skb));
186}
187
178#endif 188#endif
179#endif 189#endif
diff --git a/include/net/sch_generic.h b/include/net/sch_generic.h
index 786cc396cb4a..0af57ebae762 100644
--- a/include/net/sch_generic.h
+++ b/include/net/sch_generic.h
@@ -611,11 +611,7 @@ static inline struct sk_buff *skb_act_clone(struct sk_buff *skb, gfp_t gfp_mask,
611{ 611{
612 struct sk_buff *n; 612 struct sk_buff *n;
613 613
614 if ((action == TC_ACT_STOLEN || action == TC_ACT_QUEUED) && 614 n = skb_clone(skb, gfp_mask);
615 !skb_shared(skb))
616 n = skb_get(skb);
617 else
618 n = skb_clone(skb, gfp_mask);
619 615
620 if (n) { 616 if (n) {
621 n->tc_verd = SET_TC_VERD(n->tc_verd, 0); 617 n->tc_verd = SET_TC_VERD(n->tc_verd, 0);