]> git.baikalelectronics.ru Git - kernel.git/commit
Merge branch 'IP-cleanup-LSRR-option-processing'
authorDavid S. Miller <davem@davemloft.net>
Mon, 7 Aug 2017 03:51:12 +0000 (20:51 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 7 Aug 2017 03:51:12 +0000 (20:51 -0700)
commite3f9acf75e1ff324fb209f7632bd15482c99ebb2
treeae76e777f002bfe770d8c5146abe4427022b0dde
parentecf22c712a9debc18065f48cf1f54a13c45c2bf8
parent654d6b1dfba9f9a3e5b3108819db6b9be150c0d8
Merge branch 'IP-cleanup-LSRR-option-processing'

Paolo Abeni says:

====================
IP: cleanup LSRR option processing

The __ip_options_echo() function expect a valid dst entry in skb->dst;
as result we sometimes need to preserve the dst entry for the whole IP
RX path.

The current usage of skb->dst looks more a relic from ancient past that
a real functional constraint. This patchset tries to remove such usage,
and than drops some hacks currently in place in the IP code to keep
skb->dst around.

__ip_options_echo() uses of skb->dst for two different purposes: retrieving
the netns assicated with the skb, and modify the ingress packet LSRR address
list.

The first patch removes the code modifying the ingress packet, and the second
one provides an explicit netns argument to __ip_options_echo(). The following
patches cleanup the current code keeping arund skb->dst for __ip_options_echo's
sake.

Updating the __ip_options_echo() function has been previously discussed here:

http://marc.info/?l=linux-netdev&m=150064533516348&w=2
====================

Signed-off-by: David S. Miller <davem@davemloft.net>