OSDN Git Service

xfrm: interface: support IP6IP6 and IP6IP tunnels processing with .cb_handler
authorXin Long <lucien.xin@gmail.com>
Mon, 6 Jul 2020 12:01:37 +0000 (20:01 +0800)
committerSteffen Klassert <steffen.klassert@secunet.com>
Thu, 9 Jul 2020 10:56:01 +0000 (12:56 +0200)
commitd7b360c2869f9ce2418510d14baf0f9696fcf1e9
treeaca752742692b6938bb484c2ac9713b5a86487a6
parentd5a7a5057387d79b91a6e2fd78a76ccd53f91e6c
xfrm: interface: support IP6IP6 and IP6IP tunnels processing with .cb_handler

Similar to ip6_vti, IP6IP6 and IP6IP tunnels processing can easily
be done with .cb_handler for xfrm interface.

v1->v2:
  - no change.
v2-v3:
  - enable it only when CONFIG_INET6_XFRM_TUNNEL is defined, to fix
    the build error, reported by kbuild test robot.

Signed-off-by: Xin Long <lucien.xin@gmail.com>
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
net/xfrm/xfrm_interface.c