* [PATCH net-next 0/3] tools lib bpf: Synchronize implementations
@ 2016-10-31 18:39 Joe Stringer
2016-11-01 15:48 ` David Miller
2016-11-01 20:51 ` David Ahern
0 siblings, 2 replies; 8+ messages in thread
From: Joe Stringer @ 2016-10-31 18:39 UTC (permalink / raw)
To: netdev; +Cc: wangnan0, ast
Update tools/lib/bpf to provide more functionality and improve interoperation
with other tools that generate and use eBPF code.
The kernel uapi headers are a bit newer than the version in the tools/
directory; synchronize those.
samples/bpf/libbpf* has a bit more functionality than tools/lib/bpf, so extend
tools/lib/bpf/bpf* with these functions to bring them into parity.
tools/lib/bpf cannot read ELFs that tc can read, and vice versa. Update the
map definition to be the same as in tc so the ELFs may be interchangeable
(at least for now; I don't have a long-term plan in mind to ensure this always
works).
Joe Stringer (3):
tools lib bpf: Sync {tools,}/include/uapi/linux/bpf.h
tools lib bpf: Sync with samples/bpf/libbpf
tools lib bpf: Sync bpf_map_def with tc
tools/include/uapi/linux/bpf.h | 51 ++++++++++
tools/lib/bpf/bpf.c | 139 ++++++++++++++++++++++-----
tools/lib/bpf/bpf.h | 208 +++++++++++++++++++++++++++++++++++++++--
tools/lib/bpf/libbpf.c | 3 +-
tools/lib/bpf/libbpf.h | 11 ++-
5 files changed, 375 insertions(+), 37 deletions(-)
--
2.9.3
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH net-next 0/3] tools lib bpf: Synchronize implementations
2016-10-31 18:39 Joe Stringer
@ 2016-11-01 15:48 ` David Miller
2016-11-01 20:51 ` David Ahern
1 sibling, 0 replies; 8+ messages in thread
From: David Miller @ 2016-11-01 15:48 UTC (permalink / raw)
To: joe; +Cc: netdev, wangnan0, ast, daniel
From: Joe Stringer <joe@ovn.org>
Date: Mon, 31 Oct 2016 11:39:14 -0700
> Update tools/lib/bpf to provide more functionality and improve interoperation
> with other tools that generate and use eBPF code.
>
> The kernel uapi headers are a bit newer than the version in the tools/
> directory; synchronize those.
>
> samples/bpf/libbpf* has a bit more functionality than tools/lib/bpf, so extend
> tools/lib/bpf/bpf* with these functions to bring them into parity.
>
> tools/lib/bpf cannot read ELFs that tc can read, and vice versa. Update the
> map definition to be the same as in tc so the ELFs may be interchangeable
> (at least for now; I don't have a long-term plan in mind to ensure this always
> works).
Alexei and Daniel, please review.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH net-next 0/3] tools lib bpf: Synchronize implementations
2016-10-31 18:39 Joe Stringer
2016-11-01 15:48 ` David Miller
@ 2016-11-01 20:51 ` David Ahern
2016-11-01 22:17 ` Joe Stringer
1 sibling, 1 reply; 8+ messages in thread
From: David Ahern @ 2016-11-01 20:51 UTC (permalink / raw)
To: Joe Stringer, netdev; +Cc: wangnan0, ast
On 10/31/16 12:39 PM, Joe Stringer wrote:
> Update tools/lib/bpf to provide more functionality and improve interoperation
> with other tools that generate and use eBPF code.
>
> The kernel uapi headers are a bit newer than the version in the tools/
> directory; synchronize those.
>
> samples/bpf/libbpf* has a bit more functionality than tools/lib/bpf, so extend
> tools/lib/bpf/bpf* with these functions to bring them into parity.
>
> tools/lib/bpf cannot read ELFs that tc can read, and vice versa. Update the
> map definition to be the same as in tc so the ELFs may be interchangeable
> (at least for now; I don't have a long-term plan in mind to ensure this always
> works).
can samples/bpf be converted to use tools/lib/bpf/libbpf.a?
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH net-next 0/3] tools lib bpf: Synchronize implementations
@ 2016-11-01 22:04 Alexei Starovoitov
2016-11-02 19:04 ` David Miller
0 siblings, 1 reply; 8+ messages in thread
From: Alexei Starovoitov @ 2016-11-01 22:04 UTC (permalink / raw)
To: David Miller
Cc: joe, netdev@vger.kernel.org, Wang Nan, Alexei Starovoitov,
Daniel Borkmann, Arnaldo Carvalho de Melo
On Tue, Nov 1, 2016 at 9:48 AM, David Miller <davem@davemloft.net> wrote:
> From: Joe Stringer <joe@ovn.org>
> Date: Mon, 31 Oct 2016 11:39:14 -0700
>
>> Update tools/lib/bpf to provide more functionality and improve interoperation
>> with other tools that generate and use eBPF code.
>>
>> The kernel uapi headers are a bit newer than the version in the tools/
>> directory; synchronize those.
>>
>> samples/bpf/libbpf* has a bit more functionality than tools/lib/bpf, so extend
>> tools/lib/bpf/bpf* with these functions to bring them into parity.
>>
>> tools/lib/bpf cannot read ELFs that tc can read, and vice versa. Update the
>> map definition to be the same as in tc so the ELFs may be interchangeable
>> (at least for now; I don't have a long-term plan in mind to ensure this always
>> works).
>
> Alexei and Daniel, please review.
sorry for delay. swamped at KS+plumbers.
quick note:
I think these patches has to go through Arnaldo's perf tree, since
otherwise they will conflict with Wang's changes.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH net-next 0/3] tools lib bpf: Synchronize implementations
2016-11-01 20:51 ` David Ahern
@ 2016-11-01 22:17 ` Joe Stringer
2016-11-02 2:46 ` Daniel Borkmann
0 siblings, 1 reply; 8+ messages in thread
From: Joe Stringer @ 2016-11-01 22:17 UTC (permalink / raw)
To: David Ahern; +Cc: netdev, wangnan0, ast
On 1 November 2016 at 13:51, David Ahern <dsa@cumulusnetworks.com> wrote:
> On 10/31/16 12:39 PM, Joe Stringer wrote:
>> Update tools/lib/bpf to provide more functionality and improve interoperation
>> with other tools that generate and use eBPF code.
>>
>> The kernel uapi headers are a bit newer than the version in the tools/
>> directory; synchronize those.
>>
>> samples/bpf/libbpf* has a bit more functionality than tools/lib/bpf, so extend
>> tools/lib/bpf/bpf* with these functions to bring them into parity.
>>
>> tools/lib/bpf cannot read ELFs that tc can read, and vice versa. Update the
>> map definition to be the same as in tc so the ELFs may be interchangeable
>> (at least for now; I don't have a long-term plan in mind to ensure this always
>> works).
>
> can samples/bpf be converted to use tools/lib/bpf/libbpf.a?
I have a few other patches sitting around that need this series,
including an attempt at this.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH net-next 0/3] tools lib bpf: Synchronize implementations
2016-11-01 22:17 ` Joe Stringer
@ 2016-11-02 2:46 ` Daniel Borkmann
0 siblings, 0 replies; 8+ messages in thread
From: Daniel Borkmann @ 2016-11-02 2:46 UTC (permalink / raw)
To: Joe Stringer, David Ahern; +Cc: netdev, wangnan0, ast
On 11/01/2016 11:17 PM, Joe Stringer wrote:
> On 1 November 2016 at 13:51, David Ahern <dsa@cumulusnetworks.com> wrote:
>> On 10/31/16 12:39 PM, Joe Stringer wrote:
>>> Update tools/lib/bpf to provide more functionality and improve interoperation
>>> with other tools that generate and use eBPF code.
>>>
>>> The kernel uapi headers are a bit newer than the version in the tools/
>>> directory; synchronize those.
>>>
>>> samples/bpf/libbpf* has a bit more functionality than tools/lib/bpf, so extend
>>> tools/lib/bpf/bpf* with these functions to bring them into parity.
>>>
>>> tools/lib/bpf cannot read ELFs that tc can read, and vice versa. Update the
>>> map definition to be the same as in tc so the ELFs may be interchangeable
>>> (at least for now; I don't have a long-term plan in mind to ensure this always
>>> works).
>>
>> can samples/bpf be converted to use tools/lib/bpf/libbpf.a?
>
> I have a few other patches sitting around that need this series,
> including an attempt at this.
That sounds great, looking forward!
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH net-next 0/3] tools lib bpf: Synchronize implementations
2016-11-01 22:04 [PATCH net-next 0/3] tools lib bpf: Synchronize implementations Alexei Starovoitov
@ 2016-11-02 19:04 ` David Miller
2016-11-02 19:12 ` Arnaldo Carvalho de Melo
0 siblings, 1 reply; 8+ messages in thread
From: David Miller @ 2016-11-02 19:04 UTC (permalink / raw)
To: alexei.starovoitov; +Cc: joe, netdev, wangnan0, ast, daniel, acme
From: Alexei Starovoitov <alexei.starovoitov@gmail.com>
Date: Tue, 1 Nov 2016 16:04:35 -0600
> I think these patches has to go through Arnaldo's perf tree, since
> otherwise they will conflict with Wang's changes.
Ok.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH net-next 0/3] tools lib bpf: Synchronize implementations
2016-11-02 19:04 ` David Miller
@ 2016-11-02 19:12 ` Arnaldo Carvalho de Melo
0 siblings, 0 replies; 8+ messages in thread
From: Arnaldo Carvalho de Melo @ 2016-11-02 19:12 UTC (permalink / raw)
To: David Miller; +Cc: alexei.starovoitov, joe, netdev, wangnan0, ast, daniel
Em Wed, Nov 02, 2016 at 03:04:05PM -0400, David Miller escreveu:
> From: Alexei Starovoitov <alexei.starovoitov@gmail.com>
> Date: Tue, 1 Nov 2016 16:04:35 -0600
>
> > I think these patches has to go through Arnaldo's perf tree, since
> > otherwise they will conflict with Wang's changes.
>
> Ok.
I'll look at it when back from Plumbers, maybe before.
- Arnaldo
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2016-11-02 19:12 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-11-01 22:04 [PATCH net-next 0/3] tools lib bpf: Synchronize implementations Alexei Starovoitov
2016-11-02 19:04 ` David Miller
2016-11-02 19:12 ` Arnaldo Carvalho de Melo
-- strict thread matches above, loose matches on Subject: below --
2016-10-31 18:39 Joe Stringer
2016-11-01 15:48 ` David Miller
2016-11-01 20:51 ` David Ahern
2016-11-01 22:17 ` Joe Stringer
2016-11-02 2:46 ` Daniel Borkmann
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).