Skip to content

net: Pass net into defragmentation

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 Latest3 patches 4 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3ipv4: Only compute net once in ip_call_ra_chainnet/ipv4/ip_input.c+2 -10 replies
2/3ipv4: Pass struct net into ip_defrag and ip_check_defragdrivers/net/macvlan.c include/net/ip.h net/ipv4/ip_fragment.c +5 more+20 -191 reply
3/3ipv6: Pass struct net into nf_ct_frag6_gatherinclude/net/netfilter/ipv6/nf_defrag_ipv6.h net/ipv6/netfilter/nf_conntrack_reasm.c net/ipv6/netfilter/nf_defrag_ipv6_hooks.c +1 more+5 -61 reply

Reviews trailers per patch

2 of 3 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

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

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 net-next 0/3] net: Pass net into defragmentation

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.

In netfilter and af_packet we defragment packets in the output path, and there is the usual amount of confusion about how to compute which net we are processing the packets in. This patchset clears that confusion up by explicitly passing in struct net in ip_defrag, ip_check_defrag, and nf_ct_frag6_gather.

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

Eric

Eric W. Biederman (3):
ipv4: Only compute net once in ip_call_ra_chain
ipv4: Pass struct net into ip_defrag and ip_check_defrag
ipv6: Pass struct net into nf_ct_frag6_gather

 drivers/net/macvlan.c                       |  2 +-
 include/net/ip.h                            |  6 +++---
 include/net/netfilter/ipv6/nf_defrag_ipv6.h |  2 +-
 net/ipv4/ip_fragment.c                      |  7 +++----
 net/ipv4/ip_input.c                         | 10 ++++++----
 net/ipv4/netfilter/nf_defrag_ipv4.c         |  7 ++++---
 net/ipv6/netfilter/nf_conntrack_reasm.c     |  4 +---
 net/ipv6/netfilter/nf_defrag_ipv6_hooks.c   |  3 ++-
 net/netfilter/ipvs/ip_vs_core.c             |  2 +-
 net/openvswitch/conntrack.c                 |  4 ++--
 net/packet/af_packet.c                      |  6 +++---
 11 files changed, 27 insertions(+), 26 deletions(-)