Skip to content

Add first IPv6 support to IPVS

Julius Volz lvs-devel netdev 4 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest posting 2/224 patches 7 repliesIn review
  2. v3 posting 1/20 of 24 patches 1 replySuperseded
  3. v2 RFC0 patches 2 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v1 RFC24 patches34 repliesSuperseded

Patches in v3 posting 2/2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/24IPVS: Add CONFIG_IP_VS_IPV6 option for IPv6 supportnet/ipv4/ipvs/Kconfig+8 -00 replies
2/24IPVS: Change IPVS data structures to support IPv6 addressesinclude/net/ip_vs.h net/ipv4/ipvs/ip_vs_conn.c net/ipv4/ipvs/ip_vs_core.c +16 more+121 -1140 replies
3/24IPVS: Add general v4/v6 helper functions / data structuresinclude/net/ip_vs.h+49 -00 replies
4/24IPVS: Add debug macros for v4 and v6 address outputinclude/net/ip_vs.h+42 -00 replies
5/24IPVS: Add internal versions of sockopt interface structsinclude/net/ip_vs.h net/ipv4/ipvs/ip_vs_ctl.c+129 -480 replies
6/24IPVS: Convert __ip_vs_svc_get() and __ip_vs_fwm_get()net/ipv4/ipvs/ip_vs_ctl.c+47 -320 replies
7/24IPVS: Add v6 support to ip_vs_service_get()include/net/ip_vs.h net/ipv4/ipvs/ip_vs_ctl.c net/ipv4/ipvs/ip_vs_proto_tcp.c +1 more+28 -190 replies
8/24IPVS: Add IPv6 support flag to schedulersinclude/net/ip_vs.h net/ipv4/ipvs/ip_vs_dh.c net/ipv4/ipvs/ip_vs_lblc.c +8 more+66 -330 replies
9/24IPVS: Add 'af' args to protocol handler functionsinclude/net/ip_vs.h net/ipv4/ipvs/ip_vs_core.c net/ipv4/ipvs/ip_vs_proto_ah_esp.c +2 more+171 -1240 replies
10/24IPVS: Add protocol debug functions for IPv6net/ipv4/ipvs/ip_vs_proto.c net/ipv4/ipvs/ip_vs_proto_ah_esp.c+93 -61 reply
11/24IPVS: Extend protocol DNAT/SNAT and state handlersinclude/net/ip_vs.h net/ipv4/ipvs/ip_vs_proto_tcp.c net/ipv4/ipvs/ip_vs_proto_udp.c+142 -360 replies
12/24IPVS: Extend functions for getting/creating connectionsinclude/net/ip_vs.h net/ipv4/ipvs/ip_vs_conn.c net/ipv4/ipvs/ip_vs_core.c +5 more+209 -1635 replies
13/24IPVS: Add IPv6 support to xmit() support functionsnet/ipv4/ipvs/ip_vs_xmit.c+75 -70 replies
14/24IPVS: Add and bind IPv6 xmit functionsinclude/net/ip_vs.h net/ipv4/ipvs/ip_vs_conn.c net/ipv4/ipvs/ip_vs_core.c +1 more+472 -20 replies
15/24IPVS: Extend scheduling functions for IPv6 supportnet/ipv4/ipvs/ip_vs_core.c+31 -250 replies
16/24IPVS: Add/adjust Netfilter hook functions and helpers for v6net/ipv4/ipvs/ip_vs_core.c+329 -363 replies
17/24IPVS: Convert real server lookup functionsinclude/net/ip_vs.h net/ipv4/ipvs/ip_vs_conn.c net/ipv4/ipvs/ip_vs_core.c +2 more+67 -370 replies
18/24IPVS: Convert procfs files for IPv6 entry outputnet/ipv4/ipvs/ip_vs_conn.c net/ipv4/ipvs/ip_vs_ctl.c+73 -180 replies
19/24IVPS: Disable sync daemon for IPv6 connectionsnet/ipv4/ipvs/ip_vs_core.c+2 -10 replies
20/24IPVS: Turn off FTP application helper for IPv6net/ipv4/ipvs/ip_vs_ftp.c+16 -00 replies
21/24IPVS: Add function to determine if IPv6 address is localnet/ipv4/ipvs/ip_vs_ctl.c+49 -71 reply
22/24IPVS: Adjust various debug outputs to use new macrosinclude/net/ip_vs.h net/ipv4/ipvs/ip_vs_conn.c net/ipv4/ipvs/ip_vs_ctl.c +2 more+111 -830 replies
23/24IPVS: Activate IPv6 Netfilter hooksnet/ipv4/ipvs/ip_vs_core.c+37 -00 replies
24/24IPVS: Allow adding IPv6 services from userspacenet/ipv4/ipvs/ip_vs_ctl.c+48 -51 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v3 yet.

Read the v3 thread

Cover letter [PATCHv3 00/24] Add first IPv6 support to IPVS

Hi Horms,

Here comes the whole batch again! I've fixed almost all style issues reported by checkpatch.pl, except for some little things which look like they could stay like they are for now (down to 3 warnings and 2 errors). I also integrated your other comments and removed the patch that adds the changelog information (not needed anymore, according to Stephen).

These patches are based on lvs-2.6:

git://git.kernel.org/pub/scm/linux/kernel/git/horms/lvs-2.6.git

- Full kernel patch in one file:
http://www-user.tu-chemnitz.de/~volz/ipvs_ipv6/ipvs_ipv6_v3.patch

While not all IPv6 features are working or tested, existing IPv4 features should still work as before. However, to use any of the new features, you will need a new ipvsadm with support for genetlink and IPv6:

http://sixpak.org/vince/google/ipvsadm/
(by Vince Busam)

To enable IPv6 support in IPVS, set CONFIG_IP_VS_IPV6=y.

Short overview:

What works with IPv6:
- forwarding mechanisms: NAT, DR, maybe Tunnel (not fully tested yet)
- protocols: TCP, UDP, ESP, AH (last two not tested)
- manipulation and inspection of both IPv4 and IPv6 entries with ipvsadm
- 6 out of 10 schedulers

What is not supported with IPv6:
- handling fragmentation or other extension headers
- FTP application helper (can be loaded, but only operates on v4)
- sync daemon (can be started, but only operates on v4)
- probably some incorrect handling of ICMPv6 or other corner cases

Since fragmentation and extension headers should not occur very often, things should "mostly" work. I tested HTTP and DNS over NAT and DR with various supported schedulers without encountering any problems. But we didn't test any exotic situations. Also, there are some TODOs in the code for things that haven't been tested or implemented yet.

Thanks for any comments!

Julius