[LEDE-DEV] [PATCH] Add ip_vs kernel netfilter modules to enable load balancing capabilities

Jonas Gorski jonas.gorski at gmail.com
Mon Feb 20 12:17:35 PST 2017


On 20 February 2017 at 10:47, Jonas Gorski <jonas.gorski at gmail.com> wrote:
> On 19 February 2017 at 13:01, Mauro Mozzarelli <openwrt at ezplanet.net> wrote:
>> Author: Mauro Mozzarelli <mauro at ezplanet.org>
>> Date:   Sun Feb 19 11:33:23 2017 +0000
>>
>>     IPVS (IP Virtual Server) implements transport-layer load balancing
>> inside the Linux kernel, so called Layer-4 switching. IPVS running on a host
>> acts as a load balancer at the front of a cluster of real servers, it can
>> direct requests for TCP/UDP based services to the real servers, and makes
>> services of the real servers to appear as a virtual service on a single IP
>> address.
>>
>>     This patch adds kmod-nf-ipvs kernel modules option to LEDE kernel
>> netfilter
>>
>>     Signed-off-by: Mauro Mozzarelli <mauro at ezplanet.org>
>>
>> diff --git a/package/kernel/linux/modules/netfilter.mk
>> b/package/kernel/linux/modules/netfilter.mk
>> index 6162dbc..7c51d9f 100644
>> --- a/package/kernel/linux/modules/netfilter.mk
>> +++ b/package/kernel/linux/modules/netfilter.mk
>> @@ -271,6 +271,117 @@ define KernelPackage/ipt-ipset
>>  endef
>>  $(eval $(call KernelPackage,ipt-ipset))
>>
>> +IPVS_K3_MODULES:= \
>> +    ip_vs \
>> +    ip_vs_lc \
>> +    ip_vs_wlc \
>> +    ip_vs_rr \
>> +    ip_vs_wrr \
>> +    ip_vs_lblc \
>> +    ip_vs_lblcr \
>> +    ip_vs_dh \
>> +    ip_vs_sh \
>> +    ip_vs_fo \
>> +    ip_vs_nq \
>> +    ip_vs_sed \
>> +    ip_vs_ftp
>
> (snip)
>
>> +IPVS_K4_MODULES:= \
>> +    ip_vs \
>> +    ip_vs_lc \
>> +    ip_vs_wlc \
>> +    ip_vs_rr \
>> +    ip_vs_wrr \
>> +    ip_vs_lblc \
>> +    ip_vs_lblcr \
>> +    ip_vs_dh \
>> +    ip_vs_sh \
>> +    ip_vs_fo \
>> +    ip_vs_nq \
>> +    ip_vs_sed
>
> These seem mostly the same, the only difference is ip_vs_ftp in 3.18.
> You can annotate the FILES with kernel versions, e.g.
> ip_vs_ftp.ko at lt4.0" would mean "copy this file only if kernel version
> is less than 4.0". That way you should be able to just have one
> KernelPackage definition.

Actually looking at the linux sources, ip_vs_ftp is still present in
4.10, so I don't see why you need to do the distinction at all. Does
it not build?


Regards
Jonas



More information about the Lede-dev mailing list