[PATCH net-next v4 3/3] ipvs: log additional sync daemon parameters

2016-06-16 Thread Quentin Armitage
add them to the log messages when the sync daemons started. Signed-off-by: Quentin Armitage <quen...@armitage.org.uk> --- net/netfilter/ipvs/ip_vs_sync.c | 28 ++-- 1 files changed, 22 insertions(+), 6 deletions(-) diff --git a/net/netfilter/ipvs/ip_vs_s

[PATCH net-next v4 2/3] ipvs: Don't check result < 0 after setting result = 0

2016-06-16 Thread Quentin Armitage
Move the block testing result < 0 to avoid the test immediately after setting result = 0 Signed-off-by: Quentin Armitage <quen...@armitage.org.uk> --- net/netfilter/ipvs/ip_vs_sync.c | 11 ++- 1 files changed, 6 insertions(+), 5 deletions(-) diff --git a/net/netfi

[PATCH net-next v4 1/3] ipvs: Stop calling __dev_get_by_name() repeatedly when starting sync daemon

2016-06-16 Thread Quentin Armitage
Optimise starting sync daemons by using the result of the first call to __dev_get_by_name() and pass the result or ifindex to subsequent functions to avoid them having to call __dev_get_by_name() again. Signed-off-by: Quentin Armitage <quen...@armitage.org.uk> --- net/netfilter/ipvs/ip_vs_

[PATCH v4 net] ipvs: fix bind to link-local mcast IPv6 address in backup

2016-06-16 Thread Quentin Armitage
ing inet6_bind() resolves the issue. Fixes: d33288172e72 ("ipvs: add more mcast parameters for the sync daemon") Signed-off-by: Quentin Armitage <quen...@armitage.org.uk> --- net/netfilter/ipvs/ip_vs_sync.c |6 -- 1 files changed, 4 insertions(+), 2 deletions(-) diff --gi

[PATCH v3 3/4] ipvs: Don't check result < 0 after setting result = 0

2016-06-15 Thread Quentin Armitage
Move the block testing result < 0 to avoid the test immediately after setting result = 0 Signed-off-by: Quentin Armitage <quen...@armitage.org.uk> --- net/netfilter/ipvs/ip_vs_sync.c | 11 ++- 1 files changed, 6 insertions(+), 5 deletions(-) diff --git a/net/netfi

[PATCH v3 4/4] ipvs: log additional sync daemon parameters

2016-06-15 Thread Quentin Armitage
add them to the log messages when the sync daemons started. Signed-off-by: Quentin Armitage <quen...@armitage.org.uk> --- net/netfilter/ipvs/ip_vs_sync.c | 28 ++-- 1 files changed, 22 insertions(+), 6 deletions(-) diff --git a/net/netfilter/ipvs/ip_vs_s

[PATCH v3 2/4] ipvs: Stop calling __dev_get_by_name() repeatedly when starting sync daemon

2016-06-15 Thread Quentin Armitage
Optimise starting sync daemons by using the result of the first call to __dev_get_by_name() and pass the result or ifindex to subsequent functions to avoid them having to call __dev_get_by_name() again. Signed-off-by: Quentin Armitage <quen...@armitage.org.uk> --- net/netfilter/ipvs/ip_vs_

[PATCH v3 1/4] ipvs: Enable setting IPv6 multicast address for ipvs

2016-06-15 Thread Quentin Armitage
ing inet6_bind() resolves the issue. Fixes: d33288172e72 ("ipvs: add more mcast parameters for the sync daemon") Signed-off-by: Quentin Armitage <quen...@armitage.org.uk> --- net/netfilter/ipvs/ip_vs_sync.c |6 -- 1 files changed, 4 insertions(+), 2 deletions(-) diff --gi

[PATCH v3 0/4] ipvs: fix backup sync daemon with IPv6, and minor updates

2016-06-15 Thread Quentin Armitage
d to resolve coding style warnings, and all pass with 0 errors, warnings and checks. Patch 5 now becomes patch 4. The changes have all been tested and work as expected. Quentin Armitage (4): ipvs: Enable setting IPv6 multicast address for ipvs ipvs: Stop calling __dev_get_by_name() rep

[PATCH v2 1/5] ipvs: Enable setting IPv6 multicast address for ipvs sync daemon backup

2016-06-14 Thread Quentin Armitage
issue. Signed-off-by: Quentin Armitage <quen...@armitage.org.uk> --- net/netfilter/ipvs/ip_vs_sync.c |5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/net/netfilter/ipvs/ip_vs_sync.c b/net/netfilter/ipvs/ip_vs_sync.c index 803001a..85b48f1 100644 --- a/net/netfilter/ip

[PATCH v2 0/5] ipvs: fix backup sync daemon with IPv6, and minor updates

2016-06-14 Thread Quentin Armitage
with CONFIG_IP_VS_DEBUG enabled. Patch 2/5 is modified to correct the problem, and patch 3/5 is modifed to apply with the modified patch 2/5. Quentin Armitage (5): ipvs: Enable setting IPv6 multicast address for ipvs sync daemon backup ipvs: Stop calling __dev_get_by_name() repeatedly when starting sync

[PATCH v2 4/5] ipvs: Lock socket before setting SK_CAN_REUSE

2016-06-14 Thread Quentin Armitage
When other settings are changed in the socket it is locked, so lock the socket before setting SK_CAN_REUSE. Signed-off-by: Quentin Armitage <quen...@armitage.org.uk> --- net/netfilter/ipvs/ip_vs_sync.c |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/net/netfilte

[PATCH v2 2/5] ipvs: Stop calling __dev_get_by_name() repeatedly when starting sync daemon

2016-06-14 Thread Quentin Armitage
Optimise starting sync daemons by using the result of the first call to __dev_get_by_name() and pass the result or ifindex to subsequent functions to avoid them having to call __dev_get_by_name() again. Signed-off-by: Quentin Armitage <quen...@armitage.org.uk> --- net/netfilter/ipvs/ip_vs_

[PATCH v2 3/5] ipvs: Don't check result < 0 after setting result = 0

2016-06-14 Thread Quentin Armitage
Move the block testing result < 0 to avoid the test immediately after setting result = 0 Signed-off-by: Quentin Armitage <quen...@armitage.org.uk> --- net/netfilter/ipvs/ip_vs_sync.c | 12 ++-- 1 files changed, 6 insertions(+), 6 deletions(-) diff --git a/net/netfi

[PATCH v2 5/5] ipvs: log additional sync daemon parameters

2016-06-14 Thread Quentin Armitage
hen the sync daemons started. Signed-off-by: Quentin Armitage <quen...@armitage.org.uk> --- net/netfilter/ipvs/ip_vs_sync.c | 26 ++ 1 files changed, 22 insertions(+), 4 deletions(-) diff --git a/net/netfilter/ipvs/ip_vs_sync.c b/net/netfilter/ipvs/ip_vs_sync.c ind

[PATCH 0/5] ipvs: fix backup sync daemon with IPv6, and minor updates

2016-06-13 Thread Quentin Armitage
adds a lock which appears to have been omitted, and the final patch adds the recently added sync daemon multicast parameters to the log messages that are written when the sync daemons start. Quentin Armitage (5): ipvs: Enable setting IPv6 multicast address for ipvs sync daemon backup ipvs

[PATCH 5/5] ipvs: log additional sync daemon parameters

2016-06-13 Thread Quentin Armitage
hen the sync daemons started. Signed-off-by: Quentin Armitage <quen...@armitage.org.uk> --- net/netfilter/ipvs/ip_vs_sync.c | 26 ++ 1 files changed, 22 insertions(+), 4 deletions(-) diff --git a/net/netfilter/ipvs/ip_vs_sync.c b/net/netfilter/ipvs/ip_vs_sync.c ind

[PATCH 3/5] ipvs: Don't check result < 0 after setting result = 0

2016-06-13 Thread Quentin Armitage
Move the block testing result < 0 to avoid the test immediately after setting result = 0 Signed-off-by: Quentin Armitage <quen...@armitage.org.uk> --- net/netfilter/ipvs/ip_vs_sync.c |8 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/net/netfilter/ipvs/ip_vs

[PATCH 4/5] ipvs: Lock socket before setting SK_CAN_REUSE

2016-06-13 Thread Quentin Armitage
When other settings are changed in the socket it is locked, so lock the socket before setting SK_CAN_REUSE. Signed-off-by: Quentin Armitage <quen...@armitage.org.uk> --- net/netfilter/ipvs/ip_vs_sync.c |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/net/netfilte

[PATCH 2/5] ipvs: Stop calling __dev_get_by_name() repeatedly when starting sync daemon

2016-06-13 Thread Quentin Armitage
Optimise starting sync daemons by using the result of the first call to __dev_get_by_name() and pass the result or ifindex to subsequent functions to avoid them having to call __dev_get_by_name() again. Signed-off-by: Quentin Armitage <quen...@armitage.org.uk> --- net/netfilter/ipvs/ip_vs_

[PATCH 1/5] ipvs: Enable setting IPv6 multicast address for ipvs sync daemon backup

2016-06-13 Thread Quentin Armitage
issue. Signed-off-by: Quentin Armitage <quen...@armitage.org.uk> --- net/netfilter/ipvs/ip_vs_sync.c |5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/net/netfilter/ipvs/ip_vs_sync.c b/net/netfilter/ipvs/ip_vs_sync.c index 803001a..85b48f1 100644 --- a/net/netfilter/ip

[PATCH v2] net: remove unimplemented RTNH_F_PERVASIVE

2016-04-02 Thread Quentin Armitage
references to RTNH_F_PERVASIVE. Although this will cause userspace applications that were using the flag to fail to build, they will be alerted to the fact that using RTNH_F_PERVASIVE was not achieving anything. Signed-off-by: Quentin Armitage <quen...@armitage.org.uk> --- include/uapi/linux/rt

[PATCH] net: remove unimplemented RTNH_F_PERVASIVE

2016-04-02 Thread Quentin Armitage
that were using the flag to fail to build, they will be alerted to the fact that using RTNH_F_PERVASIVE was not achieving anything. Signed-off-by: Quentin Armitage <quen...@armitage.org.uk> --- include/uapi/linux/rtnetlink.h |2 +- net/decnet/dn_fib.c|2 +- ne

[PATCH] Fix returned tc and hoplimit values for route with IPv6 encapsulation

2016-03-27 Thread Quentin Armitage
.1 encap ip6 id 0 src :: dst fe83::1 hoplimit 80 tc 100 dev eth0.2 scope link Signed-off-by: Quentin Armitage <quen...@armitage.org.uk> --- net/ipv4/ip_tunnel_core.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/net/ipv4/ip_tunnel_core.c b/net/ipv4/ip_tunn