Re: [PATCH net-next] sock: Reset dst when changing sk_mark via setsockopt

2018-11-07 Thread David Barmann
> On 11/07/2018 02:33 PM, David Barmann wrote: > > When setting the SO_MARK socket option, the dst needs to be reset so > > that a new route lookup is performed. > > > > This fixes the case where an application wants to change routing by > > setting a new sk_mark. If this is done after some pack

Re: [PATCH net-next] sock: Reset dst when changing sk_mark via setsockopt

2018-11-07 Thread Eric Dumazet
On 11/07/2018 02:33 PM, David Barmann wrote: > When setting the SO_MARK socket option, the dst needs to be reset so > that a new route lookup is performed. > > This fixes the case where an application wants to change routing by > setting a new sk_mark. If this is done after some packets have a

[PATCH net-next] sock: Reset dst when changing sk_mark via setsockopt

2018-11-07 Thread David Barmann
When setting the SO_MARK socket option, the dst needs to be reset so that a new route lookup is performed. This fixes the case where an application wants to change routing by setting a new sk_mark. If this is done after some packets have already been sent, the dst is cached and has no effect. Si