Re: [PATCH net-next] tun: compute the RFS hash only if needed.

2018-11-07 Thread David Miller
From: Paolo Abeni Date: Wed, 7 Nov 2018 10:34:36 +0100 > The tun XDP sendmsg code path, unconditionally computes the symmetric > hash of each packet for RFS's sake, even when we could skip it. e.g. > when the device has a single queue. > > This change adds the check already in-place for the

Re: [PATCH net-next] tun: compute the RFS hash only if needed.

2018-11-07 Thread Jason Wang
On 2018/11/7 下午5:34, Paolo Abeni wrote: The tun XDP sendmsg code path, unconditionally computes the symmetric hash of each packet for RFS's sake, even when we could skip it. e.g. when the device has a single queue. This change adds the check already in-place for the skb sendmsg path to avoid

[PATCH net-next] tun: compute the RFS hash only if needed.

2018-11-07 Thread Paolo Abeni
The tun XDP sendmsg code path, unconditionally computes the symmetric hash of each packet for RFS's sake, even when we could skip it. e.g. when the device has a single queue. This change adds the check already in-place for the skb sendmsg path to avoid unneeded hashing. The above gives small,