Re: [PATCH bpf-next 3/9] selftests/bpf: add test selectors by number and name to test_progs

2019-07-26 Thread Andrii Nakryiko
On Fri, Jul 26, 2019 at 2:25 PM Stanislav Fomichev wrote: > > On 07/26, Andrii Nakryiko wrote: > > Add ability to specify either test number or test name substring to > > narrow down a set of test to run. > > > > Usage: > > sudo ./test_progs -n 1 > > sudo ./test_progs -t attach_probe > > > > Signe

Re: [PATCH bpf-next 4/9] libbpf: add libbpf_swap_print to get previous print func

2019-07-26 Thread Andrii Nakryiko
On Fri, Jul 26, 2019 at 2:28 PM Stanislav Fomichev wrote: > > On 07/26, Andrii Nakryiko wrote: > > libbpf_swap_print allows to restore previously set print function. > > This is useful when running many independent test with one default print > > function, but overriding log verbosity for particul

Re: [PATCH bpf-next 6/9] selftests/bpf: abstract away test log output

2019-07-26 Thread Andrii Nakryiko
On Fri, Jul 26, 2019 at 2:31 PM Stanislav Fomichev wrote: > > On 07/26, Andrii Nakryiko wrote: > > This patch changes how test output is printed out. By default, if test > > had no errors, the only output will be a single line with test number, > > name, and verdict at the end, e.g.: > > > > #31

[PATCH] iplink: document 'change' option to ip link

2019-07-26 Thread Stephen Hemminger
Add the command alias "change" to man page. Don't show it on usage, since it is not commonly used. Reported-off-by: Matteo Croce Signed-off-by: Stephen Hemminger --- man/man8/ip-link.8.in | 5 + 1 file changed, 5 insertions(+) diff --git a/man/man8/ip-link.8.in b/man/man8/ip-link.8.in inde

Re: [PATCH bpf-next 1/9] selftests/bpf: prevent headers to be compiled as C code

2019-07-26 Thread Stanislav Fomichev
On 07/26, Andrii Nakryiko wrote: > On Fri, Jul 26, 2019 at 2:21 PM Stanislav Fomichev wrote: > > > > On 07/26, Andrii Nakryiko wrote: > > > Apprently listing header as a normal dependency for a binary output > > > makes it go through compilation as if it was C code. This currently > > > works with

Re: [PATCH v2] iproute2: devlink: port from sys/queue.h to list.h

2019-07-26 Thread Stephen Hemminger
On Fri, 26 Jul 2019 22:01:05 +0100 Sergei Trofimovich wrote: > sys/queue.h does not exist on linux-musl targets and fails build as: > > devlink.c:28:10: fatal error: sys/queue.h: No such file or directory >28 | #include > | ^ > > The change ports to l

Re: [PATCH bpf-next 3/9] selftests/bpf: add test selectors by number and name to test_progs

2019-07-26 Thread Stanislav Fomichev
On 07/26, Andrii Nakryiko wrote: > On Fri, Jul 26, 2019 at 2:25 PM Stanislav Fomichev wrote: > > > > On 07/26, Andrii Nakryiko wrote: > > > Add ability to specify either test number or test name substring to > > > narrow down a set of test to run. > > > > > > Usage: > > > sudo ./test_progs -n 1 >

Re: [PATCH] iplink_can: fix format output of clock with flag -details

2019-07-26 Thread Stephen Hemminger
On Fri, 26 Jul 2019 15:06:09 +0200 Antonio Borneo wrote: > The command > ip -details link show can0 > prints in the last line the value of the clock frequency attached > to the name of the following value "numtxqueues", e.g. > clock 4950numtxqueues 1 numrxqueues 1 gso_max_size >

[PATCH] gigaset: stop maintaining seperately

2019-07-26 Thread Paul Bolle
The Dutch consumer grade ISDN network will be shut down on September 1, 2019. This means I'll be converted to some sort of VOIP shortly. At that point it would be unwise to try to maintain the gigaset driver, even for odd fixes as I do. So I'll stop maintaining it as a seperate driver and bump supp

Re: [PATCH bpf-next 6/9] selftests/bpf: abstract away test log output

2019-07-26 Thread Stanislav Fomichev
On 07/26, Andrii Nakryiko wrote: > On Fri, Jul 26, 2019 at 2:31 PM Stanislav Fomichev wrote: > > > > On 07/26, Andrii Nakryiko wrote: > > > This patch changes how test output is printed out. By default, if test > > > had no errors, the only output will be a single line with test number, > > > name

Re: [PATCH net-next v2] mlx4/en_netdev: allow offloading VXLAN over VLAN

2019-07-26 Thread Saeed Mahameed
On Fri, 2019-07-26 at 20:18 +0200, Davide Caratti wrote: > ConnectX-3 Pro can offload transmission of VLAN packets with VXLAN > inside: > enable tunnel offloads in dev->vlan_features, like it's done with > other > NIC drivers (e.g. be2net and ixgbe). > > It's no more necessary to change dev->hw_en

Re: [PATCH v2 bpf] libbpf: fix missing __WORDSIZE definition

2019-07-26 Thread Andrii Nakryiko
On Fri, Jul 26, 2019 at 1:49 PM Arnaldo Carvalho de Melo wrote: > > Em Thu, Jul 18, 2019 at 10:30:21AM -0700, Andrii Nakryiko escreveu: > > hashmap.h depends on __WORDSIZE being defined. It is defined by > > glibc/musl in different headers. It's an explicit goal for musl to be > > "non-detectable"

Re: [PATCH bpf-next 06/10] selftests/bpf: add CO-RE relocs array tests

2019-07-26 Thread Andrii Nakryiko
On Thu, Jul 25, 2019 at 4:26 PM Alexei Starovoitov wrote: > > On Wed, Jul 24, 2019 at 12:27:38PM -0700, Andrii Nakryiko wrote: > > Add tests for various array handling/relocation scenarios. > > > > Signed-off-by: Andrii Nakryiko > ... > > + > > +#define CORE_READ(dst, src) \ > > + bpf_probe_r

Re: [PATCH bpf-next 2/6] bpf: add BPF_MAP_DUMP command to dump more than one entry per call

2019-07-26 Thread Brian Vazquez
On Thu, Jul 25, 2019 at 11:10 PM Yonghong Song wrote: > > > > On 7/25/19 6:47 PM, Alexei Starovoitov wrote: > > On Thu, Jul 25, 2019 at 6:24 PM Brian Vazquez > > wrote: > >> > >> On Thu, Jul 25, 2019 at 4:54 PM Alexei Starovoitov > >> wrote: > >>> > >>> On Thu, Jul 25, 2019 at 04:25:53PM -0700,

Re: [PATCH bpf-next 2/6] bpf: add BPF_MAP_DUMP command to dump more than one entry per call

2019-07-26 Thread Jakub Kicinski
On Fri, 26 Jul 2019 16:36:19 -0700, Brian Vazquez wrote: > > In bcc, we have many instances like this: > > getting all (key value) pairs, do some analysis and output, > > delete all keys > > > > The implementation typically like > > /* to get all (key, value) pairs */ > > while(bpf_

Re: [PATCH v2 bpf] libbpf: fix missing __WORDSIZE definition

2019-07-26 Thread Arnaldo Carvalho de Melo
On July 26, 2019 8:01:10 PM GMT-03:00, Andrii Nakryiko wrote: >On Fri, Jul 26, 2019 at 1:49 PM Arnaldo Carvalho de Melo > wrote: >> >> Em Thu, Jul 18, 2019 at 10:30:21AM -0700, Andrii Nakryiko escreveu: >> > hashmap.h depends on __WORDSIZE being defined. It is defined by >> > glibc/musl in differ

Re: [PATCH bpf] libbpf: fix erroneous multi-closing of BTF FD

2019-07-26 Thread Alexei Starovoitov
On Fri, Jul 26, 2019 at 2:25 PM Andrii Nakryiko wrote: > > Libbpf stores associated BTF FD per each instance of bpf_program. When > program is unloaded, that FD is closed. This is wrong, because leads to > a race and possibly closing of unrelated files, if application > simultaneously opens new fi

Re: [PATCH bpf-next 4/9] libbpf: add libbpf_swap_print to get previous print func

2019-07-26 Thread Alexei Starovoitov
On Fri, Jul 26, 2019 at 02:47:28PM -0700, Andrii Nakryiko wrote: > On Fri, Jul 26, 2019 at 2:28 PM Stanislav Fomichev wrote: > > > > On 07/26, Andrii Nakryiko wrote: > > > libbpf_swap_print allows to restore previously set print function. > > > This is useful when running many independent test wit

Re: [PATCH bpf-next 6/9] selftests/bpf: abstract away test log output

2019-07-26 Thread Alexei Starovoitov
On Fri, Jul 26, 2019 at 03:26:52PM -0700, Stanislav Fomichev wrote: > On 07/26, Andrii Nakryiko wrote: > > On Fri, Jul 26, 2019 at 2:31 PM Stanislav Fomichev wrote: > > > > > > On 07/26, Andrii Nakryiko wrote: > > > > This patch changes how test output is printed out. By default, if test > > > > h

Re: [PATCH] iplink: document 'change' option to ip link

2019-07-26 Thread Matteo Croce
On Sat, Jul 27, 2019 at 12:00 AM Stephen Hemminger wrote: > > Add the command alias "change" to man page. > Don't show it on usage, since it is not commonly used. > > Reported-off-by: Matteo Croce > Signed-off-by: Stephen Hemminger > --- > man/man8/ip-link.8.in | 5 + > 1 file changed, 5 in

Re: [PATCH net-next v3 2/3] flow_offload: support get tcf block immediately

2019-07-26 Thread Jakub Kicinski
On Fri, 26 Jul 2019 21:34:06 +0800, we...@ucloud.cn wrote: > From: wenxu > > Because the new flow-indr-block can't get the tcf_block > directly. > It provide a callback to find the tcf block immediately > when the device register and contain a ingress block. > > Signed-off-by: wenxu Please CC

Re: [PATCH net-next v3 1/3] flow_offload: move tc indirect block to flow offload

2019-07-26 Thread Jakub Kicinski
On Fri, 26 Jul 2019 21:34:05 +0800, we...@ucloud.cn wrote: > From: wenxu > > move tc indirect block to flow_offload and rename > it to flow indirect block.The nf_tables can use the > indr block architecture. > > Signed-off-by: wenxu > diff --git a/include/net/flow_offload.h b/include/net/flow_

Re: [PATCH v2] net: dsa: qca8k: enable port flow control

2019-07-26 Thread xiaofeis
On 2019-07-26 21:29, Andrew Lunn wrote: I didn't compile it on this tree, same code is just compiled and tested on kernel v4.14. For kernel development work, v4.14 is dead. It died 12th November 2017. It gets backports of bug fixes, but kernel developers otherwise don't touch it. We are work

[PATCH] tcp: add new tcp_mtu_probe_floor sysctl

2019-07-26 Thread Josh Hunt
The current implementation of TCP MTU probing can considerably underestimate the MTU on lossy connections allowing the MSS to get down to 48. We have found that in almost all of these cases on our networks these paths can handle much larger MTUs meaning the connections are being artificially limite

Re: next-20190723: bpf/seccomp - systemd/journald issue?

2019-07-26 Thread Alexei Starovoitov
On Fri, Jul 26, 2019 at 2:19 PM Sedat Dilek wrote: > > On Fri, Jul 26, 2019 at 11:10 PM Yonghong Song wrote: > > > > > > > > On 7/26/19 2:02 PM, Sedat Dilek wrote: > > > On Fri, Jul 26, 2019 at 10:38 PM Sedat Dilek > > > wrote: > > >> > > >> Hi Yonghong Song, > > >> > > >> On Fri, Jul 26, 2019

Re: [PATCH bpf-next v5 0/6] xdp: Add devmap_hash map type

2019-07-26 Thread Alexei Starovoitov
On Fri, Jul 26, 2019 at 9:06 AM Toke Høiland-Jørgensen wrote: > > This series adds a new map type, devmap_hash, that works like the existing > devmap type, but using a hash-based indexing scheme. This is useful for the > use > case where a devmap is indexed by ifindex (for instance for use with t

Zdravstvujte! Vas interesuyut klientskie bazy dannyh?

2019-07-26 Thread netdev
Zdravstvujte! Vas interesuyut klientskie bazy dannyh?

Re: [PATCH bpf-next 01/10] libbpf: add .BTF.ext offset relocation section loading

2019-07-26 Thread Andrii Nakryiko
On Wed, Jul 24, 2019 at 10:20 PM Song Liu wrote: > > > > > On Jul 24, 2019, at 5:37 PM, Andrii Nakryiko > > wrote: > > > > On Wed, Jul 24, 2019 at 5:00 PM Song Liu wrote: > >> > >> > >> > >>> On Jul 24, 2019, at 12:27 PM, Andrii Nakryiko wrote: > >>> > >>> Add support for BPF CO-RE offset relo

Re: [PATCH bpf-next 02/10] libbpf: implement BPF CO-RE offset relocation algorithm

2019-07-26 Thread Andrii Nakryiko
On Thu, Jul 25, 2019 at 12:32 PM Song Liu wrote: > > > > > On Jul 24, 2019, at 12:27 PM, Andrii Nakryiko wrote: > > > > This patch implements the core logic for BPF CO-RE offsets relocations. > > All the details are described in code comments. > > Some description in the change log is still usefu

Re: [PATCH bpf-next 02/10] libbpf: implement BPF CO-RE offset relocation algorithm

2019-07-26 Thread Andrii Nakryiko
On Thu, Jul 25, 2019 at 4:18 PM Alexei Starovoitov wrote: > > On Wed, Jul 24, 2019 at 12:27:34PM -0700, Andrii Nakryiko wrote: > > This patch implements the core logic for BPF CO-RE offsets relocations. > > All the details are described in code comments. > > > > Signed-off-by: Andrii Nakryiko > >

<    1   2