Re: [PATCH net V5 1/2] net/sched: taprio: fix picos_per_byte miscalculation

2019-03-29 Thread kbuild test robot
Hi Leandro, Thank you for the patch! Yet something to improve: [auto build test ERROR on net/master] url: https://github.com/0day-ci/linux/commits/Leandro-Dorileo/net-sched-taprio-fix-picos_per_byte-miscalculation/20190329-185809 config: m68k-allmodconfig (attached as .config) compiler

Re: pull-request: bpf 2019-03-29

2019-03-29 Thread David Miller
From: Daniel Borkmann Date: Fri, 29 Mar 2019 23:50:50 +0100 > The following pull-request contains BPF updates for your *net* tree. > > The main changes are: > > 1) Bug fix in BTF deduplication that was mishandling an equivalence >comparison, from Andrii. > > 2) libbpf Makefile fixes to pro

Re: [PATCH bpf-next 0/7] bpf: improve verifier scalability

2019-03-29 Thread Alexei Starovoitov
On Fri, Mar 29, 2019 at 08:18:28PM -0700, Jakub Kicinski wrote: > On Fri, 29 Mar 2019 17:16:05 -0700, Alexei Starovoitov wrote: > > Realize two key ideas to speed up verification speed by ~20 times > > 1. every 'branching' instructions records all verifier states. > >not all of them are useful

Re: [PATCH bpf-next 2/7] bpf: improve verification speed by droping states

2019-03-29 Thread Alexei Starovoitov
On Fri, Mar 29, 2019 at 08:12:39PM -0700, Jakub Kicinski wrote: > On Fri, 29 Mar 2019 17:16:07 -0700, Alexei Starovoitov wrote: > > Branch instructions, branch targets and calls in a bpf program are > > the places where the verifier remembers states that led to successful > > verification of the pr

Re: [PATCH bpf-next 0/7] bpf: improve verifier scalability

2019-03-29 Thread Jakub Kicinski
On Fri, 29 Mar 2019 17:16:05 -0700, Alexei Starovoitov wrote: > Realize two key ideas to speed up verification speed by ~20 times > 1. every 'branching' instructions records all verifier states. >not all of them are useful for search pruning. >add a simple heuristic to keep states that were

Re: [PATCH bpf-next 5/7] bpf: increase verifier log limit

2019-03-29 Thread Jakub Kicinski
On Fri, 29 Mar 2019 17:16:10 -0700, Alexei Starovoitov wrote: > The existing 16Mbyte verifier log limit is not enough for log_level=2 > even for small programs. Increase it to 1Gbyte. > Note it's not a kernel memory limit. > It's an amount of memory user space provides to store > the verifier log.

Re: [PATCH bpf-next 3/7] bpf: improve verification speed by not remarking live_read

2019-03-29 Thread Jakub Kicinski
On Fri, 29 Mar 2019 17:16:08 -0700, Alexei Starovoitov wrote: > With large verifier speed improvement brought by the previous patch > mark_reg_read() becomes the hottest function during verification. > On a typical program it consumes 40% of cpu. > mark_reg_read() walks parentage chain of registers

Re: [PATCH bpf-next 2/7] bpf: improve verification speed by droping states

2019-03-29 Thread Jakub Kicinski
On Fri, 29 Mar 2019 17:16:07 -0700, Alexei Starovoitov wrote: > Branch instructions, branch targets and calls in a bpf program are > the places where the verifier remembers states that led to successful > verification of the program. > These states are used to prune brute force program analysis. >

[PATCH net-next 2/3] nfp: nsp: implement read SFF module EEPROM

2019-03-29 Thread Jakub Kicinski
From: Dirk van der Merwe The NSP now provides the ability to read from the SFF module EEPROM. Note that even if an error occurs, the NSP may still provide some of the data. Signed-off-by: Dirk van der Merwe Reviewed-by: Jakub Kicinski --- .../ethernet/netronome/nfp/nfpcore/nfp_nsp.c | 62 +++

[PATCH net-next 1/3] nfp: flower: reduce action list size by coalescing mangle actions

2019-03-29 Thread Jakub Kicinski
From: Pieter Jansen van Vuuren With the introduction of flow_action_for_each pedit actions are no longer grouped together, instead pedit actions are broken out per 32 byte word. This results in an inefficient use of the action list that is pushed to hardware where each 32 byte word becomes its ow

Re: [PATCH net-next 1/3] nfp: flower: reduce action list size by coalescing mangle actions

2019-03-29 Thread Jakub Kicinski
On Fri, 29 Mar 2019 19:24:41 -0700, Jakub Kicinski wrote: > From: Pieter Jansen van Vuuren > > With the introduction of flow_action_for_each pedit actions are no > longer grouped together, instead pedit actions are broken out per > 32 byte word. This results in an inefficient use of the action li

[PATCH net-next 3/3] nfp: implement ethtool get module EEPROM

2019-03-29 Thread Jakub Kicinski
From: Dirk van der Merwe Now that the NSP provides the ability to read from the SFF modules' EEPROM, we can use this interface to implement the ethtool callback. If the NSP only provides partial data, we log the event from within the driver but pass a success code to ethtool to prevent it from d

[PATCH net-next 0/3] nfp: flower improvement and SFF module EEPROM

2019-03-29 Thread Jakub Kicinski
Hi! The first patch in this series from Pieter improves the handling of mangle actions in TC flower offload. These used to be sent down to the driver in groups, but after Pablo N's patches they are split out causing suboptimal expression. The ramaining two patches from Dirk add support for readi

[PATCH net 0/2] nfp: flower: fix matching and pushing vlan CFI bit

2019-03-29 Thread Jakub Kicinski
Hi, This patch clears up some confusion around the meaning of bit 12 for FW messages related to VLAN and flower offload. Pieter says: It fixes issues with matching, pushing and popping vlan tags. We replace the vlan CFI bit with a vlan present bit that indicates the presence of a vlan tag. We als

[PATCH net 2/2] nfp: flower: remove vlan CFI bit from push vlan action

2019-03-29 Thread Jakub Kicinski
From: Pieter Jansen van Vuuren We no longer set CFI when pushing vlan tags, therefore we remove the CFI bit from push vlan. Fixes: 1a1e586f54bf ("nfp: add basic action capabilities to flower offloads") Signed-off-by: Pieter Jansen van Vuuren Signed-off-by: Louis Peens Reviewed-by: Jakub Kicins

[PATCH net 1/2] nfp: flower: replace CFI with vlan present

2019-03-29 Thread Jakub Kicinski
From: Pieter Jansen van Vuuren Replace vlan CFI bit with a vlan present bit that indicates the presence of a vlan tag. Previously the driver incorrectly assumed that an vlan id of 0 is not matchable, therefore we indicate vlan presence with a vlan present bit. Fixes: 5571e8c9f241 ("nfp: extend f

[PATCH net-next 1/8] ipv4: Update fib_table_lookup tracepoint to take common nexthop

2019-03-29 Thread David Ahern
From: David Ahern Update fib_table_lookup tracepoint to take a fib_nh_common struct and dump the v6 gateway address if the nexthop uses it. Signed-off-by: David Ahern --- include/trace/events/fib.h | 45 ++--- net/ipv4/fib_trie.c| 2 +- 2 files

[PATCH net-next 7/8] ipv4: Change fib_nexthop_info and fib_add_nexthop to take fib_nh_common

2019-03-29 Thread David Ahern
From: David Ahern With the exception of the nexthop weight, the nexthop attributes used by fib_nexthop_info and fib_add_nexthop come from the fib_nh_common struct. Update both to use it and change fib_nexthop_info to check the family as needed. nexthop weight comes from the common struct for exi

[PATCH net-next 2/8] ipv4: Add fib_nh_common to fib_result

2019-03-29 Thread David Ahern
From: David Ahern Most of the ipv4 code only needs data from fib_nh_common. Add fib_nh_common selection to fib_result and update users to use it. Right now, fib_nh_common in fib_result will point to a nexthop within a fib_info. Later, it can point to data within a nexthop struct. Signed-off-by:

[PATCH net-next 3/8] ipv4: Move cached routes to fib_nh_common

2019-03-29 Thread David Ahern
From: David Ahern While the cached routes, nh_pcpu_rth_output and nh_rth_input, are IPv4 specific, a later patch wants to make them accessible for IPv6 gateways with IPv4 routes but also allow IPv6 routes to have their own cached entries. Move the IPv4 cached routes from fib_nh to fib_nh_common a

[PATCH net-next 5/8] ipv4: Switch to nhc_exceptions for exception bucket

2019-03-29 Thread David Ahern
From: David Ahern Flip IPv4 to use nhc_exceptions for fnhe_hash_bucket and drop nh_exceptions from fib_nh. Simplify the code a bit by converting update_or_create_fnhe, find_exception and rt_cache_route to take fib_nh_common as the input over fib_nh. Signed-off-by: David Ahern --- include/net/

[PATCH net-next 4/8] ipv6: Move exceptions to fib_nh_common

2019-03-29 Thread David Ahern
From: David Ahern Exceptions are really per device, so move rt6i_exception_bucket to fib_nh_common as a generic nhc_exception_bucket. Move the flushed flag to common as well. fib_nh_common for both is a strategic choice to reduce memory consumption. Moving to fib6_nh pushes the struct over 256 wh

[PATCH net-next 6/8] ipv4: Refactor nexthop attributes in fib_dump_info

2019-03-29 Thread David Ahern
From: David Ahern Similar to ipv6, move addition of nexthop attributes to dump message into helpers that are called for both single path and multipath routes. Align the new helpers to the IPv6 variant which most notably means computing the flags argument based on settings in nh_flags. The RTA_FL

[PATCH net-next 0/8] net: More movement to fib_nh_common

2019-03-29 Thread David Ahern
From: David Ahern Second set of three with the end goal of enabling IPv6 gateways with IPv4 routes. This set moves: - the ipv4 tracepoint to take a fib_nh_common and updates it to handle a v6 gateway. - cached routes and exception buckets to fib_nh_common - consolidates route notifications to

[PATCH net-next 8/8] ipv6: Flip to fib_nexthop_info

2019-03-29 Thread David Ahern
From: David Ahern Export fib_nexthop_info and fib_add_nexthop for use by IPv6 code. Remove rt6_nexthop_info and rt6_add_nexthop in favor of the IPv4 versions. Update fib_nexthop_info for IPv6 linkdown check and RTA_GATEWAY for AF_INET6. Signed-off-by: David Ahern --- include/net/ip_fib.h |

[PATCH] ipv4 ping: Fix __init* attributes

2019-03-29 Thread Andi Kleen
From: Andi Kleen ping_v4_net_ops references init functions, so needs to be __initdata. ping_proc_exit is then referenced from __initdata, so also needs to be __init. Signed-off-by: Andi Kleen --- net/ipv4/ping.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/net/ipv4/p

[PATCH bpf-next 3/7] bpf: improve verification speed by not remarking live_read

2019-03-29 Thread Alexei Starovoitov
With large verifier speed improvement brought by the previous patch mark_reg_read() becomes the hottest function during verification. On a typical program it consumes 40% of cpu. mark_reg_read() walks parentage chain of registers to mark parents as LIVE_READ. Once the register is marked there is no

[PATCH bpf-next 6/7] libbpf: teach libbpf about log_level bit 2

2019-03-29 Thread Alexei Starovoitov
Allow bpf_prog_load_xattr() to specify log_level for program loading. Teach libbpf to accept log_level with bit 2 set. Increase default BPF_LOG_BUF_SIZE from 256k to 16M. There is no downside to increase it to a maximum allowed by old kernels. Existing 256k limit caused ENOSPC errors and users we

[PATCH bpf-next 7/7] selftests/bpf: add few verifier scale tests

2019-03-29 Thread Alexei Starovoitov
Add 3 basic tests that stress verifier scalability. test_verif_scale1.c calls non-inlined jhash() function 90 times on different position in the packet. This test simulates network packet parsing. jhash function is ~140 instructions and main program is ~1200 insns. test_verif_scale2.c force inlin

[PATCH bpf-next 5/7] bpf: increase verifier log limit

2019-03-29 Thread Alexei Starovoitov
The existing 16Mbyte verifier log limit is not enough for log_level=2 even for small programs. Increase it to 1Gbyte. Note it's not a kernel memory limit. It's an amount of memory user space provides to store the verifier log. The kernel populates it 1k at a time. Signed-off-by: Alexei Starovoitov

[PATCH bpf-next 4/7] bpf: increase complexity limit and maximum program size

2019-03-29 Thread Alexei Starovoitov
Large verifier speed improvements allow to increase verifier complexity limit. Now regardless of the program composition and its size it takes little time for the verifier to hit insn_processed limit. On typical x86 machine non-debug kernel processes 1M instructions in 1/10 of a second. (before the

[PATCH bpf-next 1/7] bpf: add verifier stats and log_level bit 2

2019-03-29 Thread Alexei Starovoitov
In order to understand the verifier bottlenecks add various stats and extend log_level: log_level 1 and 2 are kept as-is: bit 0 - level=1 - print every insn and verifier state at branch points bit 1 - level=2 - print every insn and verifier state at every insn bit 2 - level=4 - print verifier error

[PATCH bpf-next 2/7] bpf: improve verification speed by droping states

2019-03-29 Thread Alexei Starovoitov
Branch instructions, branch targets and calls in a bpf program are the places where the verifier remembers states that led to successful verification of the program. These states are used to prune brute force program analysis. For unprivileged programs there is a limit of 64 states per such 'branch

[PATCH bpf-next 0/7] bpf: improve verifier scalability

2019-03-29 Thread Alexei Starovoitov
Realize two key ideas to speed up verification speed by ~20 times 1. every 'branching' instructions records all verifier states. not all of them are useful for search pruning. add a simple heuristic to keep states that were successful in search pruning and remove those that were not 2. mar

pull-request: bpf 2019-03-29

2019-03-29 Thread Daniel Borkmann
Hi David, The following pull-request contains BPF updates for your *net* tree. The main changes are: 1) Bug fix in BTF deduplication that was mishandling an equivalence comparison, from Andrii. 2) libbpf Makefile fixes to properly link against libelf for the shared object and to actually

RE: [PATCH mlx5-next 08/14] net/mlx5: Make mlx5_core messages independent from mdev->pdev

2019-03-29 Thread Parav Pandit
> -Original Message- > From: netdev-ow...@vger.kernel.org On > Behalf Of Saeed Mahameed > Sent: Friday, March 29, 2019 5:38 PM > To: sa...@mellanox.com; Leon Romanovsky > Cc: netdev@vger.kernel.org; linux-r...@vger.kernel.org; Huy Nguyen > ; Vu Pham ; Saeed > Mahameed > Subject: [PATC

[PATCH mlx5-next 13/14] net/mlx5: Expose MPEIN (Management PCIE INfo) register layout

2019-03-29 Thread Saeed Mahameed
From: Aya Levin Expose PRM layout for handling MPEIN (Management PCIE Info). It will be used in the downstream patch for querying MPEIN via the driver. Signed-off-by: Aya Levin Signed-off-by: Saeed Mahameed --- include/linux/mlx5/driver.h | 1 + include/linux/mlx5/mlx5_ifc.h | 51 +

[PATCH mlx5-next 14/14] net/mlx5: Fix false compilation warning

2019-03-29 Thread Saeed Mahameed
From: Tariq Toukan Fix the following warning: drivers/net/ethernet/mellanox/mlx5/core//fs_core.c:845:5: warning: 'err' may be used uninitialized in this function [-Wmaybe-uninitialized] No real issue here. This is only a false compiler warning. The 'err' variable is guaranteed to be init by time

[PATCH mlx5-next 12/14] net/mlx5: Add rate limit print macros

2019-03-29 Thread Saeed Mahameed
From: Aya Levin Add rate limited print macros for warning and info level. This protects the system from burst of prints depleting HW resources and spamming dmesg. Signed-off-by: Aya Levin Signed-off-by: Saeed Mahameed --- drivers/net/ethernet/mellanox/mlx5/core/mlx5_core.h | 10 ++ 1

[PATCH mlx5-next 06/14] net/mlx5: Function setup/teardown procedures

2019-03-29 Thread Saeed Mahameed
Function setup and teardown procedures are the basic procedure that each mlx5 pci function should perform to boot up a mlx5 device function and initialize basic communication with FW, before allocating any higher level software/firmware resources. This provides a better logical separation of mlx5

[PATCH mlx5-next 08/14] net/mlx5: Make mlx5_core messages independent from mdev->pdev

2019-03-29 Thread Saeed Mahameed
From: Huy Nguyen Detach mlx5_core mdev messages from pci device mdev->pdev messages and provide a better report/debug of different mlx5 device types. This patch does not change any functionality. Signed-off-by: Huy Nguyen Signed-off-by: Vu Pham Signed-off-by: Saeed Mahameed --- .../ethernet

[PATCH mlx5-next 11/14] net/mlx5: Add explicit bar address field

2019-03-29 Thread Saeed Mahameed
From: Huy Nguyen Add bar_addr field to store bar-0 address to avoid calling pci_resource_start with hard-coded bar-0 as parameter. Also note that different mlx5 device types will have bar_addr on different bars. This patch does not change any functionality. Signed-off-by: Huy Nguyen Signed-off

[PATCH mlx5-next 10/14] net/mlx5: Replace dev_err/warn/info by mlx5_core_err/warn/info

2019-03-29 Thread Saeed Mahameed
From: Huy Nguyen Replace pci dev_err/warn/info messages with mlx5_core_err/warn/info messages to provide a better report/debug of different mlx5 device types. This patch does not change any functionality. Signed-off-by: Huy Nguyen Signed-off-by: Vu Pham Signed-off-by: Saeed Mahameed --- dri

[PATCH mlx5-next 05/14] net/mlx5: Move health and page alloc init to mdev_init

2019-03-29 Thread Saeed Mahameed
Software structure initialization should be in mdev_init stage. This provides a better logical separation of mlx5 core device initialization flow and will help to seamlessly support creating different mlx5 device types such as PF, VF and SF mlx5 sub-function virtual device. This patch does not ch

[PATCH mlx5-next 09/14] net/mlx5: Use dev->priv.name instead of dev_name

2019-03-29 Thread Saeed Mahameed
From: Huy Nguyen Use mlx5_core mdev private name in message instead of using pci dev_name to provide a better report/debug of different mlx5 device types. This patch does not change any functionality. Signed-off-by: Huy Nguyen Signed-off-by: Vu Pham Signed-off-by: Saeed Mahameed --- drivers

[PATCH mlx5-next 03/14] net/mlx5: Remove redundant init functions parameter

2019-03-29 Thread Saeed Mahameed
This patch does not change any functionality. Signed-off-by: Vu Pham Signed-off-by: Saeed Mahameed --- .../net/ethernet/mellanox/mlx5/core/main.c| 49 +-- 1 file changed, 22 insertions(+), 27 deletions(-) diff --git a/drivers/net/ethernet/mellanox/mlx5/core/main.c b/driver

[PATCH mlx5-next 07/14] net/mlx5: Break load_one into three stages

2019-03-29 Thread Saeed Mahameed
Using foundation from previous patches to factor mlx5_load_one flow into three stages: 1. mlx5_function_setup() from previous patch to setup function 2. mlx5_init_once() from previous patch to init software objects according to hw caps 3. New mlx5_load() to load mlx5 components This provides a bet

[PATCH mlx5-next 02/14] net/mlx5: Remove spinlock support from mlx5_write64

2019-03-29 Thread Saeed Mahameed
From: Maxim Mikityanskiy As there is no user of mlx5_write64 that passes a spinlock to mlx5_write64, remove this functionality and simplify the function. Signed-off-by: Maxim Mikityanskiy Reviewed-by: Eran Ben Elisha Signed-off-by: Saeed Mahameed --- drivers/infiniband/hw/mlx5/qp.c

[PATCH mlx5-next 04/14] net/mlx5: Split mdev init and pci init

2019-03-29 Thread Saeed Mahameed
Separate resources initialization from pci initialization. This provides a better logical separation of mlx5 core device initialization flow and will help to seamlessly support creating different mlx5 device types such as PF, VF and SF mlx5 sub-function virtual device. This patch does not change

[PATCH mlx5-next 01/14] net/mlx5: Remove unused MLX5_*_DOORBELL_LOCK macros

2019-03-29 Thread Saeed Mahameed
From: Maxim Mikityanskiy MLX5_*_DOORBELL_LOCK macros provided a way to avoid locking for mlx5_write64 on 64-bit platforms where it's not necessary. Currently all calls to mlx5_write64 don't use a spinlock, so the macros became unused. Signed-off-by: Maxim Mikityanskiy Reviewed-by: Eran Ben Elis

[PATCH mlx5-next 00/14] Mellanox, mlx5 next updates 2019-03-29

2019-03-29 Thread Saeed Mahameed
Hi, This series includes some misc shared code updates for mlx5-next branch. >From Maxim, Remove un-used macros and spinlock from mlx5 code. >From Aya, Expose Management PCIE info register layout and add rate limit print macros. >From Tariq, Compilation warning fix in fs_core.c >From Vu, Huy a

Re: [patch net-next 00/12] net: expose switch ID via devlink

2019-03-29 Thread Jakub Kicinski
On Fri, Mar 29, 2019 at 2:21 PM Jiri Pirko wrote: > Fri, Mar 29, 2019 at 07:59:26PM CET, jakub.kicin...@netronome.com wrote: > >On Fri, 29 Mar 2019 07:49:05 +0100, Jiri Pirko wrote: > >> Thu, Mar 28, 2019 at 10:40:02PM CET, jakub.kicin...@netronome.com wrote: > >> >On Thu, 28 Mar 2019 22:12:42 +01

Re: [pull request][net 00/15] Mellanox, mlx5 fixes 2019-03-29

2019-03-29 Thread David Miller
From: Saeed Mahameed Date: Fri, 29 Mar 2019 13:42:08 -0700 > This series introduces some fixes to mlx5 driver. > > Please pull and let me know if there is any problem. Pulled. > For -stable v4.11 > ('net/mlx5: Decrease default mr cache size') > > For -stable v4.12 > ('net/mlx5e: Add a lock on

Re: [patch net-next 00/12] net: expose switch ID via devlink

2019-03-29 Thread Florian Fainelli
On 3/29/19 2:57 PM, Jakub Kicinski wrote: > On Fri, 29 Mar 2019 14:29:11 -0700, Florian Fainelli wrote: >>> Out of curiosity, what are the shared features? It seems mlx5 drives >>> a lot of our API design, it'd be good if the community had a better >>> understanding of it. >>> >>> The situation w

Re: [patch net-next 11/12] dsa: pass switch ID through devlink_port_attrs_set()

2019-03-29 Thread Florian Fainelli
On 3/28/19 2:12 PM, Jiri Pirko wrote: > From: Jiri Pirko > > Pass the switch ID down the to devlink through devlink_port_attrs_set() > so it can be used by devlink_compat_switch_id_get(). Leave > ndo_get_port_parent_id implementation only for legacy. Nit you are passing the switch fabric id (dst

Re: [RFC] xdp, multiple rss objects

2019-03-29 Thread Jonathan Lemon
On 29 Mar 2019, at 14:24, Jakub Kicinski wrote: > On Fri, 29 Mar 2019 16:14:57 +, Jonathan Lemon wrote: >> Background: >> >> With AF_XDP, packets are placed on queues which are serviced directly >> from >> an application running in user space, which promises greatly >> increased >> perform

Re: [patch net-next 00/12] net: expose switch ID via devlink

2019-03-29 Thread Jakub Kicinski
On Fri, 29 Mar 2019 14:29:11 -0700, Florian Fainelli wrote: > > Out of curiosity, what are the shared features? It seems mlx5 drives > > a lot of our API design, it'd be good if the community had a better > > understanding of it. > > > > The situation with pipelined devices is somewhat murky. D

Re: [patch net-next 00/12] net: expose switch ID via devlink

2019-03-29 Thread Florian Fainelli
On 3/29/19 11:59 AM, Jakub Kicinski wrote: > On Fri, 29 Mar 2019 07:49:05 +0100, Jiri Pirko wrote: >> Thu, Mar 28, 2019 at 10:40:02PM CET, jakub.kicin...@netronome.com wrote: >>> On Thu, 28 Mar 2019 22:12:42 +0100, Jiri Pirko wrote: From: Jiri Pirko To provide visibility of the po

Re: [PATCH v2 4/4] ethtool: add PHY Fast Link Down tunable to man page

2019-03-29 Thread Florian Fainelli
On 3/29/19 12:17 PM, Heiner Kallweit wrote: > Add description of new PHY tunable Fast Link Down to ethtool man page. > > v2: > - improve wording > > Signed-off-by: Heiner Kallweit Reviewed-by: Florian Fainelli -- Florian

Re: [PATCH v2 3/4] ethtool: add support for PHY tunable Fast Link Down

2019-03-29 Thread Florian Fainelli
On 3/29/19 12:15 PM, Heiner Kallweit wrote: > This patch adds support for PHY tunable Fast Link Down. Like downshift > it uses an u8 parameter. > > Signed-off-by: Heiner Kallweit Reviewed-by: Florian Fainelli -- Florian

Re: [RFC] xdp, multiple rss objects

2019-03-29 Thread Jakub Kicinski
On Fri, 29 Mar 2019 16:14:57 +, Jonathan Lemon wrote: > Background: > > With AF_XDP, packets are placed on queues which are serviced directly from > an application running in user space, which promises greatly increased > performance. However, not all incoming packets should be delivered to t

Re: [PATCH v2 2/4] ethtool: simplify handling of PHY tunable downshift

2019-03-29 Thread Florian Fainelli
On 3/29/19 12:15 PM, Heiner Kallweit wrote: > In preparation of adding support for Fast Link Down as PHY tunable > let's simplify the handling of PHY tunable downshift a little. > > Signed-off-by: Heiner Kallweit Reviewed-by: Florian Fainelli -- Florian

Re: [PATCH v2 1/4] ethtool: sync ethtool-copy.h with linux-next from 03/28/2019

2019-03-29 Thread Florian Fainelli
On 3/29/19 12:14 PM, Heiner Kallweit wrote: > Sync ethtool-copy.h with linux-next from 03/28/2019. This provides > access to the new PHY tunable for Fast Link Down support. > > Signed-off-by: Heiner Kallweit Reviewed-by: Florian Fainelli -- Florian

Re: [patch net-next 00/12] net: expose switch ID via devlink

2019-03-29 Thread Jiri Pirko
Fri, Mar 29, 2019 at 07:59:26PM CET, jakub.kicin...@netronome.com wrote: >On Fri, 29 Mar 2019 07:49:05 +0100, Jiri Pirko wrote: >> Thu, Mar 28, 2019 at 10:40:02PM CET, jakub.kicin...@netronome.com wrote: >> >On Thu, 28 Mar 2019 22:12:42 +0100, Jiri Pirko wrote: >> >> From: Jiri Pirko >> >> >> >

Re: [PATCH net-next] net: phy: aquantia: add suspend / resume callbacks for AQR107 family

2019-03-29 Thread Florian Fainelli
On 3/29/19 1:09 PM, Heiner Kallweit wrote: > Add suspend / resume callbacks for AQR107 family. Suspend powers down > the complete chip except MDIO and internal CPU. > > Signed-off-by: Heiner Kallweit Reviewed-by: Florian Fainelli -- Florian

Re: [PATCHv3 net-next] sched: add dualpi2 scheduler module

2019-03-29 Thread Stephen Hemminger
On Thu, 28 Mar 2019 02:35:38 -0700 Eric Dumazet wrote: > > obj-$(CONFIG_NET_SCH_ETF) += sch_etf.o > > obj-$(CONFIG_NET_SCH_TAPRIO) += sch_taprio.o > > +obj-$(CONFIG_NET_SCH_DUALPI2) += sch_dualpi2.o > > > > obj-$(CONFIG_NET_CLS_U32) += cls_u32.o > > obj-$(CONFIG_NET_CLS_ROUTE4)

Re: [PATCH net V5 1/2] net/sched: taprio: fix picos_per_byte miscalculation

2019-03-29 Thread kbuild test robot
Hi Leandro, Thank you for the patch! Yet something to improve: [auto build test ERROR on net/master] url: https://github.com/0day-ci/linux/commits/Leandro-Dorileo/net-sched-taprio-fix-picos_per_byte-miscalculation/20190329-185809 config: i386-randconfig-l0-03292131 (attached as .config

[RFC net-next 0/1] net: sched: Introduce conntrack action

2019-03-29 Thread Kevin 'ldir' Darbyshire-Bryant
Hi Cong, OK, so I've renamed conndscp to conntrack and hopefully this are flexible enough for future conntrack->skb operations to be added in the future. How does this one fly? Cheers, Kevin Kevin Darbyshire-Bryant (1): net: sched: Introduce conntrack action include/net/tc_act/tc_conntrack

[RFC net-next 1/1] net: sched: Introduce conntrack action

2019-03-29 Thread Kevin 'ldir' Darbyshire-Bryant
conntrack is a new tc filter action module. It is designed to restore DSCPs stored in conntrack marks The feature is intended for use and has been found useful for restoring ingress classifications based on egress classifications across links that bleach or otherwise change DSCP, typically home I

[net 02/15] net/mlx5e: Fix error handling when refreshing TIRs

2019-03-29 Thread Saeed Mahameed
From: Gavi Teitz Previously, a false positive would be caught if the TIRs list is empty, since the err value was initialized to -ENOMEM, and was only updated if a TIR is refreshed. This is resolved by initializing the err value to zero. Fixes: b676f653896a ("net/mlx5e: Refactor refresh TIRs") Si

[net 11/15] net/mlx5: E-Switch, Fix esw manager vport indication for more vport commands

2019-03-29 Thread Saeed Mahameed
From: Omri Kahalon Traditionally, the PF (Physical Function) which resides on vport 0 was the E-switch manager. Since the ECPF (Embedded CPU Physical Function), which resides on vport 0xfffe, was introduced as the E-Switch manager, the assumption that the E-switch manager is on vport 0 is incorre

[net 01/15] net/mlx5: Decrease default mr cache size

2019-03-29 Thread Saeed Mahameed
From: Artemy Kovalyov Delete initialization of high order entries in mr cache to decrease initial memory footprint. When required, the administrator can populate the entries with memory keys via the /sys interface. This approach is very helpful to significantly reduce the per HW function memory

[net 12/15] net/mlx5: E-Switch, fix syndrome (0x678139) when turn on vepa

2019-03-29 Thread Saeed Mahameed
From: Huy Nguyen Make sure the struct mlx5_flow_destination is zero before filling in the field. Fixes: 8da202b24913 ("net/mlx5: E-Switch, Add support for VEPA in legacy mode.") Signed-off-by: Huy Nguyen Reviewed-by: Daniel Jurgens Signed-off-by: Saeed Mahameed --- drivers/net/ethernet/mella

[net 14/15] net/mlx5e: Update xon formula

2019-03-29 Thread Saeed Mahameed
From: Huy Nguyen Set xon = xoff - netdev's max_mtu. netdev's max_mtu will give enough time for the pause frame to arrive at the sender. Fixes: 0696d60853d5 ("net/mlx5e: Receive buffer configuration") Signed-off-by: Huy Nguyen Signed-off-by: Saeed Mahameed --- .../mellanox/mlx5/core/en/port_bu

[net 04/15] net: mlx5: Add a missing check on idr_find, free buf

2019-03-29 Thread Saeed Mahameed
From: Aditya Pakki idr_find() can return a NULL value to 'flow' which is used without a check. The patch adds a check to avoid potential NULL pointer dereference. In case of mlx5_fpga_sbu_conn_sendmsg() failure, free buf allocated using kzalloc. Fixes: ab412e1dd7db ("net/mlx5: Accel, add TLS rx

[net 08/15] net/mlx5: E-Switch, Fix access to invalid memory when toggling esw modes

2019-03-29 Thread Saeed Mahameed
From: Roi Dayan The esw fdb table has a union of legacy and offloads members. So if we were in a certain esw mode we could set some memebers and not set null which is fine as on destroy path and don't care. But then moving from legacy to switchdev a second time, the cleanup flow of legacy mode ch

[net 06/15] net/mlx5: ethtool, Fix type analysis of advertised link-mode

2019-03-29 Thread Saeed Mahameed
From: Aya Levin Ethtool option set_link_ksettings allows setting of legacy link-modes or extended link-modes. Refine the decision of which type of link-modes is set. Fixes: 6a897372417e ("net/mlx5: ethtool, Add ethtool support for 50Gbps per lane link modes") Signed-off-by: Aya Levin Signed-of

[net 15/15] net/mlx5e: Consider tunnel type for encap contexts

2019-03-29 Thread Saeed Mahameed
From: Eli Britstein The driver allocates an encap context based on the tunnel properties, and reuse that context for all flows using the same tunnel properties. Commit df2ef3bff193 ("net/mlx5e: Add GRE protocol offloading") introduced another tunnel protocol other than the single VXLAN previously

[net 10/15] net/mlx5: E-Switch, Protect from invalid memory access in offload fdb table

2019-03-29 Thread Saeed Mahameed
From: Roi Dayan The esw offloads structures share a union with the legacy mode structs. Reset the offloads struct to zero in init to protect from null assumptions made by the legacy mode code. Signed-off-by: Roi Dayan Reviewed-by: Or Gerlitz Signed-off-by: Saeed Mahameed --- drivers/net/ethe

[net 13/15] net/mlx5e: Update xoff formula

2019-03-29 Thread Saeed Mahameed
From: Huy Nguyen Set minimum speed in xoff threshold formula to 40Gbps Fixes: 0696d60853d5 ("net/mlx5e: Receive buffer configuration") Signed-off-by: Huy Nguyen Signed-off-by: Saeed Mahameed --- .../net/ethernet/mellanox/mlx5/core/en/port_buffer.c | 11 ++- 1 file changed, 6 insertio

[net 07/15] net/mlx5: ethtool, Allow legacy link-modes configuration via non-extended ptys

2019-03-29 Thread Saeed Mahameed
From: Aya Levin Allow configuration of legacy link-modes even when extended link-modes are supported. This requires reading of legacy advertisement even when extended link-modes are supported. Since legacy and extended advertisement are mutually excluded, wait for empty reply from extended advert

[net 09/15] net/mlx5e: Correctly use the namespace type when allocating pedit action

2019-03-29 Thread Saeed Mahameed
From: Tonghao Zhang The capacity of FDB offloading and NIC offloading table are different, and when allocating the pedit actions, we should use the correct namespace type. Fixes: c500c86b0c75d ("net/mlx5e: support for two independent packet edit actions") Cc: Pablo Neira Ayuso Signed-off-by: T

[net 03/15] net/mlx5e: Allow IPv4 ttl & IPv6 hop_limit rewrite for all L4 protocols

2019-03-29 Thread Saeed Mahameed
From: Dmytro Linkin For some protocols we are not allowing IP header rewrite offload, since the HW is not capable to properly adjust the l4 checksum. However, TTL & HOPLIMIT modification can be done for all IP protocols, because they are not part of the pseudo header taken into account for checks

[net 05/15] net/mlx5e: Add a lock on tir list

2019-03-29 Thread Saeed Mahameed
From: Yuval Avnery Refresh tirs is looping over a global list of tirs while netdevs are adding and removing tirs from that list. That is why a lock is required. Fixes: 724b2aa15126 ("net/mlx5e: TIRs management refactoring") Signed-off-by: Yuval Avnery Signed-off-by: Saeed Mahameed --- drivers

[pull request][net 00/15] Mellanox, mlx5 fixes 2019-03-29

2019-03-29 Thread Saeed Mahameed
Hi Dave, This series introduces some fixes to mlx5 driver. Please pull and let me know if there is any problem. For -stable v4.11 ('net/mlx5: Decrease default mr cache size') For -stable v4.12 ('net/mlx5e: Add a lock on tir list') For -stable v4.13 ('net/mlx5e: Fix error handling when refreshi

[PATCH v2 ipsec-next 10/11] xfrm: make xfrm modes builtin

2019-03-29 Thread Florian Westphal
after previous changes, xfrm_mode contains no function pointers anymore and all modules defining such struct contain no code except an init/exit functions to register the xfrm_mode struct with the xfrm core. Just place the xfrm modes core and remove the modules, the run-time xfrm_mode register/unr

[PATCH v2 ipsec-next 02/11] xfrm: prefer family stored in xfrm_mode struct

2019-03-29 Thread Florian Westphal
Now that we have the family available directly in the xfrm_mode struct, we can use that and avoid one extra dereference. Signed-off-by: Florian Westphal --- net/ipv4/ip_vti.c | 2 +- net/ipv6/ip6_vti.c| 2 +- net/xfrm/xfrm_input.c | 4 ++-- net/xfrm/xfrm_interface.c | 2 +- 4

[PATCH v2 ipsec-next 05/11] xfrm: remove xmit indirection from xfrm_mode

2019-03-29 Thread Florian Westphal
There are only two versions (tunnel and transport). The ip/ipv6 versions are only differ in sizeof(iphdr) vs ipv6hdr. Place this in the core and use x->outer_mode->encap type to call the correct adjustment helper. Before: text databss dec filename 15730311 6937008 4046908 26714

[PATCH v2 ipsec-next 04/11] xfrm: remove output indirection from xfrm_mode

2019-03-29 Thread Florian Westphal
Same is input indirection. Only exception: we need to export xfrm_outer_mode_output for pktgen. Increases size of vmlinux by about 163 byte: Before: textdata bss dec filename 15730208 6936948 4046908 26714064 vmlinux After: 15730311 6937008 4046908 26714227 vmlinux xfr

[PATCH v2 ipsec-next 01/11] xfrm: place af number into xfrm_mode struct

2019-03-29 Thread Florian Westphal
This will be useful to know if we're supposed to decode ipv4 or ipv6. While at it, make the unregister function return void, all module_exit functions did just BUG(); there is never a point in doing error checks if there is no way to handle such error. Signed-off-by: Florian Westphal --- includ

[PATCH v2 ipsec-next 03/11] xfrm: remove input indirection from xfrm_mode

2019-03-29 Thread Florian Westphal
No need for any indirection or abstraction here, both functions are pretty much the same and quite small, they also have no external dependencies. xfrm_prepare_input can then be made static. With allmodconfig build, size increase of vmlinux is 25 byte: Before: text data bss dec

[PATCH v2 ipsec-next 00/11] xfrm: remove xfrm_mode indirections

2019-03-29 Thread Florian Westphal
This series removes all function pointers from the xfrm_mode struct. They are either replaced by direct calls or a static helper. This reduces code size: even merging all xfrm{4,6}_,mode* modules into the core reduces total size, as the infrastructure to maintain dynamic (un)register can be remove

[PATCH v2 ipsec-next 11/11] xfrm: store xfrm_mode directly, not its address

2019-03-29 Thread Florian Westphal
This structure is now only 4 bytes, so its more efficient to cache a copy rather than its address. No significant size difference in allmodconfig vmlinux. With non-modular kernel that has all XFRM options enabled, this series reduces vmlinux image size by ~11kb. All xfrm_mode indirections are gon

[PATCH v2 ipsec-next 09/11] xfrm: remove afinfo pointer from xfrm_mode

2019-03-29 Thread Florian Westphal
Adds an EXPORT_SYMBOL for afinfo_get_rcu, as it will now be called from ipv6 in case of CONFIG_IPV6=m. This change has virtually no effect on vmlinux size, but it reduces afinfo size and allows followup patch to make xfrm modes const. v2: mark if (afinfo) tests as likely (Sabrina) re-fetch af

[PATCH v2 ipsec-next 08/11] xfrm: remove output2 indirection from xfrm_mode

2019-03-29 Thread Florian Westphal
similar to previous patch: no external module dependencies, so we can avoid the indirection by placing this in the core. This change removes the last indirection from xfrm_mode and the xfrm4|6_mode_{beet,tunnel}.c modules contain (almost) no code anymore. Before: textdata bss dec

[PATCH v2 ipsec-next 07/11] xfrm: remove input2 indirection from xfrm_mode

2019-03-29 Thread Florian Westphal
No external dependencies on any module, place this in the core. Increase is about 1800 byte for xfrm_input.o. The beet helpers get added to internal header, as they can be reused from xfrm_output.c in the next patch (kernel contains several copies of them in the xfrm{4,6}_mode_beet.c files). Befo

[PATCH v2 ipsec-next 06/11] xfrm: remove gso_segment indirection from xfrm_mode

2019-03-29 Thread Florian Westphal
These functions are small and we only have versions for tunnel and transport mode for ipv4 and ipv6 respectively. Just place the 'transport or tunnel' conditional in the protocol specific function instead of using an indirection. Before: 3226 12 0 3238 net/ipv4/esp4_offload.

[PATCH net-next] net: phy: aquantia: add suspend / resume callbacks for AQR107 family

2019-03-29 Thread Heiner Kallweit
Add suspend / resume callbacks for AQR107 family. Suspend powers down the complete chip except MDIO and internal CPU. Signed-off-by: Heiner Kallweit --- drivers/net/phy/aquantia_main.c | 16 1 file changed, 16 insertions(+) diff --git a/drivers/net/phy/aquantia_main.c b/drivers

Re: [PATCHv3 net-next] sched: add dualpi2 scheduler module

2019-03-29 Thread kbuild test robot
Hi Olga, Thank you for the patch! Yet something to improve: [auto build test ERROR on net-next/master] url: https://github.com/0day-ci/linux/commits/Olga-Albisser/sched-add-dualpi2-scheduler-module/20190329-235019 config: arm-allmodconfig (attached as .config) compiler: arm-linux-gnueabi

Re: [PATCH net-next] tcp: cleanup sk_tx_skb_cache before reuse

2019-03-29 Thread Soheil Hassas Yeganeh
On Fri, Mar 29, 2019 at 3:46 PM Eric Dumazet wrote: > > TCP stack relies on the fact that a freshly allocated skb > has skb->cb[] and skb_shinfo(skb)->tx_flags cleared. > > When recycling tx skb, we must ensure these fields are cleared. > > Fixes: 472c2e07eef0 ("tcp: add one skb cache for tx") > S

  1   2   >