Files
kernel_arpi/include/uapi/linux
Willem de Bruijn ec57e3434c UPSTREAM: bpf: Add gso_size to __sk_buff
BPF programs may want to know whether an skb is gso. The canonical
answer is skb_is_gso(skb), which tests that gso_size != 0.

Expose this field in the same manner as gso_segs. That field itself
is not a sufficient signal, as the comment in skb_shared_info makes
clear: gso_segs may be zero, e.g., from dodgy sources.

Also prepare net/bpf/test_run for upcoming BPF_PROG_TEST_RUN tests
of the feature.

Signed-off-by: Willem de Bruijn <willemb@google.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link: https://lore.kernel.org/bpf/20200303200503.226217-2-willemdebruijn.kernel@gmail.com

Note: backported without changes to net/bpf/test_run.c

(cherry picked from commit cf62089b0e)
Signed-off-by: Maciej Żenczykowski <maze@google.com>
Change-Id: I1f7d1b49e5ac35f18546d468e3847deaae5056ca
2020-07-02 11:47:27 +00:00
..
2020-06-07 13:18:48 +02:00
2020-01-12 15:36:52 +01:00
2019-07-09 12:11:59 -07:00
2020-07-02 11:47:27 +00:00
2019-09-19 14:22:44 +02:00
2019-09-25 17:51:39 -07:00
2019-08-02 14:44:02 +10:00
2019-09-16 10:18:01 -04:00
2020-05-06 08:15:01 +02:00
2019-08-12 19:33:50 -07:00
2019-09-18 10:43:22 -06:00
2019-09-08 15:37:04 +02:00
2020-06-25 13:08:15 +02:00
2019-08-19 13:04:45 -07:00
2019-09-23 16:10:28 -05:00
2019-10-02 20:32:27 -06:00
2019-07-30 20:34:34 +02:00
2019-11-05 15:50:14 +01:00
2020-01-08 15:26:59 -08:00
2019-09-16 16:26:11 +02:00
2019-09-18 20:17:50 +02:00
2019-08-01 21:49:46 +02:00
2020-06-03 08:21:33 +02:00