Skip to content

netfilter: Pass net into ip_route_me_harder

Eric W. Biederman lvs-devel netdev netfilter-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5ipv4: Push struct net down into nf_send_resetinclude/net/netfilter/ipv4/nf_reject.h net/ipv4/netfilter/ipt_REJECT.c net/ipv4/netfilter/nf_reject_ipv4.c +2 more+5 -50 replies
2/5netfilter: Push struct net down into nf_afinfo.rerouteinclude/linux/netfilter.h net/ipv4/netfilter.c net/ipv6/netfilter.c +1 more+4 -40 replies
3/5netfilter: ipt_SYNPROXY: Pass snet into synproxy_send_tcpnet/ipv4/netfilter/ipt_SYNPROXY.c+9 -70 replies
4/5ipv4: Pass struct net into ip_route_me_harderinclude/linux/netfilter_ipv4.h net/ipv4/netfilter.c net/ipv4/netfilter/ipt_SYNPROXY.c +5 more+11 -100 replies
5/5ipv6: Pass struct net into ip6_route_me_harderinclude/linux/netfilter_ipv6.h net/ipv6/netfilter.c net/ipv6/netfilter/ip6table_mangle.c +3 more+7 -80 replies

Reviews trailers per patch

None of the 5 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchNicolas DichtelPablo Neira Ayuso
SeriesA-b A-b A-b A-b A-b A-b
1/5
2/5
3/5
4/5
5/5

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH next 0/5] netfilter: Pass net into ip_route_me_harder

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 which network namespace it is in, and ultimately routes can have output devices in another network namespace.

This round the focus is our getting struct net passed in, instead of guess in the netfilter functions that reroute packets (ip_route_me_harder, and ip6_route_me_harder). There is a bit more work on the ipv4 side as the ipv6 code on several of these code paths already passes in the struct net.

The changes are also available against nf-next at:
git://git.kernel.org/pub/scm/linux/kernel/git/ebiederm/net-next.git master

My entire pending set of changes for those who want to look ahead is at:
git://git.kernel.org/pub/scm/linux/kernel/git/ebiederm/net-next.git for-testing

Eric

Eric W. Biederman (5):
ipv4: Push struct net down into nf_send_reset
netfilter: Push struct net down into nf_afinfo.reroute
netfilter: ipt_SYNPROXY: Pass snet into synproxy_send_tcp
ipv4: Pass struct net into ip_route_me_harder
ipv6: Pass struct net into ip6_route_me_harder

 include/linux/netfilter.h                 |  2 +-
 include/linux/netfilter_ipv4.h            |  2 +-
 include/linux/netfilter_ipv6.h            |  2 +-
 include/net/netfilter/ipv4/nf_reject.h    |  2 +-
 net/ipv4/netfilter.c                      |  7 +++----
 net/ipv4/netfilter/ipt_REJECT.c           |  2 +-
 net/ipv4/netfilter/ipt_SYNPROXY.c         | 20 ++++++++++++--------
 net/ipv4/netfilter/iptable_mangle.c       |  2 +-
 net/ipv4/netfilter/nf_nat_l3proto_ipv4.c  |  2 +-
 net/ipv4/netfilter/nf_reject_ipv4.c       |  4 ++--
 net/ipv4/netfilter/nft_chain_route_ipv4.c |  2 +-
 net/ipv4/netfilter/nft_reject_ipv4.c      |  2 +-
 net/ipv6/netfilter.c                      |  7 +++----
 net/ipv6/netfilter/ip6table_mangle.c      |  2 +-
 net/ipv6/netfilter/nf_nat_l3proto_ipv6.c  |  2 +-
 net/ipv6/netfilter/nft_chain_route_ipv6.c |  2 +-
 net/netfilter/ipvs/ip_vs_core.c           |  4 ++--
 net/netfilter/nf_queue.c                  |  2 +-
 net/netfilter/nft_reject_inet.c           |  2 +-
 19 files changed, 36 insertions(+), 34 deletions(-)