diff options
author | Jason Wang | 2016-04-26 05:13:42 +0200 |
---|---|---|
committer | David S. Miller | 2016-04-28 22:38:54 +0200 |
commit | 3df97ba83019d524c012fd43d3216d4cc3005955 (patch) | |
tree | d913793fb00287a9e120f36d9a6d274a0257c2f4 /drivers/net/ethernet/mellanox/mlx5/core/en_main.c | |
parent | Merge branch 'tcp-eor' (diff) | |
download | kernel-qcow2-linux-3df97ba83019d524c012fd43d3216d4cc3005955.tar.gz kernel-qcow2-linux-3df97ba83019d524c012fd43d3216d4cc3005955.tar.xz kernel-qcow2-linux-3df97ba83019d524c012fd43d3216d4cc3005955.zip |
tuntap: calculate rps hash only when needed
There's no need to calculate rps hash if it was not enabled. So this
patch export rps_needed and check it before trying to get rps
hash. Tests (using pktgen to inject packets to guest) shows this can
improve pps about 13% (when rps is disabled).
Before:
~1150000 pps
After:
~1300000 pps
Cc: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Jason Wang <jasowang@redhat.com>
----
Changes from V1:
- Fix build when CONFIG_RPS is not set
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/mellanox/mlx5/core/en_main.c')
0 files changed, 0 insertions, 0 deletions