Files
linux/net
Jason Wang 3df97ba830 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>
2016-04-28 16:38:54 -04:00
..
2016-04-13 10:41:10 +02:00
2016-03-10 20:54:09 -05:00
2016-03-17 21:05:01 -04:00
2015-11-30 14:47:33 -05:00
2016-04-27 22:48:24 -04:00
2016-04-27 22:48:25 -04:00
2016-04-21 13:59:08 -04:00
2016-04-27 22:48:25 -04:00
2016-02-14 14:36:04 -08:00
2016-03-09 16:36:15 -05:00
2016-04-25 15:09:10 -04:00
2016-04-14 16:23:40 -04:00
2016-04-27 22:48:23 -04:00
2016-04-27 22:48:24 -04:00
2016-03-21 22:56:38 -04:00