Re: [PATCH net-next] net: sk_pacing_shift_update() helper

2017-12-13 Thread David Miller
From: Eric Dumazet Date: Tue, 12 Dec 2017 06:34:19 -0800 > From: Eric Dumazet > > In commit 3a9b76fd0db9 ("tcp: allow drivers to tweak TSQ logic") > I gave a code sample to set sk->sk_pacing_shift that was not complete. > > Better add a helper that can be used by drivers without worries, > and

[PATCH net-next] net: sk_pacing_shift_update() helper

2017-12-12 Thread Eric Dumazet
From: Eric Dumazet In commit 3a9b76fd0db9 ("tcp: allow drivers to tweak TSQ logic") I gave a code sample to set sk->sk_pacing_shift that was not complete. Better add a helper that can be used by drivers without worries, and maybe amended in the future. A wifi driver might use it from its ndo_st