John Fastabend
464bc0fd62
bpf: convert sockmap field attach_bpf_fd2 to type
...
In the initial sockmap API we provided strparser and verdict programs
using a single attach command by extending the attach API with a the
attach_bpf_fd2 field.
However, if we add other programs in the future we will be adding a
field for every new possible type, attach_bpf_fd(3,4,..). This
seems a bit clumsy for an API. So lets push the programs using two
new type fields.
BPF_SK_SKB_STREAM_PARSER
BPF_SK_SKB_STREAM_VERDICT
This has the advantage of having a readable name and can easily be
extended in the future.
Updates to samples and sockmap included here also generalize tests
slightly to support upcoming patch for multiple map support.
Signed-off-by: John Fastabend <john.fastabend@gmail.com >
Fixes: 174a79ff95 ("bpf: sockmap with sk redirect support")
Suggested-by: Alexei Starovoitov <ast@kernel.org >
Acked-by: Alexei Starovoitov <ast@kernel.org >
Signed-off-by: David S. Miller <davem@davemloft.net >
2017-08-28 11:13:21 -07:00
..
2017-08-25 14:52:29 -07:00
2017-08-01 16:46:45 +02:00
2017-08-01 16:46:44 +02:00
2017-07-23 20:54:31 -07:00
2017-07-13 15:58:02 -04:00
2017-08-02 10:44:09 -07:00
2017-08-24 16:02:58 +03:00
2017-08-02 10:26:42 +02:00
2017-07-27 13:43:22 +01:00
2017-08-07 15:26:34 +02:00
2017-08-15 20:23:23 -07:00
2017-07-27 00:05:22 -07:00
2017-08-03 21:37:30 -07:00
2017-07-13 13:56:24 -07:00
2017-07-22 08:55:16 -07:00
2017-07-30 07:53:44 -07:00
2017-08-16 15:34:13 -07:00
2017-08-23 22:38:08 -07:00
2017-07-17 13:37:56 -07:00
2017-08-28 11:13:21 -07:00
2017-07-14 12:37:41 -07:00
2017-07-19 08:55:18 -07:00
2017-07-19 08:55:18 -07:00
2017-07-14 13:12:32 -07:00
2017-07-26 21:51:25 -04:00
2017-08-02 17:16:12 -07:00
2017-07-19 08:55:18 -07:00
2017-07-26 15:55:44 -04:00
2017-07-19 08:55:18 -07:00
2017-08-07 15:26:34 +02:00
2017-08-17 09:10:48 -07:00
2017-07-14 16:09:55 -03:00
2017-07-20 16:09:10 +02:00
2017-08-18 16:30:17 -07:00
2017-08-24 11:59:36 -07:00
2017-07-19 08:55:18 -07:00
2017-07-20 09:27:29 -04:00
2017-07-15 12:00:42 -07:00
2017-08-16 16:27:45 -07:00
2017-07-31 17:33:53 +02:00
2017-08-07 11:39:22 -07:00
2017-07-19 08:55:18 -07:00
2017-08-07 11:39:22 -07:00
2017-07-27 15:40:02 +02:00
2017-07-17 09:22:34 -07:00
2017-07-19 08:55:18 -07:00
2017-08-02 16:34:47 -07:00
2017-08-02 22:41:02 +02:00
2017-07-19 15:33:50 -07:00
2017-07-19 08:55:18 -07:00
2017-08-18 15:32:01 -07:00
2017-08-18 15:32:01 -07:00
2017-08-10 15:54:07 -07:00
2017-07-19 08:55:18 -07:00
2017-08-15 20:23:23 -07:00
2017-07-24 13:52:59 -07:00
2017-08-18 22:38:31 -07:00
2017-07-17 17:01:10 +02:00
2017-07-13 16:00:15 -04:00
2017-07-13 16:00:12 -04:00
2017-07-21 11:51:19 -04:00
2017-07-13 17:12:07 -04:00
2017-08-01 16:28:55 -04:00
2017-08-18 12:35:02 +02:00
2017-08-10 11:06:38 +02:00
2017-07-25 18:05:25 +02:00
2017-07-25 17:58:32 +02:00
2017-08-18 15:32:01 -07:00
2017-08-02 17:16:13 -07:00
2017-08-15 18:52:28 -07:00
2017-08-10 12:01:08 +02:00
2017-08-06 20:55:29 -07:00
2017-08-06 20:55:29 -07:00
2017-08-21 12:47:31 -07:00
2017-08-01 15:22:55 -07:00
2017-08-16 16:28:47 -07:00
2017-07-15 12:44:02 -07:00
2017-08-21 12:47:31 -07:00
2017-08-03 09:45:47 -07:00
2017-08-07 14:16:22 -07:00
2017-07-19 08:55:18 -07:00
2017-08-06 20:55:29 -07:00
2017-08-16 16:28:47 -07:00
2017-08-09 16:49:17 -07:00
2017-08-03 21:37:29 -07:00
2017-07-15 12:00:42 -07:00
2017-07-31 10:55:24 -03:00
2017-08-07 14:09:48 -07:00
2017-07-19 08:55:18 -07:00
2017-08-06 21:25:10 -07:00
2017-08-08 17:51:34 -07:00
2017-07-20 09:27:29 -04:00
2017-07-19 08:55:18 -07:00
2017-07-24 17:50:37 +02:00
2017-07-26 13:30:23 -06:00
2017-07-17 09:52:58 -07:00
2017-08-18 15:32:01 -07:00
2017-07-25 13:28:56 -04:00