ng by net
filter by ipvs instead.
Signed-off-by: "Eric W. Biederman" <ebied...@xmission.com>
---
include/net/ip_vs.h | 2 +-
net/netfilter/ipvs/ip_vs_core.c | 10 +++
net/netfilter/ipvs/ip_vs_ctl.c | 64 ++--
net/netfilter/ipvs/i
mparisons
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" <ebied...@xmission.com>
---
include/net/ip_vs.h | 4 ++--
net/netfilter/ipvs/ip_vs_conn.c | 14 +++---
2 fi
Signed-off-by: "Eric W. Biederman" <ebied...@xmission.com>
---
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
---
Signed-off-by: "Eric W. Biederman" <ebied...@xmission.com>
---
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/ne
Signed-off-by: "Eric W. Biederman" <ebied...@xmission.com>
---
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/inc
Signed-off-by: "Eric W. Biederman" <ebied...@xmission.com>
---
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
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" <ebied...@xmission.com>
---
net/netfilter/ipvs/
Signed-off-by: "Eric W. Biederman" <ebied...@xmission.com>
---
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
---
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" <ebied...@xmission.com>
---
net/netfilter/ipvs/ip_vs_ctl.c | 8
1 file changed, 4 insertions(+), 4 de
Signed-off-by: "Eric W. Biederman" <ebied...@xmission.com>
---
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
---
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" <ebied...@xmis
scm/linux/kernel/git/ebiederm/net-next.git for-testing
Eric
Eric W. Biederman (84):
ipvs: Hoist computation of ipvs earlier in sctp_conn_schedule
ipvs: Don't use current in proc_do_defense_mode
ipvs: Use state->net in the ipvs forward functions
ipvs: Store ipvs not net in
Signed-off-by: "Eric W. Biederman" <ebied...@xmission.com>
---
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
Signed-off-by: "Eric W. Biederman" <ebied...@xmission.com>
---
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 +++
ne
Signed-off-by: "Eric W. Biederman" <ebied...@xmission.com>
---
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
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" <ebied...@xmission.com>
---
net/netfilter/ipvs/ip_vs_core.c | 15 ++-
1 file changed, 6 inserti
Signed-off-by: "Eric W. Biederman" <ebied...@xmission.com>
---
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/ne
Signed-off-by: "Eric W. Biederman" <ebied...@xmission.com>
---
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
Signed-off-by: "Eric W. Biederman" <ebied...@xmission.com>
---
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/ne
Signed-off-by: "Eric W. Biederman" <ebied...@xmission.com>
---
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
Signed-off-by: "Eric W. Biederman" <ebied...@xmission.com>
---
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 +++-
ne
Signed-off-by: "Eric W. Biederman" <ebied...@xmission.com>
---
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/ne
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" <ebied...@xmission.com>
---
include/net/ip_vs.h| 4 ++--
net/netfilter/ipvs/
Signed-off-by: "Eric W. Biederman" <ebied...@xmission.com>
---
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
---
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" <ebied...@
Signed-off-by: "Eric W. Biederman" <ebied...@xmission.com>
---
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/n
Signed-off-by: "Eric W. Biederman" <ebied...@xmission.com>
---
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/ne
This removes the need to use the hack skb_net.
Signed-off-by: "Eric W. Biederman" <ebied...@xmission.com>
---
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/i
This allows two different ways for computing/guessing net to be
removed from ensure_mtu_is_adequate.
Signed-off-by: "Eric W. Biederman" <ebied...@xmission.com>
---
net/netfilter/ipvs/ip_vs_xmit.c | 11 +--
1 file changed, 5 insertions(+), 6 deletions(-)
diff --git a/ne
Signed-off-by: "Eric W. Biederman" <ebied...@xmission.com>
---
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/ne
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" <ebied...@xmission.com>
---
include/net/ip_vs.h | 3 ++-
net/netfilter/ipvs/ip_vs_core.c | 11 +
Signed-off-by: "Eric W. Biederman" <ebied...@xmission.com>
---
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
This function adds no real value and it obscures what the code is doing.
Signed-off-by: "Eric W. Biederman" <ebied...@xmission.com>
---
include/net/ip_vs.h| 22 --
net/netfilter/ipvs/ip_vs_ctl.c | 25 ++---
2 files changed, 10 i
Signed-off-by: "Eric W. Biederman" <ebied...@xmission.com>
---
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/ne
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" <ebied...@xmission.com>
---
include/net/ip_vs.h | 2 +-
net/netfilter/ipvs/ip_vs_ftp.c | 8 ++--
ne
Signed-off-by: "Eric W. Biederman" <ebied...@xmission.com>
---
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
Signed-off-by: "Eric W. Biederman" <ebied...@xmission.com>
---
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
---
Signed-off-by: "Eric W. Biederman" <ebied...@xmission.com>
---
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
---
Signed-off-by: "Eric W. Biederman" <ebied...@xmission.com>
---
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/i
Signed-off-by: "Eric W. Biederman" <ebied...@xmission.com>
---
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
---
This hack has no more users so remove it.
Signed-off-by: "Eric W. Biederman" <ebied...@xmission.com>
---
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..d62
Move the hack of relying on "net_ipvs(skb_net(skb))" to dreive the ipvs up
a layer.
Signed-off-by: "Eric W. Biederman" <ebied...@xmission.com>
---
include/net/ip_vs.h | 6 --
net/netfilter/ipvs/ip_vs_conn.c | 4 ++--
net/netfilter/ipv
Signed-off-by: "Eric W. Biederman" <ebied...@xmission.com>
---
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
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" <ebied...@xmission.com>
---
net/netfilter/ipvs/ip_vs_xmit.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
Signed-off-by: "Eric W. Biederman" <ebied...@xmission.com>
---
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
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" <ebied...@xmission.com>
---
net/netfilter/ipvs/ip_vs_core.c | 14 +-
1 file changed, 5 insertions(+), 9
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. Bied
Signed-off-by: "Eric W. Biederman" <ebied...@xmission.com>
---
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
---
Signed-off-by: "Eric W. Biederman" <ebied...@xmission.com>
---
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/ne
This removes the need to compute ipvs with the hack "net_ipvs(skb_net(skb))"
Signed-off-by: "Eric W. Biederman" <ebied...@xmission.com>
---
net/netfilter/ipvs/ip_vs_core.c | 15 +++
1 file changed, 7 insertions(+), 8 deletions(-)
diff --git a/net/netfilt
This will be needed later when the network namespace guessing is removed from
ip_defrag
Signed-off-by: "Eric W. Biederman" <ebied...@xmission.com>
---
net/netfilter/ipvs/ip_vs_core.c | 9 +
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/net/netfilter/ipv
Signed-off-by: "Eric W. Biederman" <ebied...@xmission.com>
---
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
---
Signed-off-by: "Eric W. Biederman" <ebied...@xmission.com>
---
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/inc
Signed-off-by: "Eric W. Biederman" <ebied...@xmission.com>
---
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
---
Signed-off-by: "Eric W. Biederman" <ebied...@xmission.com>
---
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
Signed-off-by: "Eric W. Biederman" <ebied...@xmission.com>
---
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/ne
Signed-off-by: "Eric W. Biederman" <ebied...@xmission.com>
---
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/ne
Signed-off-by: "Eric W. Biederman" <ebied...@xmission.com>
---
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..13a
Signed-off-by: "Eric W. Biederman" <ebied...@xmission.com>
---
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/inc
Signed-off-by: "Eric W. Biederman" <ebied...@xmission.com>
---
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
---
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" <ebied...
Stop using the hack skb_net(skb) to compute the network namespace.
Signed-off-by: "Eric W. Biederman" <ebied...@xmission.com>
---
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/ne
Signed-off-by: "Eric W. Biederman" <ebied...@xmission.com>
---
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/n
Signed-off-by: "Eric W. Biederman" <ebied...@xmission.com>
---
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/ne
Signed-off-by: "Eric W. Biederman" <ebied...@xmission.com>
---
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
---
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" <ebied...@xmission.com>
-
Signed-off-by: "Eric W. Biederman" <ebied...@xmission.com>
---
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_
Signed-off-by: "Eric W. Biederman" <ebied...@xmission.com>
---
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/n
Signed-off-by: "Eric W. Biederman" <ebied...@xmission.com>
---
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
Signed-off-by: "Eric W. Biederman" <ebied...@xmission.com>
---
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
---
Signed-off-by: "Eric W. Biederman" <ebied...@xmission.com>
---
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
---
Signed-off-by: "Eric W. Biederman" <ebied...@xmission.com>
---
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/ne
Signed-off-by: "Eric W. Biederman" <ebied...@xmission.com>
---
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
---
Signed-off-by: "Eric W. Biederman" <ebied...@xmission.com>
---
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/n
Signed-off-by: "Eric W. Biederman" <ebied...@xmission.com>
---
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
Stop relying on "net_ipvs(skb_net(skb))" to dreive the ipvs as
skb_net is a hack.
Signed-off-by: "Eric W. Biederman" <ebied...@xmission.com>
---
include/net/ip_vs.h | 6 --
net/netfilter/ipvs/ip_vs_conn.c | 4 ++--
net/netfilter/ipv
Signed-off-by: "Eric W. Biederman" <ebied...@xmission.com>
---
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
---
Signed-off-by: "Eric W. Biederman" <ebied...@xmission.com>
---
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
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" <ebied...@xmission.com>
---
net/netfilter/ipvs/ip_vs_ctl.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/net/netfilter/ipv
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" <ebied...@xmission.com>
---
net/netfilter/ipvs/ip_vs_conn.c | 10 ++
1 file changed, 6 insertions(+), 4 deletions(-)
diff --git a/ne
Signed-off-by: "Eric W. Biederman" <ebied...@xmission.com>
---
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
Only pass the void *priv parameter out of the nf_hook_ops. That is
all any of the functions are interested now, and by limiting what is
passed it becomes simpler to change implementation details.
Signed-off-by: "Eric W. Biederman" <ebied...@xmission.com>
---
include/l
Instead of calling dev_net on a likley looking network device
pass state->net into nf_xfrm_me_harder.
Signed-off-by: "Eric W. Biederman" <ebied...@xmission.com>
---
include/net/netfilter/nf_nat_core.h | 2 +-
net/ipv4/netfilter/nf_nat_l3proto_ipv4.c | 4 ++--
This should be more cache efficient as state is more likely to be in
core, and the netfilter core will stop passing in ops soon.
Signed-off-by: "Eric W. Biederman" <ebied...@xmission.com>
---
net/netfilter/ipvs/ip_vs_core.c | 16
1 file changed, 8 insertions
Use nf_ct_net(ct) instead of guessing that the netdevice out can
reliably report the network namespace the conntrack operation is
happening in.
Signed-off-by: "Eric W. Biederman" <ebied...@xmission.com>
---
net/ipv6/netfilter/nf_nat_masquerade_ipv6.c | 2 +-
1 file changed, 1
As gre does not have the srckey in the packet gre_pkt_to_tuple
needs to perform a lookup in it's per network namespace tables.
Pass in the proper network namespace to all pkt_to_tuple
implementations to ensure gre (and any similar protocols) can get this
right.
Signed-off-by: "Eric W. Bied
ead is at:
git://git.kernel.org/pub/scm/linux/kernel/git/ebiederm/net-next.git for-testing
Eric
Eric W. Biederman (15):
ebtables: Simplify the arguments to ebt_do_table
inet netfilter: Remove hook from ip6t_do_table, arp_do_table, ipt_do_table
inet netfilter: Prefer state->hook
Nicolas Dichtel <nicolas.dich...@6wind.com> writes:
> Le 18/09/2015 17:06, Eric W. Biederman a écrit :
>>
>> This is the next installment of my work to pass struct net through the
>> output path so the code does not need to guess how to figure out
Julian Anastasov writes:
> Hello,
>
>
> I reviewed the patchset. Nice work, thanks!
Welcome.
> Here are some comments:
>
> 01/84 ipvs: Hoist computation of ipvs earlier in sctp_conn_schedule
>
> Simon had a fix for this problem, not sure what happened,
> may be
Thomas Graf <tg...@suug.ch> writes:
> On 09/22/15 at 11:39pm, Eric W. Biederman wrote:
>> What distinguishes a skb received from a tunnel as opposed to a skb
>> received on from a network device is that a skb recevied on a tunnel
>> has a socket.
>>
>&
Thomas Graf <tg...@suug.ch> writes:
> On 09/23/15 at 04:09pm, Eric W. Biederman wrote:
>
> [...]
>
>> *Blink* You were targeting net.git with a feature enhancement
>> I will just ignore that.
>
> The point of this series is to not expose the src and d
Jiri Benc <jb...@redhat.com> writes:
> On Wed, 23 Sep 2015 07:17:53 -0500, Eric W. Biederman wrote:
>> Assuming the transport is UDP then it would be a UDP socket. That
>> socket will have all of the information needed to construct the outer
>> header as the receive
David Ahern writes:
> e_nobufs has 1 user. Move setting err to -ENOBUFS for the 1 user and
> use the goto out label instead of e_nobufs. Stepping stone patch; next
> one moves rth code into a helper function.
Ick you are pessimizing the code.
You will almost certainly
Simon Horman <ho...@verge.net.au> 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 it's value is associated with.
>>
>> Signed-o
Jiri Benc writes:
> One of the selling points of lwtunnel was the ability to specify the tunnel
> destination using routes. However, this doesn't really work currently, as
> ARP and ndisc replies are not handled correctly. ARP and ndisc replies won't
> have tunnel metadata
The network namespace is needed when routing a packet.
Stop making nf_afinfo.reroute guess which network namespace
is the proper namespace to route the packet in.
Signed-off-by: "Eric W. Biederman" <ebied...@xmission.com>
---
include/linux/netfilter.h | 2 +-
net/ipv4/netf
that is not passed snet
already.
Signed-off-by: "Eric W. Biederman" <ebied...@xmission.com>
---
net/ipv4/netfilter/ipt_SYNPROXY.c | 16 +---
1 file changed, 9 insertions(+), 7 deletions(-)
diff --git a/net/ipv4/netfilter/ipt_SYNPROXY.c
b/net/ipv4/netfilter/ipt_
This is needed so struct net can be pushed down into
ip_route_me_harder.
Signed-off-by: "Eric W. Biederman" <ebied...@xmission.com>
---
include/net/netfilter/ipv4/nf_reject.h | 2 +-
net/ipv4/netfilter/ipt_REJECT.c| 2 +-
net/ipv4/netfilter/nf_reject_ipv4.c| 2 +-
ne
Don't make ip6_route_me_harder guess which network namespace
it is routing in, pass the network namespace in.
Signed-off-by: Eric W. Biederman <ebied...@xmission.com>
---
include/linux/netfilter_ipv6.h| 2 +-
net/ipv6/netfilter.c | 5 ++---
net/ipv6/net
Don't make ip_route_me_harder guess which network namespace
it is routing in, pass the network namespace in.
Signed-off-by: "Eric W. Biederman" <ebied...@xmission.com>
---
include/linux/netfilter_ipv4.h| 2 +-
net/ipv4/netfilter.c | 5 ++---
ne
701 - 800 of 1118 matches
Mail list logo