diff options
| author | Florian Westphal <[email protected]> | 2021-06-18 13:51:56 +0000 |
|---|---|---|
| committer | Steffen Klassert <[email protected]> | 2021-06-21 07:55:06 +0000 |
| commit | cfc61c598e43772cc4f76b8fc40c5ec70675716b (patch) | |
| tree | 2262ae0b45a3759bb064eb83d0e1fa601bfafae4 /net/switchdev/switchdev.c | |
| parent | xfrm: avoid compiler warning when ipv6 is disabled (diff) | |
| download | kernel-cfc61c598e43772cc4f76b8fc40c5ec70675716b.tar.gz kernel-cfc61c598e43772cc4f76b8fc40c5ec70675716b.zip | |
xfrm: replay: avoid xfrm replay notify indirection
replay protection is implemented using a callback structure and then
called via
x->repl->notify(), x->repl->recheck(), and so on.
all the differect functions are always built-in, so this could be direct
calls instead.
This first patch prepares for removal of the x->repl structure.
Add an enum with the three available replay modes to the xfrm_state
structure and then replace all x->repl->notify() calls by the new
xfrm_replay_notify() helper.
The helper checks the enum internally to adapt behaviour as needed.
Signed-off-by: Florian Westphal <[email protected]>
Signed-off-by: Steffen Klassert <[email protected]>
Diffstat (limited to 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions
