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

2015-09-19 Thread Eric W. Biederman
Signed-off-by: "Eric W. Biederman" --- 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 b/net/netfilter/ipvs/ip_vs_xmit.c index ec10ebf246fd..5cfd914d9a39 100644 --- a/net/netfilter/ipvs/ip_vs_xmit.

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

2015-09-19 Thread Eric W. Biederman
In practice struct netns_ipvs is as meaningful as struct net and more useful as it holds the ipvs specific data. So store a pointer to struct netns_ipvs. Update the accesses of tinfo->net to access tinfo->ipvs->net instead. Signed-off-by: "Eric W. Biederman" --- net/netfilter/ipvs/ip_vs_sync.c

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

2015-09-19 Thread Eric W. Biederman
Signed-off-by: "Eric W. Biederman" --- 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(+), 4 deletions(-) diff --git a/include/net/ip_vs.h b/include/net/ip_vs.h index a7275ae18b96..c06bad39958d 10

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

2015-09-19 Thread Eric W. Biederman
Signed-off-by: "Eric W. Biederman" --- 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/netfilter/ipvs/ip_vs_core.c index 514596b7a324..1c9c52349b7c 100644 --- a/net/netfilter/ipvs/ip_vs_core.c +++ b/net/

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

2015-09-19 Thread Eric W. Biederman
This removes the need to use the hack skb_net. Signed-off-by: "Eric W. Biederman" --- net/netfilter/ipvs/ip_vs_core.c | 15 +++ 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/net/netfilter/ipvs/ip_vs_core.c b/net/netfilter/ipvs/ip_vs_core.c index 9967c9fac7f7..22eae023

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

2015-09-19 Thread 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" --- net/netfilter/ipvs/ip_vs_xmit.c | 11 +-- 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/net/netfilter/ipvs/ip_vs_xmit.c b/net/netfil

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

2015-09-19 Thread Eric W. Biederman
Signed-off-by: "Eric W. Biederman" --- 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 b/net/netfilter/ipvs/ip_vs_sync.c index a0808f230cd6..98180904ccd2 100644 --- a/net/netfilter/ipvs/ip_vs_sync.c +

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

2015-09-19 Thread Eric W. Biederman
Signed-off-by: "Eric W. Biederman" --- include/net/ip_vs.h | 4 ++-- net/netfilter/ipvs/ip_vs_app.c| 6 -- net/netfilter/ipvs/ip_vs_proto_sctp.c | 7 +++ net/netfilter/ipvs/ip_vs_proto_tcp.c | 7 +++ net/netfilter/ipvs/ip_vs_proto_udp.c | 7 +++ 5 files

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

2015-09-19 Thread Eric W. Biederman
Signed-off-by: "Eric W. Biederman" --- 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 b/net/netfilter/ipvs/ip_vs_ctl.c index 3911cf03fef9..9a56256502b6 100644 --- a/net/netfilter/ipvs/ip_vs_ctl.c

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

2015-09-19 Thread 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" --- net/netfilter/ipvs/ip_vs_core.c | 15 ++- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/net/netfilter

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

2015-09-19 Thread Eric W. Biederman
Signed-off-by: "Eric W. Biederman" --- 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/netfilter/ipvs/ip_vs_ctl.c index 85a2f2699a18..851bd121ed94 100644 --- a/net/netfilter/ipvs/ip_vs_ctl.c +++ b/net/net

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

2015-09-19 Thread Eric W. Biederman
Signed-off-by: "Eric W. Biederman" --- 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_sync.c | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/include/net/ip_vs.h b/include/net

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

2015-09-19 Thread Eric W. Biederman
Signed-off-by: "Eric W. Biederman" --- include/net/ip_vs.h | 2 +- net/netfilter/ipvs/ip_vs_conn.c | 4 ++-- net/netfilter/ipvs/ip_vs_core.c | 8 net/netfilter/ipvs/ip_vs_ctl.c| 12 +++- net/netfilter/ipvs/ip_vs_proto.c | 12 ++---

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

2015-09-19 Thread Eric W. Biederman
Signed-off-by: "Eric W. Biederman" --- 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/netfilter/ipvs/ip_vs_app.c index f20f72c4ac80..951516b7783b 100644 --- a/net/netfilter/ipvs/ip_vs_app.c +++ b/net/ne

[PATCH next 82/84] ipvs: Remove skb_net

2015-09-19 Thread Eric W. Biederman
This hack has no more users so remove it. Signed-off-by: "Eric W. Biederman" --- include/net/ip_vs.h | 31 --- 1 file changed, 31 deletions(-) diff --git a/include/net/ip_vs.h b/include/net/ip_vs.h index 00318d63a565..d621330d423c 100644 --- a/include/net/ip_vs.h +++

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

2015-09-19 Thread Eric W. Biederman
Move the hack of relying on "net_ipvs(skb_net(skb))" to dreive the ipvs up a layer. Signed-off-by: "Eric W. Biederman" --- include/net/ip_vs.h | 6 -- net/netfilter/ipvs/ip_vs_conn.c | 4 ++-- net/netfilter/ipvs/ip_vs_core.c | 8 +--- net/netfilter/ipv

[PATCH next 33/84] ipvs: Pass ipvs not net to start_sync_thread

2015-09-19 Thread Eric W. Biederman
Signed-off-by: "Eric W. Biederman" --- include/net/ip_vs.h | 2 +- net/netfilter/ipvs/ip_vs_ctl.c | 4 ++-- net/netfilter/ipvs/ip_vs_sync.c | 11 +-- 3 files changed, 8 insertions(+), 9 deletions(-) diff --git a/include/net/ip_vs.h b/include/net/ip_vs.h index 3c077e8a038c.

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

2015-09-19 Thread Eric W. Biederman
Signed-off-by: "Eric W. Biederman" --- 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, 8 insertions(+), 10 deletions(-) diff --git a/include/net/ip_vs.h b/include/net/ip_vs.h index 38c1fca0c1a7..

[PATCH next 83/84] ipvs: Remove skb_sknet

2015-09-19 Thread Eric W. Biederman
This function adds no real value and it obscures what the code is doing. Signed-off-by: "Eric W. Biederman" --- include/net/ip_vs.h| 22 -- net/netfilter/ipvs/ip_vs_ctl.c | 25 ++--- 2 files changed, 10 insertions(+), 37 deletions(-) diff --gi

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

2015-09-19 Thread Eric W. Biederman
Signed-off-by: "Eric W. Biederman" --- 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/netfilter/ipvs/ip_vs_app.c index 4a2daa3976c6..cb1246912f0f 100644 --- a/net/netfilter/ipvs/ip_vs_app.c +++ b/net/ne

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

2015-09-19 Thread 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" --- include/net/ip_vs.h | 2 +- net/netfilter/ipvs/ip_vs_ftp.c | 8 ++-- net/netfilter/ipvs/ip_vs_proto_tcp.c | 4 ++--

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

2015-09-19 Thread Eric W. Biederman
Signed-off-by: "Eric W. Biederman" --- 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, 8 insertions(+), 10 deletions(-) diff --git a/include/net/ip_vs.h b/include/net/ip_vs.h index f0a39ce3bf0

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

2015-09-19 Thread 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" --- include/net/ip_vs.h| 4 ++-- net/netfilter/ipvs/ip_vs_app.c | 16 +--- net/netfilter/ipvs/ip_vs

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

2015-09-19 Thread Eric W. Biederman
Signed-off-by: "Eric W. Biederman" --- 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 b/net/netfilter/ipvs/ip_vs_ctl.c index ee2ec40d0f12..4f08611347a2 100644 --- a/net/netfilter/ipvs/ip_vs_ctl.c +++ b/n

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

2015-09-19 Thread Eric W. Biederman
Signed-off-by: "Eric W. Biederman" --- 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/netfilter/ipvs/ip_vs_ctl.c index d3407ad866bb..591f528e4ed6 100644 --- a/net/netfilter/ipvs/ip_vs_ctl.c +++ b/net/n

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

2015-09-19 Thread 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" --- include/net/ip_vs.h | 3 ++- net/netfilter/ipvs/ip_vs_core.c | 11 ++- net/netfilter/ipvs/ip_vs_proto_ah_esp.c | 3 ++- net/ne

[PATCH next 26/84] ipvs: Pass ipvs not net to __ip_vs_get_servie_entries

2015-09-19 Thread Eric W. Biederman
Signed-off-by: "Eric W. Biederman" --- 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/netfilter/ipvs/ip_vs_ctl.c index 81eb3ed4ce90..9c307a822962 100644 --- a/net/netfilter/ipvs/ip_vs_ctl.c +++ b/net/net

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

2015-09-19 Thread Eric W. Biederman
Signed-off-by: "Eric W. Biederman" --- 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/netfilter/ipvs/ip_vs_sync.c index 98180904ccd2..e3f72cbc1204 100644 --- a/net/netfilter/ipvs/ip_vs_sync.c +++ b/net

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

2015-09-19 Thread Eric W. Biederman
Signed-off-by: "Eric W. Biederman" --- include/net/ip_vs.h | 4 ++-- net/netfilter/ipvs/ip_vs_proto.c | 4 ++-- net/netfilter/ipvs/ip_vs_proto_sctp.c | 6 ++ net/netfilter/ipvs/ip_vs_proto_tcp.c | 6 ++ net/netfilter/ipvs/ip_vs_proto_udp.c | 6 ++ 5 files chan

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

2015-09-19 Thread Eric W. Biederman
Signed-off-by: "Eric W. Biederman" --- 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/netfilter/ipvs/ip_vs_conn.c index 76cdb6c06a52..43b7a7d2ba4d 100644 --- a/net/netfilter/ipvs/ip_vs_conn.c +++ b/n

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

2015-09-19 Thread Eric W. Biederman
Signed-off-by: "Eric W. Biederman" --- 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/netfilter/ipvs/ip_vs_sync.c index dc987762ca2c..304eade977d2 100644 --- a/net/netfilter/ipvs/ip_vs_sync.c +++ b/n

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

2015-09-19 Thread Eric W. Biederman
Signed-off-by: "Eric W. Biederman" --- 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/netfilter/ipvs/ip_vs_core.c index 15661691bf7d..b25fb3309472 100644 --- a/net/netfilter/ipvs/ip_vs_core.c +++ b/n

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

2015-09-19 Thread Eric W. Biederman
Signed-off-by: "Eric W. Biederman" --- 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 insertions(+), 5 deletions(-) diff --git a/include/net/ip_vs.h b/include/net/ip_vs.h index 828b19b23e02..b93ee28f

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

2015-09-19 Thread Eric W. Biederman
Signed-off-by: "Eric W. Biederman" --- 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 b/net/netfilter/ipvs/ip_vs_ctl.c index 7f0635242c7f..51dab90bf184 100644 --- a/net/netfilter/ipvs/ip_vs_ctl.c +++ b/n

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

2015-09-19 Thread Eric W. Biederman
Signed-off-by: "Eric W. Biederman" --- 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/netfilter/ipvs/ip_vs_ctl.c index 9dab372ceedb..30ed3a93bf22 100644 --- a/net/netfilter/ipvs/ip_vs_ctl.c +++ b/net/n

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

2015-09-19 Thread Eric W. Biederman
This removes the need to compute ipvs with the hack "net_ipvs(skb_net(skb))" Signed-off-by: "Eric W. Biederman" --- net/netfilter/ipvs/ip_vs_core.c | 15 +++ 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/net/netfilter/ipvs/ip_vs_core.c b/net/netfilter/ipvs/ip_vs_core.

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

2015-09-19 Thread Eric W. Biederman
This will be needed later when the network namespace guessing is removed from ip_defrag Signed-off-by: "Eric W. Biederman" --- net/netfilter/ipvs/ip_vs_core.c | 9 + 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/net/netfilter/ipvs/ip_vs_core.c b/net/netfilter/ipvs/ip_vs_

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

2015-09-19 Thread Eric W. Biederman
Stop using the hack skb_net(skb) to compute the network namespace. Signed-off-by: "Eric W. Biederman" --- 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 b/net/netfilter/ipvs/ip_vs_core.c index 7e9ee1dece

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

2015-09-19 Thread Eric W. Biederman
Signed-off-by: "Eric W. Biederman" --- 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/netfilter/ipvs/ip_vs_ctl.c index 4ca8d64ab6f1..1e3fc8962627 100644 --- a/net/netfilter/ipvs/ip_vs_ctl.c +++ b/net/

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

2015-09-19 Thread Eric W. Biederman
Signed-off-by: "Eric W. Biederman" --- include/net/ip_vs.h| 4 ++-- net/netfilter/ipvs/ip_vs_ctl.c | 12 ++-- net/netfilter/ipvs/ip_vs_est.c | 6 ++ 3 files changed, 10 insertions(+), 12 deletions(-) diff --git a/include/net/ip_vs.h b/include/net/ip_vs.h index f3ddf7696

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

2015-09-19 Thread Eric W. Biederman
Signed-off-by: "Eric W. Biederman" --- 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/netfilter/ipvs/ip_vs_ctl.c index 4f08611347a2..9169a27be6e7 100644 --- a/net/netfilter/ipvs/ip_vs_ctl.c +++ b/net/net

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

2015-09-19 Thread Eric W. Biederman
Signed-off-by: "Eric W. Biederman" --- 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/netfilter/ipvs/ip_vs_ctl.c index 30ed3a93bf22..6a8238adda02 100644 --- a/net/netfilter/ipvs/ip_vs_ctl.c +++ b/net/n

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

2015-09-19 Thread Eric W. Biederman
Signed-off-by: "Eric W. Biederman" --- net/netfilter/ipvs/ip_vs_xmit.c | 21 + 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/net/netfilter/ipvs/ip_vs_xmit.c b/net/netfilter/ipvs/ip_vs_xmit.c index 5cfd914d9a39..13a678a63ed5 100644 --- a/net/netfilter/ipvs/ip_v

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

2015-09-19 Thread Eric W. Biederman
Signed-off-by: "Eric W. Biederman" --- 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 insertions(+), 7 deletions(-) diff --git a/include/net/ip_vs.h b/include/net/ip_vs.h index dd7cd3a48fd4..71f4d3

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

2015-09-19 Thread Eric W. Biederman
Signed-off-by: "Eric W. Biederman" --- 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/netfilter/ipvs/ip_vs_ctl.c index 9c307a822962..176068c3a7fe 100644 --- a/net/netfilter/ipvs/ip_vs_ctl.c +++ b/net/net

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

2015-09-19 Thread Eric W. Biederman
Signed-off-by: "Eric W. Biederman" --- 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 b/net/netfilter/ipvs/ip_vs_ctl.c index 176068c3a7fe..4ca8d64ab6f1 100644 --- a/net/netfilter/ipvs/ip_vs_ctl.c +++ b/

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

2015-09-19 Thread 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" --- net/netfilter/ipvs/ip_vs_xmit.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/net/netfilter/ipvs/ip_vs_xmit.c b/net/netfi

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

2015-09-19 Thread Eric W. Biederman
Signed-off-by: "Eric W. Biederman" --- 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 b/net/netfilter/ipvs/ip_vs_proto.c index 82ccfd2f235c..fb581babe5e2 100644 --- a/net/netfilter/ipvs/ip_vs_pr

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

2015-09-19 Thread 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" --- net/netfilter/ipvs/ip_vs_core.c | 14 +- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/net/netfilter/i

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

2015-09-19 Thread Eric W. Biederman
With sysctl_cache_bypass now a compile time constant the compiler can figue out that it can elimiate all of the code that depends on sysctl_cache_bypass being true. Also remove the duplicate computation of net previously necessitated by #ifdef CONFIG_SYSCTL Signed-off-by: "Eric W. Biederman" ---

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

2015-09-19 Thread Eric W. Biederman
Signed-off-by: "Eric W. Biederman" --- 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/netfilter/ipvs/ip_vs_ctl.c index 1e3fc8962627..9dab372ceedb 100644 --- a/net/netfilter/ipvs/ip_vs_ctl.c +++ b/net/

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

2015-09-19 Thread Eric W. Biederman
Use the address of struct netns_ipvs in the hash not the address of struct net. Both addresses are equally valid candidates and by using the address of struct netns_ipvs there becomes no need deal with struct net in this part of the code. Signed-off-by: "Eric W. Biederman" --- net/netfilter/ipv

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

2015-09-19 Thread Eric W. Biederman
Signed-off-by: "Eric W. Biederman" --- 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 insertions(+), 5 deletions(-) diff --git a/include/net/ip_vs.h b/include/net/ip_vs.h index 47a4cddb7c33..f3ddf7696

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

2015-09-19 Thread Eric W. Biederman
Signed-off-by: "Eric W. Biederman" --- include/net/ip_vs.h | 4 ++-- net/netfilter/ipvs/ip_vs_app.c | 9 + net/netfilter/ipvs/ip_vs_core.c | 6 +++--- 3 files changed, 10 insertions(+), 9 deletions(-) diff --git a/include/net/ip_vs.h b/include/net/ip_vs.h index 5caafed5af2e.

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

2015-09-19 Thread Eric W. Biederman
Signed-off-by: "Eric W. Biederman" --- 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 insertions(+), 5 deletions(-) diff --git a/include/net/ip_vs.h b/include/net/ip_vs.h index b10b337ce974..47a4cddb7c3

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

2015-09-19 Thread Eric W. Biederman
Signed-off-by: "Eric W. Biederman" --- 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 b/net/netfilter/ipvs/ip_vs_ctl.c index 67278c6e41a3..1665db8e9f2a 100644 --- a/net/netfilter/ipvs/ip_vs_ctl.c +

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

2015-09-19 Thread 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" --- net/netfilter/ipvs/ip_vs_ctl.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/net/netfilter/ipvs/ip_vs_ctl.c b/net/netfilter/ipvs/ip_vs_ctl

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

2015-09-19 Thread Eric W. Biederman
Signed-off-by: "Eric W. Biederman" --- 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/netfilter/ipvs/ip_vs_sync.c index 280e1c03e598..58ec7850ab06 100644 --- a/net/netfilter/ipvs/ip_vs_sync.c +++ b/n

[PATCH next 19/84] ipvs: Pass ipvs not net to ip_vs_add_service

2015-09-19 Thread Eric W. Biederman
Signed-off-by: "Eric W. Biederman" --- net/netfilter/ipvs/ip_vs_ctl.c | 9 - 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/net/netfilter/ipvs/ip_vs_ctl.c b/net/netfilter/ipvs/ip_vs_ctl.c index b192bb45f697..7f0635242c7f 100644 --- a/net/netfilter/ipvs/ip_vs_ctl.c +++ b/net

[PATCH next 12/84] ipvs: Pass ipvs not net to ipvs_service_find

2015-09-19 Thread Eric W. Biederman
Signed-off-by: "Eric W. Biederman" --- include/net/ip_vs.h | 2 +- net/netfilter/ipvs/ip_vs_ctl.c| 5 ++--- net/netfilter/ipvs/ip_vs_proto_sctp.c | 4 ++-- net/netfilter/ipvs/ip_vs_proto_tcp.c | 4 ++-- net/netfilter/ipvs/ip_vs_proto_udp.c | 6 -- 5 files changed,

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

2015-09-19 Thread Eric W. Biederman
Signed-off-by: "Eric W. Biederman" --- 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 insertions(+), 4 deletions(-) diff --git a/include/net/ip_vs.h b/include/net/ip_vs.h index 2d49357b328c..c88a3bf85f9

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

2015-09-19 Thread Eric W. Biederman
With ipvs passed into ip_vs_in_icmp and ip_vs_in_icmp_v6 they no longer need to call the hack that is skb_net. Additionally ipvs_in_icmp no longer needs to call dev_net(skb->dev) and can use the ipvs->net instead. Signed-off-by: "Eric W. Biederman" --- net/netfilter/ipvs/ip_vs_core.c | 36 +

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

2015-09-19 Thread 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" --- net/netfilter/ipvs/ip_vs_conn.c | 10 ++ 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/net/netfilter/ipvs/ip_vs_conn.c b/net/netfilter/

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

2015-09-19 Thread Eric W. Biederman
Signed-off-by: "Eric W. Biederman" --- 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, 9 insertions(+), 9 deletions(-) diff --git a/include/net/ip_vs.h b/include/net/ip_vs.h index c88a3bf85f98..3

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

2015-09-19 Thread Eric W. Biederman
Signed-off-by: "Eric W. Biederman" --- 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.c | 5 ++--- 4 files changed, 5 insertions(+), 7 deletions(-) diff --git a/include/net/ip_vs.h b/include/n

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

2015-09-19 Thread Eric W. Biederman
Stop relying on "net_ipvs(skb_net(skb))" to dreive the ipvs as skb_net is a hack. Signed-off-by: "Eric W. Biederman" --- include/net/ip_vs.h | 6 -- net/netfilter/ipvs/ip_vs_conn.c | 4 ++-- net/netfilter/ipvs/ip_vs_core.c | 8 net/netfilter/ipvs/

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

2015-09-19 Thread Eric W. Biederman
Signed-off-by: "Eric W. Biederman" --- 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/netfilter/ipvs/ip_vs_sync.c index cd32e3ab0c4d..280e1c03e598 100644 --- a/net/netfilter/ipvs/ip_vs_sync.c +++ b/n

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

2015-09-19 Thread Eric W. Biederman
Signed-off-by: "Eric W. Biederman" --- 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/netfilter/ipvs/ip_vs_ctl.c index 186e49c111f3..ee2ec40d0f12 100644 --- a/net/netfilter/ipvs/ip_vs_ctl.c +++ b/net/net

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

2015-09-19 Thread Eric W. Biederman
Signed-off-by: "Eric W. Biederman" --- 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/netfilter/ipvs/ip_vs_sync.c index 0b2e01aa764a..dc987762ca2c 100644 --- a/net/netfilter/ipvs/ip_vs_sync.c +++ b/n

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

2015-09-19 Thread Eric W. Biederman
Signed-off-by: "Eric W. Biederman" --- 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, 9 insertions(+), 9 deletions(-) diff --git a/include/net/ip_vs.h b/include/net/ip_vs.h index 0ca436ef7dad..5

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

2015-09-19 Thread Eric W. Biederman
Storte the value of net_ipvs in a variable named ipvs so that when there are more users struct netns_ipvs in ip_vs_in_cmp and ip_vs_in_icmp_v6 they won't need to compute the value again. Signed-off-by: "Eric W. Biederman" --- net/netfilter/ipvs/ip_vs_core.c | 8 ++-- 1 file changed, 6 insert

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

2015-09-19 Thread Eric W. Biederman
Signed-off-by: "Eric W. Biederman" --- 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/netfilter/ipvs/ip_vs_ctl.c index b9426a5fb667..81eb3ed4ce90 100644 --- a/net/netfilter/ipvs/ip_vs_ctl.c +++ b/net/

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

2015-09-19 Thread Eric W. Biederman
Signed-off-by: "Eric W. Biederman" --- 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/netfilter/ipvs/ip_vs_est.c index 638a301f7ee4..c86dc456c8f4 100644 --- a/net/netfilter/ipvs/ip_vs_est.c +++ b/net/ne

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

2015-09-19 Thread Eric W. Biederman
Signed-off-by: "Eric W. Biederman" --- 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 insertions(+), 5 deletions(-) diff --git a/include/net/ip_vs.h b/include/net/ip_vs.h index b54a19eaa630..3c7040a3

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

2015-09-19 Thread Eric W. Biederman
In practice struct netns_ipvs is as meaningful as struct net and more useful as it holds the ipvs specific data. So store a pointer to struct netns_ipvs. Update the accesses of param->net to access param->ipvs->net instead. In functions where we are searching for an svc and filtering by net filt

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

2015-09-19 Thread Eric W. Biederman
In practice struct netns_ipvs is as meaningful as struct net and more useful as it holds the ipvs specific data. So store a pointer to struct netns_ipvs. Update the accesses of param->net to access param->ipvs->net instead. When lookup up struct ip_vs_conn in a hash table replace comparisons of

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

2015-09-19 Thread 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" --- include/net/ip_vs.h | 4 ++-- net/netfilter/ipvs/ip_vs_conn.c | 8 net/netfilter/ipvs/ip_vs_core.c

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

2015-09-19 Thread 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" --- net/netfilter/ipvs/ip_vs_ctl.c | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/net/netfilter/ipvs/ip_vs_ctl.c

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

2015-09-19 Thread 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" --- net/netfilter/ipvs/ip_vs_proto_sctp.c | 5 +++-- 1 file changed, 3 insertions(+), 2 dele

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

2015-09-19 Thread Eric W. Biederman
Signed-off-by: "Eric W. Biederman" --- 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/netfilter/ipvs/ip_vs_ctl.c index 2277da6b8e9f..4eb3c4aca86b 100644 --- a/net/netfilter/ipvs/ip_vs_ctl.c +++ b/net/

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

2015-09-19 Thread 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" --- net/netfilter/ipvs/ip_vs_ctl.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/net/netfilter/ipvs

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

2015-09-19 Thread Eric W. Biederman
Signed-off-by: "Eric W. Biederman" --- 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 b/net/netfilter/ipvs/ip_vs_core.c index 1fa12edccbcc..3f33a076aaec 100644 --- a/net/netfilter/ipvs/ip_vs_core.c +++ b/

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

2015-09-19 Thread Eric W. Biederman
In practice struct netns_ipvs is as meaningful as struct net and more useful as it holds the ipvs specific data. So store a pointer to struct netns_ipvs. Update the accesses of conn->net to access conn->ipvs->net instead. Signed-off-by: "Eric W. Biederman" --- include/net/ip_vs.h

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

2015-09-19 Thread Eric W. Biederman
ipvs is what the code actually wants to use. Signed-off-by: "Eric W. Biederman" --- net/netfilter/ipvs/ip_vs_ctl.c | 15 --- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/net/netfilter/ipvs/ip_vs_ctl.c b/net/netfilter/ipvs/ip_vs_ctl.c index 4eb3c4aca86b..5e8ef1593f3e

[PATCH next 00/84] ipvs: Stop guessing the network namespace

2015-09-19 Thread Eric W. Biederman
I am gradually working my way through the netfilter stack passing struct down into the netfilter hooks and from the netfilter hooks and from there down into the functions that actually care. This removes the need for netfilter functions to guess how to figure out how to compute which network name

Re: [PATCH net-next 7/7] switchdev: update documentation on FDB ageing_time

2015-09-19 Thread Scott Feldman
On Sat, Sep 19, 2015 at 6:21 PM, roopa wrote: > On 9/18/15, 12:55 PM, sfel...@gmail.com wrote: >> >> From: Scott Feldman >> >> Signed-off-by: Scott Feldman >> --- >> Documentation/networking/switchdev.txt | 24 >> 1 file changed, 12 insertions(+), 12 deletions(-) >>

Re: [PATCH net] af_unix: return data from multiple SKBs on recv() with MSG_PEEK flag

2015-09-19 Thread Aaron Conole
Sergei Shtylyov writes: > Hello. > ... >Your patch doesn't comply to the Linux CodingStyle. > ... I'll fix and post v2 - apologies for messing up with that check. -Aaron -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majord...@vger.kernel.o

Re: [PATCH net-next 7/7] switchdev: update documentation on FDB ageing_time

2015-09-19 Thread roopa
On 9/18/15, 12:55 PM, sfel...@gmail.com wrote: From: Scott Feldman Signed-off-by: Scott Feldman --- Documentation/networking/switchdev.txt | 24 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/Documentation/networking/switchdev.txt b/Documentation

sr-iov and bridges (mlx4)

2015-09-19 Thread Matthew Monaco
Hello. I have a Mellanox ConnectX-3 Pro EN (MCX314A-BCCT). I'm only using a single port so it must provide IP for my host as well as connectivity for VMs. SR-IOV VFs are working great, my KVM VMs have Ethernet and RDMA. However, I also want to support virtio VMs. Assuming eth0 is the first port on

[PATCH 11/15] RDS: fix the rds_ib_fmr_wq kick call

2015-09-19 Thread Santosh Shilimkar
RDS IB mr pool has its own workqueue 'rds_ib_fmr_wq', so we need to use queue_delayed_work() to kick the work. This was hurting the performance since pool maintenance was less often triggered from other path. Signed-off-by: Santosh Shilimkar Signed-off-by: Santosh Shilimkar --- net/rds/ib_rdma.

[PATCH 00/15] RDS: connection scalability and performance improvements

2015-09-19 Thread Santosh Shilimkar
This series addresses RDS connection bottlenecks on massive workloads and improve the RDMA performance almost by 3X. RDS TCP also gets a small gain of about 12%. RDS is being used in massive systems with high scalability where several hundred thousand end points and tens of thousands of local proc

[PATCH 10/15] RDS: handle rds_ibdev release case instead of crashing the kernel

2015-09-19 Thread Santosh Shilimkar
From: Santosh Shilimkar Just in case we are still handling the QP receive completion while the rds_ibdev is released, drop the connection instead of crashing the kernel. Signed-off-by: Santosh Shilimkar --- net/rds/ib_cm.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/n

[PATCH 01/15] RDS: use kfree_rcu in rds_ib_remove_ipaddr

2015-09-19 Thread Santosh Shilimkar
synchronize_rcu() slowing down un-necessarily the socket shutdown path. It is used just kfree() the ip addresses in rds_ib_remove_ipaddr() which is perfect usecase for kfree_rcu(); So lets use that to gain some speedup. Signed-off-by: Santosh Shilimkar Signed-off-by: Santosh Shilimkar --- net/

[PATCH 13/15] RDS: mark rds_ib_fmr_wq static

2015-09-19 Thread Santosh Shilimkar
Fix below warning by marking rds_ib_fmr_wq static net/rds/ib_rdma.c:87:25: warning: symbol 'rds_ib_fmr_wq' was not declared. Should it be static? Signed-off-by: Santosh Shilimkar Signed-off-by: Santosh Shilimkar --- net/rds/ib_rdma.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff

[PATCH 08/15] RDS: ack more receive completions to improve performance

2015-09-19 Thread Santosh Shilimkar
For better performance, we split the receive completion IRQ handler. That lets us acknowledge several WCE events in one call. We also limit the WC to max 32 to avoid latency. Acknowledging several completions in one call instead of several calls each time will provide better performance since less

[PATCH 12/15] RDS: use already available pool handle from ibmr

2015-09-19 Thread Santosh Shilimkar
rds_ib_mr already keeps the pool handle which it associates with. Lets use that instead of round about way of fetching it from rds_ib_device. No functional change. Signed-off-by: Santosh Shilimkar Signed-off-by: Santosh Shilimkar --- net/rds/ib_rdma.c | 5 ++--- 1 file changed, 2 insertions(+)

[PATCH 14/15] RDS: use max_mr from HCA caps than max_fmr

2015-09-19 Thread Santosh Shilimkar
From: Santosh Shilimkar All HCA drivers seems to popullate max_mr caps and few of them do both max_mr and max_fmr. Hence update RDS code to make use of max_mr. Signed-off-by: Santosh Shilimkar Signed-off-by: Santosh Shilimkar --- net/rds/ib.c | 4 ++-- 1 file changed, 2 insertions(+), 2 dele

[PATCH 09/15] RDS: split send completion handling and do batch ack

2015-09-19 Thread Santosh Shilimkar
Similar to what we did with receive CQ completion handling, we split the transmit completion handler so that it lets us implement batched work completion handling. We re-use the cq_poll routine and makes use of RDS_IB_SEND_OP to identify the send vs receive completion event handler invocation. Si

[PATCH 05/15] RDS: increase size of hash-table to 8K

2015-09-19 Thread Santosh Shilimkar
Even with per bucket locking scheme, in a massive parallel system with active rds sockets which could be in excess of multiple of 10K, rds_bin_lookup() workload is siginificant because of smaller hashtable size. With some tests, it was found that we get modest but still nice reduction in rds_bind_

[PATCH 06/15] RDS: defer the over_batch work to send worker

2015-09-19 Thread Santosh Shilimkar
Current process gives up if its send work over the batch limit. The work queue will get kicked to finish off any other requests. This fixes remainder condition from commit 443be0e5affe ("RDS: make sure not to loop forever inside rds_send_xmit"). The restart condition is only for the case where we

  1   2   >