]> git.baikalelectronics.ru Git - kernel.git/commit
inet: udp{4|6}_lib_lookup_skb() skb argument is const
authorEric Dumazet <edumazet@google.com>
Mon, 9 Nov 2020 23:13:49 +0000 (15:13 -0800)
committerJakub Kicinski <kuba@kernel.org>
Wed, 11 Nov 2020 01:57:14 +0000 (17:57 -0800)
commit21c6f9353196540c7897de46b4623d148de6a34b
tree9f9b4e2c1bc9dac9e1053805d90e1baf5ce09339
parent4352b0985dd1d79e9457c66e60b65d0d2e934fb2
inet: udp{4|6}_lib_lookup_skb() skb argument is const

The skb is needed only to fetch the keys for the lookup.

Both functions are used from GRO stack, we do not want
accidental modification of the skb.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Acked-by: Alexander Lobakin <alobakin@pm.me>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
include/net/udp.h
net/ipv4/udp.c
net/ipv6/udp.c