diff options
author | Steffen Klassert <steffen.klassert@secunet.com> | 2017-02-15 09:39:39 +0100 |
---|---|---|
committer | Steffen Klassert <steffen.klassert@secunet.com> | 2017-02-15 09:39:39 +0100 |
commit | 5f114163f2f5eb2edbb49c4d3e0b405c7a8a7e2a (patch) | |
tree | 6b47a6960f8928ec997ef99a5f1ef23e0b59a298 /net/ipv4 | |
parent | b0fcee825c0ad05057a97d1f4685e1b9e9d00c53 (diff) | |
download | linux-5f114163f2f5eb2edbb49c4d3e0b405c7a8a7e2a.tar.gz linux-5f114163f2f5eb2edbb49c4d3e0b405c7a8a7e2a.tar.bz2 linux-5f114163f2f5eb2edbb49c4d3e0b405c7a8a7e2a.zip |
net: Add a skb_gro_flush_final helper.
Add a skb_gro_flush_final helper to prepare for consuming
skbs in call_gro_receive. We will extend this helper to not
touch the skb if the skb is consumed by a gro callback with
a followup patch. We need this to handle the upcomming IPsec
ESP callbacks as they reinject the skb to the napi_gro_receive
asynchronous. The handler is used in all gro_receive functions
that can call the ESP gro handlers.
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
Diffstat (limited to 'net/ipv4')
-rw-r--r-- | net/ipv4/af_inet.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv4/af_inet.c b/net/ipv4/af_inet.c index 685ba53df2d1..602d40f43687 100644 --- a/net/ipv4/af_inet.c +++ b/net/ipv4/af_inet.c @@ -1423,7 +1423,7 @@ out_unlock: rcu_read_unlock(); out: - NAPI_GRO_CB(skb)->flush |= flush; + skb_gro_flush_final(skb, pp, flush); return pp; } |