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)
commit7b58e63e744cbcdeafe0a52423014fd9c9f7e346
tree9f9b4e2c1bc9dac9e1053805d90e1baf5ce09339
parentd6bb2d1e86903d3fbf895752ac2c0c2465534579
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