diff options
author | David S. Miller <davem@davemloft.net> | 2017-02-01 11:22:38 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-02-01 11:22:38 -0500 |
commit | 04cdf13e34e912dcab9a94f391e15b2c26dfd0a2 (patch) | |
tree | 0f0dcf018d5ce2298ed98ec854d6592370a4348a /net/xfrm/xfrm_output.c | |
parent | 624374a56419c2d6d428c862f32cc1b20519095d (diff) | |
parent | 1995876a06bcf6f9f7d7b699bdbf387831679771 (diff) |
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/klassert/ipsec-next
Steffen Klassert says:
====================
pull request (net-next): ipsec-next 2017-02-01
1) Some typo fixes, from Alexander Alemayhu.
2) Don't acquire state lock in get_mtu functions.
The only rece against a dead state does not matter.
From Florian Westphal.
3) Remove xfrm4_state_fini, it is unused for more than
10 years. From Florian Westphal.
4) Various rcu usage improvements. From Florian Westphal.
5) Properly handle crypto arrors in ah4/ah6.
From Gilad Ben-Yossef.
6) Try to avoid skb linearization in esp4 and esp6.
7) The esp trailer is now set up in different places,
add a helper for this.
8) With the upcomming usage of gro_cells in IPsec,
a gro merged skb can have a secpath. Drop it
before freeing or reusing the skb.
9) Add a xfrm dummy network device for napi. With
this we can use gro_cells from within xfrm,
it allows IPsec GRO without impact on the generic
networking code.
Please pull or let me know if there are problems.
====================
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 | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/net/xfrm/xfrm_output.c b/net/xfrm/xfrm_output.c index 637387bbaaea..8ba29fe58352 100644 --- a/net/xfrm/xfrm_output.c +++ b/net/xfrm/xfrm_output.c | |||
@@ -246,10 +246,8 @@ void xfrm_local_error(struct sk_buff *skb, int mtu) | |||
246 | return; | 246 | return; |
247 | 247 | ||
248 | afinfo = xfrm_state_get_afinfo(proto); | 248 | afinfo = xfrm_state_get_afinfo(proto); |
249 | if (!afinfo) | 249 | if (afinfo) |
250 | return; | 250 | afinfo->local_error(skb, mtu); |
251 | 251 | rcu_read_unlock(); | |
252 | afinfo->local_error(skb, mtu); | ||
253 | xfrm_state_put_afinfo(afinfo); | ||
254 | } | 252 | } |
255 | EXPORT_SYMBOL_GPL(xfrm_local_error); | 253 | EXPORT_SYMBOL_GPL(xfrm_local_error); |