ip_vti: support IPIP tunnel processing with .cb_handler
authorXin Long <lucien.xin@gmail.com>
Mon, 6 Jul 2020 12:01:32 +0000 (20:01 +0800)
committerSteffen Klassert <steffen.klassert@secunet.com>
Thu, 9 Jul 2020 10:53:28 +0000 (12:53 +0200)
commit87e66b9682d7067eb7db08040dae36b608a4d971
tree04ddded8dc62c163740ffca50039e8dfd7f8ffbe
parent86afc7031826147407e96412668d343e0f1bd6fd
ip_vti: support IPIP tunnel processing with .cb_handler

With tunnel4_input_afinfo added, IPIP tunnel processing in
ip_vti can be easily done with .cb_handler. So replace the
processing by calling ip_tunnel_rcv() with it.

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/ipv4/ip_vti.c