Re: [net-next:master 304/314] drivers/net/ethernet/mellanox/mlxsw/spectrum.c:3878:8: error: too few arguments to function 'devlink_resource_register'

2018-03-22 Thread Jiri Pirko
Fri, Mar 23, 2018 at 02:53:38AM CET, dsah...@gmail.com wrote: >On 3/22/18 6:47 PM, kbuild test robot wrote: >> tree: https://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git >> master >> head: 6686c459e1449a3ee5f3fd313b0a559ace7a700e >> commit: 145307460ba9c11489807de7acd3f4c7395f60b

Re: [PATCH RFC net-next 7/7] netdevsim: Add simple FIB resource controller via devlink

2018-03-22 Thread Jiri Pirko
Thu, Mar 22, 2018 at 11:57:57PM CET, d...@cumulusnetworks.com wrote: >From: David Ahern [...] >+void nsim_devlink_teardown(struct netdevsim *ns) >+{ >+ if (ns->devlink) { >+ struct net *net = dev_net(ns->netdev); >+ bool *reg_devlink = net_generic(net, nsim_devlin

[PATCH net-next] XDP router for veth

2018-03-22 Thread Md. Islam
Hi This patch implements IPv4 forwarding on xdp_buff. Currently it only works with VETH. It forwards packets as soon as a veth receives a packet. Currently VETH uses slow path for packet forwarding which requires packet to go through upper layers. However this patch forwards the packet as soon as

Re: [patch net-next RFC 00/12] devlink: introduce port flavours and common phys_port_name generation

2018-03-22 Thread Jiri Pirko
Fri, Mar 23, 2018 at 04:34:47AM CET, jakub.kicin...@netronome.com wrote: >On Thu, 22 Mar 2018 11:55:10 +0100, Jiri Pirko wrote: >> Also, there is one extra port that I don't understand what >> is the purpose for it - something nfp specific perhaps. > >Do you mean the PF netdev? There can be multip

[patch iproute2 rfc 1/2] devlink: introduce support for showing port flavours

2018-03-22 Thread Jiri Pirko
From: Jiri Pirko Signed-off-by: Jiri Pirko --- devlink/devlink.c| 16 include/uapi/linux/devlink.h | 20 2 files changed, 36 insertions(+) diff --git a/devlink/devlink.c b/devlink/devlink.c index 69c3c5d9dd31..952b7cabbccf 100644 --- a/devlink/

[patch iproute2 rfc 2/2] devlink: introduce support for showing port number and split subport number

2018-03-22 Thread Jiri Pirko
From: Jiri Pirko Signed-off-by: Jiri Pirko --- devlink/devlink.c| 6 ++ include/uapi/linux/devlink.h | 2 ++ 2 files changed, 8 insertions(+) diff --git a/devlink/devlink.c b/devlink/devlink.c index 952b7cabbccf..50fec26781f4 100644 --- a/devlink/devlink.c +++ b/devlink/devlink

Re: [patch net-next RFC 00/12] devlink: introduce port flavours and common phys_port_name generation

2018-03-22 Thread Jiri Pirko
Thu, Mar 22, 2018 at 08:10:38PM CET, dsah...@gmail.com wrote: >On 3/22/18 11:49 AM, Jiri Pirko wrote: >> Thu, Mar 22, 2018 at 04:34:07PM CET, dsah...@gmail.com wrote: >>> On 3/22/18 4:55 AM, Jiri Pirko wrote: From: Jiri Pirko This patchset resolves 2 issues we have right now: 1

Re: [patch net-next RFC 02/12] devlink: extend attrs_set for setting port flavours

2018-03-22 Thread Jiri Pirko
Fri, Mar 23, 2018 at 04:36:24AM CET, jakub.kicin...@netronome.com wrote: >On Thu, 22 Mar 2018 11:55:12 +0100, Jiri Pirko wrote: >> enum devlink_attr { >> /* don't change the order or add anything between, this is ABI! */ >> DEVLINK_ATTR_UNSPEC, >> @@ -224,6 +242,7 @@ enum devlink_attr {

Re: [patch net-next RFC 10/12] nfp: flower: create port for flower vnic

2018-03-22 Thread Jiri Pirko
Fri, Mar 23, 2018 at 04:38:28AM CET, jakub.kicin...@netronome.com wrote: >On Thu, 22 Mar 2018 11:55:20 +0100, Jiri Pirko wrote: >> From: Jiri Pirko >> >> Signed-off-by: Jiri Pirko >> --- >> drivers/net/ethernet/netronome/nfp/flower/main.c | 3 +-- >> 1 file changed, 1 insertion(+), 2 deletions(

Re: [PATCH net-next] bridge: Allow max MTU when multiple VLANs present

2018-03-22 Thread Roopa Prabhu
On Thu, Mar 22, 2018 at 8:34 AM, Chas Williams <3ch...@gmail.com> wrote: > If the bridge is allowing multiple VLANs, some VLANs may have > different MTUs. Instead of choosing the minimum MTU for the > bridge interface, choose the maximum MTU of the bridge members. > With this the user only needs t

Re: linux-next: manual merge of the net-next tree with the rdma-fixes tree

2018-03-22 Thread Jason Gunthorpe
On Fri, Mar 23, 2018 at 12:19:00AM -0400, David Miller wrote: > From: Doug Ledford > Date: Thu, 15 Mar 2018 21:18:02 -0400 > > > Here's the commit (from the rdma git repo) with the proper merge fix > > (although it also has other minor merge stuff that needs to be ignored): > > > > 2d873449a202

Re: linux-next: manual merge of the net-next tree with the rdma-fixes tree

2018-03-22 Thread David Miller
From: Doug Ledford Date: Thu, 15 Mar 2018 21:18:02 -0400 > Here's the commit (from the rdma git repo) with the proper merge fix > (although it also has other minor merge stuff that needs to be ignored): > > 2d873449a202 (Merge branch 'k.o/wip/dl-for-rc' into k.o/wip/dl-for-next) Really? [davem

Re: [patch net-next RFC 10/12] nfp: flower: create port for flower vnic

2018-03-22 Thread Jakub Kicinski
On Thu, 22 Mar 2018 11:55:20 +0100, Jiri Pirko wrote: > From: Jiri Pirko > > Signed-off-by: Jiri Pirko > --- > drivers/net/ethernet/netronome/nfp/flower/main.c | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) > > diff --git a/drivers/net/ethernet/netronome/nfp/flower/main.c > b/drive

Re: [patch net-next RFC 02/12] devlink: extend attrs_set for setting port flavours

2018-03-22 Thread Jakub Kicinski
On Thu, 22 Mar 2018 11:55:12 +0100, Jiri Pirko wrote: > enum devlink_attr { > /* don't change the order or add anything between, this is ABI! */ > DEVLINK_ATTR_UNSPEC, > @@ -224,6 +242,7 @@ enum devlink_attr { > DEVLINK_ATTR_DPIPE_TABLE_RESOURCE_ID, /* u64 */ > DEVLINK_AT

Re: [patch net-next RFC 00/12] devlink: introduce port flavours and common phys_port_name generation

2018-03-22 Thread Jakub Kicinski
On Thu, 22 Mar 2018 11:55:10 +0100, Jiri Pirko wrote: > Also, there is one extra port that I don't understand what > is the purpose for it - something nfp specific perhaps. Do you mean the PF netdev? There can be multiple of those on multi-host cards. There is one pf_repr from ASIC's perspective

RE: [PATCH] qed: Use true and false for boolean values

2018-03-22 Thread Kalluru, Sudarsana
-Original Message- From: Gustavo A. R. Silva [mailto:gust...@embeddedor.com] Sent: 23 March 2018 01:39 To: Elior, Ariel ; Dept-Eng Everest Linux L2 Cc: netdev@vger.kernel.org; linux-ker...@vger.kernel.org; Gustavo A. R. Silva Subject: [PATCH] qed: Use true and false for boolean values

Re: [PATCH net-next] modules: allow modprobe load regular elf binaries

2018-03-22 Thread Luis R. Rodriguez
On Thu, Mar 22, 2018 at 3:15 PM, Andy Lutomirski wrote: > All we need to do is to make sure that, if this is > distributed as a module, that it's init routine doesn't wait for a > long time, right? Yeap. Luis

Re: [net-next:master 304/314] drivers/net/ethernet/mellanox/mlxsw/spectrum.c:3878:8: error: too few arguments to function 'devlink_resource_register'

2018-03-22 Thread David Ahern
On 3/22/18 6:47 PM, kbuild test robot wrote: > tree: https://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git > master > head: 6686c459e1449a3ee5f3fd313b0a559ace7a700e > commit: 145307460ba9c11489807de7acd3f4c7395f60b7 [304/314] devlink: Remove > top_hierarchy arg to devlink_resourc

[PATCH net-next 2/2] net: bcmgenet: Add support for adaptive RX coalescing

2018-03-22 Thread Florian Fainelli
Unlike the moder modern SYSTEMPORT hardware, we do not have a configurable TDMA timeout, which limits us to implement adaptive RX interrupt coalescing only. We have each of our RX rings implement a bcmgenet_net_dim structure which holds an interrupt counter, number of packets, bytes, and a containe

[PATCH net-next 1/2] net: systemport: Implement adaptive interrupt coalescing

2018-03-22 Thread Florian Fainelli
Implement support for adaptive RX and TX interrupt coalescing using net_dim. We have each of our TX ring and our single RX ring implement a bcm_sysport_net_dim structure which holds an interrupt counter, number of packets, bytes, and a container for a net_dim instance. Signed-off-by: Florian Faine

[PATCH net-next 0/2] net: broadcom: Adaptive interrupt coalescing

2018-03-22 Thread Florian Fainelli
Hi all, This patch series adds adaptive interrupt coalescing for the Gigabit Ethernet drivers SYSTEMPORT and GENET. This really helps lower the interrupt count and system load, as measured by vmstat for a Gigabit TCP RX session: SYSTEMPORT: without: 1 0 0 192188 0 2547200

l2tp stable request

2018-03-22 Thread Daniel Rosenberg
f3c66d4e144a0904ea9b95d23ed9f8eb38c11bfb        l2tp: prevent creation of sessions on terminated tunnels 9ee369a405c57613d7c83a3967780c3e30c52ecc        l2tp: initialise session's refcount before making it reachable dbdbc73b44782e22b3b4b6e8b51e7a3d245f3086        l2tp: fix duplicate session crea

[net-next:master 304/314] drivers/net/ethernet/mellanox/mlxsw/spectrum.c:3878:8: error: too few arguments to function 'devlink_resource_register'

2018-03-22 Thread kbuild test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git master head: 6686c459e1449a3ee5f3fd313b0a559ace7a700e commit: 145307460ba9c11489807de7acd3f4c7395f60b7 [304/314] devlink: Remove top_hierarchy arg to devlink_resource_register config: x86_64-randconfig-s1-03230751 (attac

[PATCH v4 bpf-next 02/10] net/mediatek: disambiguate mt76 vs mt7601u trace events

2018-03-22 Thread Alexei Starovoitov
From: Alexei Starovoitov two trace events defined with the same name and both unused. They conflict in allyesconfig build. Rename one of them. Signed-off-by: Alexei Starovoitov --- drivers/net/wireless/mediatek/mt7601u/trace.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff -

[PATCH v4 bpf-next 05/10] macro: introduce COUNT_ARGS() macro

2018-03-22 Thread Alexei Starovoitov
From: Alexei Starovoitov move COUNT_ARGS() macro from apparmor to generic header and extend it to count till twelve. COUNT() was an alternative name for this logic, but it's used for different purpose in many other places. Similarly for CONCATENATE() macro. Suggested-by: Linus Torvalds Signed

[PATCH v4 bpf-next 00/10] bpf, tracing: introduce bpf raw tracepoints

2018-03-22 Thread Alexei Starovoitov
v3->v4: - adopted Linus's CAST_TO_U64 macro to cast any integer, pointer, or small struct to u64. That nicely reduced the size of patch 1 v2->v3: - with Linus's suggestion introduced generic COUNT_ARGS and CONCATENATE macros (or rather moved them from apparmor) that cleaned up patches 6 and

[PATCH v4 bpf-next 01/10] treewide: remove large struct-pass-by-value from tracepoint arguments

2018-03-22 Thread Alexei Starovoitov
From: Alexei Starovoitov - fix trace_hfi1_ctxt_info() to pass large struct by reference instead of by value - convert 'type array[]' tracepoint arguments into 'type *array', since compiler will warn that sizeof('type array[]') == sizeof('type *array') and later should be used instead The CA

[PATCH v4 bpf-next 07/10] bpf: introduce BPF_RAW_TRACEPOINT

2018-03-22 Thread Alexei Starovoitov
From: Alexei Starovoitov Introduce BPF_PROG_TYPE_RAW_TRACEPOINT bpf program type to access kernel internal arguments of the tracepoints in their raw form. >From bpf program point of view the access to the arguments look like: struct bpf_raw_tracepoint_args { __u64 args[0]; }; int bpf_pro

[PATCH v4 bpf-next 10/10] selftests/bpf: test for bpf_get_stackid() from raw tracepoints

2018-03-22 Thread Alexei Starovoitov
From: Alexei Starovoitov similar to traditional traceopint test add bpf_get_stackid() test from raw tracepoints and reduce verbosity of existing stackmap test Signed-off-by: Alexei Starovoitov --- tools/testing/selftests/bpf/test_progs.c | 91 1 file changed, 7

[PATCH v4 bpf-next 08/10] libbpf: add bpf_raw_tracepoint_open helper

2018-03-22 Thread Alexei Starovoitov
From: Alexei Starovoitov add bpf_raw_tracepoint_open(const char *name, int prog_fd) api to libbpf Signed-off-by: Alexei Starovoitov --- tools/include/uapi/linux/bpf.h | 11 +++ tools/lib/bpf/bpf.c| 11 +++ tools/lib/bpf/bpf.h| 1 + 3 files changed, 23 i

[PATCH v4 bpf-next 09/10] samples/bpf: raw tracepoint test

2018-03-22 Thread Alexei Starovoitov
From: Alexei Starovoitov add empty raw_tracepoint bpf program to test overhead similar to kprobe and traditional tracepoint tests Signed-off-by: Alexei Starovoitov --- samples/bpf/Makefile| 1 + samples/bpf/bpf_load.c | 14 ++ samples/bpf/test_

[PATCH v4 bpf-next 04/10] net/wireless/iwlwifi: fix iwlwifi_dev_ucode_error tracepoint

2018-03-22 Thread Alexei Starovoitov
From: Alexei Starovoitov fix iwlwifi_dev_ucode_error tracepoint to pass pointer to a table instead of all 17 arguments by value. dvm/main.c and mvm/utils.c have 'struct iwl_error_event_table' defined with very similar yet subtly different fields and offsets. tracepoint is still common and using d

[PATCH v4 bpf-next 03/10] net/mac802154: disambiguate mac80215 vs mac802154 trace events

2018-03-22 Thread Alexei Starovoitov
From: Alexei Starovoitov two trace events defined with the same name and both unused. They conflict in allyesconfig build. Rename one of them. Signed-off-by: Alexei Starovoitov --- net/mac802154/trace.h | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/net/mac802154/t

[PATCH v4 bpf-next 06/10] tracepoint: compute num_args at build time

2018-03-22 Thread Alexei Starovoitov
From: Alexei Starovoitov add fancy macro to compute number of arguments passed into tracepoint at compile time and store it as part of 'struct tracepoint'. The number is necessary to check safety of bpf program access that is coming in subsequent patch. for_each_tracepoint_range() api has no use

Re: [patch net-next RFC 00/12] devlink: introduce port flavours and common phys_port_name generation

2018-03-22 Thread Andrew Lunn
On Thu, Mar 22, 2018 at 11:55:10AM +0100, Jiri Pirko wrote: > From: Jiri Pirko > > This patchset resolves 2 issues we have right now: > 1) There are many netdevices / ports in the system, for port, pf, vf >represenatation but the user has no way to see which is which > 2) The ndo_get_phys_por

Re: [RFC v3 net-next 13/18] net/sched: Introduce the TBS Qdisc

2018-03-22 Thread Jesus Sanchez-Palencia
Hi Thomas, On 03/22/2018 03:11 PM, Thomas Gleixner wrote: (...) >> Having the sorting always enabled requires that a valid static clockid is >> passed >> to the qdisc. For the hw offload mode, that means that the PHC and one of the >> system clocks must be synchronized since hrtimers do not su

Hello

2018-03-22 Thread Mrs. Pamela Atuegbe
Am Mrs.Pamela Atuegbe, I work in one of the prime bank here in burkina faso, i want the bank to transfer the money left by our late customer is a foreigner from Korea. can you investment this money and also help the poor' the amount value at $13,300,000.00 (Thirteen Million Three Hundred Thousa

Re: [RFC v3 net-next 14/18] net/sched: Add HW offloading capability to TBS

2018-03-22 Thread Jesus Sanchez-Palencia
Hi, On 03/21/2018 07:22 AM, Thomas Gleixner wrote: > On Tue, 6 Mar 2018, Jesus Sanchez-Palencia wrote: >> $ tc qdisc replace dev enp2s0 parent root handle 100 mqprio num_tc 3 \ >>map 2 2 1 0 2 2 2 2 2 2 2 2 2 2 2 2 queues 1@0 1@1 2@2 hw 0 >> >> $ tc qdisc add dev enp2s0 parent 100:1 t

[PATCH RFC net-next 2/7] net: Move call_fib_rule_notifiers up in fib_nl_newrule

2018-03-22 Thread David Ahern
Move call_fib_rule_notifiers up in fib_nl_newrule to the point right before the rule is inserted into the list. At this point there are no more failure paths within the core rule code, so if the notifier does not fail then the rule will be inserted into the list. Signed-off-by: David Ahern --- n

[PATCH RFC net-next 4/7] net/ipv4: Allow notifier to fail route repolace

2018-03-22 Thread David Ahern
Add checking to call to call_fib_entry_notifiers for IPv4 route replace. Allows a notifier handler to fail the replace. Signed-off-by: David Ahern --- net/ipv4/fib_trie.c | 9 +++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/net/ipv4/fib_trie.c b/net/ipv4/fib_trie.c index

[PATCH RFC net-next 0/7] net: Allow FIB notifiers to fail add and replace

2018-03-22 Thread David Ahern
I wanted to revisit how resource overload is handled for hardware offload of FIB entries and rules. At the moment, the in-kernel fib notifier can tell a driver about a route or rule add, replace, and delete, but the notifier can not affect the action. Specifically, in the case of mlxsw if a route o

[PATCH RFC net-next 7/7] netdevsim: Add simple FIB resource controller via devlink

2018-03-22 Thread David Ahern
From: David Ahern Add devlink support to netdevsim and use it to implement a simple, profile based resource controller. Only one controller is needed per namespace, so the first netdevsim netdevice in a namespace registers with devlink. If that device is deleted, the resource settings are deleted

[PATCH RFC net-next 5/7] net/ipv6: Move call_fib6_entry_notifiers up for route adds

2018-03-22 Thread David Ahern
Move call to call_fib6_entry_notifiers for new IPv6 routes to right before the insertion into the FIB. At this point notifier handlers can decide the fate of the new route with a clean path to delete the potential new entry if the notifier returns non-0. Signed-off-by: David Ahern --- net/ipv6/i

[PATCH RFC net-next 3/7] net/ipv4: Move call_fib_entry_notifiers up for new routes

2018-03-22 Thread David Ahern
Move call to call_fib_entry_notifiers for new IPv4 routes to right before the call to fib_insert_alias. At this point the only remaining failure path is memory allocations in fib_insert_node. Handle that very unlikely failure with a call to call_fib_entry_notifiers to tell drivers about it. At thi

[PATCH RFC net-next 6/7] devlink: Export methods to get and set namespace

2018-03-22 Thread David Ahern
Export devlink_net and devlink_net_set for modules to be able to set the network namespace for a devlink instance and retrieve it later. Signed-off-by: David Ahern --- include/net/devlink.h | 2 ++ net/core/devlink.c| 6 -- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/i

[PATCH RFC net-next 1/7] net: Fix fib notifer to return errno

2018-03-22 Thread David Ahern
Notifier handlers use notifier_from_errno to convert any potential error to an encoded format. As a consequence the other side, call_fib_notifiers in this case, needs to use notifier_to_errno to return the error from the handler back to its caller. Signed-off-by: David Ahern --- net/core/fib_not

Re: [PATCH v3 bpf-next 01/10] treewide: remove struct-pass-by-value from tracepoints arguments

2018-03-22 Thread Alexei Starovoitov
On 3/22/18 1:52 PM, Linus Torvalds wrote: On Thu, Mar 22, 2018 at 1:48 PM, Steven Rostedt wrote: OK, but instead of changing it to pass by reference, why not just pass the value. That is: static void xen_set_pte_atomic(pte_t *ptep, pte_t pte) { - trace_xen_mmu_set_pte_atomic(ptep, pte

Re: [RFC v3 net-next 13/18] net/sched: Introduce the TBS Qdisc

2018-03-22 Thread Thomas Gleixner
On Thu, 22 Mar 2018, Jesus Sanchez-Palencia wrote: > Our plan was to work directly with the Qbv-like scheduling (per-port) just > after > the cbs qdisc (Qav), but the feedback here and offline was that there were use > cases for a more simplistic launchtime approach (per-queue) as well. We've > de

[PATCH 1/2] net: phy: intel-xway: add VR9 version number

2018-03-22 Thread Mathias Kresin
The VR9 phy ids are matching only for the SoC version 1.2. Rename the macros and change the names to take this into account. Signed-off-by: Mathias Kresin --- drivers/net/phy/intel-xway.c | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/drivers/net/phy/intel-x

[PATCH V3 net-next 11/14] net/mlx5e: TLS, Add Innova TLS TX offload data path

2018-03-22 Thread Saeed Mahameed
From: Ilya Lesokhin Implement the TLS tx offload data path according to the requirements of the TLS generic NIC offload infrastructure. Special metadata ethertype is used to pass information to the hardware. Signed-off-by: Ilya Lesokhin Signed-off-by: Boris Pismenny Signed-off-by: Saeed Maham

[PATCH V3 net-next 03/14] net: Add Software fallback infrastructure for socket dependent offloads

2018-03-22 Thread Saeed Mahameed
From: Ilya Lesokhin With socket dependent offloads we rely on the netdev to transform the transmitted packets before sending them to the wire. When a packet from an offloaded socket is rerouted to a different device we need to detect it and do the transformation in software. Signed-off-by: Ilya

[PATCH V3 net-next 01/14] tcp: Add clean acked data hook

2018-03-22 Thread Saeed Mahameed
From: Ilya Lesokhin Called when a TCP segment is acknowledged. Could be used by application protocols who hold additional metadata associated with the stream data. This is required by TLS device offload to release metadata associated with acknowledged TLS records. Signed-off-by: Ilya Lesokhin

[PATCH 2/2] net: phy: intel-xway: add VR9 v1.1 phy ids

2018-03-22 Thread Mathias Kresin
The phys embedded into the v1.1 of the VR9 SoC are using different phy ids. Add the phy ids to use the driver for this VR9 version as well. Signed-off-by: Mathias Kresin --- drivers/net/phy/intel-xway.c | 28 1 file changed, 28 insertions(+) diff --git a/drivers/net

[PATCH V3 net-next 09/14] net/mlx5: Accel, Add TLS tx offload interface

2018-03-22 Thread Saeed Mahameed
From: Ilya Lesokhin Add routines for manipulating TLS TX offload contexts. In Innova TLS, TLS contexts are added or deleted via a command message over the SBU connection. The HW then sends a response message over the same connection. Add implementation for Innova TLS (FPGA-based) hardware. The

[PATCH V3 net-next 06/14] net/tls: Add generic NIC offload infrastructure

2018-03-22 Thread Saeed Mahameed
From: Ilya Lesokhin This patch adds a generic infrastructure to offload TLS crypto to a network devices. It enables the kernel TLS socket to skip encryption and authentication operations on the transmit side of the data path. Leaving those computationally expensive operations to the NIC. The NIC

[PATCH V3 net-next 14/14] MAINTAINERS: Update TLS maintainers

2018-03-22 Thread Saeed Mahameed
From: Boris Pismenny Signed-off-by: Boris Pismenny Signed-off-by: Saeed Mahameed --- MAINTAINERS | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MAINTAINERS b/MAINTAINERS index cd4067ccf959..285ea4e6c580 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -9711,7 +9711,7 @@ F:

[PATCH V3 net-next 10/14] net/mlx5e: TLS, Add Innova TLS TX support

2018-03-22 Thread Saeed Mahameed
From: Ilya Lesokhin Add NETIF_F_HW_TLS_TX capability and expose tlsdev_ops to work with the TLS generic NIC offload infrastructure. The NETIF_F_HW_TLS_TX capability will be added in the next patch. Signed-off-by: Ilya Lesokhin Signed-off-by: Boris Pismenny Signed-off-by: Saeed Mahameed --- d

[PATCH V3 net-next 12/14] net/mlx5e: TLS, Add error statistics

2018-03-22 Thread Saeed Mahameed
From: Ilya Lesokhin Add statistics for rare TLS related errors. Since the errors are rare we have a counter per netdev rather then per SQ. Signed-off-by: Ilya Lesokhin Signed-off-by: Boris Pismenny Signed-off-by: Saeed Mahameed --- drivers/net/ethernet/mellanox/mlx5/core/Makefile | 2 +-

[PATCH V3 net-next 13/14] MAINTAINERS: Update mlx5 innova driver maintainers

2018-03-22 Thread Saeed Mahameed
From: Boris Pismenny Signed-off-by: Boris Pismenny Signed-off-by: Saeed Mahameed --- MAINTAINERS | 17 - 1 file changed, 4 insertions(+), 13 deletions(-) diff --git a/MAINTAINERS b/MAINTAINERS index 214c9bca232a..cd4067ccf959 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -8913

[PATCH V3 net-next 08/14] net/mlx5e: Move defines out of ipsec code

2018-03-22 Thread Saeed Mahameed
From: Ilya Lesokhin The defines are not IPSEC specific. Signed-off-by: Ilya Lesokhin Signed-off-by: Boris Pismenny Signed-off-by: Saeed Mahameed --- drivers/net/ethernet/mellanox/mlx5/core/en.h | 3 +++ drivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec.h | 3 --- drivers/net

[PATCH V3 net-next 04/14] net: Add TLS offload netdev ops

2018-03-22 Thread Saeed Mahameed
From: Ilya Lesokhin Add new netdev ops to add and delete tls context Signed-off-by: Ilya Lesokhin Signed-off-by: Boris Pismenny Signed-off-by: Aviad Yehezkel Signed-off-by: Saeed Mahameed --- include/linux/netdevice.h | 24 1 file changed, 24 insertions(+) diff --g

[PATCH V3 net-next 07/14] net/tls: Support TLS device offload with IPv6

2018-03-22 Thread Saeed Mahameed
From: Ilya Lesokhin Previously get_netdev_for_sock worked only with IPv4. Signed-off-by: Ilya Lesokhin Signed-off-by: Boris Pismenny Signed-off-by: Saeed Mahameed --- net/tls/tls_device.c | 51 ++- 1 file changed, 50 insertions(+), 1 deletion(-

[PATCH V3 net-next 02/14] net: Rename and export copy_skb_header

2018-03-22 Thread Saeed Mahameed
From: Ilya Lesokhin copy_skb_header is renamed to skb_copy_header and exported. Exposing this function give more flexibility in copying SKBs. skb_copy and skb_copy_expand do not give enough control over which parts are copied. Signed-off-by: Ilya Lesokhin Signed-off-by: Boris Pismenny Signed-o

[PATCH V3 net-next 05/14] net: Add TLS TX offload features

2018-03-22 Thread Saeed Mahameed
From: Ilya Lesokhin This patch adds a netdev feature to configure TLS TX offloads. Signed-off-by: Ilya Lesokhin Signed-off-by: Boris Pismenny Signed-off-by: Aviad Yehezkel Signed-off-by: Saeed Mahameed --- include/linux/netdev_features.h | 2 ++ net/core/ethtool.c | 1 + 2 file

[PATCH V3 net-next 00/14] TLS offload, netdev & MLX5 support

2018-03-22 Thread Saeed Mahameed
Hi Dave, The following series from Ilya and Boris provides TLS TX inline crypto offload. v1->v2: - Added IS_ENABLED(CONFIG_TLS_DEVICE) and a STATIC_KEY for icsk_clean_acked - File license fix - Fix spelling, comment by DaveW - Move memory allocations out of tls_set_device_offload and

Re: [PATCH V2 net-next 06/14] net/tls: Add generic NIC offload infrastructure

2018-03-22 Thread Saeed Mahameed
On Thu, 2018-03-22 at 01:27 +0300, Kirill Tkhai wrote: > Hi, Saeed, > > thanks for fixing some of my remarks, but I've dived into the code > more deeply, and found with a sadness, the patch lacks the > readability. > > It too big and not fit kernel coding style. Please, see some comments > below.

Re: [PATCH net-next] modules: allow modprobe load regular elf binaries

2018-03-22 Thread Alexei Starovoitov
On 3/22/18 3:15 PM, Andy Lutomirski wrote: On Thu, Mar 22, 2018 at 8:54 PM, Luis R. Rodriguez wrote: If we can ensure that these usermode modules don't take *any time at all* on their init *from the start*, it would be wonderful and we'd end up avoiding some really odd corner case issues later.

Re: [PATCH V2 net-next 07/14] net/tls: Support TLS device offload with IPv6

2018-03-22 Thread Saeed Mahameed
On Thu, 2018-03-22 at 12:36 +0300, Sergei Shtylyov wrote: > Hello! > > On 3/22/2018 12:01 AM, Saeed Mahameed wrote: > > > From: Ilya Lesokhin > > > > Previously get_netdev_for_sock worked only with IPv4. > > > > Signed-off-by: Ilya Lesokhin > > Signed-off-by: Boris Pismenny > > Signed-off-by

Re: [PATCH net-next] modules: allow modprobe load regular elf binaries

2018-03-22 Thread Andy Lutomirski
On Thu, Mar 22, 2018 at 8:54 PM, Luis R. Rodriguez wrote: > If we can ensure that these usermode modules don't take *any time at all* on > their init *from the start*, it would be wonderful and we'd end up avoiding > some really odd corner case issues later. > I don't see why this issue needs to

Re: [RFC v3 net-next 13/18] net/sched: Introduce the TBS Qdisc

2018-03-22 Thread Thomas Gleixner
On Thu, 22 Mar 2018, Jesus Sanchez-Palencia wrote: > On 03/21/2018 06:46 AM, Thomas Gleixner wrote: > > If you look at the use cases of TDM in various fields then FIFO mode is > > pretty much useless. In industrial/automotive fieldbus applications the > > various time slices are filled by different

Re: [PATCH v2] net/mlx5: Fix use-after-free

2018-03-22 Thread Saeed Mahameed
On Thu, 2018-03-22 at 13:44 -0500, Gustavo A. R. Silva wrote: > _rule_ is being freed and then dereferenced by accessing rule->ctx > > Fix this by copying the value returned by PTR_ERR(rule->ctx) into a > local > variable for its safe use after freeing _rule_ > > Addresses-Coverity-ID: 1466041 ("

Re: [RFC v3 net-next 14/18] net/sched: Add HW offloading capability to TBS

2018-03-22 Thread Jesus Sanchez-Palencia
Hi, On 03/21/2018 09:18 AM, Thomas Gleixner wrote: > On Wed, 21 Mar 2018, Richard Cochran wrote: > >> On Wed, Mar 21, 2018 at 03:22:11PM +0100, Thomas Gleixner wrote: >>> Which clockid will be handed in from the application? The network adapter >>> time has no fixed clockid. The only way you can

[PATCH net-next 1/1] net sched actions: merge event notification routines

2018-03-22 Thread Roman Mashak
Collapse tca_get_notify(), tca_add_notify() and tca_del_notify() in a single function since they repeat the same code pattern. Signed-off-by: Roman Mashak --- net/sched/act_api.c | 111 1 file changed, 33 insertions(+), 78 deletions(-) diff -

[RFC PATCH net-next] net: hns3: hclge_inform_reset_assert_to_vf() can be static

2018-03-22 Thread kbuild test robot
Fixes: 2bfbd35d8ecd ("net: hns3: Changes required in PF mailbox to support VF reset") Signed-off-by: Fengguang Wu --- hclge_mbx.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c b/drivers/net/ethernet/hisilicon/hns3/

[net-next:master 1115/1116] drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c:82:5: sparse: symbol 'hclge_inform_reset_assert_to_vf' was not declared. Should it be static?

2018-03-22 Thread kbuild test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git master head: 6686c459e1449a3ee5f3fd313b0a559ace7a700e commit: 2bfbd35d8ecd97a4a7f1db1754908b54542fa7aa [1115/1116] net: hns3: Changes required in PF mailbox to support VF reset reproduce: # apt-get install sparse

[PATCH] Net: ethernet: ti: netcp: Fix inbound ping crash if MTU size is greater than 1500

2018-03-22 Thread Chang, Rex
I am requesting to merge this patch to the stable releases: commit 5a717843177c96ca3fe4565187de395afdb28092 Kernel crashes if MTU is greater than 1500. This code was working in Kernel v 3.14, but got broken when migrating from Kernel v3.14 to v 4.1. Stable versions to apply: v4.1 and v4.4. Tha

Re: [PATCH net-next] modules: allow modprobe load regular elf binaries

2018-03-22 Thread Luis R. Rodriguez
On Sat, Mar 10, 2018 at 03:16:52PM +, Luis R. Rodriguez wrote: > On Sat, Mar 10, 2018 at 02:08:43PM +, Luis R. Rodriguez wrote: > > The alternative to this would be a simple equivalent of > > try_then_request_module() > > for UMH modules: try_umhm_then_request_umh_module() or whatever. So

Re: [PATCH v3 bpf-next 01/10] treewide: remove struct-pass-by-value from tracepoints arguments

2018-03-22 Thread Linus Torvalds
On Thu, Mar 22, 2018 at 1:48 PM, Steven Rostedt wrote: > > OK, but instead of changing it to pass by reference, why not just pass > the value. That is: > > static void xen_set_pte_atomic(pte_t *ptep, pte_t pte) > { > - trace_xen_mmu_set_pte_atomic(ptep, pte); > + trace_xen_mmu_set_pt

Re: [PATCH v3 bpf-next 01/10] treewide: remove struct-pass-by-value from tracepoints arguments

2018-03-22 Thread Steven Rostedt
On Thu, 22 Mar 2018 12:31:12 -0700 Alexei Starovoitov wrote: > On 3/22/18 11:11 AM, Steven Rostedt wrote: > > On Thu, 22 Mar 2018 11:01:48 -0700 > > Alexei Starovoitov wrote: > > > >> From: Alexei Starovoitov > >> > >> Fix all tracepoint arguments to pass structures (large and small) by > >>

Re: [v2] vhost: add vsock compat ioctl

2018-03-22 Thread Sonny Rao
On Thu, Mar 22, 2018 at 2:25 AM, Stefan Hajnoczi wrote: > On Fri, Mar 16, 2018 at 7:30 PM, David Miller wrote: >> Although the top level ioctls are probably size and layout compatible, >> I do not think that the deeper ioctls can be called by compat binaries >> without some translations in order

[GIT] Networking

2018-03-22 Thread David Miller
1) Always validate XFRM esn replay attribute, from Florian Westphal. 2) Fix RCU read lock imbalance in xfrm_get_tos(), from Xin Long. 3) Don't try to get firmware dump if not loaded in iwlwifi, from Shaul Triebitz. 4) Fix BPF helpers to deal with SCTP GSO SKBs properly, from Daniel Axtens

Re: [RFC v3 net-next 13/18] net/sched: Introduce the TBS Qdisc

2018-03-22 Thread Jesus Sanchez-Palencia
Hi Thomas, On 03/21/2018 06:46 AM, Thomas Gleixner wrote: > On Tue, 6 Mar 2018, Jesus Sanchez-Palencia wrote: >> +struct tbs_sched_data { >> +bool sorting; >> +int clockid; >> +int queue; >> +s32 delta; /* in ns */ >> +ktime_t last; /* The txtime of the last skb sent to the ne

Re: [RFC v3 net-next 13/18] net/sched: Introduce the TBS Qdisc

2018-03-22 Thread Jesus Sanchez-Palencia
Hi Thomas, On 03/21/2018 03:29 PM, Thomas Gleixner wrote: > On Wed, 21 Mar 2018, Thomas Gleixner wrote: >> If you look at the use cases of TDM in various fields then FIFO mode is >> pretty much useless. In industrial/automotive fieldbus applications the >> various time slices are filled by differ

Re: [PATCH v2 iproute2-next 0/6] cm_id, cq, mr, and pd resource tracking

2018-03-22 Thread David Ahern
On 3/22/18 2:20 PM, Steve Wise wrote: >> I think the simplest approach is to move the uapi header under the rdma >> directory and you folks take ownership of that header. > Fine with me.  Leon?   Please make a patch moving the existing file and then make changes to it in follow on patches.

Re: [PATCH net-next] bridge: Allow max MTU when multiple VLANs present

2018-03-22 Thread Nikolay Aleksandrov
On 22/03/18 17:34, Chas Williams wrote: > If the bridge is allowing multiple VLANs, some VLANs may have > different MTUs. Instead of choosing the minimum MTU for the > bridge interface, choose the maximum MTU of the bridge members. > With this the user only needs to set a larger MTU on the member

Re: [PATCH v2 iproute2-next 0/6] cm_id, cq, mr, and pd resource tracking

2018-03-22 Thread Steve Wise
On 3/21/2018 11:59 AM, David Ahern wrote: > On 3/20/18 11:21 AM, Doug Ledford wrote: >> On 3/16/2018 12:18 PM, David Ahern wrote: >>> On 3/13/18 1:58 PM, Doug Ledford wrote: On Tue, 2018-03-13 at 13:45 -0700, David Ahern wrote: > On 3/13/18 1:32 AM, Leon Romanovsky wrote: >> On Mon,

Re: [PATCH v3 bpf-next 01/10] treewide: remove struct-pass-by-value from tracepoints arguments

2018-03-22 Thread Linus Torvalds
On Thu, Mar 22, 2018 at 12:31 PM, Alexei Starovoitov wrote: > > yeah. C doesn't allow casting of 'struct s { u64 var };' into u64 > without massive hacks and aliasing warnings by compiler. Without massive hacks? Yeah, no. But without warnings? You can do it. #define UINTTYPE(size) \ __

[PATCH] qed: Use true and false for boolean values

2018-03-22 Thread Gustavo A. R. Silva
Assign true or false to boolean variables instead of an integer value. This issue was detected with the help of Coccinelle. Signed-off-by: Gustavo A. R. Silva --- drivers/net/ethernet/qlogic/qed/qed_dev.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/net

Re: [PATCH v2 net-next] virtio-net: Fix operstate for virtio when no VIRTIO_NET_F_STATUS

2018-03-22 Thread Michael S. Tsirkin
On Thu, Mar 22, 2018 at 02:42:41PM +, Jay Vosburgh wrote: > The operstate update logic will leave an interface in the > default UNKNOWN operstate if the interface carrier state never changes > from the default carrier up state set at creation. This includes the > case of an explicit call

[PATCH] dpaa_eth: use true and false for boolean values

2018-03-22 Thread Gustavo A. R. Silva
Assign true or false to boolean variables instead of an integer value. This issue was detected with the help of Coccinelle. Signed-off-by: Gustavo A. R. Silva --- drivers/net/ethernet/freescale/dpaa/dpaa_ethtool.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/e

Re: [PATCH net-next v2] net: mvpp2: Don't use dynamic allocs for local variables

2018-03-22 Thread Maxime Chevallier
On Thu, 22 Mar 2018 15:43:08 -0400 (EDT), David Miller wrote : > From: Maxime Chevallier > Date: Thu, 22 Mar 2018 20:14:53 +0100 > > > Hello David, > > > > On Thu, 22 Mar 2018 14:47:09 -0400 (EDT), > > David Miller wrote : > > > >> From: Maxime Chevallier > >> Date: Wed, 21 Mar 2018 16:14

[net-next 1/8] tipc: refactor function tipc_enable_bearer()

2018-03-22 Thread Jon Maloy
As a preparation for the next commits we try to reduce the footprint of the function tipc_enable_bearer(), while hopefully making is simpler to follow. Acked-by: Ying Xue Signed-off-by: Jon Maloy --- net/tipc/bearer.c | 136 -- 1 file changed,

[net-next 7/8] tipc: handle collisions of 32-bit node address hash values

2018-03-22 Thread Jon Maloy
When a 32-bit node address is generated from a 128-bit identifier, there is a risk of collisions which must be discovered and handled. We do this as follows: - We don't apply the generated address immediately to the node, but do instead initiate a 1 sec trial period to allow other cluster member

[net-next 8/8] tipc: obtain node identity from interface by default

2018-03-22 Thread Jon Maloy
Selecting and explicitly configuring a TIPC node identity may be unwanted in some cases. In this commit we introduce a default setting if the identity has not been set at the moment the first bearer is enabled. We do this by using a raw copy of a unique identifier from the used interface: MAC addr

[net-next 5/8] tipc: remove direct accesses to own_addr field in struct tipc_net

2018-03-22 Thread Jon Maloy
As a preparation to changing the addressing structure of TIPC we replace all direct accesses to the tipc_net::own_addr field with the function dedicated for this, tipc_own_addr(). There are no changes to program logics in this commit. Acked-by: Ying Xue Signed-off-by: Jon Maloy --- net/tipc/ad

[net-next 2/8] tipc: some cleanups in the file discover.c

2018-03-22 Thread Jon Maloy
To facilitate the coming changes in the neighbor discovery functionality we make some renaming and refactoring of that code. The functional changes in this commit are trivial, e.g., that we move the message sending call in tipc_disc_timeout() outside the spinlock protected region. Acked-by: Ying X

[net-next 4/8] tipc: allow closest-first lookup algorithm when legacy address is configured

2018-03-22 Thread Jon Maloy
The removal of an internal structure of the node address has an unwanted side effect. - Currently, if a user is sending an anycast message with destination domain 0, the tipc_namebl_translate() function will use the 'closest- first' algorithm to first look for a node local destination, and only

[net-next 3/8] tipc: remove restrictions on node address values

2018-03-22 Thread Jon Maloy
Nominally, TIPC organizes network nodes into a three-level network hierarchy consisting of the levels 'zone', 'cluster' and 'node'. This hierarchy is reflected in the node address format, - it is sub-divided into an 8-bit zone id, and 12 bit cluster id, and a 12-bit node id. However, the 'zone' an

Re: [PATCH net-next v2] net: mvpp2: Don't use dynamic allocs for local variables

2018-03-22 Thread David Miller
From: Maxime Chevallier Date: Thu, 22 Mar 2018 20:14:53 +0100 > Hello David, > > On Thu, 22 Mar 2018 14:47:09 -0400 (EDT), > David Miller wrote : > >> From: Maxime Chevallier >> Date: Wed, 21 Mar 2018 16:14:00 +0100 >> >> In order to be an equivalent change you must bzero out this 'pe' >> ob

[net-next 6/8] tipc: add 128-bit node identifier

2018-03-22 Thread Jon Maloy
We add a 128-bit node identity, as an alternative to the currently used 32-bit node address. For the sake of compatibility and to minimize message header changes we retain the existing 32-bit address field. When not set explicitly by the user, this field will be filled with a hash value generated

  1   2   3   4   >