xfrm: Add xfrm_replay_overflow functions for offloading
authorSteffen Klassert <steffen.klassert@secunet.com>
Fri, 14 Apr 2017 08:07:01 +0000 (10:07 +0200)
committerSteffen Klassert <steffen.klassert@secunet.com>
Fri, 14 Apr 2017 08:07:01 +0000 (10:07 +0200)
commitd7dbefc45cf5517a0cf9a0391316fab0abe71bd2
tree00ea6637fce2d5b364ba57c01801ef199800cc35
parent7862b4058b9f10c9177f347e7d981511bac87213
xfrm: Add xfrm_replay_overflow functions for offloading

This patch adds functions that handles IPsec sequence
numbers for GSO segments and TSO offloading. We need
to calculate and update the sequence numbers based
on the segments that GSO/TSO will generate. We need
this to keep software and hardware sequence number
counter in sync.

Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
net/xfrm/xfrm_replay.c