Eric Dumazet
e68b6e50fa
udp: enable busy polling for all sockets
...
UDP busy polling is restricted to connected UDP sockets.
This is because sk_busy_loop() only takes care of one NAPI context.
There are cases where it could be extended.
1) Some hosts receive traffic on a single NIC, with one RX queue.
2) Some applications use SO_REUSEPORT and associated BPF filter
to split the incoming traffic on one UDP socket per RX
queue/thread/cpu
3) Some UDP sockets are used to send/receive traffic for one flow, but
they do not bother with connect()
This patch records the napi_id of first received skb, giving more
reach to busy polling.
Tested:
lpaa23:~# echo 70 >/proc/sys/net/core/busy_read
lpaa24:~# echo 70 >/proc/sys/net/core/busy_read
lpaa23:~# for f in `seq 1 10`; do ./super_netperf 1 -H lpaa24 -t UDP_RR -l 5; done
Before patch :
27867 28870 37324 41060 41215
36764 36838 44455 41282 43843
After patch :
73920 73213 70147 74845 71697
68315 68028 75219 70082 73707
Signed-off-by: Eric Dumazet <edumazet@google.com>
Cc: Willem de Bruijn <willemb@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2016-11-18 10:44:31 -05:00
..
2015-04-11 22:28:27 -04:00
2016-09-19 20:19:34 +02:00
2015-02-20 17:35:14 -05:00
2014-12-10 15:33:16 -05:00
2015-09-21 16:03:04 -07:00
2016-11-15 10:54:36 -05:00
2016-11-13 22:41:25 -05:00
2016-07-11 02:01:14 +02:00
2016-02-11 03:54:14 -05:00
2016-11-16 23:22:17 -05:00
2016-11-09 13:41:53 -05:00
2016-06-15 20:41:22 -07:00
2016-11-09 21:14:05 -05:00
2016-10-21 11:29:02 -04:00
2015-09-17 13:20:05 +02:00
2016-09-08 11:10:12 +01:00
2016-09-04 13:29:29 -07:00
2016-08-02 02:57:29 +03:00
2014-09-18 10:54:36 +02:00
2015-03-04 00:23:23 -05:00
2015-06-28 16:55:44 -07:00
2016-02-09 04:45:49 -05:00
2014-11-10 13:27:49 -05:00
2015-07-27 01:05:24 -07:00
2016-09-27 21:15:21 -04:00
2016-11-18 10:44:31 -05:00
2016-06-27 15:06:17 -04:00
2016-10-30 12:42:58 -04:00
2016-07-08 12:20:57 +02:00
2016-03-13 15:01:00 -04:00
2015-02-11 14:46:37 -05:00
2016-04-19 20:09:25 -04:00
2016-04-25 16:44:27 -04:00
2016-06-25 12:19:35 -04:00
2016-04-25 16:44:27 -04:00
2016-06-09 23:41:03 -07:00
2015-03-06 21:50:02 -05:00
2016-08-26 11:55:18 -07:00
2015-09-17 17:18:37 -07:00
2016-09-23 08:38:50 -04:00
2016-02-16 20:21:48 -05:00
2016-11-09 13:41:54 -05:00
2015-10-08 04:27:02 -07:00
2016-04-25 16:20:09 -04:00
2015-09-23 15:33:15 -07:00
2016-11-04 14:45:23 -04:00
2016-11-09 13:41:54 -05:00
2016-11-04 14:45:23 -04:00
2016-05-20 18:03:16 -04:00
2016-09-30 13:29:21 +02:00
2016-09-30 13:29:21 +02:00
2016-06-07 16:37:14 -07:00
2016-11-13 12:14:59 -05:00
2016-06-17 20:23:32 -07:00
2016-08-18 01:17:32 -04:00
2016-07-22 00:50:41 -04:00
2016-07-25 17:55:43 -07:00
2014-11-05 16:30:03 -05:00
2016-03-14 12:19:46 -04:00
2016-04-27 22:48:25 -04:00
2016-10-19 12:11:36 +02:00
2016-01-04 20:40:41 +01:00
2016-10-14 10:59:15 -04:00
2015-12-15 23:25:20 -05:00
2016-03-22 15:45:44 -04:00
2016-04-04 22:11:20 -04:00
2016-05-20 18:03:17 -04:00
2016-10-29 15:09:21 -04:00
2016-08-13 15:08:00 -07:00
2016-02-16 20:42:54 -05:00
2016-04-04 22:11:20 -04:00
2016-11-03 15:41:11 -04:00
2015-10-20 06:08:27 -07:00
2015-12-16 00:14:12 -05:00
2016-03-13 23:55:13 -04:00
2016-10-27 16:30:52 -04:00
2016-11-04 14:45:23 -04:00
2016-11-02 15:18:36 -04:00
2016-09-28 04:48:00 -04:00
2016-09-17 10:13:07 -04:00
2016-06-06 09:47:25 +09:00
2016-11-15 10:54:36 -05:00
2016-11-09 20:40:06 -05:00
2014-11-24 04:28:49 -05:00
2016-01-29 17:13:43 +01:00
2016-08-17 19:36:23 -04:00
2016-10-13 12:05:26 -04:00
2014-10-14 02:18:27 +02:00
2014-12-10 15:21:24 -05:00
2015-05-11 10:50:17 -04:00
2014-12-10 15:21:24 -05:00
2016-11-16 17:01:15 -05:00
2016-10-30 12:42:58 -04:00
2016-07-08 13:23:12 +02:00
2014-09-22 16:23:15 -04:00
2015-10-23 06:26:42 -07:00
2016-10-03 02:00:22 -04:00
2016-10-04 02:11:51 -04:00
2016-06-15 20:41:23 -07:00
2015-08-10 13:46:21 -07:00
2016-08-08 14:42:04 -05:00
2016-07-05 09:06:29 -07:00
2016-06-27 15:06:18 -04:00
2016-10-29 14:57:42 -04:00
2015-12-08 22:02:33 -05:00
2016-07-08 12:20:57 +02:00
2016-03-23 22:09:58 -04:00
2016-09-28 05:02:44 -04:00
2016-11-07 20:15:55 -05:00
2016-08-15 10:55:53 -07:00
2016-04-07 16:53:30 -04:00
2016-10-23 19:35:24 -04:00
2016-10-23 19:35:24 -04:00
2014-12-17 11:49:55 +01:00
2016-04-04 22:11:19 -04:00
2016-11-04 14:45:23 -04:00
2016-06-30 06:15:04 -04:00
2016-09-19 01:47:18 -04:00
2016-02-08 10:30:42 -05:00
2014-06-02 11:00:41 -07:00
2016-11-09 20:40:06 -05:00
2016-11-09 20:40:06 -05:00
2016-04-28 11:49:45 -04:00
2016-01-19 14:44:23 -05:00
2016-11-15 10:54:36 -05:00
2016-08-28 23:32:41 -04:00
2016-09-28 04:48:00 -04:00
2015-03-12 22:58:12 -04:00
2016-11-13 12:30:02 -05:00
2015-07-09 15:12:20 -07:00
2016-05-03 16:08:14 -04:00
2015-10-26 22:24:22 -07:00
2016-06-17 20:23:32 -07:00
2016-11-15 11:59:38 -05:00
2016-11-15 11:59:38 -05:00
2016-11-15 12:16:13 -05:00
2014-09-05 17:35:28 -07:00
2016-09-23 06:46:57 -04:00