]> git.baikalelectronics.ru Git - kernel.git/commit
Merge branch 'ipv6-defrag-rbtree'
authorDavid S. Miller <davem@davemloft.net>
Sat, 26 Jan 2019 05:37:11 +0000 (21:37 -0800)
committerDavid S. Miller <davem@davemloft.net>
Sat, 26 Jan 2019 05:37:51 +0000 (21:37 -0800)
commit940adf43c51c33358f978192854a6b2bbd419773
tree299dc0f94d0626e3f75d61450507135f0892389d
parente3aba708b4ea150e8a307f7ea998c8d43905e79b
parent0357871ad393ceb19f346799e6ef56e106f5da51
Merge branch 'ipv6-defrag-rbtree'

Peter Oskolkov says:

====================
net: IP defrag: use rbtrees in IPv6 defragmentation

Currently, IPv6 defragmentation code drops non-last fragments that
are smaller than 1280 bytes: see
commit 08099d67b071 ("ipv6: defrag: drop non-last frags smaller than min mtu")

This behavior is not specified in IPv6 RFCs and appears to break compatibility
with some IPv6 implementations, as reported here:
https://www.spinics.net/lists/netdev/msg543846.html

This patchset contains four patches:
- patch 1 moves rbtree-related code from IPv4 to files shared b/w
IPv4/IPv6
- patch 2 changes IPv6 defragmenation code to use rbtrees for defrag
queue
- patch 3 changes nf_conntrack IPv6 defragmentation code to use rbtrees
- patch 4 changes ip_defrag selftest to test changes made in the
previous three patches.

Along the way, the 1280-byte restrictions are removed.

I plan to introduce similar changes to 6lowpan defragmentation code
once I figure out how to test it.
====================

Reviewed-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>