diff options
author | Ying Xue <ying.xue@windriver.com> | 2015-05-12 12:29:44 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-05-13 05:19:49 +0200 |
commit | 9449c3cd90472141cf081af88181a56163ff7132 (patch) | |
tree | b6519d7899fbf123f1320393b70c1c85f7926c1f /net/xfrm/xfrm_output.c | |
parent | test_bpf: add 173 new testcases for eBPF (diff) | |
download | linux-9449c3cd90472141cf081af88181a56163ff7132.tar.xz linux-9449c3cd90472141cf081af88181a56163ff7132.zip |
net: make skb_dst_pop routine static
As xfrm_output_one() is the only caller of skb_dst_pop(), we should
make skb_dst_pop() localized.
Signed-off-by: Ying Xue <ying.xue@windriver.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/xfrm/xfrm_output.c')
-rw-r--r-- | net/xfrm/xfrm_output.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/net/xfrm/xfrm_output.c b/net/xfrm/xfrm_output.c index fbcedbe33190..68ada2ca4b60 100644 --- a/net/xfrm/xfrm_output.c +++ b/net/xfrm/xfrm_output.c @@ -38,6 +38,18 @@ static int xfrm_skb_check_space(struct sk_buff *skb) return pskb_expand_head(skb, nhead, ntail, GFP_ATOMIC); } +/* Children define the path of the packet through the + * Linux networking. Thus, destinations are stackable. + */ + +static struct dst_entry *skb_dst_pop(struct sk_buff *skb) +{ + struct dst_entry *child = dst_clone(skb_dst(skb)->child); + + skb_dst_drop(skb); + return child; +} + static int xfrm_output_one(struct sk_buff *skb, int err) { struct dst_entry *dst = skb_dst(skb); |