Files
rockchip-kernel/include/linux
Daniel Borkmann f035a51536 bpf: add BPF_SIZEOF and BPF_FIELD_SIZEOF macros
Add BPF_SIZEOF() and BPF_FIELD_SIZEOF() macros to improve the code a bit
which otherwise often result in overly long bytes_to_bpf_size(sizeof())
and bytes_to_bpf_size(FIELD_SIZEOF()) lines. So place them into a macro
helper instead. Moreover, we currently have a BUILD_BUG_ON(BPF_FIELD_SIZEOF())
check in convert_bpf_extensions(), but we should rather make that generic
as well and add a BUILD_BUG_ON() test in all BPF_SIZEOF()/BPF_FIELD_SIZEOF()
users to detect any rewriter size issues at compile time. Note, there are
currently none, but we want to assert that it stays this way.

Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
2016-09-09 19:36:04 -07:00
..
2016-08-18 18:49:59 +03:00
2016-07-04 17:19:22 +05:30
2016-07-08 16:23:11 +02:00
2016-07-25 11:47:52 +01:00
2016-07-04 08:19:21 -07:00
2016-08-16 09:16:51 -06:00
2016-08-04 08:50:07 -04:00
2016-08-07 14:41:02 -06:00
2016-08-07 14:41:02 -06:00
2016-08-16 09:16:51 -06:00
2016-06-07 13:41:38 -06:00
2016-08-11 09:41:35 -06:00
2016-06-25 09:04:48 -07:00
2016-08-02 19:35:24 -04:00
2016-07-26 16:19:19 -07:00
2016-06-07 13:41:38 -06:00
2016-05-17 15:48:12 -04:00
2016-05-29 18:35:12 -04:00
2016-05-29 18:35:12 -04:00
2016-06-27 12:26:08 -07:00
2016-07-22 09:07:02 +02:00
2016-03-22 15:36:02 -07:00
2016-06-21 09:38:45 +10:00
2016-08-02 19:35:44 -04:00
2016-05-11 22:37:54 +02:00
2016-03-22 15:36:02 -07:00
2016-03-22 15:36:02 -07:00
2016-05-03 15:07:35 -07:00
2016-05-19 19:12:14 -07:00
2016-08-04 10:16:55 +09:30
2016-06-24 10:40:41 -05:00
2016-07-29 12:17:52 -07:00
2016-07-12 19:25:38 -07:00
2016-08-28 23:32:41 -04:00
2016-06-03 19:37:21 -04:00
2016-05-17 15:47:55 -04:00
2016-04-25 15:09:11 -04:00
2016-05-02 09:00:56 -05:00
2016-07-28 16:07:41 -07:00
2016-05-19 19:12:14 -07:00
2016-07-12 19:25:38 -07:00
2016-07-06 10:51:14 +01:00
2016-03-22 15:36:02 -07:00
2016-07-26 16:19:19 -07:00
2016-06-14 10:54:40 -07:00
2016-07-20 23:30:06 -04:00
2016-08-28 23:44:55 -04:00
2016-05-08 23:46:14 -04:00
2016-05-19 19:12:14 -07:00
2016-06-20 12:47:15 -07:00
2016-07-19 17:43:38 +03:00
2016-05-23 17:04:14 -07:00
2016-04-07 16:53:29 -04:00
2016-07-26 16:19:19 -07:00
2016-05-20 17:58:30 -07:00
2016-06-25 09:04:48 -07:00