Files
linux/include/linux
Paolo Abeni 72a338bcc6 net: core: rework basic flow dissection helper
When the core networking needs to detect the transport offset in a given
packet and parse it explicitly, a full-blown flow_keys struct is used for
storage.
This patch introduces a smaller keys store, rework the basic flow dissect
helper to use it, and apply this new helper where possible - namely in
skb_probe_transport_header(). The used flow dissector data structures
are renamed to match more closely the new role.

The above gives ~50% performance improvement in micro benchmarking around
skb_probe_transport_header() and ~30% around eth_get_headlen(), mostly due
to the smaller memset. Small, but measurable improvement is measured also
in macro benchmarking.

v1 -> v2: use the new helper in eth_get_headlen() and skb_get_poff(),
  as per DaveM suggestion

Suggested-by: David Miller <davem@davemloft.net>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2018-05-08 00:02:36 -04:00
..
…
2018-02-14 09:43:22 -08:00
…
…
…
…
…
2018-02-20 11:34:54 +00:00
2018-03-08 13:56:24 +05:30
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2018-04-20 17:18:35 -07:00
…
…
2018-04-11 10:28:37 -07:00
…
…
…
…
2018-03-16 10:56:13 +01:00
2018-03-31 02:16:26 +02:00
…
…
…
…
…
…
…
…
…
…
…
…
2018-03-16 15:45:51 -07:00
…
…
…
…
…
2018-01-03 14:03:48 +01:00
…
2018-03-16 10:55:47 +01:00
…
…
…
…
…
2018-03-26 15:09:38 +02:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2018-03-12 10:05:01 +01:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2018-03-26 15:56:44 +02:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2018-02-26 09:48:42 -07:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2018-02-22 21:13:03 +01:00
…
…
…
…
…
…
…
…
…
…
2018-03-26 08:53:43 -06:00
2018-01-17 11:30:16 +00:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2018-04-11 10:28:35 -07:00
…
…
2018-04-11 10:28:38 -07:00
…
…
…
…
…
…
…
…
…
…
2018-02-24 01:43:47 +01:00
…
…
…
…
2018-03-13 13:29:10 -07:00
…
…
…
…
…
…
…
2018-04-12 09:41:19 -07:00
…
…
…
…
…
…
…
…
…
…
…
2018-01-03 11:00:22 -05:00
…
…
2018-04-11 10:28:32 -07:00
…
…
…
2018-04-11 10:28:39 -07:00
…
…
…
…
2018-03-26 13:14:43 -04:00
2018-03-26 13:14:43 -04:00
2018-03-26 13:14:43 -04:00
…
…
…
…
…
…
…
…
…
…
…
…
2018-01-28 22:17:24 -05:00
…
…
…
2018-01-08 08:22:45 -06:00
2018-01-17 15:25:50 +01:00
…
…
2018-01-08 08:22:45 -06:00
…
…
…
…
…
2018-04-11 10:28:39 -07:00
2018-01-31 17:18:37 -08:00
…
…
…
…
…
…
…
…
…
2018-01-19 16:50:53 -08:00
…
…
2018-04-28 16:48:04 -04:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2018-02-20 16:12:26 -08:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2018-03-17 14:20:55 +01:00
…
2018-03-01 08:33:05 -07:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2018-01-29 12:02:54 -05:00
2018-04-05 21:36:24 -07:00
2018-04-05 21:36:27 -07:00
…
…
…
…
…
…
…
2018-05-03 15:55:23 -07:00
…
…
…
…
…
…
2018-01-18 11:56:49 +01:00
…
…
…
2018-01-15 12:07:46 -08:00
…
…
…
…
…
…
…
…
2018-02-06 18:32:47 -08:00
2018-01-09 16:27:43 +01:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2018-02-20 16:10:25 -08:00
…
2018-04-26 15:08:04 -04:00
…
…
…
…
…
…
…
2018-02-06 18:32:44 -08:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…