mirror of
https://github.com/torvalds/linux.git
synced 2026-09-14 16:10:02 +02:00
Revert "esp: do not unref managed frag pages in esp_ssg_unref()"
This reverts commit 21697720ff.
The patch does not fix the issue completely, so revert for
now and wait for an updated version.
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
This commit is contained in:
parent
c12cbf5632
commit
0fda52de8b
|
|
@ -104,13 +104,6 @@ static void esp_ssg_unref(struct xfrm_state *x, void *tmp, struct sk_buff *skb,
|
|||
struct aead_request *req;
|
||||
struct scatterlist *sg;
|
||||
|
||||
/* Managed frags are owned by the zerocopy ubuf; the skb holds no
|
||||
* per-frag page reference, so we must not drop one here. Mirrors
|
||||
* the SKBFL_MANAGED_FRAG_REFS handling in skb_release_data().
|
||||
*/
|
||||
if (skb_zcopy_managed(skb))
|
||||
return;
|
||||
|
||||
if (x->props.flags & XFRM_STATE_ESN)
|
||||
extralen += sizeof(struct esp_output_extra);
|
||||
|
||||
|
|
|
|||
|
|
@ -121,13 +121,6 @@ static void esp_ssg_unref(struct xfrm_state *x, void *tmp, struct sk_buff *skb,
|
|||
struct aead_request *req;
|
||||
struct scatterlist *sg;
|
||||
|
||||
/* Managed frags are owned by the zerocopy ubuf; the skb holds no
|
||||
* per-frag page reference, so we must not drop one here. Mirrors
|
||||
* the SKBFL_MANAGED_FRAG_REFS handling in skb_release_data().
|
||||
*/
|
||||
if (skb_zcopy_managed(skb))
|
||||
return;
|
||||
|
||||
if (x->props.flags & XFRM_STATE_ESN)
|
||||
extralen += sizeof(struct esp_output_extra);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user