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-05-11 00:21:54 +09:00
2017-05-11 00:21:54 +09:00
2017-05-11 00:21:54 +09:00
2017-05-11 00:21:54 +09:00
2017-06-20 11:27:01 -03:00
2017-05-11 00:21:54 +09:00
2017-05-11 00:21:54 +09:00
2017-05-11 00:21:54 +09:00
2017-05-11 00:21:54 +09:00
2017-05-11 00:21:54 +09:00
2017-05-11 00:21:54 +09:00
2017-05-11 00:21:54 +09:00
2017-05-11 00:21:54 +09:00
2017-05-11 00:21:54 +09:00
2017-05-11 00:21:54 +09:00
2017-05-10 20:45:36 -07:00
2017-05-11 00:21:54 +09:00
2017-07-08 11:17:55 +02:00
2017-05-11 00:21:54 +09:00
2017-05-11 00:21:54 +09:00
2017-06-21 15:14:23 -04:00
2017-05-11 00:21:54 +09:00
2017-07-18 09:33:06 +03:00
2017-05-11 00:21:54 +09:00
2017-06-30 13:53:07 -07:00
2017-06-20 07:12:03 -06:00
2017-04-08 17:37:20 +02:00
2017-07-10 11:40:19 -07:00
2017-07-10 11:40:19 -07:00
2017-05-11 00:18:38 +09:00
2017-08-28 11:13:21 -07:00
2017-05-11 00:18:38 +09:00
2017-06-19 18:26:03 +02:00
2017-04-18 16:54:19 +02:00
2017-06-20 06:54:34 -03:00
2017-05-11 00:18:38 +09:00
2017-08-24 09:33:16 -07:00
2017-06-19 11:03:49 -04:00
2017-05-01 09:27:15 +02:00
2017-05-09 10:10:15 -07:00
2017-08-03 21:37:29 -07:00
2017-07-29 23:23:44 -07:00
2017-06-27 12:05:22 -06:00
2017-07-09 09:03:31 -07:00
2017-04-03 15:18:16 -07:00
2017-04-24 12:35:56 -04:00
2017-08-22 14:29:30 -07:00
2017-06-23 13:42:20 -04:00
2017-04-24 12:46:00 -04:00
2017-08-22 14:29:30 -07:00
2017-08-18 16:10:50 -07:00
2017-07-02 13:40:25 -07:00
2017-05-08 17:15:13 -07:00
2017-08-15 17:05:03 -07:00
2017-05-11 00:21:54 +09:00
2017-07-12 16:26:01 -07:00
2017-06-09 13:29:49 +10:00
2017-07-14 16:28:18 +02:00
2017-04-16 10:06:25 -06:00
2017-06-08 08:40:00 -06:00
2017-08-07 14:16:22 -07:00
2017-07-06 16:24:30 -07:00
2017-06-20 07:02:43 -03:00
2017-04-03 11:45:08 -04:00
2017-06-20 07:18:01 -03:00
2017-07-06 16:24:34 -07:00
2017-06-21 11:22:53 -04:00
2017-06-21 11:22:52 -04:00
2017-04-17 09:58:42 -06:00
2017-05-30 08:20:25 -06:00
2017-07-02 09:56:37 -07:00
2017-06-08 14:16:25 -04:00
2017-05-21 13:37:32 -04:00
2017-04-05 07:13:56 -07:00
2017-07-30 19:28:08 -07:00
2017-06-30 09:44:17 +03:00
2017-04-20 09:54:24 +02:00
2017-06-08 15:57:09 -04:00
2017-06-19 16:54:53 -05:00
2017-04-28 10:23:19 -05:00
2017-05-05 11:36:44 -07:00
2017-06-21 15:14:23 -04:00
2017-05-11 00:18:38 +09:00
2017-05-11 00:18:38 +09:00
2017-07-30 19:28:08 -07:00
2017-07-21 11:00:20 +01:00
2017-06-08 10:31:52 +02:00
2017-07-01 15:26:11 -07:00
2017-08-25 17:10:23 -07:00
2017-08-07 14:16:22 -07:00
2017-07-12 16:26:01 -07:00
2017-06-09 11:22:14 +02:00
2017-05-18 16:34:55 +02:00
2017-04-10 12:34:01 -03:00
2017-05-11 00:18:39 +09:00
2017-07-31 14:37:50 -07:00
2017-04-26 21:19:05 -04:00
2017-06-27 18:23:14 -05:00
2017-04-21 15:59:52 -04:00
2017-07-06 23:11:39 -07:00
2017-07-31 17:26:18 -07:00
2017-05-26 12:52:19 +02:00
2017-06-15 12:12:40 -04:00
2017-06-03 18:43:46 +09:00
2017-06-13 10:48:24 +02:00
2017-06-05 16:58:59 +02:00
2017-06-20 08:14:34 -03:00
2017-03-31 12:55:06 +02:00
2017-03-31 12:55:09 +02:00
2017-06-20 07:03:58 -03:00
2017-04-11 00:28:41 +03:00
2017-04-24 12:35:56 -04:00
2017-06-13 22:02:09 +03:00
2017-08-11 07:03:00 +02:00