Re: [PATCH bpf-next] bpf: libbpf: retry program creation without the name

2018-11-26 Thread Vlad Dumitrescu
On Fri, Nov 23, 2018 at 2:51 AM Quentin Monnet wrote: > > 2018-11-21 09:28 UTC-0800 ~ Stanislav Fomichev > > On 11/21, Quentin Monnet wrote: > >> 2018-11-20 15:26 UTC-0800 ~ Stanislav Fomichev > >>> On 11/20, Alexei Starovoitov wrote: > On Wed, Nov 21, 2018 at 12:18:57AM +0100, Daniel

[PATCH v2 bpf-next] bpf: add skb->tstamp r/w access from tc clsact and cg skb progs

2018-11-22 Thread Vlad Dumitrescu
low access from cg skb, write only with CAP_SYS_ADMIN Signed-off-by: Vlad Dumitrescu --- include/uapi/linux/bpf.h| 1 + net/core/filter.c | 29 + tools/include/uapi/linux/bpf.h | 1 + tools/testing/selftests/

Re: [PATCH bpf-next] bpf: add read/write access to skb->tstamp from tc clsact progs

2018-11-21 Thread Vlad Dumitrescu
On Wed, Nov 21, 2018 at 5:08 AM Eric Dumazet wrote: > > > > On 11/20/2018 06:40 PM, Alexei Starovoitov wrote: > > > > > looks good to me. > > > > Any particular reason you decided to disable it for cg_skb ? > > It seems to me the same EDT approach will work from > > cgroup-bpf skb hooks just as

[PATCH bpf-next] bpf: add read/write access to skb->tstamp from tc clsact progs

2018-11-20 Thread Vlad Dumitrescu
This could be used to rate limit egress traffic in concert with a qdisc which supports Earliest Departure Time, such as FQ. Signed-off-by: Vlad Dumitrescu --- include/uapi/linux/bpf.h| 1 + net/core/filter.c | 26 + tools

Re: [PATCH iproute2] lib/libnetlink: fix response seq check

2018-10-03 Thread Vlad Dumitrescu
Hi, On Fri, Sep 28, 2018 at 10:14 AM wrote: > > From: Vlad Dumitrescu > > Taking a one-iovec example, with rtnl->seq at 42. iovlen == 1, seq > becomes 43 on line 604, and a message is sent with nlmsg_seq == 43. If > a response with nlmsg_seq of 42 is received, the

Re: [PATCH net-next] bpf: expose sk_priority through struct bpf_sock_ops

2017-11-13 Thread Vlad Dumitrescu
On Sat, Nov 11, 2017 at 2:38 PM, Alexei Starovoitov <a...@fb.com> wrote: > > On 11/12/17 4:46 AM, Daniel Borkmann wrote: >> >> On 11/11/2017 05:06 AM, Alexei Starovoitov wrote: >>> >>> On 11/11/17 6:07 AM, Daniel Borkmann wrote: >>>&

[PATCH net-next] bpf: expose sk_priority through struct bpf_sock_ops

2017-11-10 Thread Vlad Dumitrescu
From: Vlad Dumitrescu <vla...@google.com> Allows BPF_PROG_TYPE_SOCK_OPS programs to read sk_priority. Signed-off-by: Vlad Dumitrescu <vla...@google.com> --- include/uapi/linux/bpf.h | 1 + net/core/filter.c | 11 +++ tools/include/uapi/linux/bpf.h |

Re: [PATCH net-next] bpf: add support for SO_PRIORITY in bpf_getsockopt

2017-11-10 Thread Vlad Dumitrescu
On Thu, Nov 9, 2017 at 4:43 PM, Alexei Starovoitov <a...@fb.com> wrote: > On 11/10/17 8:04 AM, Vlad Dumitrescu wrote: >> >> From: Vlad Dumitrescu <vla...@google.com> >> >> Allows BPF_PROG_TYPE_SOCK_OPS programs to read sk_priority. >> >>

[PATCH net-next] bpf: add support for SO_PRIORITY in bpf_getsockopt

2017-11-09 Thread Vlad Dumitrescu
From: Vlad Dumitrescu <vla...@google.com> Allows BPF_PROG_TYPE_SOCK_OPS programs to read sk_priority. Signed-off-by: Vlad Dumitrescu <vla...@google.com> --- net/core/filter.c | 16 ++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/net/core/filter.