Re: Kernel 4.19 network performance - forwarding/routing normal users traffic

2018-11-08 Thread Jesper Dangaard Brouer
On Fri, 9 Nov 2018 04:52:01 + Saeed Mahameed wrote: > On Thu, 2018-11-08 at 17:42 -0700, David Ahern wrote: > > On 11/8/18 5:40 PM, Paweł Staszewski wrote: > > > > > > W dniu 08.11.2018 o 17:32, David Ahern pisze: > > > > On 11/8/18 9:27 AM, Paweł Staszewski wrote: > > > > > > > What h

Re: [PATCH bpf] bpf: Fix IPv6 dport byte order in bpf_sk_lookup_udp

2018-11-08 Thread Daniel Borkmann
On 11/07/2018 10:36 PM, Andrey Ignatov wrote: > Lookup functions in sk_lookup have different expectations about byte > order of provided arguments. > > Specifically __inet_lookup, __udp4_lib_lookup and __udp6_lib_lookup > expect dport to be in network byte order and do ntohs(dport) internally. >

Re: [PATCH bpf v2] tools/bpftool: copy a few net uapi headers to tools directory

2018-11-08 Thread Daniel Borkmann
On 11/08/2018 04:55 AM, Yonghong Song wrote: > Commit f6f3bac08ff9 ("tools/bpf: bpftool: add net support") > added certain networking support to bpftool. > The implementation relies on a relatively recent uapi header file > linux/tc_act/tc_bpf.h on the host which contains the marco > definition of

Re: [PATCH bpf 0/4] tools: bpftool: bring several minor fixes to bpftool

2018-11-08 Thread Daniel Borkmann
On 11/08/2018 12:52 PM, Quentin Monnet wrote: > Hi, > This set contains minor fixes for bpftool code and documentation. > Please refer to individual patches for details. > > Quentin Monnet (4): > tools: bpftool: prevent infinite loop in get_fdinfo() > tools: bpftool: fix plain output and doc f

[PATCH][RFC] udp: cache sock to avoid searching it twice

2018-11-08 Thread Li RongQing
GRO for UDP needs to lookup socket twice, first is in gro receive, second is gro complete, so if store sock to skb to avoid looking up twice, this can give small performance boost netperf -t UDP_RR -l 10 Before: Rate per sec: 28746.01 After: Rate per sec: 29401.67 Signed-off-by:

Re: Kernel 4.19 network performance - forwarding/routing normal users traffic

2018-11-08 Thread Saeed Mahameed
On Thu, 2018-11-08 at 17:42 -0700, David Ahern wrote: > On 11/8/18 5:40 PM, Paweł Staszewski wrote: > > > > W dniu 08.11.2018 o 17:32, David Ahern pisze: > > > On 11/8/18 9:27 AM, Paweł Staszewski wrote: > > > > > > What hardware is this? > > > > > > > > > > mellanox connectx 4 > > > > ethtool -i

Re: [PATCH net-next 0/7] nfp: abm: move code and improve parameter validation

2018-11-08 Thread David Miller
From: Jakub Kicinski Date: Thu, 8 Nov 2018 19:50:32 -0800 > This set starts by separating Qdisc handling code into a new file. > Next two patches allow early access to TLV-based capabilities during > probe, previously the capabilities were parsed just before netdevs > were registered, but its cl

Re: [PATCH net-next] tcp_bbr: update comments to reflect pacing_margin_percent

2018-11-08 Thread David Miller
From: Neal Cardwell Date: Thu, 8 Nov 2018 21:54:00 -0500 > Recently, in commit ab408b6dc744 ("tcp: switch tcp and sch_fq to new > earliest departure time model"), the TCP BBR code switched to a new > approach of using an explicit bbr_pacing_margin_percent for shaving a > pacing rate "haircut", r

Re: [Patch net-next v2] net: move __skb_checksum_complete*() to skbuff.c

2018-11-08 Thread David Miller
From: Cong Wang Date: Thu, 8 Nov 2018 14:05:42 -0800 > __skb_checksum_complete_head() and __skb_checksum_complete() > are both declared in skbuff.h, they fit better in skbuff.c > than datagram.c. > > Cc: Stefano Brivio > Signed-off-by: Cong Wang Applied.

Re: [PATCH 00/20] octeontx2-af: NPC MCAM support and FLR handling

2018-11-08 Thread Sunil Kovvuri
On Fri, Nov 9, 2018 at 2:32 AM Arnd Bergmann wrote: > > On Thu, Nov 8, 2018 at 7:36 PM wrote: > > > > From: Sunil Goutham > > Hmm, I noticed that you use a different address as the patch author > and the submitter. I'm guessing that "Sunil Goutham" and > "Sunil Kovvuri" actually refer to the sam

Re: [PATCH bpf-next v2 02/13] bpf: btf: Add BTF_KIND_FUNC and BTF_KIND_FUNC_PROTO

2018-11-08 Thread Alexei Starovoitov
On Thu, Nov 08, 2018 at 10:56:55PM +, Edward Cree wrote: > On 08/11/18 19:42, Alexei Starovoitov wrote: > > same link let's continue at 1pm PST. > So, one thing we didn't really get onto was maps, and you mentioned that it >  wasn't really clear what I was proposing there. let's discuss groun

Re: [PATCH 11/20] octeontx2-af: Add support for stripping STAG/CTAG

2018-11-08 Thread Sunil Kovvuri
On Fri, Nov 9, 2018 at 2:17 AM Arnd Bergmann wrote: > > On Thu, Nov 8, 2018 at 7:37 PM wrote: > > > diff --git a/drivers/net/ethernet/marvell/octeontx2/af/npc.h > > b/drivers/net/ethernet/marvell/octeontx2/af/npc.h > > index f98b011..3f7e5e6 100644 > > --- a/drivers/net/ethernet/marvell/octeontx

Re: [PATCH 08/20] octeontx2-af: Alloc and config NPC MCAM entry at a time

2018-11-08 Thread Sunil Kovvuri
On Fri, Nov 9, 2018 at 2:13 AM Arnd Bergmann wrote: > > On Thu, Nov 8, 2018 at 7:37 PM wrote: > > @@ -666,4 +668,20 @@ struct npc_mcam_unmap_counter_req { > > u8 all; /* Unmap all entries using this counter ? */ > > }; > > > > +struct npc_mcam_alloc_and_write_entry_req { > > + s

Re: [PATCH net-next] sfc: use the new __netdev_tx_sent_queue BQL optimisation

2018-11-08 Thread David Miller
From: Edward Cree Date: Thu, 8 Nov 2018 19:47:19 + > As added in 3e59020abf0f ("net: bql: add __netdev_tx_sent_queue()"), which > see for performance rationale. > > Signed-off-by: Edward Cree Applied.

[PATCH net-next 1/7] nfp: abm: split qdisc offload code into a separate file

2018-11-08 Thread Jakub Kicinski
The Qdisc offload code is logically separate, and we will soon do significant surgery on it to support more Qdiscs, so move it to a separate file. Signed-off-by: Jakub Kicinski Reviewed-by: John Hurley Reviewed-by: Quentin Monnet --- drivers/net/ethernet/netronome/nfp/Makefile | 1 + drive

[PATCH net-next 3/7] nfp: parse vNIC TLV capabilities at alloc time

2018-11-08 Thread Jakub Kicinski
In certain cases initialization logic which follows allocation of the vNIC structure may want to validate the capabilities of that vNIC. This is easy before vNIC is initialized for normal capabilities which are at fixed offsets in control memory, easy to locate and read, but poses a challenge if th

[PATCH net-next 0/7] nfp: abm: move code and improve parameter validation

2018-11-08 Thread Jakub Kicinski
Hi! This set starts by separating Qdisc handling code into a new file. Next two patches allow early access to TLV-based capabilities during probe, previously the capabilities were parsed just before netdevs were registered, but its cleaner to do some basic validation earlier and avoid cleanup work

[PATCH net-next 5/7] nfp: abm: don't set negative threshold

2018-11-08 Thread Jakub Kicinski
Turns out the threshold value is used in signed compares in the FW, so we should avoid setting the top bit. Signed-off-by: Jakub Kicinski Reviewed-by: John Hurley Reviewed-by: Quentin Monnet --- drivers/net/ethernet/netronome/nfp/abm/main.h | 3 +++ drivers/net/ethernet/netronome/nfp/abm/qdi

[PATCH net-next 7/7] nfp: abm: refuse RED offload with harddrop set

2018-11-08 Thread Jakub Kicinski
RED Qdisc will now inform the drivers about the state of the harddrop flag. Refuse to offload in case harddrop is set. Signed-off-by: Jakub Kicinski Reviewed-by: John Hurley Reviewed-by: Quentin Monnet --- drivers/net/ethernet/netronome/nfp/abm/qdisc.c | 5 + 1 file changed, 5 insertions(

[PATCH net-next 2/7] nfp: pass ctrl_bar pointer to nfp_net_alloc

2018-11-08 Thread Jakub Kicinski
Move setting ctrl_bar pointer to the nfp_net_alloc function, to make sure we can parse capabilities early in the following patch. Signed-off-by: Jakub Kicinski Reviewed-by: John Hurley Reviewed-by: Quentin Monnet --- drivers/net/ethernet/netronome/nfp/nfp_net.h| 2 +- drivers/net/ether

[PATCH net-next 6/7] net: sched: red: inform offloads about harddrop setting

2018-11-08 Thread Jakub Kicinski
To mirror software behaviour on offload more precisely inform the drivers about the state of the harddrop flag. Signed-off-by: Jakub Kicinski Reviewed-by: John Hurley Reviewed-by: Quentin Monnet --- include/net/pkt_cls.h | 1 + net/sched/sch_red.c | 1 + 2 files changed, 2 insertions(+) dif

[PATCH net-next 4/7] nfp: abm: provide more precise info about offload parameter validation

2018-11-08 Thread Jakub Kicinski
Improve log messages printed when RED can't be offloaded because of Qdisc parameters. Signed-off-by: Jakub Kicinski Reviewed-by: John Hurley Reviewed-by: Quentin Monnet --- .../net/ethernet/netronome/nfp/abm/qdisc.c| 24 --- 1 file changed, 21 insertions(+), 3 deletions(-)

Re: [PATCH v4 bpf-next 7/7] bpftool: support loading flow dissector

2018-11-08 Thread Jakub Kicinski
On Thu, 8 Nov 2018 16:22:13 -0800, Stanislav Fomichev wrote: > From: Stanislav Fomichev > > This commit adds support for loading/attaching/detaching flow > dissector program. The structure of the flow dissector program is > assumed to be the same as in the selftests: nit: I don't think we make

Re: [PATCH net-next 0/4] Remove VLAN_TAG_PRESENT from drivers

2018-11-08 Thread David Miller
From: Michał Mirosław Date: Thu, 08 Nov 2018 18:44:46 +0100 > This series removes VLAN_TAG_PRESENT use from network drivers in > preparation to removing its special meaning. Series applied, thank you.

Re: [net-next, PATCH 1/2] net: socionext: different approach on DMA

2018-11-08 Thread David Miller
From: Ilias Apalodimas Date: Thu, 8 Nov 2018 17:19:54 +0200 > Current driver dynamically allocates an skb and maps it as DMA Rx > buffer. In order to prepare for upcoming XDP changes, let's introduce a > different allocation scheme. > Buffers are allocated dynamically and mapped into hardware. >

Re: [net-next, PATCH 2/2] net: socionext: refactor netsec_alloc_dring()

2018-11-08 Thread David Miller
From: Ilias Apalodimas Date: Thu, 8 Nov 2018 17:19:55 +0200 > return -ENOMEM directly instead of assigning it in a variable > > Signed-off-by: Ilias Apalodimas Applied.

Re: [PATCH v4 bpf-next 6/7] bpftool: add pinmaps argument to the load/loadall

2018-11-08 Thread Jakub Kicinski
On Thu, 8 Nov 2018 16:22:12 -0800, Stanislav Fomichev wrote: > From: Stanislav Fomichev > > This new additional argument lets users pin all maps from the object at > specified path. > > Signed-off-by: Stanislav Fomichev Acked-by: Jakub Kicinski

Re: [PATCH v4 bpf-next 5/7] bpftool: add loadall command

2018-11-08 Thread Jakub Kicinski
On Thu, 8 Nov 2018 16:22:11 -0800, Stanislav Fomichev wrote: > @@ -79,8 +80,13 @@ DESCRIPTION > contain a dot character ('.'), which is reserved for future > extensions of *bpffs*. > > - **bpftool prog load** *OBJ* *FILE* [**type** *TYPE*] [**map** {**idx** >

Re: [PATCH net-next] net: qca_spi: Add available buffer space verification

2018-11-08 Thread David Miller
From: Stefan Wahren Date: Thu, 8 Nov 2018 14:38:21 +0100 > Interferences on the SPI line could distort the response of > available buffer space. So at least we should check that the > response doesn't exceed the maximum available buffer space. > In error case increase a new error counter and ret

Re: [PATCH v4 bpf-next 4/7] libbpf: add internal pin_name

2018-11-08 Thread Jakub Kicinski
On Thu, 8 Nov 2018 16:22:10 -0800, Stanislav Fomichev wrote: > @@ -261,6 +266,18 @@ static void bpf_program__exit(struct bpf_program *prog) > prog->idx = -1; > } > > +static char *__bpf_program__pin_name(struct bpf_program *prog) > +{ > + char *name; > + > + name = strdup(prog->se

Re: [PATCH net 0/4] Slowpath Queue bug fixes

2018-11-08 Thread David Miller
From: Denis Bolotin Date: Thu, 8 Nov 2018 16:46:07 +0200 > This patch series fixes several bugs in the SPQ mechanism. > It deals with SPQ entries management, preventing resource leaks, memory > corruptions and handles error cases throughout the driver. > Please consider applying to net. Series a

Re: [PATCH v4 bpf-next 2/7] libbpf: cleanup after partial failure in bpf_object__pin

2018-11-08 Thread Jakub Kicinski
On Thu, 8 Nov 2018 16:22:08 -0800, Stanislav Fomichev wrote: > + for (map = bpf_map__prev(map, obj); > + map != NULL; > + map = bpf_map__prev(map, obj)) { nit pick: if you need to respin all these for loops on error paths could have been more concise while loops

Re: [PATCH v3 net-next] sock: Reset dst when changing sk_mark via setsockopt

2018-11-08 Thread David Miller
From: David Barmann Date: Thu, 8 Nov 2018 08:13:35 -0600 > When setting the SO_MARK socket option, if the mark changes, the dst > needs to be reset so that a new route lookup is performed. > > This fixes the case where an application wants to change routing by > setting a new sk_mark. If this i

Re: [PATCH net-next 0/2] dpaa2-eth: defer probe on object allocate

2018-11-08 Thread David Miller
From: David Miller Date: Thu, 08 Nov 2018 19:28:57 -0800 (PST) > From: Ioana Ciornei > Date: Thu, 8 Nov 2018 13:17:46 + > >> Allocatable objects on the fsl-mc bus may be probed by the fsl_mc_allocator >> after the first attempts of other drivers to use them. Defer the probe when >> this sit

Re: [PATCH net-next 0/2] dpaa2-eth: defer probe on object allocate

2018-11-08 Thread David Miller
From: Ioana Ciornei Date: Thu, 8 Nov 2018 13:17:46 + > Allocatable objects on the fsl-mc bus may be probed by the fsl_mc_allocator > after the first attempts of other drivers to use them. Defer the probe when > this situation happens. Series applied, thanks.

Re: [PATCH net-next] dpaa2-eth: Introduce TX congestion management

2018-11-08 Thread David Miller
From: Ioana Ciocoi Radulescu Date: Thu, 8 Nov 2018 20:21:15 + > Today I tried to further coalesce the confirmation frames such that I call > netdev_tx_completed_queue() only at the end of the NAPI poll, once for each > confirmation queue that was serviced during that NAPI. That sounds like e

Should the bridge learn from frames with link local destination MAC address?

2018-11-08 Thread Andrew Lunn
Hi Roopa, Nikolay br_handle_frame() looks out for frames with a destination MAC addresses with is Ethernet link local, those which fit 01-80-C2-00-00-XX. It does not normally forward these, but it will deliver them locally. Should the bridge perform learning on such frames? I've got a setup with

Re: [PATCH] net: Add trace events for all receive exit points

2018-11-08 Thread Genevieve Bastien
On 2018-11-08 03:25 PM, Mathieu Desnoyers wrote: > - On Nov 8, 2018, at 2:56 PM, Geneviève Bastien gbast...@versatic.net > wrote: > >> Trace events are already present for the receive entry points, to indicate >> how the reception entered the stack. >> >> This patch adds the corresponding exit

Re: [PATCH ipsec-next 00/11] xfrm: policy: add inexact policy search tree

2018-11-08 Thread David Miller
From: Florian Westphal Date: Wed, 7 Nov 2018 23:00:30 +0100 > This series attempts to improve xfrm policy lookup performance when > a lot of (several hundred or even thousands) inexact policies exist > on a system. > > On insert, a policy is either placed in hash table (all direct (/32 for > ip

[PATCH net-next] tcp_bbr: update comments to reflect pacing_margin_percent

2018-11-08 Thread Neal Cardwell
Recently, in commit ab408b6dc744 ("tcp: switch tcp and sch_fq to new earliest departure time model"), the TCP BBR code switched to a new approach of using an explicit bbr_pacing_margin_percent for shaving a pacing rate "haircut", rather than the previous implict approach. Update an old comment to r

Re: [PATCH v2 net] inet: frags: better deal with smp races

2018-11-08 Thread David Miller
From: Eric Dumazet Date: Thu, 8 Nov 2018 17:34:27 -0800 > Multiple cpus might attempt to insert a new fragment in rhashtable, > if for example RPS is buggy, as reported by 배석진 in > https://patchwork.ozlabs.org/patch/994601/ > > We use rhashtable_lookup_get_insert_key() instead of > rhashtable_i

RE:(2) (2) (2) (2) (2) [Kernel][NET] Bug report on packet defragmenting

2018-11-08 Thread 배석진
>On 11/08/2018 04:42 PM, 배석진 wrote: >> Thanks for testing. >>> >>> This is not a pristine net-next tree, this dump seems unrelated to the  >>>patch ? >>  >>  >> yes, looks like that. >> but only when using your patch, panic came. even right after packet  >>recieving.. >> without that, there's no pr

Re: (2) (2) (2) (2) [Kernel][NET] Bug report on packet defragmenting

2018-11-08 Thread Eric Dumazet
On 11/08/2018 04:42 PM, 배석진 wrote: >> Thanks for testing. >> >> This is not a pristine net-next tree, this dump seems unrelated to the patch >> ? > > > yes, looks like that. > but only when using your patch, panic came. even right after packet > recieving.. > without that, there's no problem

[PATCH v2 net] inet: frags: better deal with smp races

2018-11-08 Thread Eric Dumazet
Multiple cpus might attempt to insert a new fragment in rhashtable, if for example RPS is buggy, as reported by 배석진 in https://patchwork.ozlabs.org/patch/994601/ We use rhashtable_lookup_get_insert_key() instead of rhashtable_insert_fast() to let cpus losing the race free their own inet_frag_queue

Re: [PATCH net] inet: frags: better deal with smp races

2018-11-08 Thread Eric Dumazet
On 11/08/2018 05:02 PM, David Miller wrote: > GCC is unwilling to see that all paths leading to that final return > statement do in fact set 'fq' one way or another: > > net/ipv4/inet_fragment.c: In function ‘inet_frag_find’: > net/ipv4/inet_fragment.c:224:9: warning: ‘fq’ may be used uninitia

Re: [PATCH bpf-next v2 02/13] bpf: btf: Add BTF_KIND_FUNC and BTF_KIND_FUNC_PROTO

2018-11-08 Thread Yonghong Song
On 11/8/18 2:56 PM, Edward Cree wrote: > On 08/11/18 19:42, Alexei Starovoitov wrote: >> same link let's continue at 1pm PST. > So, one thing we didn't really get onto was maps, and you mentioned that it >  wasn't really clear what I was proposing there. > What I have in mind comes in two parts:

Re: [PATCH net-next 0/8] s390/qeth: updates 2018-11-08

2018-11-08 Thread David Miller
From: Julian Wiedmann Date: Thu, 8 Nov 2018 15:06:14 +0100 > please apply the following qeth patches to net-next. > > The first patch allows one more device type to query the FW for a MAC address, > the others are all basically just removal of duplicated or unused code. Series applied, thanks.

Re: [PATCH][net-next] openvswitch: remove BUG_ON from get_dpdev

2018-11-08 Thread David Miller
From: Li RongQing Date: Thu, 8 Nov 2018 20:40:20 +0800 > if local is NULL pointer, and the following access of local's > dev will trigger panic, which is same as BUG_ON > > Signed-off-by: Li RongQing Applied.

Re: [PATCH net-next v2 00/11] ICMP error handling for UDP tunnels

2018-11-08 Thread David Miller
From: Stefano Brivio Date: Thu, 8 Nov 2018 12:19:13 +0100 > This series introduces ICMP error handling for UDP tunnels and > encapsulations and related selftests. We need to handle ICMP errors to > support PMTU discovery and route redirection -- this support is entirely > missing right now: > >

Re: [PATCH net-next] cxgb4: Add new T6 PCI device ids 0x608a

2018-11-08 Thread David Miller
From: Ganesh Goudar Date: Thu, 8 Nov 2018 14:21:07 +0530 > Signed-off-by: Ganesh Goudar Applied.

Re: [PATCH][net-next][v2] net/ipv6: compute anycast address hash only if dev is null

2018-11-08 Thread David Miller
From: Li RongQing Date: Thu, 8 Nov 2018 14:58:07 +0800 > avoid to compute the hash value if dev is not null, since > hash value is not used > > Signed-off-by: Li RongQing Applied.

Re: [PATCH net] inet: frags: better deal with smp races

2018-11-08 Thread David Miller
From: Eric Dumazet Date: Wed, 7 Nov 2018 22:10:53 -0800 > @@ -204,22 +205,22 @@ static struct inet_frag_queue *inet_frag_create(struct > netns_frags *nf, > /* TODO : call from rcu_read_lock() and no longer use > refcount_inc_not_zero() */ > struct inet_frag_queue *inet_frag_find(struct netns

Re: Kernel 4.19 network performance - forwarding/routing normal users traffic

2018-11-08 Thread David Ahern
On 11/8/18 5:40 PM, Paweł Staszewski wrote: > > > W dniu 08.11.2018 o 17:32, David Ahern pisze: >> On 11/8/18 9:27 AM, Paweł Staszewski wrote: > What hardware is this? > >>> mellanox connectx 4 >>> ethtool -i enp175s0f0 >>> driver: mlx5_core >>> version: 5.0-0 >>> firmware-version: 12.21.

RE:(2) (2) (2) (2) [Kernel][NET] Bug report on packet defragmenting

2018-11-08 Thread 배석진
>Thanks for testing. > >This is not a pristine net-next tree, this dump seems unrelated to the patch ? yes, looks like that. but only when using your patch, panic came. even right after packet recieving.. without that, there's no problem except defrag issue. it's odd.. :p I couldn't more debuggin

Re: [PATCH bpf-next v4 02/13] bpf: btf: Add BTF_KIND_FUNC

2018-11-08 Thread Yonghong Song
On 11/8/18 12:52 PM, Edward Cree wrote: > On 08/11/18 20:36, Yonghong Song wrote: >> This patch adds BTF_KIND_FUNC support to the type section. >> BTF_KIND_FUNC is used to specify the signature of a >> defined subprogram or the pointee of a function pointer. >> >> In BTF, the function type relate

Re: Kernel 4.19 network performance - forwarding/routing normal users traffic

2018-11-08 Thread Paweł Staszewski
W dniu 08.11.2018 o 17:32, David Ahern pisze: On 11/8/18 9:27 AM, Paweł Staszewski wrote: What hardware is this? mellanox connectx 4 ethtool -i enp175s0f0 driver: mlx5_core version: 5.0-0 firmware-version: 12.21.1000 (SM_200101033) expansion-rom-version: bus-info: :af:00.0 supports-

Re: [RFC PATCH 0/3] acpi: Add acpi mdio support code

2018-11-08 Thread Timur Tabi
On 11/8/18 5:23 PM, Andrew Lunn wrote: I don't know much about ACPI. I do know DT. MDIO busses can have multiple PHYs on them. Is the following valid to list two PHYs? Device (MDIO) { Name (_DSD, Package () { ToUUID("dbb8e3e6-5886-4ba6-8795-1319f52a966b"),

[PATCH v4 bpf-next 1/7] selftests/bpf: rename flow dissector section to flow_dissector

2018-11-08 Thread Stanislav Fomichev
From: Stanislav Fomichev Makes it compatible with the logic that derives program type from section name in libbpf_prog_type_by_name. Signed-off-by: Stanislav Fomichev --- tools/testing/selftests/bpf/bpf_flow.c | 2 +- tools/testing/selftests/bpf/test_flow_dissector.sh | 2 +- 2 fil

[PATCH v4 bpf-next 4/7] libbpf: add internal pin_name

2018-11-08 Thread Stanislav Fomichev
From: Stanislav Fomichev pin_name is the same as section_name where '/' is replaced by '_'. bpf_object__pin_programs is converted to use pin_name to avoid the situation where section_name would require creating another subdirectory for a pin (as, for example, when calling bpf_object__pin_programs

[PATCH v4 bpf-next 3/7] libbpf: bpf_program__pin: add special case for instances.nr == 1

2018-11-08 Thread Stanislav Fomichev
From: Stanislav Fomichev When bpf_program has only one instance, don't create a subdirectory with per-instance pin files (/0). Instead, just create a single pin file for that single instance. This simplifies object pinning by not creating unnecessary subdirectories. This can potentially break ex

[PATCH v4 bpf-next 0/7] bpftool: support loading flow dissector

2018-11-08 Thread Stanislav Fomichev
From: Stanislav Fomichev v4 changes: * addressed another round of comments/style issues from Jakub Kicinski & Quentin Monnet (thanks!) * implemented bpf_object__pin_maps and bpf_object__pin_programs helpers and used them in bpf_program__pin * added new pin_name to bpf_program so bpf_program__

[PATCH v4 bpf-next 5/7] bpftool: add loadall command

2018-11-08 Thread Stanislav Fomichev
From: Stanislav Fomichev This patch adds new *loadall* command which slightly differs from the existing *load*. *load* command loads all programs from the obj file, but pins only the first programs. *loadall* pins all programs from the obj file under specified directory. The intended usecase is

[PATCH v4 bpf-next 2/7] libbpf: cleanup after partial failure in bpf_object__pin

2018-11-08 Thread Stanislav Fomichev
From: Stanislav Fomichev bpftool will use bpf_object__pin in the next commits to pin all programs and maps from the file; in case of a partial failure, we need to get back to the clean state (undo previous program/map pins). As part of a cleanup, I've added and exported separate routines to pin

[PATCH v4 bpf-next 6/7] bpftool: add pinmaps argument to the load/loadall

2018-11-08 Thread Stanislav Fomichev
From: Stanislav Fomichev This new additional argument lets users pin all maps from the object at specified path. Signed-off-by: Stanislav Fomichev --- .../bpftool/Documentation/bpftool-prog.rst| 4 +++- tools/bpf/bpftool/bash-completion/bpftool | 3 ++- tools/bpf/bpftool/prog.c

Re: [PATCH net-next] net: bcmgenet: return correct value 'ret' from bcmgenet_power_down

2018-11-08 Thread David Miller
From: YueHaibing Date: Thu, 8 Nov 2018 02:08:43 + > Fixes gcc '-Wunused-but-set-variable' warning: > > drivers/net/ethernet/broadcom/genet/bcmgenet.c: In function > 'bcmgenet_power_down': > drivers/net/ethernet/broadcom/genet/bcmgenet.c:1136:6: warning: > variable 'ret' set but not used [-

[PATCH v4 bpf-next 7/7] bpftool: support loading flow dissector

2018-11-08 Thread Stanislav Fomichev
From: Stanislav Fomichev This commit adds support for loading/attaching/detaching flow dissector program. The structure of the flow dissector program is assumed to be the same as in the selftests: * flow_dissector section with the main entry point * a bunch of tail call progs * a jmp_table map t

Re: [PATCH net-next 0/7] net: sched: prepare for more Qdisc offloads

2018-11-08 Thread David Miller
From: Jakub Kicinski Date: Wed, 7 Nov 2018 17:33:33 -0800 > This series refactors the "switchdev" Qdisc offloads a little. We have > a few Qdiscs which can be fully offloaded today to the forwarding plane > of switching devices. > > First patch adds a helper for handing statistic dumps, the co

Re: [RFC PATCH 0/3] acpi: Add acpi mdio support code

2018-11-08 Thread Andrew Lunn
On Thu, Nov 08, 2018 at 03:21:29PM +0800, Wang Dongsheng wrote: > Originally I just push "phy-handle" support for ACPI on the QCOM QDF2400 > platform. After some discussion and following Andrew's advice, I send > out with a generic version of ACPI. > > Current there is no clear documentation about

Re: [net-next PATCH v2] net: sched: cls_flower: Classify packets using port ranges

2018-11-08 Thread David Miller
From: Amritha Nambiar Date: Wed, 07 Nov 2018 13:22:42 -0800 > diff --git a/include/uapi/linux/pkt_cls.h b/include/uapi/linux/pkt_cls.h > index 401d0c1..b63c3cf 100644 > --- a/include/uapi/linux/pkt_cls.h > +++ b/include/uapi/linux/pkt_cls.h > @@ -405,6 +405,11 @@ enum { > TCA_FLOWER_KEY_UDP

Re: [PATCH net-next 1/2] net: phy: use phy_id_mask value zero for exact match

2018-11-08 Thread Florian Fainelli
On 11/8/18 12:53 PM, Andrew Lunn wrote: >>> Maybe we can find a clever way with a macro to specify only the PHY OUI >>> and compute a suitable mask automatically? >>> >> I don't think so. For Realtek each driver is specific even to a model >> revision (therefore mask 0x). Same applies to in

Re: [PATCH net-next 0/2] net: phy: use phy_id_mask value zero for exact match

2018-11-08 Thread David Miller
From: Heiner Kallweit Date: Wed, 7 Nov 2018 21:52:31 +0100 > A phy_id_mask value zero means every PHYID matches, therefore > value zero isn't used. So we can safely redefine the semantics > of value zero to mean "exact match". This allows to avoid some > boilerplate code in PHY driver configs. >

Re: [PATCH net-next 0/5] net: phy: improve and simplify phylib state machine

2018-11-08 Thread David Miller
From: Florian Fainelli Date: Thu, 8 Nov 2018 15:00:01 -0800 > On 11/8/18 2:58 PM, David Miller wrote: >> From: Heiner Kallweit >> Date: Wed, 7 Nov 2018 20:41:52 +0100 >> >>> This patch series is based on two axioms: >>> >>> - During autoneg a PHY always reports the link being down >>> >>> - Inf

Re: [PATCH net-next 0/5] net: phy: improve and simplify phylib state machine

2018-11-08 Thread Andrew Lunn
On Thu, Nov 08, 2018 at 03:00:01PM -0800, Florian Fainelli wrote: > On 11/8/18 2:58 PM, David Miller wrote: > > From: Heiner Kallweit > > Date: Wed, 7 Nov 2018 20:41:52 +0100 > > > >> This patch series is based on two axioms: > >> > >> - During autoneg a PHY always reports the link being down > >

Re: [PATCH net-next 0/5] net: phy: improve and simplify phylib state machine

2018-11-08 Thread Florian Fainelli
On 11/8/18 2:58 PM, David Miller wrote: > From: Heiner Kallweit > Date: Wed, 7 Nov 2018 20:41:52 +0100 > >> This patch series is based on two axioms: >> >> - During autoneg a PHY always reports the link being down >> >> - Info in clause 22/45 registers doesn't allow to differentiate between >>

Re: [PATCH net-next 0/5] net: phy: improve and simplify phylib state machine

2018-11-08 Thread David Miller
From: Heiner Kallweit Date: Wed, 7 Nov 2018 20:41:52 +0100 > This patch series is based on two axioms: > > - During autoneg a PHY always reports the link being down > > - Info in clause 22/45 registers doesn't allow to differentiate between > these two states: > 1. Link is physically down >

Re: [PATCH bpf-next v2 02/13] bpf: btf: Add BTF_KIND_FUNC and BTF_KIND_FUNC_PROTO

2018-11-08 Thread Edward Cree
On 08/11/18 19:42, Alexei Starovoitov wrote: > same link let's continue at 1pm PST. So, one thing we didn't really get onto was maps, and you mentioned that it  wasn't really clear what I was proposing there. What I have in mind comes in two parts: 1) map type.  A new BTF_KIND_MAP with metadata 'k

Re: [PATCH net-next 1/2] net: phy: replace PHY_HAS_INTERRUPT with a check for config_intr and ack_interrupt

2018-11-08 Thread Heiner Kallweit
On 08.11.2018 23:33, Florian Fainelli wrote: > On 11/8/18 1:55 PM, Heiner Kallweit wrote: >> Flag PHY_HAS_INTERRUPT is used only here for this small check. I think >> using interrupts isn't possible if a driver defines neither >> config_intr nor ack_interrupts callback. So we can replace checking >

Re: [PATCH net-next] net: phy: improve struct phy_device member interrupts handling

2018-11-08 Thread Heiner Kallweit
On 08.11.2018 23:24, Andrew Lunn wrote: > On Thu, Nov 08, 2018 at 10:36:33PM +0100, Heiner Kallweit wrote: >> As a heritage from the very early days of phylib member interrupts is >> defined as u32 even though it's just a flag whether interrupts are >> enabled. So we can change it to a bitfield mem

Re: [PATCH net-next 0/2] net: phy: replace PHY_HAS_INTERRUPT with a check for config_intr and ack_interrupt

2018-11-08 Thread Florian Fainelli
On 11/8/18 2:30 PM, Andrew Lunn wrote: > On Thu, Nov 08, 2018 at 10:54:50PM +0100, Heiner Kallweit wrote: >> Flag PHY_HAS_INTERRUPT is used only here for this small check. I think >> using interrupts isn't possible if a driver defines neither >> config_intr nor ack_interrupts callback. So we can re

Re: [PATCH net-next 1/2] net: phy: replace PHY_HAS_INTERRUPT with a check for config_intr and ack_interrupt

2018-11-08 Thread Florian Fainelli
On 11/8/18 1:55 PM, Heiner Kallweit wrote: > Flag PHY_HAS_INTERRUPT is used only here for this small check. I think > using interrupts isn't possible if a driver defines neither > config_intr nor ack_interrupts callback. So we can replace checking > flag PHY_HAS_INTERRUPT with checking for these ca

Re: [PATCH net-next 0/2] net: phy: replace PHY_HAS_INTERRUPT with a check for config_intr and ack_interrupt

2018-11-08 Thread Andrew Lunn
On Thu, Nov 08, 2018 at 10:54:50PM +0100, Heiner Kallweit wrote: > Flag PHY_HAS_INTERRUPT is used only here for this small check. I think > using interrupts isn't possible if a driver defines neither > config_intr nor ack_interrupts callback. So we can replace checking > flag PHY_HAS_INTERRUPT with

[Patch net] ip: fix csum_sub() with csum_block_sub()

2018-11-08 Thread Cong Wang
When subtracting the checksum of a block of data, csum_block_sub() must be used to respect the offset. We learned this lesson from both commit d55bef5059dd ("net: fix pskb_trim_rcsum_slow() with odd trim offset") and commit d48051c5b837 ("net/mlx5e: fix csum adjustments caused by RXFCS"). Fixes:

Re: [PATCH net-next] net: phy: improve struct phy_device member interrupts handling

2018-11-08 Thread Andrew Lunn
On Thu, Nov 08, 2018 at 10:36:33PM +0100, Heiner Kallweit wrote: > As a heritage from the very early days of phylib member interrupts is > defined as u32 even though it's just a flag whether interrupts are > enabled. So we can change it to a bitfield member. In addition change > the code dealing wi

Re: [PATCH 04/20] octeontx2-af: NPC MCAM entry alloc/free support

2018-11-08 Thread David Miller
From: sunil.kovv...@gmail.com Date: Fri, 9 Nov 2018 00:05:45 +0530 > +int rvu_mbox_handler_NPC_MCAM_ALLOC_ENTRY(struct rvu *rvu, > + struct npc_mcam_alloc_entry_req *req, > + struct npc_mcam_alloc_entry_rsp *rsp); > +int

Re: [Patch net] ip: fix csum_sub() with csum_block_sub()

2018-11-08 Thread Cong Wang
On Thu, Nov 8, 2018 at 2:17 PM Eric Dumazet wrote: > > On Thu, Nov 8, 2018 at 2:04 PM Cong Wang wrote: > > > > When subtracting the checksum of a block of data, > > csum_block_sub() must be used to respect the offset. > > > > We learned this lesson from both commit d55bef5059dd > > ("net: fix psk

Re: [Patch net] ip: fix csum_sub() with csum_block_sub()

2018-11-08 Thread Eric Dumazet
On Thu, Nov 8, 2018 at 2:04 PM Cong Wang wrote: > > When subtracting the checksum of a block of data, > csum_block_sub() must be used to respect the offset. > > We learned this lesson from both commit d55bef5059dd > ("net: fix pskb_trim_rcsum_slow() with odd trim offset") and > commit d48051c5b837

Re: [PATCH net-next 0/4] Remove VLAN_TAG_PRESENT from drivers

2018-11-08 Thread Michał Mirosław
On Thu, Nov 08, 2018 at 08:50:05PM +0200, Leon Romanovsky wrote: > On Thu, Nov 08, 2018 at 06:44:46PM +0100, Michał Mirosław wrote: > > This series removes VLAN_TAG_PRESENT use from network drivers in > > preparation to removing its special meaning. > Can you please give an extra explanation why it

[Patch net-next v2] net: move __skb_checksum_complete*() to skbuff.c

2018-11-08 Thread Cong Wang
__skb_checksum_complete_head() and __skb_checksum_complete() are both declared in skbuff.h, they fit better in skbuff.c than datagram.c. Cc: Stefano Brivio Signed-off-by: Cong Wang --- net/core/datagram.c | 43 --- net/core/skbuff.c | 43 +++

[PATCH net-next 2/2] net: phy: realtek: remove flag PHY_HAS_INTERRUPT from driver configs

2018-11-08 Thread Heiner Kallweit
Now that flag PHY_HAS_INTERRUPT has been replaced with a check for callbacks config_intr and ack_interrupt, we can remove setting this flag from driver configs. Signed-off-by: Heiner Kallweit --- drivers/net/phy/realtek.c | 7 --- 1 file changed, 7 deletions(-) diff --git a/drivers/net/phy/

[PATCH net-next 1/2] net: phy: replace PHY_HAS_INTERRUPT with a check for config_intr and ack_interrupt

2018-11-08 Thread Heiner Kallweit
Flag PHY_HAS_INTERRUPT is used only here for this small check. I think using interrupts isn't possible if a driver defines neither config_intr nor ack_interrupts callback. So we can replace checking flag PHY_HAS_INTERRUPT with checking for these callbacks. Signed-off-by: Heiner Kallweit --- driv

Re: [PATCH v3 bpf-next 4/4] bpftool: support loading flow dissector

2018-11-08 Thread Jakub Kicinski
On Thu, 8 Nov 2018 13:29:40 -0800, Stanislav Fomichev wrote: > On 11/08, Jakub Kicinski wrote: > > On Wed, 7 Nov 2018 21:39:57 -0800, Stanislav Fomichev wrote: > > > This commit adds support for loading/attaching/detaching flow > > > dissector program. The structure of the flow dissector program

[PATCH net-next 0/2] net: phy: replace PHY_HAS_INTERRUPT with a check for config_intr and ack_interrupt

2018-11-08 Thread Heiner Kallweit
Flag PHY_HAS_INTERRUPT is used only here for this small check. I think using interrupts isn't possible if a driver defines neither config_intr nor ack_interrupts callback. So we can replace checking flag PHY_HAS_INTERRUPT with checking for these callbacks. This allows to remove this flag from a lo

Re: [net-next 06/12] i40e/ixgbe/igb: fail on new WoL flag setting WAKE_MAGICSECURE

2018-11-08 Thread Jeff Kirsher
On Thu, 2018-11-08 at 07:42 +0100, Michal Kubecek wrote: > On Thu, Nov 08, 2018 at 06:05:26AM +, Kevin Easton wrote: > > On Wed, Nov 07, 2018 at 02:48:24PM -0800, Jeff Kirsher wrote: > > > From: Todd Fujinaka > > > > > > There's a new flag for setting WoL filters that is only > > > enabled on

Re: [PATCH v3 bpf-next 4/4] bpftool: support loading flow dissector

2018-11-08 Thread Jakub Kicinski
On Thu, 8 Nov 2018 13:25:39 -0800, Stanislav Fomichev wrote: > > > > + goto err_close_obj; > > > > + } > > > > + > > > > const char *sec_name = bpf_program__title(prog, false); > > > > > > > > err = libbpf_prog_type_by_name(sec_

Re: [PATCH v3 bpf-next 4/4] bpftool: support loading flow dissector

2018-11-08 Thread Jakub Kicinski
On Thu, 8 Nov 2018 13:20:12 -0800, Stanislav Fomichev wrote: > On 11/08, Jakub Kicinski wrote: > > On Thu, 8 Nov 2018 18:21:24 +, Quentin Monnet wrote: > > > >>> @@ -79,8 +82,11 @@ DESCRIPTION > > > >>> contain a dot character ('.'), which is reserved for > > > >>> future > >

[PATCH net-next] net: phy: improve struct phy_device member interrupts handling

2018-11-08 Thread Heiner Kallweit
As a heritage from the very early days of phylib member interrupts is defined as u32 even though it's just a flag whether interrupts are enabled. So we can change it to a bitfield member. In addition change the code dealing with this member in a way that it's clear we're dealing with a bool value.

Re: [PATCH v3 bpf-next 4/4] bpftool: support loading flow dissector

2018-11-08 Thread Stanislav Fomichev
On 11/08, Jakub Kicinski wrote: > On Wed, 7 Nov 2018 21:39:57 -0800, Stanislav Fomichev wrote: > > This commit adds support for loading/attaching/detaching flow > > dissector program. The structure of the flow dissector program is > > assumed to be the same as in the selftests: > > > > * flow_dis

Re: [PATCH bpf-next] bpftool: Improve handling of ENOENT on map dumps

2018-11-08 Thread Jakub Kicinski
On Thu, 8 Nov 2018 13:00:07 -0800, David Ahern wrote: > From: David Ahern > > bpftool output is not user friendly when dumping a map with only a few > populated entries: > > $ bpftool map > 1: devmap name tx_devmap flags 0x0 > key 4B value 4B max_entries 64 memlock 4096

Re: [PATCH v3 bpf-next 4/4] bpftool: support loading flow dissector

2018-11-08 Thread Stanislav Fomichev
On 11/08, Jakub Kicinski wrote: > On Thu, 8 Nov 2018 11:16:43 +, Quentin Monnet wrote: > > > - bpf_program__set_ifindex(prog, ifindex); > > > if (attr.prog_type == BPF_PROG_TYPE_UNSPEC) { > > > + if (!prog) { > > > + p_err("can not guess program type when loadi

Re: [PATCH net-next 0/7] net: sched: prepare for more Qdisc offloads

2018-11-08 Thread Toke Høiland-Jørgensen
Jakub Kicinski writes: > On Thu, 08 Nov 2018 12:48:27 +0100, Toke Høiland-Jørgensen wrote: >> Jakub Kicinski writes: >> > Hi! >> > >> > This series refactors the "switchdev" Qdisc offloads a little. We have >> > a few Qdiscs which can be fully offloaded today to the forwarding plane >> > of swi

  1   2   3   >