xfrm: interface: support IPIP and IPIP6 tunnels processing with .cb_handler
authorXin Long <lucien.xin@gmail.com>
Mon, 6 Jul 2020 12:01:38 +0000 (20:01 +0800)
committerSteffen Klassert <steffen.klassert@secunet.com>
Thu, 9 Jul 2020 10:56:36 +0000 (12:56 +0200)
commitda9bbf0598c9e66b8a46ceabaa6172596795acf2
treeaf7df4ca6064ab193dd02bde5b0aac2ab9409528
parentd7b360c2869f9ce2418510d14baf0f9696fcf1e9
xfrm: interface: support IPIP and IPIP6 tunnels processing with .cb_handler

Similar to ip_vti, IPIP and IPIP6 tunnels processing can easily
be done with .cb_handler for xfrm interface.

v1->v2:
  - no change.
v2-v3:
  - enable it only when CONFIG_INET_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