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
2016-02-18 14:59:34 -05:00
2015-11-30 14:47:33 -05:00
2016-03-09 22:13:01 -05:00
2016-03-02 13:45:47 -05:00
2016-04-26 13:15:56 -04:00
2016-04-27 22:48:24 -04:00
2016-03-14 13:09:50 -04:00
2016-04-04 15:50:30 -04:00
2016-04-04 10:41:08 -07:00
2016-04-28 16:38:54 -04:00
2016-04-27 22:48:25 -04:00
2016-04-10 23:01:30 -04:00
2016-04-21 13:43:11 -04:00
2016-02-24 13:58:05 -05:00
2016-04-21 13:59:08 -04:00
2016-04-26 13:15:56 -04:00
2016-04-28 16:14:19 -04:00
2016-04-27 22:48:25 -04:00
2016-02-14 14:36:04 -08:00
2016-01-19 14:21:08 -05:00
2016-03-09 16:36:15 -05:00
2016-04-25 15:09:10 -04:00
2016-02-26 14:22:26 -05:00
2016-04-13 22:37:20 -04:00
2016-04-12 15:56:15 +02:00
2016-03-19 10:05:34 -07:00
2016-04-14 16:23:40 -04:00
2016-04-25 15:09:11 -04:00
2016-03-07 11:08:26 -05:00
2016-04-23 18:51:33 -04:00
2016-03-19 10:05:34 -07:00
2016-04-26 12:00:48 -04:00
2016-04-23 18:51:33 -04:00
2016-02-11 03:54:14 -05:00
2016-04-25 16:54:14 -04:00
2016-04-05 10:48:53 +02:00
2016-04-27 22:48:23 -04:00
2016-04-26 15:53:05 -04:00
2016-04-27 22:48:24 -04:00
2016-04-27 22:48:23 -04:00
2016-04-24 14:23:32 -04:00
2016-04-24 14:35:07 -04:00
2016-02-23 00:09:14 -05:00
2016-04-19 20:42:01 -04:00
2016-04-25 15:09:11 -04:00
2016-04-23 20:13:25 -04:00
2016-03-21 22:56:38 -04:00
2016-03-09 16:36:14 -05:00
2016-04-28 16:06:10 -04:00