[PATCH nf-next 30/84] ipvs: Pass ipvs not net to ip_vs_genl_find_service

2015-09-23 Thread Simon Horman
From: "Eric W. Biederman" Signed-off-by: "Eric W. Biederman" Acked-by: Julian Anastasov Signed-off-by: Simon Horman --- net/netfilter/ipvs/ip_vs_ctl.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/net/netfilter/ipvs/ip_vs_ctl.c b/net/netfil

[GIT PULL nf-next 00/84] Second Round of IPVS Updates for v4.4

2015-09-23 Thread Simon Horman
Hi Pablo, please consider these bug fixes and extensive clean-ups of IPVS from Eric Biederman for v4.4. His excellent description of the changes, which is part of an even larger set of clean-up work, is as follows: I am gradually working my way through the netfilter stack passing struct down

[PATCH nf-next 34/84] ipvs: Pass ipvs not net to stop_sync_thread

2015-09-23 Thread Simon Horman
From: "Eric W. Biederman" Signed-off-by: "Eric W. Biederman" Acked-by: Julian Anastasov Signed-off-by: Simon Horman --- include/net/ip_vs.h | 2 +- net/netfilter/ipvs/ip_vs_ctl.c | 4 ++-- net/netfilter/ipvs/ip_vs_sync.c | 7 +++ 3 files changed, 6 insert

[PATCH nf-next 44/84] ipvs: Pass ipvs not net to ip_vs_sync_net_cleanup

2015-09-23 Thread Simon Horman
From: "Eric W. Biederman" Signed-off-by: "Eric W. Biederman" Acked-by: Julian Anastasov Signed-off-by: Simon Horman --- include/net/ip_vs.h | 2 +- net/netfilter/ipvs/ip_vs_core.c | 5 +++-- net/netfilter/ipvs/ip_vs_sync.c | 3 +-- 3 files changed, 5 insert

[PATCH nf-next 40/84] ipvs: Pass ipvs not net to ip_vs_sync_conn

2015-09-23 Thread Simon Horman
From: "Eric W. Biederman" Signed-off-by: "Eric W. Biederman" Acked-by: Julian Anastasov Signed-off-by: Simon Horman --- include/net/ip_vs.h | 2 +- net/netfilter/ipvs/ip_vs_conn.c | 3 +-- net/netfilter/ipvs/ip_vs_core.c | 2 +- net/netfilter/ipvs/ip_vs_sync.

[PATCH nf-next 46/84] ipvs: Pass ipvs not net to ip_vs_start_estimator aned ip_vs_stop_estimator

2015-09-23 Thread Simon Horman
From: "Eric W. Biederman" Signed-off-by: "Eric W. Biederman" Acked-by: Julian Anastasov Signed-off-by: Simon Horman --- include/net/ip_vs.h| 4 ++-- net/netfilter/ipvs/ip_vs_ctl.c | 12 ++-- net/netfilter/ipvs/ip_vs_est.c | 6 ++ 3 files ch

[PATCH nf-next 48/84] ipvs: Pass ipvs not net to ip_vs_control_net_(init|cleanup)_sysctl

2015-09-23 Thread Simon Horman
From: "Eric W. Biederman" Signed-off-by: "Eric W. Biederman" Acked-by: Julian Anastasov Signed-off-by: Simon Horman --- net/netfilter/ipvs/ip_vs_ctl.c | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/net/netfilter/ipvs/ip_vs_ctl.c

[PATCH nf-next 42/84] ipvs: Pass ipvs not net to ip_vs_proc_sync_conn

2015-09-23 Thread Simon Horman
From: "Eric W. Biederman" Signed-off-by: "Eric W. Biederman" Acked-by: Julian Anastasov Signed-off-by: Simon Horman --- net/netfilter/ipvs/ip_vs_sync.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/net/netfilter/ipvs/ip_vs_sync.c b/net/netfilt

[PATCH nf-next 69/84] ipvs: Pass ipvs into __ip_vs_get_out_rt_v6

2015-09-23 Thread Simon Horman
From: "Eric W. Biederman" Signed-off-by: "Eric W. Biederman" Acked-by: Julian Anastasov Signed-off-by: Simon Horman --- net/netfilter/ipvs/ip_vs_xmit.c | 21 + 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/net/netfilter/ipvs/ip_vs_xm

[PATCH nf-next 49/84] ipvs: Pass ipvs not net into ip_vs_control_net_(init|cleanup)

2015-09-23 Thread Simon Horman
From: "Eric W. Biederman" Signed-off-by: "Eric W. Biederman" Acked-by: Julian Anastasov Signed-off-by: Simon Horman --- include/net/ip_vs.h | 4 ++-- net/netfilter/ipvs/ip_vs_core.c | 6 +++--- net/netfilter/ipvs/ip_vs_ctl.c | 8 3 files changed

[PATCH nf-next 72/84] ipvs: Wrap sysctl_cache_bypass and remove ifdefs in ip_vs_leave

2015-09-23 Thread Simon Horman
Signed-off-by: "Eric W. Biederman" Acked-by: Julian Anastasov Signed-off-by: Simon Horman --- include/net/ip_vs.h | 10 ++ net/netfilter/ipvs/ip_vs_core.c | 13 +++-- 2 files changed, 13 insertions(+), 10 deletions(-) diff --git a/include/net/ip_vs.h b

[PATCH nf-next 65/84] ipvs: Pass ipvs not net into ip_vs_conn_net_init and ip_vs_conn_net_cleanup

2015-09-23 Thread Simon Horman
From: "Eric W. Biederman" Signed-off-by: "Eric W. Biederman" Acked-by: Julian Anastasov Signed-off-by: Simon Horman --- include/net/ip_vs.h | 4 ++-- net/netfilter/ipvs/ip_vs_conn.c | 8 net/netfilter/ipvs/ip_vs_core.c | 6 +++--- 3 files changed

[PATCH nf-next 77/84] ipvs: Pass ipvs into ip_vs_in_icmp and ip_vs_in_icmp_v6

2015-09-23 Thread Simon Horman
an" Acked-by: Julian Anastasov Signed-off-by: Simon Horman --- net/netfilter/ipvs/ip_vs_core.c | 36 ++-- 1 file changed, 14 insertions(+), 22 deletions(-) diff --git a/net/netfilter/ipvs/ip_vs_core.c b/net/netfilter/ipvs/ip_vs_core.c index 3ab96bdc66fd..030

[PATCH nf-next 81/84] ipvs: Pass ipvs not net to ip_vs_protocol_net_(init|cleanup)

2015-09-23 Thread Simon Horman
From: "Eric W. Biederman" Signed-off-by: "Eric W. Biederman" Acked-by: Julian Anastasov Signed-off-by: Simon Horman --- include/net/ip_vs.h | 4 ++-- net/netfilter/ipvs/ip_vs_core.c | 6 +++--- net/netfilter/ipvs/ip_vs_proto.c | 8 +++- 3 files changed,

[PATCH nf-next 63/84] ipvs: Pass ipvs not net to ip_vs_conn_hashkey

2015-09-23 Thread Simon Horman
y: "Eric W. Biederman" Acked-by: Julian Anastasov Signed-off-by: Simon Horman --- net/netfilter/ipvs/ip_vs_conn.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/net/netfilter/ipvs/ip_vs_conn.c b/net/netfilter/ipvs/ip_vs_conn.c index 7a4d1d8e8f0c..a99bbf6c8

[PATCH nf-next 68/84] ipvs: Pass ipvs into __ip_vs_get_out_rt

2015-09-23 Thread Simon Horman
From: "Eric W. Biederman" Signed-off-by: "Eric W. Biederman" Acked-by: Julian Anastasov Signed-off-by: Simon Horman --- net/netfilter/ipvs/ip_vs_xmit.c | 15 --- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/net/netfilter/ipvs/ip_vs_xmit.c

[PATCH nf-next 50/84] ipvs: Pass ipvs not net to estimation_timer

2015-09-23 Thread Simon Horman
From: "Eric W. Biederman" Signed-off-by: "Eric W. Biederman" Acked-by: Julian Anastasov Signed-off-by: Simon Horman --- net/netfilter/ipvs/ip_vs_est.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/net/netfilter/ipvs/ip_vs_est.c b/net/netfil

[PATCH nf-next 78/84] ipvs: Pass ipvs into ip_vs_out_icmp and ip_vs_out_icmp_v6

2015-09-23 Thread Simon Horman
From: "Eric W. Biederman" This removes the need to compute ipvs with the hack "net_ipvs(skb_net(skb))" Signed-off-by: "Eric W. Biederman" Acked-by: Julian Anastasov Signed-off-by: Simon Horman --- net/netfilter/ipvs/ip_vs_core.c | 15 +++ 1 fi

[PATCH nf-next 74/84] ipvs: Pass ipvs not net into sysctl_nat_icmp_send

2015-09-23 Thread Simon Horman
From: "Eric W. Biederman" Signed-off-by: "Eric W. Biederman" Acked-by: Julian Anastasov Signed-off-by: Simon Horman --- net/netfilter/ipvs/ip_vs_core.c | 7 +++ 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/net/netfilter/ipvs/ip_vs_core.c b/net/netfilt

[PATCH nf-next 83/84] ipvs: Remove skb_sknet

2015-09-23 Thread Simon Horman
From: "Eric W. Biederman" This function adds no real value and it obscures what the code is doing. Signed-off-by: "Eric W. Biederman" Acked-by: Julian Anastasov Signed-off-by: Simon Horman --- include/net/ip_vs.h| 22 -- net/netfilter/i

[PATCH nf-next 60/84] ipvs: Pass ipvs into ip_vs_conn_fill_param_proto

2015-09-23 Thread Simon Horman
From: "Eric W. Biederman" Move the ugly hack net_ipvs(skb_net(skb)) up a layer in the call stack so it is easier to remove. Signed-off-by: "Eric W. Biederman" Acked-by: Julian Anastasov Signed-off-by: Simon Horman --- net/netfilter/ipvs/ip_vs_conn.c | 10 ++---

[PATCH nf-next 57/84] ipvs: Pass ipvs not net into ip_vs_app_net_init and ip_vs_app_net_cleanup

2015-09-23 Thread Simon Horman
From: "Eric W. Biederman" Signed-off-by: "Eric W. Biederman" Acked-by: Julian Anastasov Signed-off-by: Simon Horman --- include/net/ip_vs.h | 4 ++-- net/netfilter/ipvs/ip_vs_app.c | 8 net/netfilter/ipvs/ip_vs_core.c | 6 +++--- 3 files changed

[PATCH nf-next 58/84] ipvs: Pass ipvs not net into [un]register_ip_vs_proto_netns

2015-09-23 Thread Simon Horman
From: "Eric W. Biederman" Signed-off-by: "Eric W. Biederman" Acked-by: Julian Anastasov Signed-off-by: Simon Horman --- net/netfilter/ipvs/ip_vs_proto.c | 15 +++ 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/net/netfilter/ipvs/ip_vs_proto.c

[PATCH nf-next 79/84] ipvs: Pass ipvs through ip_vs_route_me_harder into sysctl_snat_reroute

2015-09-23 Thread Simon Horman
From: "Eric W. Biederman" This removes the need to use the hack skb_net. Signed-off-by: "Eric W. Biederman" Acked-by: Julian Anastasov Signed-off-by: Simon Horman --- net/netfilter/ipvs/ip_vs_core.c | 15 +++ 1 file changed, 7 insertions(+), 8 deletions(

[PATCH nf-next 71/84] ipvs: Better derivation of ipvs in ip_vs_in_stats and ip_vs_out_stats

2015-09-23 Thread Simon Horman
From: "Eric W. Biederman" Signed-off-by: "Eric W. Biederman" Acked-by: Julian Anastasov Signed-off-by: Simon Horman --- net/netfilter/ipvs/ip_vs_core.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/net/netfilter/ipvs/ip_vs_core.c b/net/netfilt

[PATCH nf-next 76/84] ipvs: Pass ipvs into ip_vs_in

2015-09-23 Thread Simon Horman
From: "Eric W. Biederman" Derive ipvs from state->net in the callers of ip_vs_in and pass it into ip_vs_out. Removing the need to use the hack skb_net. Signed-off-by: "Eric W. Biederman" Acked-by: Julian Anastasov Signed-off-by: Simon Horman --- net/netfilter

[PATCH nf-next 75/84] ipvs: Pass ipvs into ip_vs_out

2015-09-23 Thread Simon Horman
From: "Eric W. Biederman" Derive ipvs from state->net in the callers of ip_vs_out and pass it into ip_vs_out. Removing the need to use the hack skb_net. Signed-off-by: "Eric W. Biederman" Acked-by: Julian Anastasov Signed-off-by: Simon Horman --- net/netfilter

[PATCH nf-next 62/84] ipvs: Pass ipvs into conn_out_get

2015-09-23 Thread Simon Horman
From: "Eric W. Biederman" Move the hack of relying on "net_ipvs(skb_net(skb))" to derive the ipvs up a layer. Signed-off-by: "Eric W. Biederman" Acked-by: Julian Anastasov Signed-off-by: Simon Horman --- include/net/ip_vs.h | 6 -- n

[PATCH nf-next 67/84] ipvs: Better derivation of ipvs in ip_vs_tunnel_xmit

2015-09-23 Thread Simon Horman
From: "Eric W. Biederman" Don't use "net_ipvs(skb_net(skb))" as skb_net is a bad hack. Instead use cp->ipvs and ipvs->net for the net. Signed-off-by: "Eric W. Biederman" Acked-by: Julian Anastasov Signed-off-by: Simon Horman --- net/netfilter/ipvs

[PATCH nf-next 80/84] ipvs: Remove net argument from ip_vs_tcp_conn_listen

2015-09-23 Thread Simon Horman
From: "Eric W. Biederman" The argument is unnecessary and in practice confusing, and has caused the callers to do all manner of silly things. Signed-off-by: "Eric W. Biederman" Acked-by: Julian Anastasov Signed-off-by: Simon Horman --- include/net/ip_vs.h

[PATCH nf-next 66/84] ipvs: Pass ipvs into .conn_schedule and ip_vs_try_to_schedule

2015-09-23 Thread Simon Horman
From: "Eric W. Biederman" This moves the hack "net_ipvs(skb_net(skb))" up one level where it will be easier to remove. Signed-off-by: "Eric W. Biederman" Acked-by: Julian Anastasov Signed-off-by: Simon Horman --- include/net/ip_vs.h

[PATCH nf-next 84/84] ipvs: Pass ipvs into ip_vs_gather_frags

2015-09-23 Thread Simon Horman
From: "Eric W. Biederman" This will be needed later when the network namespace guessing is removed from ip_defrag. Signed-off-by: "Eric W. Biederman" Acked-by: Julian Anastasov Signed-off-by: Simon Horman --- net/netfilter/ipvs/ip_vs_core.c | 9 + 1 file changed

[PATCH nf-next 82/84] ipvs: Remove skb_net

2015-09-23 Thread Simon Horman
From: "Eric W. Biederman" This hack has no more users so remove it. Signed-off-by: "Eric W. Biederman" Acked-by: Julian Anastasov Signed-off-by: Simon Horman --- include/net/ip_vs.h | 31 --- 1 file changed, 31 deletions(-) diff --git a/i

[PATCH nf-next 56/84] ipvs: Pass ipvs not net into ip_vs_app_inc_release

2015-09-23 Thread Simon Horman
From: "Eric W. Biederman" Signed-off-by: "Eric W. Biederman" Acked-by: Julian Anastasov Signed-off-by: Simon Horman --- net/netfilter/ipvs/ip_vs_app.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/net/netfilter/ipvs/ip_vs_app.c b/net/netfil

[PATCH nf-next 53/84] ipvs: Pass ipvs not net into ip_vs_app_inc_new

2015-09-23 Thread Simon Horman
From: "Eric W. Biederman" Signed-off-by: "Eric W. Biederman" Acked-by: Julian Anastasov Signed-off-by: Simon Horman --- net/netfilter/ipvs/ip_vs_app.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/net/netfilter/ipvs/ip_vs_app.c b/net/netfil

[PATCH nf-next 70/84] ipvs: Pass ipvs into ensure_mtu_is adequate

2015-09-23 Thread Simon Horman
From: "Eric W. Biederman" This allows two different ways for computing/guessing net to be removed from ensure_mtu_is_adequate. Signed-off-by: "Eric W. Biederman" Acked-by: Julian Anastasov Signed-off-by: Simon Horman --- net/netfilter/ipvs/ip_vs_xmit.c | 11 +-

[PATCH nf-next 59/84] ipvs: Pass ipvs not net into init_netns and exit_netns

2015-09-23 Thread Simon Horman
From: "Eric W. Biederman" Signed-off-by: "Eric W. Biederman" Acked-by: Julian Anastasov Signed-off-by: Simon Horman --- include/net/ip_vs.h | 4 ++-- net/netfilter/ipvs/ip_vs_proto.c | 4 ++-- net/netfilter/ipvs/ip_vs_proto_sctp.c | 6 ++

[PATCH nf-next 64/84] ipvs: Pass ipvs not net into ip_vs_conn_net_flush

2015-09-23 Thread Simon Horman
From: "Eric W. Biederman" Signed-off-by: "Eric W. Biederman" Acked-by: Julian Anastasov Signed-off-by: Simon Horman --- net/netfilter/ipvs/ip_vs_conn.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/net/netfilter/ipvs/ip_vs_conn.c b/net/netfilt

[PATCH nf-next 73/84] ipvs: Simplify ipvs and net access in ip_vs_leave

2015-09-23 Thread Simon Horman
From: "Eric W. Biederman" Stop using the hack skb_net(skb) to compute the network namespace. Signed-off-by: "Eric W. Biederman" Acked-by: Julian Anastasov Signed-off-by: Simon Horman --- net/netfilter/ipvs/ip_vs_core.c | 8 ++-- 1 file changed, 2 insertions(+),

[PATCH nf-next 35/84] ipvs: Pass ipvs not net to make_send_sock

2015-09-23 Thread Simon Horman
From: "Eric W. Biederman" Signed-off-by: "Eric W. Biederman" Acked-by: Julian Anastasov Signed-off-by: Simon Horman --- net/netfilter/ipvs/ip_vs_sync.c | 7 +++ 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/net/netfilter/ipvs/ip_vs_sync.c b/net/netfilt

[PATCH nf-next 14/84] ipvs: Pass ipvs not net to ip_vs_find_dest

2015-09-23 Thread Simon Horman
From: "Eric W. Biederman" Signed-off-by: "Eric W. Biederman" Acked-by: Julian Anastasov Signed-off-by: Simon Horman --- include/net/ip_vs.h | 2 +- net/netfilter/ipvs/ip_vs_conn.c | 2 +- net/netfilter/ipvs/ip_vs_ctl.c | 4 ++-- net/netfilter/ipvs/ip_vs_sy

[PATCH nf-next 01/84] ipvs: Hoist computation of ipvs earlier in sctp_conn_schedule

2015-09-23 Thread Simon Horman
From: "Eric W. Biederman" The addition of sysctl_sloppy_sctp in sctp_conn_schedule resulted in a use of ipvs before it was computed. Hoist the computation of ipvs earlier to avoid this problem. Signed-off-by: "Eric W. Biederman" Acked-by: Julian Anastasov Signed-

[PATCH nf-next 54/84] ipvs: Pass ipvs not net to register_ip_vs_app_inc

2015-09-23 Thread Simon Horman
From: "Eric W. Biederman" Signed-off-by: "Eric W. Biederman" Acked-by: Julian Anastasov Signed-off-by: Simon Horman --- include/net/ip_vs.h| 2 +- net/netfilter/ipvs/ip_vs_app.c | 3 +-- net/netfilter/ipvs/ip_vs_ftp.c | 2 +- 3 files changed, 3 insertions(+),

[PATCH nf-next 09/84] ipvs: Pass ipvs not net to __ip_vs_svc_fwm_find

2015-09-23 Thread Simon Horman
From: "Eric W. Biederman" ipvs is what the code actually wants to use. Signed-off-by: "Eric W. Biederman" Acked-by: Julian Anastasov Signed-off-by: Simon Horman --- net/netfilter/ipvs/ip_vs_ctl.c | 15 --- 1 file changed, 8 insertions(+), 7 deletions(

[PATCH nf-next 41/84] ipvs: Pass ipvs not net to ip_vs_proc_conn

2015-09-23 Thread Simon Horman
From: "Eric W. Biederman" Signed-off-by: "Eric W. Biederman" Acked-by: Julian Anastasov Signed-off-by: Simon Horman --- net/netfilter/ipvs/ip_vs_sync.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/net/netfilter/ipvs/ip_vs_sync.c

[PATCH nf-next 39/84] ipvs: Pass ipvs not net to ip_vs_sync_conn_v0

2015-09-23 Thread Simon Horman
From: "Eric W. Biederman" Signed-off-by: "Eric W. Biederman" Acked-by: Julian Anastasov Signed-off-by: Simon Horman --- net/netfilter/ipvs/ip_vs_sync.c | 7 +++ 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/net/netfilter/ipvs/ip_vs_sync.c b/net/netfilt

[PATCH nf-next 06/84] ipvs: Pass ipvs not net to ip_vs_fill_conn

2015-09-23 Thread Simon Horman
From: "Eric W. Biederman" ipvs is what is actually desired so change the parameter and the modify the callers to pass struct netns_ipvs. Signed-off-by: "Eric W. Biederman" Acked-by: Julian Anastasov Signed-off-by: Simon Horman --- include/net/ip_vs.h

[PATCH nf-next 61/84] ipvs: Pass ipvs into .conn_in_get and ip_vs_conn_in_get_proto

2015-09-23 Thread Simon Horman
From: "Eric W. Biederman" Stop relying on "net_ipvs(skb_net(skb))" to derive the ipvs as skb_net is a hack. Signed-off-by: "Eric W. Biederman" Acked-by: Julian Anastasov Signed-off-by: Simon Horman --- include/net/ip_vs.h | 6 -- n

[PATCH nf-next 16/84] ipvs: Pass ipvs not net to __ip_vs_del_dest

2015-09-23 Thread Simon Horman
From: "Eric W. Biederman" Signed-off-by: "Eric W. Biederman" Acked-by: Julian Anastasov Signed-off-by: Simon Horman --- net/netfilter/ipvs/ip_vs_ctl.c | 10 -- 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/net/netfilter/ipvs/ip_vs_ctl.c

[PATCH nf-next 45/84] ipvs: Pass ipvs not net to ip_vs_genl_set_config

2015-09-23 Thread Simon Horman
From: "Eric W. Biederman" Signed-off-by: "Eric W. Biederman" Acked-by: Julian Anastasov Signed-off-by: Simon Horman --- net/netfilter/ipvs/ip_vs_ctl.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/net/netfilter/ipvs/ip_vs_ctl.c b/net/netfil

[PATCH nf-next 51/84] ipvs: Pass ipvs not net to ip_vs_estimator_net_init and ip_vs_estimator_cleanup

2015-09-23 Thread Simon Horman
From: "Eric W. Biederman" Signed-off-by: "Eric W. Biederman" Acked-by: Julian Anastasov Signed-off-by: Simon Horman --- include/net/ip_vs.h | 4 ++-- net/netfilter/ipvs/ip_vs_core.c | 6 +++--- net/netfilter/ipvs/ip_vs_est.c | 8 +++- 3 files changed,

[PATCH nf-next 04/84] ipvs: Store ipvs not net in struct ip_vs_conn

2015-09-23 Thread Simon Horman
W. Biederman" Acked-by: Julian Anastasov Signed-off-by: Simon Horman --- include/net/ip_vs.h | 31 +-- net/netfilter/ipvs/ip_vs_conn.c | 30 +++--- net/netfilter/ipvs/ip_vs_ftp.c| 6 +++--- net/netfilter

[PATCH nf-next 13/84] ipvs: Pass ipvs not net to ip_vs_has_real_service

2015-09-23 Thread Simon Horman
From: "Eric W. Biederman" Signed-off-by: "Eric W. Biederman" Acked-by: Julian Anastasov Signed-off-by: Simon Horman --- include/net/ip_vs.h | 2 +- net/netfilter/ipvs/ip_vs_core.c | 6 -- net/netfilter/ipvs/ip_vs_ctl.c | 3 +-- 3 files changed, 6 insert

[PATCH nf-next 17/84] ipvs: Pass ipvs not net to ip_vs_dest_trash_expire

2015-09-23 Thread Simon Horman
From: "Eric W. Biederman" Signed-off-by: "Eric W. Biederman" Acked-by: Julian Anastasov Signed-off-by: Simon Horman --- net/netfilter/ipvs/ip_vs_ctl.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/net/netfilter/ipvs/ip_vs_ctl.c b/net/netfil

[PATCH nf-next 15/84] ipvs: Pass ipvs not net to ip_vs_trash_cleanup

2015-09-23 Thread Simon Horman
From: "Eric W. Biederman" Signed-off-by: "Eric W. Biederman" Acked-by: Julian Anastasov Signed-off-by: Simon Horman --- net/netfilter/ipvs/ip_vs_ctl.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/net/netfilter/ipvs/ip_vs_ctl.c b/net/netfil

[PATCH nf-next 05/84] ipvs: Store ipvs not net in struct ip_vs_conn_param

2015-09-23 Thread Simon Horman
p_vs_conn in a hash table replace comparisons of cp->net with comparisons of cp->ipvs which is possible now that ipvs is present in ip_vs_conn_param. Signed-off-by: "Eric W. Biederman" Acked-by: Julian Anastasov Signed-off-by: Simon Horman --- include/net/ip_vs.h

[PATCH nf-next 36/84] ipvs: Pass ipvs not net to make_receive_sock

2015-09-23 Thread Simon Horman
From: "Eric W. Biederman" Signed-off-by: "Eric W. Biederman" Acked-by: Julian Anastasov Signed-off-by: Simon Horman --- net/netfilter/ipvs/ip_vs_sync.c | 7 +++ 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/net/netfilter/ipvs/ip_vs_sync.c b/net/netfilt

[PATCH nf-next 18/84] ipvs: Cache ipvs in ip_vs_genl_set_cmd

2015-09-23 Thread Simon Horman
From: "Eric W. Biederman" Compute ipvs early in ip_vs_genl_set_cmd and use the cached value to access ipvs->sync_state. Signed-off-by: "Eric W. Biederman" Acked-by: Julian Anastasov Signed-off-by: Simon Horman --- net/netfilter/ipvs/ip_vs_ctl.c | 4 +++- 1 file chan

[PATCH nf-next 52/84] ipvs: Pass ipvs not net into register_app and unregister_app

2015-09-23 Thread Simon Horman
From: "Eric W. Biederman" Signed-off-by: "Eric W. Biederman" Acked-by: Julian Anastasov Signed-off-by: Simon Horman --- include/net/ip_vs.h | 4 ++-- net/netfilter/ipvs/ip_vs_app.c| 6 -- net/netfilter/ipvs/ip_vs_proto_sctp.c | 7 +++

[PATCH nf-next 37/84] ipvs: Store ipvs not net in struct ip_vs_sync_thread_data

2015-09-23 Thread Simon Horman
ric W. Biederman" Acked-by: Julian Anastasov Signed-off-by: Simon Horman --- net/netfilter/ipvs/ip_vs_sync.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/net/netfilter/ipvs/ip_vs_sync.c b/net/netfilter/ipvs/ip_vs_sync.c index 304eade977d2..cd32e3ab0c4d 10

[PATCH nf-next 02/84] ipvs: Don't use current in proc_do_defense_mode

2015-09-23 Thread Simon Horman
From: "Eric W. Biederman" Instead store ipvs in extra2 so that proc_do_defense_mode can easily find the ipvs that it's value is associated with. Signed-off-by: "Eric W. Biederman" Acked-by: Julian Anastasov Signed-off-by: Simon Horman --- net/netfilter/ipvs/ip_vs_c

[PATCH nf-next 55/84] ipvs: Pass ipvs not net to register_ip_vs_app and unregister_ip_vs_app

2015-09-23 Thread Simon Horman
From: "Eric W. Biederman" Also move the tests for net_ipvs being NULL into __ip_vs_ftp_init and __ip_vs_ftp_exit. The only places where they possibly make sense. Signed-off-by: "Eric W. Biederman" Acked-by: Julian Anastasov Signed-off-by: Simon Horman ---

[PATCH nf-next 07/84] ipvs: Store ipvs not net in struct ip_vs_service

2015-09-23 Thread Simon Horman
re searching for an svc and filtering by net filter by ipvs instead. Signed-off-by: "Eric W. Biederman" Acked-by: Julian Anastasov Signed-off-by: Simon Horman --- include/net/ip_vs.h | 2 +- net/netfilter/ipvs/ip_vs_core.c | 10 +++ net/netf

[PATCH nf-next 47/84] ipvs: Pass ipvs not net to ip_vs_random_drop_entry

2015-09-23 Thread Simon Horman
From: "Eric W. Biederman" Signed-off-by: "Eric W. Biederman" Acked-by: Julian Anastasov Signed-off-by: Simon Horman --- include/net/ip_vs.h | 2 +- net/netfilter/ipvs/ip_vs_conn.c | 4 ++-- net/netfilter/ipvs/ip_vs_ctl.c | 2 +- 3 files changed, 4 insert

[PATCH nf-next 11/84] ipvs: Pass ipvs not net to __ip_vs_service_find

2015-09-23 Thread Simon Horman
From: "Eric W. Biederman" Signed-off-by: "Eric W. Biederman" Acked-by: Julian Anastasov Signed-off-by: Simon Horman --- net/netfilter/ipvs/ip_vs_ctl.c | 17 - 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/net/netfilter/ipvs/ip_vs_ctl.c

[PATCH nf-next 21/84] ipvs: Pass ipvs not net to ip_vs_service_net_cleanup

2015-09-23 Thread Simon Horman
From: "Eric W. Biederman" Signed-off-by: "Eric W. Biederman" Acked-by: Julian Anastasov Signed-off-by: Simon Horman --- include/net/ip_vs.h | 2 +- net/netfilter/ipvs/ip_vs_core.c | 6 -- net/netfilter/ipvs/ip_vs_ctl.c | 3 +-- 3 files changed, 6 insert

[PATCH nf-next 26/84] ipvs: Pass ipvs not net to __ip_vs_get_service_entries

2015-09-23 Thread Simon Horman
From: "Eric W. Biederman" Signed-off-by: "Eric W. Biederman" Acked-by: Julian Anastasov Signed-off-by: Simon Horman --- net/netfilter/ipvs/ip_vs_ctl.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/net/netfilter/ipvs/ip_vs_ctl.c b/net/netfil

[PATCH nf-next 22/84] ipvs: Pass ipvs not net to ip_vs_zero_all

2015-09-23 Thread Simon Horman
From: "Eric W. Biederman" Signed-off-by: "Eric W. Biederman" Acked-by: Julian Anastasov Signed-off-by: Simon Horman --- net/netfilter/ipvs/ip_vs_ctl.c | 7 +++ 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/net/netfilter/ipvs/ip_vs_ctl.c b/net/netfil

[PATCH nf-next 20/84] ipvs: Pass ipvs not net to ip_vs_flush

2015-09-23 Thread Simon Horman
From: "Eric W. Biederman" Signed-off-by: "Eric W. Biederman" Acked-by: Julian Anastasov Signed-off-by: Simon Horman --- net/netfilter/ipvs/ip_vs_ctl.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/net/netfilter/ipvs/ip_vs_ctl.c

[PATCH nf-next 10/84] ipvs: Pass ipvs not net to ip_vs_svc_hashkey

2015-09-23 Thread Simon Horman
From: "Eric W. Biederman" Use the address of ipvs not the address of net when computing the hash value. This removes an unncessary dependency on struct net. Signed-off-by: "Eric W. Biederman" Acked-by: Julian Anastasov Signed-off-by: Simon Horman --- net/netfilter/

[PATCH nf-next 32/84] ipvs: Pass ipvs not net to ip_vs_genl_del_daemon

2015-09-23 Thread Simon Horman
From: "Eric W. Biederman" Signed-off-by: "Eric W. Biederman" Acked-by: Julian Anastasov Signed-off-by: Simon Horman --- net/netfilter/ipvs/ip_vs_ctl.c | 7 +++ 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/net/netfilter/ipvs/ip_vs_ctl.c b/net/netfil

[PATCH nf-next 25/84] ipvs: Pass ipvs not net to ip_vs_set_timeout

2015-09-23 Thread Simon Horman
From: "Eric W. Biederman" Signed-off-by: "Eric W. Biederman" Acked-by: Julian Anastasov Signed-off-by: Simon Horman --- net/netfilter/ipvs/ip_vs_ctl.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/net/netfilter/ipvs/ip_vs_ctl.c b/net/netfil

[PATCH nf-next 28/84] ipvs: Pass ipvs not net to __ip_vs_get_timeouts

2015-09-23 Thread Simon Horman
From: "Eric W. Biederman" Signed-off-by: "Eric W. Biederman" Acked-by: Julian Anastasov Signed-off-by: Simon Horman --- net/netfilter/ipvs/ip_vs_ctl.c | 11 ++- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/net/netfilter/ipvs/ip_vs_ctl.c

[PATCH nf-next 03/84] ipvs: Use state->net in the ipvs forward functions

2015-09-23 Thread Simon Horman
From: "Eric W. Biederman" Signed-off-by: "Eric W. Biederman" Acked-by: Julian Anastasov Signed-off-by: Simon Horman --- net/netfilter/ipvs/ip_vs_core.c | 8 ++-- 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/net/netfilter/ipvs/ip_vs_core.c

[PATCH nf-next 29/84] ipvs: Pass ipvs not net to ip_vs_genl_parse_service

2015-09-23 Thread Simon Horman
From: "Eric W. Biederman" Signed-off-by: "Eric W. Biederman" Acked-by: Julian Anastasov Signed-off-by: Simon Horman --- net/netfilter/ipvs/ip_vs_ctl.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/net/netfilter/ipvs/ip_vs_ctl.c b/net/netfil

[PATCH nf-next 27/84] ipvs: Pass ipvs not net to __ip_vs_get_dest_entries

2015-09-23 Thread Simon Horman
From: "Eric W. Biederman" Signed-off-by: "Eric W. Biederman" Acked-by: Julian Anastasov Signed-off-by: Simon Horman --- net/netfilter/ipvs/ip_vs_ctl.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/net/netfilter/ipvs/ip_vs_ctl.c b/net/netfil

[PATCH nf-next 31/84] ipvs: Pass ipvs not net to ip_vs_genl_new_daemon

2015-09-23 Thread Simon Horman
From: "Eric W. Biederman" Signed-off-by: "Eric W. Biederman" Acked-by: Julian Anastasov Signed-off-by: Simon Horman --- net/netfilter/ipvs/ip_vs_ctl.c | 7 +++ 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/net/netfilter/ipvs/ip_vs_ctl.c b/net/netfil

[PATCH nf-next 24/84] ipvs: Pass ipvs not net to ip_vs_proto_data_get

2015-09-23 Thread Simon Horman
From: "Eric W. Biederman" Signed-off-by: "Eric W. Biederman" Acked-by: Julian Anastasov Signed-off-by: Simon Horman --- include/net/ip_vs.h | 2 +- net/netfilter/ipvs/ip_vs_conn.c | 4 ++-- net/netfilter/ipvs/ip_vs_core.c | 8

[PATCH nf-next 23/84] ipvs: Cache ipvs in ip_vs_in_icmp and ip_vs_in_icmp_v6

2015-09-23 Thread Simon Horman
Anastasov Signed-off-by: Simon Horman --- net/netfilter/ipvs/ip_vs_core.c | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/net/netfilter/ipvs/ip_vs_core.c b/net/netfilter/ipvs/ip_vs_core.c index 787d561e200b..77dcd3ed27de 100644 --- a/net/netfilter/ipvs/ip_vs_core.c

[PATCH nf-next 38/84] ipvs: Pass ipvs not net to ip_vs_process_message

2015-09-23 Thread Simon Horman
From: "Eric W. Biederman" Signed-off-by: "Eric W. Biederman" Acked-by: Julian Anastasov Signed-off-by: Simon Horman --- net/netfilter/ipvs/ip_vs_sync.c | 7 +++ 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/net/netfilter/ipvs/ip_vs_sync.c b/net/netfilt

[PATCH nf-next 08/84] ipvs: Pass ipvs not net to ip_vs_svc_fwm_hashkey

2015-09-23 Thread Simon Horman
From: "Eric W. Biederman" Signed-off-by: "Eric W. Biederman" Acked-by: Julian Anastasov Signed-off-by: Simon Horman --- net/netfilter/ipvs/ip_vs_ctl.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/net/netfilter/ipvs/ip_vs_ctl.c b/net/netfil

[PATCH nf-next 43/84] ipvs: Pass ipvs not net to ip_vs_sync_net_init

2015-09-23 Thread Simon Horman
From: "Eric W. Biederman" Signed-off-by: "Eric W. Biederman" Acked-by: Julian Anastasov Signed-off-by: Simon Horman --- include/net/ip_vs.h | 2 +- net/netfilter/ipvs/ip_vs_core.c | 2 +- net/netfilter/ipvs/ip_vs_sync.c | 4 +--- 3 files changed, 3 insert

Re: [PATCH next 02/84] ipvs: Don't use current in proc_do_defense_mode

2015-09-23 Thread Simon Horman
On Tue, Sep 22, 2015 at 08:53:30PM -0500, Eric W. Biederman wrote: > Simon Horman writes: > > > On Mon, Sep 21, 2015 at 01:01:39PM -0500, Eric W. Biederman wrote: > >> Instead store ipvs in extra2 so that proc_do_defense_mode can easily > >> find the ipvs that

Re: [PATCH,v2 net-next] ipvs: skb_orphan in case of forwarding

2015-07-05 Thread Simon Horman
On Sun, Jul 05, 2015 at 03:19:27PM -0700, Alex Gartrell wrote: > On Sun, Jul 5, 2015 at 3:13 PM, Julian Anastasov wrote: > > May be the patch fixes crashes? If yes, Simon > > should apply it for ipvs/net tree, otherwise after > > the merge window... > > Yeah this is definitely a crash-fix

Re: [PATCH,v2 net-next] ipvs: skb_orphan in case of forwarding

2015-07-07 Thread Simon Horman
On Sun, Jul 05, 2015 at 09:14:38PM -0700, Alex Gartrell wrote: > On Sun, Jul 5, 2015 at 8:50 PM, Simon Horman wrote: > > Is it possible to get a 'Fixes:' tag? > > I suppose it'd be appropriate to say > > Fixes: 41063e9dd119 ("ipv4: Early TCP socket dem

Re: [PATCH,v2 net-next] ipvs: skb_orphan in case of forwarding

2015-07-08 Thread Simon Horman
On Wed, Jul 08, 2015 at 11:17:52PM +0200, Eric Dumazet wrote: > On Wed, 2015-07-08 at 13:56 -0700, Alex Gartrell wrote: > > On Tue, Jul 7, 2015 at 6:33 PM, Simon Horman wrote: > > > > > Is there any possibility you could investigate which stable trees are &g

Re: [PATCH] net-ipvs: Delete an unnecessary check before the function call "module_put"

2015-07-08 Thread Simon Horman
On Thu, Jul 02, 2015 at 05:10:41PM +0200, SF Markus Elfring wrote: > From: Markus Elfring > Date: Thu, 2 Jul 2015 17:00:14 +0200 > > The module_put() function tests whether its argument is NULL and then > returns immediately. Thus the test around the call is not needed. > > This issue was detect

Re: [PATCH net-next] rocker: add change MTU support

2015-07-08 Thread Simon Horman
On Wed, Jul 08, 2015 at 04:06:47PM -0700, sfel...@gmail.com wrote: > From: Scott Feldman > > Implement ndo_change_mtu: on MTU change, reallocate Rx ring bufs and signal > HW of new port MTU value. > > Signed-off-by: Scott Feldman Looks good :) Reviewed-by: Simon Horman

Re: [PATCH net-next 4/5] rocker: add offload_fwd_mark support

2015-07-08 Thread Simon Horman
Hi Scott, On Wed, Jul 08, 2015 at 04:16:42PM -0700, sfel...@gmail.com wrote: > From: Scott Feldman > > If device flags ingress packet as "fwd offload", mark the > skb->offlaod_fwd_mark using the ingress port's dev->offlaod_fwd_mark. This > will be the hint to the kernel that this packet has alr

Re: [PATCH net-next 5/5] switchdev: update documentation for offload_fwd_mark

2015-07-08 Thread Simon Horman
On Wed, Jul 08, 2015 at 04:16:43PM -0700, sfel...@gmail.com wrote: > From: Scott Feldman > > Signed-off-by: Scott Feldman > --- > Documentation/networking/switchdev.txt | 14 -- > 1 file changed, 12 insertions(+), 2 deletions(-) > > diff --git a/Documentation/networking/switchdev

[PATCH/RFC net-next] rocker: forward packets to CPU when a port in promiscuous mode

2015-07-08 Thread Simon Horman
CPU. Signed-off-by: Simon Horman --- drivers/net/ethernet/rocker/rocker.c | 33 + 1 file changed, 29 insertions(+), 4 deletions(-) diff --git a/drivers/net/ethernet/rocker/rocker.c b/drivers/net/ethernet/rocker/rocker.c index 2d8578cade03..9e812b85b421 1006

[PATCH nf-next] net-ipvs: Delete an unnecessary check before the function call "module_put"

2015-07-09 Thread Simon Horman
From: Markus Elfring The module_put() function tests whether its argument is NULL and then returns immediately. Thus the test around the call is not needed. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring Signed-off-by: Simon Horman --- net/netfilter

[GIT PULL nf-next] IPVS for v4.3

2015-07-09 Thread Simon Horman
please consider this cleanup from Markus Elfring which removes a redundant check before calling module_put(). Markus Elfring (1): net-ipvs: Delete an unnecessary check before the function call "module_put" net/netfilter/ipvs/ip_vs_sched.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(

Re: [PATCH/RFC net-next] rocker: forward packets to CPU when a port in promiscuous mode

2015-07-14 Thread Simon Horman
Hi Scott, On Mon, Jul 13, 2015 at 11:37:59PM -0700, Scott Feldman wrote: > On Wed, Jul 8, 2015 at 9:25 PM, Simon Horman > wrote: > > This change allows the CPU to see all packets seen by a port when the > > netdev associated with the port is in promiscuous mode. >

Re: [PATCH/RFC net-next] rocker: forward packets to CPU when a port in promiscuous mode

2015-07-14 Thread Simon Horman
On Tue, Jul 14, 2015 at 10:32:54PM -0700, Scott Feldman wrote: > On Tue, Jul 14, 2015 at 9:45 PM, Simon Horman [snip] > > How about this? > > Looks good, some inline comments... [snip] > > @@ -321,9 +322,21 @@ static u16 rocker_port_vlan_to_vid(const struct > &g

Re: [PATCH/RFC net-next] rocker: forward packets to CPU when a port in promiscuous mode

2015-07-15 Thread Simon Horman
On Wed, Jul 15, 2015 at 12:18:20AM -0700, Scott Feldman wrote: > On Tue, Jul 14, 2015 at 11:34 PM, Simon Horman > wrote: > > On Tue, Jul 14, 2015 at 10:32:54PM -0700, Scott Feldman wrote: > > >> > @@ -5263,11 +5301,16 @@ static int rocker_port_master_changed(str

[PATCH net-next] rocker: forward packets to CPU when port is joined to openvswitch

2015-07-15 Thread Simon Horman
Teach rocker to forward packets to CPU when a port is joined to Open vSwitch. There is scope to later refine what is passed up as per Open vSwitch flows on a port. This does not change the behaviour of rocker ports that are not joined to Open vSwitch. Signed-off-by: Simon Horman --- drivers

Re: [PATCH/RFC net-next] rocker: forward packets to CPU when a port in promiscuous mode

2015-07-15 Thread Simon Horman
On Wed, Jul 15, 2015 at 07:50:32AM -0700, Scott Feldman wrote: > On Wed, Jul 15, 2015 at 12:54 AM, Simon Horman > wrote: > > On Wed, Jul 15, 2015 at 12:18:20AM -0700, Scott Feldman wrote: > >> On Tue, Jul 14, 2015 at 11:34 PM, Simon Horman > >> wrote: > >&g

[PATCH nf 6/6] ipvs: call skb_sender_cpu_clear

2015-07-15 Thread Simon Horman
From: Julian Anastasov Reset XPS's sender_cpu on forwarding. Signed-off-by: Julian Anastasov Fixes: 2bd82484bb4c ("xps: fix xps for stacked devices") Signed-off-by: Simon Horman --- net/netfilter/ipvs/ip_vs_xmit.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/net

[PATCH nf 5/6] ipvs: fix crash with sync protocol v0 and FTP

2015-07-15 Thread Simon Horman
From: Julian Anastasov Fix crash in 3.5+ if FTP is used after switching sync_version to 0. Fixes: 749c42b620a9 ("ipvs: reduce sync rate with time thresholds") Signed-off-by: Julian Anastasov Signed-off-by: Simon Horman --- net/netfilter/ipvs/ip_vs_sync.c | 2 +- 1 file changed, 1

<    8   9   10   11   12   13   14   >