gallatin
7a82a42584
iflib: Add pfil hooks
...
As with mlx5en, the idea is to drop unwanted traffic as early
in receive as possible, before mbufs are allocated and anything
is passed up the stack. This can save considerable CPU time
when a machine is under a flooding style DOS attack.
The major change here is to remove the unneeded abstraction where
callers of rxd_frag_to_sd() get back a pointer to the mbuf ring, and
are responsible for NULL'ing that mbuf themselves. Now this happens
directly in rxd_frag_to_sd(), and it returns an mbuf. This allows us
to use the decision (and potentially mbuf) returned by the pfil
hooks. The driver can now recycle mbufs to avoid re-allocation when
packets are dropped.
Reviewed by: marius (shurd and erj also provided feedback)
Sponsored by: Netflix
Differential Revision: https://reviews.freebsd.org/D19645
2019-04-24 13:32:04 +00:00
..
2019-02-11 05:17:31 +00:00
2017-11-20 19:43:44 +00:00
2017-11-27 15:23:17 +00:00
2017-11-20 19:43:44 +00:00
2018-06-13 17:04:41 +00:00
2018-06-13 17:04:41 +00:00
2017-11-27 15:23:17 +00:00
2017-11-27 15:23:17 +00:00
2019-03-19 10:29:32 +00:00
2017-11-20 19:43:44 +00:00
2018-06-19 10:34:45 +00:00
2019-03-15 11:21:20 +00:00
2017-11-27 15:23:17 +00:00
2018-05-31 09:11:21 +00:00
2019-04-17 17:18:43 +00:00
2017-11-27 15:23:17 +00:00
2018-08-22 18:19:56 +00:00
2017-11-27 15:23:17 +00:00
2019-04-17 17:18:43 +00:00
2019-03-09 01:12:59 +00:00
2019-04-17 17:18:43 +00:00
2018-05-11 05:00:40 +00:00
2018-07-24 16:35:52 +00:00
2018-05-11 20:08:28 +00:00
2017-11-27 15:23:17 +00:00
2017-11-27 15:23:17 +00:00
2018-07-24 16:35:52 +00:00
2017-11-20 19:43:44 +00:00
2018-07-24 16:35:52 +00:00
2019-01-31 23:01:03 +00:00
2017-11-27 15:23:17 +00:00
2018-07-24 16:35:52 +00:00
2019-04-17 17:18:43 +00:00
2018-03-27 20:51:49 +00:00
2018-10-21 18:06:15 +00:00
2018-10-21 18:06:15 +00:00
2019-04-24 09:05:45 +00:00
2019-04-24 09:05:45 +00:00
2018-11-16 14:21:57 +00:00
2019-03-28 21:00:54 +00:00
2018-05-24 23:21:23 +00:00
2019-01-09 01:11:19 +00:00
2018-05-24 23:21:23 +00:00
2017-11-20 19:43:44 +00:00
2018-07-24 16:35:52 +00:00
2018-10-23 13:11:45 +00:00
2018-04-23 21:10:33 +00:00
2018-08-22 18:19:56 +00:00
2017-11-27 15:23:17 +00:00
2017-11-27 15:23:17 +00:00
2019-04-04 01:02:50 +00:00
2019-03-30 18:00:44 +00:00
2018-12-11 19:32:16 +00:00
2017-11-27 15:23:17 +00:00
2017-11-27 15:23:17 +00:00
2019-04-23 17:28:28 +00:00
2017-11-20 19:43:44 +00:00
2019-04-22 19:24:21 +00:00
2018-08-16 23:46:38 +00:00
2019-02-13 14:57:59 +00:00
2019-04-17 17:18:43 +00:00
2017-12-30 04:03:53 +00:00
2019-04-22 19:24:21 +00:00
2018-11-26 13:42:18 +00:00
2018-05-11 20:08:28 +00:00
2018-05-11 20:08:28 +00:00
2018-11-27 20:01:05 +00:00
2019-04-24 13:32:04 +00:00
2019-03-19 23:44:26 +00:00
2017-11-20 19:43:44 +00:00
2019-01-03 23:06:05 +00:00
2019-01-03 23:06:05 +00:00
2017-11-27 15:23:17 +00:00
2018-07-24 16:35:52 +00:00
2017-11-27 15:23:17 +00:00
2019-03-18 12:22:23 +00:00
2019-03-18 12:22:23 +00:00
2018-12-05 11:57:16 +00:00
2019-03-18 12:22:23 +00:00
2019-03-10 17:20:09 +00:00
2019-03-10 17:20:09 +00:00
2017-11-20 19:43:44 +00:00
2019-03-15 11:08:44 +00:00
2018-06-16 08:26:23 +00:00
2017-11-20 19:43:44 +00:00
2018-06-16 08:26:23 +00:00
2018-06-16 19:21:09 +00:00
2017-11-20 19:43:44 +00:00
2017-11-20 19:43:44 +00:00
2017-11-20 19:43:44 +00:00
2018-06-16 08:26:23 +00:00
2019-01-09 01:11:19 +00:00
2018-11-26 13:42:18 +00:00
2019-04-14 10:18:14 +00:00
2017-12-05 18:42:07 +00:00
2017-11-20 19:43:44 +00:00
2017-11-20 19:43:44 +00:00
2018-10-30 20:45:15 +00:00
2018-09-12 08:05:33 +00:00