Re: [PATCH v2 net-next 2/6] udp: Constify skb argument in lookup functions

2017-08-29 Thread Tom Herbert
On Tue, Aug 29, 2017 at 5:58 PM, David Miller wrote: > From: Tom Herbert > Date: Tue, 29 Aug 2017 16:27:07 -0700 > >> For UDP socket lookup functions, and associateed functions that take an >> skbuf as argument, declare the skb argument as constant. >> >> One caveat is that reuseport_select_sock

Re: [PATCH v2 net-next 2/6] udp: Constify skb argument in lookup functions

2017-08-29 Thread David Miller
From: Tom Herbert Date: Tue, 29 Aug 2017 16:27:07 -0700 > For UDP socket lookup functions, and associateed functions that take an > skbuf as argument, declare the skb argument as constant. > > One caveat is that reuseport_select_sock can be called from the UDP > lookup functions with an skb argu

[PATCH v2 net-next 2/6] udp: Constify skb argument in lookup functions

2017-08-29 Thread Tom Herbert
For UDP socket lookup functions, and associateed functions that take an skbuf as argument, declare the skb argument as constant. One caveat is that reuseport_select_sock can be called from the UDP lookup functions with an skb argument. This function temporarily modifies the skbuff data pointer (in