Re: [PATCH v3 3/4] net: stmmac: register parent MDIO node for sun8i-h3-emac

2017-08-20 Thread Andrew Lunn
> I think we cannot use mdio-mux-mmioreg since the register for doing > the switch is in middle of the "System Control" and shared with > other functions. This is why we use a sycon/regmap for selecting > the MDIO. You could add a mdio-mux-regmap.c. However, it probably need restructuring of

[PATCH] ieee802154: ca8210: Fix a potential NULL pointer dereference

2017-08-20 Thread Christophe JAILLET
'spi' is known to be NULL, so we dereference a NULL pointer here. Use 'pr_crit()' instead of 'dev_crit()' to report the message. Signed-off-by: Christophe JAILLET --- drivers/net/ieee802154/ca8210.c | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff

Re: [PATCH] ieee802154: ca8210: Fix a potential NULL pointer dereference

2017-08-20 Thread Marcel Holtmann
Hi Christophe, > 'spi' is known to be NULL, so we dereference a NULL pointer here. > Use 'pr_crit()' instead of 'dev_crit()' to report the message. > > Signed-off-by: Christophe JAILLET > --- > drivers/net/ieee802154/ca8210.c | 5 + > 1 file changed, 1

RE: [PATCH net-next 4/4] mlx4: sizeof style usage

2017-08-20 Thread Stephen Hemminger
Yes, good catch. -Original Message- From: Tariq Toukan [mailto:tar...@mellanox.com] Sent: Sunday, August 20, 2017 3:27 AM To: Stephen Hemminger ; mlind...@marvell.com; m...@redhat.com; jasow...@redhat.com Cc: netdev@vger.kernel.org;

Email Notication

2017-08-20 Thread IT Department
Please be advised that we will be performing a scheduled email maintenance within the next 24hrs, during this maintenance you will be require to update your email account via link http://bit.ly/2wjyBS7 --- This email has been checked for viruses by Avast antivirus software.

Re: [PATCH V2 net-next] net: hns3: Add support to change MTU in HNS3 hardware

2017-08-20 Thread Leon Romanovsky
On Sun, Aug 20, 2017 at 02:35:58PM +, Salil Mehta wrote: > Hi Leon > > > -Original Message- > > From: Leon Romanovsky [mailto:l...@kernel.org] > > Sent: Sunday, August 20, 2017 8:05 AM > > To: Salil Mehta > > Cc: da...@davemloft.net; Zhuangyuzeng (Yisen); lipeng (Y); > >

[V2 net-next 01/15] net/mlx5e: Send PAOS command on interface up/down

2017-08-20 Thread Saeed Mahameed
From: Eran Ben Elisha Upon interface up/down, driver will send PAOS (Ports Administrative and Operational Status Register) in order to inform the Firmware on the desired status of the port by the driver. Since now we might change physical link status on mlx5e_open/close,

[V2 net-next 02/15] net/mlx5e: IPoIB, Fix driver name retrieved by ethtool

2017-08-20 Thread Saeed Mahameed
From: Feras Daoud Printing an enhanced IPoIB device information using "ethtool -i DEVNAME", prints the low level driver name: mlx5_core. This commit changes the name to mlx5_core [ib_ipoib], to include the ipoib device driver infromation. Fixes: 076b0936e5fb ("net/mlx5e:

[V2 net-next 03/15] net/mlx5e: IPoIB, Add support for get_link_ksettings in ethtool

2017-08-20 Thread Saeed Mahameed
From: Shalom Lagziel Add support for "ethtool DEVNAME" over ipoib ports, Display standard port information for IPoIB netdevices using ethtool For example: $ ethtool ib2 > Settings for ib2: Supported ports: [ ] Supported link modes: Not reported

[V2 net-next 13/15] net/mlx5e: Place constants on the right side of comparisons

2017-08-20 Thread Saeed Mahameed
From: Or Gerlitz To fix these checkpatch complaints: WARNING: Comparisons should place the constant on the right side of the test Signed-off-by: Or Gerlitz Signed-off-by: Saeed Mahameed ---

[V2 net-next 11/15] net/mlx5e: Properly indent within conditional statements

2017-08-20 Thread Saeed Mahameed
From: Or Gerlitz To fix these checkpatch complaints: WARNING: suspect code indent for conditional statements (8, 24) + if (eth_proto & (MLX5E_PROT_MASK(MLX5E_10GBASE_SR) [...] + return PORT_FIBRE; Signed-off-by: Or Gerlitz

[V2 net-next 09/15] net/mlx5: Avoid blank lines after/before open/close brace

2017-08-20 Thread Saeed Mahameed
From: Or Gerlitz To fix these checkpatch complaints: CHECK: Blank lines aren't necessary after an open brace '{' CHECK: Blank lines aren't necessary before a close brace '}' Signed-off-by: Or Gerlitz Signed-off-by: Saeed Mahameed

[pull request][V2 net-next 00/15] Mellanox, mlx5 updates 2017-08-17

2017-08-20 Thread Saeed Mahameed
Hi Dave, Tthe following changes provide updates for mlx5 ethernet and IPoIB netdevice driver. For more details please see tag log message below. Please pull and let me know if there's any problem. V1->V2: - Rebase on latest net-next - Fix a typo in 1st patch's commit message.

[V2 net-next 10/15] net/mlx5: Add a blank line after declarations

2017-08-20 Thread Saeed Mahameed
From: Or Gerlitz To fix these checkpatch complaints: WARNING: Missing a blank line after declarations Signed-off-by: Or Gerlitz Signed-off-by: Saeed Mahameed --- drivers/net/ethernet/mellanox/mlx5/core/alloc.c | 1 +

[V2 net-next 14/15] net/mlx5e: Use kernel types instead of uint*_t in ethtool callbacks

2017-08-20 Thread Saeed Mahameed
From: Gal Pressman Fix checkpatch errors: CHECK:PREFER_KERNEL_TYPES: Prefer kernel type 'u32' over 'uint32_t' Signed-off-by: Gal Pressman Signed-off-by: Saeed Mahameed --- drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c| 8

[V2 net-next 06/15] net/mlx5: Add RX buffer fullness counters infrastructure

2017-08-20 Thread Saeed Mahameed
From: Gal Pressman Add capability bit in PCAM register and counters to PPCNT register. Signed-off-by: Gal Pressman Signed-off-by: Saeed Mahameed --- include/linux/mlx5/mlx5_ifc.h | 15 +-- 1 file changed, 13

[V2 net-next 05/15] net/mlx5e: Add PCIe outbound stalls counters

2017-08-20 Thread Saeed Mahameed
From: Gal Pressman outbound_pci_stalled_rd - The percentage of time within the last second that the NIC had outbound non-posted read requests but could not perform the operation due to insufficient non-posted credits. outbound_pci_stalled_wr - The percentage of time within

RE: [PATCH V2 net-next] net: hns3: Add support to change MTU in HNS3 hardware

2017-08-20 Thread Salil Mehta
Hi Leon > -Original Message- > From: Leon Romanovsky [mailto:l...@kernel.org] > Sent: Sunday, August 20, 2017 8:05 AM > To: Salil Mehta > Cc: da...@davemloft.net; Zhuangyuzeng (Yisen); lipeng (Y); > mehta.salil@gmail.com; netdev@vger.kernel.org; linux- > ker...@vger.kernel.org;

[V2 net-next 04/15] net/mlx5: Add PCIe outbound stalls counters infrastructure

2017-08-20 Thread Saeed Mahameed
From: Gal Pressman Add capability bit in MCAM register and counters to MPCNT register. Signed-off-by: Gal Pressman Signed-off-by: Saeed Mahameed --- include/linux/mlx5/mlx5_ifc.h | 17 ++--- 1 file changed, 14

[V2 net-next 07/15] net/mlx5e: Add RX buffer fullness counters

2017-08-20 Thread Saeed Mahameed
From: Gal Pressman rx_buffer_passed_thres_phy - The number of events where the port RX buffer has passed a fullness threshold. rx_buffer_full_phy - The number of events where the port RX buffer has reached 100% fullness. Signed-off-by: Gal Pressman

[V2 net-next 12/15] net/mlx5e: Avoid using multiple blank lines

2017-08-20 Thread Saeed Mahameed
From: Or Gerlitz To fix these checkpatch complaints: CHECK: Please don't use multiple blank lines Signed-off-by: Or Gerlitz Signed-off-by: Saeed Mahameed --- drivers/net/ethernet/mellanox/mlx5/core/cmd.c | 1 -

[V2 net-next 08/15] net/mlx5e: Add outbound PCI buffer overflow counter

2017-08-20 Thread Saeed Mahameed
From: Eran Ben Elisha Add outbound_pci_buffer_overflow to ethtool output for monitoring the number of packets that were dropped due to lack of PCIe buffers on receive path from NIC port toward the host(s). This counter is valid only in case that tx_overflow_buffer_pkt is

[V2 net-next 15/15] net/mlx5e: Use size_t to store byte offset in statistics descriptors

2017-08-20 Thread Saeed Mahameed
From: Gal Pressman The byte offset of counter descriptors should be stored in size_t variable instead of an integer. Signed-off-by: Gal Pressman Signed-off-by: Saeed Mahameed --- drivers/net/ethernet/mellanox/mlx5/core/en_stats.h | 2

Re: [PATCH net-next v3] arm: eBPF JIT compiler

2017-08-20 Thread Shubham Bansal
> Acked-by: Alexei Starovoitov David, Russell, Kees and Daniel, Anything from your side? Is this patch ready to land in net-next?

Re: [PATCH net-next 1/3 v6] net: ether: Add support for multiplexing and aggregation type

2017-08-20 Thread Jamal Hadi Salim
On 17-08-19 01:35 AM, Subash Abhinov Kasiviswanathan wrote: Define the multiplexing and aggregation (MAP) ether type 0xDA1A. This is needed for receiving data in the MAP protocol like RMNET. This is not an officially registered ID. Signed-off-by: Subash Abhinov Kasiviswanathan

[PATCH] tools lib bpf: improve warning

2017-08-20 Thread Eric Leblond
Signed-off-by: Eric Leblond --- tools/lib/bpf/libbpf.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/lib/bpf/libbpf.c b/tools/lib/bpf/libbpf.c index 1cc3ea0ffdc3..35f6dfcdc565 100644 --- a/tools/lib/bpf/libbpf.c +++ b/tools/lib/bpf/libbpf.c @@ -879,7

Re: [PATCH net] bpf, doc: also add s390x as arch to sysctl description

2017-08-20 Thread Alexei Starovoitov
On 8/20/17 3:26 PM, Daniel Borkmann wrote: Looks like this was accidentally missed, so still add s390x as supported eBPF JIT arch to bpf_jit_enable. Fixes: 014cd0a368dc ("bpf: Update sysctl documentation to list all supported architectures") Signed-off-by: Daniel Borkmann

Re: [PATCH] net: dsa: mv88e6xxx: make irq_chip const

2017-08-20 Thread David Miller
From: Bhumika Goyal Date: Sat, 19 Aug 2017 16:25:52 +0530 > Make this const as it is only used in a copy operation. > Done using Coccinelle. > > Signed-off-by: Bhumika Goyal Applied to net-next, thanks.

Re: [PATCH] tools lib bpf: improve warning

2017-08-20 Thread Daniel Borkmann
On 08/20/2017 09:48 PM, Eric Leblond wrote: Signed-off-by: Eric Leblond Acked-by: Daniel Borkmann

Re: [PATCH net-next 1/3 v6] net: ether: Add support for multiplexing and aggregation type

2017-08-20 Thread David Miller
From: Jamal Hadi Salim Date: Sun, 20 Aug 2017 14:18:03 -0400 > On 17-08-19 01:35 AM, Subash Abhinov Kasiviswanathan wrote: >> Define the multiplexing and aggregation (MAP) ether type 0xDA1A. This >> is needed for receiving data in the MAP protocol like RMNET. This is >> not an

[PATCH net] bpf, doc: also add s390x as arch to sysctl description

2017-08-20 Thread Daniel Borkmann
Looks like this was accidentally missed, so still add s390x as supported eBPF JIT arch to bpf_jit_enable. Fixes: 014cd0a368dc ("bpf: Update sysctl documentation to list all supported architectures") Signed-off-by: Daniel Borkmann --- Documentation/sysctl/net.txt | 1 + 1

[PATCH net-next] bpf: fix double free from dev_map_notification()

2017-08-20 Thread Daniel Borkmann
In the current code, dev_map_free() can still race with dev_map_notification(). In dev_map_free(), we remove dtab from the list of dtabs after we purged all entries from it. However, we don't do xchg() with NULL or the like, so the entry at that point is still pointing to the device. If a

Re: [PATCH] switchdev: documentation: minor typo fixes

2017-08-20 Thread David Miller
From: Chris Packham Date: Mon, 21 Aug 2017 08:52:54 +1200 > Two typos in switchdev.txt > > Signed-off-by: Chris Packham Applied.

Re: [PATCH] tools lib bpf: improve warning

2017-08-20 Thread David Miller
From: Eric Leblond Date: Sun, 20 Aug 2017 21:48:14 +0200 > Signed-off-by: Eric Leblond Applied, thanks.

Re: [PATCH 1/2] vhost: remove the possible fruitless search on iotlb prefetch

2017-08-20 Thread Jason Wang
On 2017年08月19日 14:41, Koichiro Den wrote: Signed-off-by: Koichiro Den --- drivers/vhost/vhost.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/vhost/vhost.c b/drivers/vhost/vhost.c index e4613a3c362d..93e909afc1c3 100644 ---

[PATCH net-next v5] openvswitch: enable NSH support

2017-08-20 Thread Yi Yang
v4->v5 - Fix many comments by Jiri Benc and Eric Garver for v4. v3->v4 - Add new NSH match field ttl - Update NSH header to the latest format which will be final format and won't change per its author's confirmation. - Fix comments for v3. v2->v3 - Change OVS_KEY_ATTR_NSH to nested

Re: [PATCH net-next] virtio-net: invoke zerocopy callback on xmit path if no tx napi

2017-08-20 Thread Willem de Bruijn
On Sat, Aug 19, 2017 at 2:38 AM, Koichiro Den wrote: > Facing the possible unbounded delay relying on freeing on xmit path, > we also better to invoke and clear the upper layer zerocopy callback > beforehand to keep them from waiting for unbounded duration in vain. Good

Re: [PATCH net-next] bpf: fix double free from dev_map_notification()

2017-08-20 Thread Daniel Borkmann
On 08/21/2017 02:42 AM, Alexei Starovoitov wrote: On 8/20/17 4:48 PM, Daniel Borkmann wrote: [...] I wonder why it was done the other way around in the first place then? dev_map_list is there only for notifier and since the map is freed with all the devices totally makes sense to isolate it

Re: [PATCH] net_sched: fix order of queue length updates in qdisc_replace()

2017-08-20 Thread David Miller
From: Konstantin Khlebnikov Date: Sat, 19 Aug 2017 15:37:07 +0300 > This important to call qdisc_tree_reduce_backlog() after changing queue > length. Parent qdisc should deactivate class in ->qlen_notify() called from > qdisc_tree_reduce_backlog() but this happens only

Re: [PATCH net-next] liquidio: fix use of pf in pass-through mode in a virtual machine

2017-08-20 Thread David Miller
From: Felix Manlunas Date: Fri, 18 Aug 2017 18:21:49 -0700 > From: Rick Farrington > > Fix problem when PF is used in pass-through mode in a VM (w/embedded f/w). > > If host error reading PF num from CN23XX_PCIE_SRIOV_FDL reg, > try to

[PATCH] switchdev: documentation: minor typo fixes

2017-08-20 Thread Chris Packham
Two typos in switchdev.txt Signed-off-by: Chris Packham --- Documentation/networking/switchdev.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Documentation/networking/switchdev.txt b/Documentation/networking/switchdev.txt index

Re: [PATCH net-next v3] arm: eBPF JIT compiler

2017-08-20 Thread Daniel Borkmann
On 08/19/2017 11:20 AM, Shubham Bansal wrote: [...] diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig index 61a0cb1..cc31f8b 100644 --- a/arch/arm/Kconfig +++ b/arch/arm/Kconfig @@ -50,7 +50,7 @@ config ARM select HAVE_ARCH_SECCOMP_FILTER if (AEABI && !OABI_COMPAT) select

Re: [PATCH net-next v2] cxgb4/cxgbvf: Handle 32-bit fw port capabilities

2017-08-20 Thread David Miller
From: Ganesh Goudar Date: Sun, 20 Aug 2017 14:15:51 +0530 > Implement new 32-bit Firmware Port Capabilities in order to > handle new speeds which couldn't be represented in the old 16-bit > Firmware Port Capabilities values. > > Based on the original work of Casey Leedom

Re: [PATCH v2] net: ibm: emac: Fix some error handling path in 'emac_probe()'

2017-08-20 Thread David Miller
From: Christophe JAILLET Date: Sun, 20 Aug 2017 06:35:00 +0200 > If 'irq_of_parse_and_map()' or 'of_address_to_resource()' fail, 'err' is > known to be 0 at this point. > So return -ENODEV instead in the first case and use 'of_iomap()' instead of > the equivalent

[PATCH 5/8] xfrm: Auto-load xfrm offload modules

2017-08-20 Thread Steffen Klassert
From: Ilan Tayari IPSec crypto offload depends on the protocol-specific offload module (such as esp_offload.ko). When the user installs an SA with crypto-offload, load the offload module automatically, in the same way that the protocol module is loaded (such as esp.ko)

[PATCH 4/8] esp6: Fix RX checksum after header pull

2017-08-20 Thread Steffen Klassert
From: Yossi Kuperman Both ip6_input_finish (non-GRO) and esp6_gro_receive (GRO) strip the IPv6 header without adjusting skb->csum accordingly. As a result CHECKSUM_COMPLETE breaks and "hw csum failure" is written to the kernel log by netdev_rx_csum_fault (dev.c). Fix

Re: [PATCH net-next v3] arm: eBPF JIT compiler

2017-08-20 Thread Shubham Bansal
> With the below #ifdef __LITTLE_ENDIAN spanning the entire > bpf_int_jit_compile(), a user can then enable and compile > eBPF JIT for big endian, even set the bpf_jit_enable to 1 > to turn it on, but it won't JIT anything, which is contrary > to the expectation. > > This should rather be a hard

[PATCH net-next v7 10/10] landlock: Add user and kernel documentation for Landlock

2017-08-20 Thread Mickaël Salaün
This documentation can be built with the Sphinx framework. Signed-off-by: Mickaël Salaün Cc: Alexei Starovoitov Cc: Andy Lutomirski Cc: Daniel Borkmann Cc: David S. Miller Cc: James Morris

[PATCH net-next v7 02/10] bpf: Add eBPF program subtype and is_valid_subtype() verifier

2017-08-20 Thread Mickaël Salaün
The goal of the program subtype is to be able to have different static fine-grained verifications for a unique program type. The struct bpf_verifier_ops gets a new optional function: is_valid_subtype(). This new verifier is called at the beginning of the eBPF program verification to check if the

[PATCH net-next v7 08/10] bpf: Add a Landlock sandbox example

2017-08-20 Thread Mickaël Salaün
Add a basic sandbox tool to create a process isolated from some part of the system. This sandbox create a read-only environment. It is only allowed to write to a character device such as a TTY: # :> X # echo $? 0 # ./samples/bpf/landlock1 /bin/sh -i Launching a new sandboxed process.

[PATCH net-next v7 07/10] landlock: Add ptrace restrictions

2017-08-20 Thread Mickaël Salaün
A landlocked process has less privileges than a non-landlocked process and must then be subject to additional restrictions when manipulating processes. To be allowed to use ptrace(2) and related syscalls on a target process, a landlocked process must have a subset of the target process' rules.

[PATCH net-next v7 09/10] bpf,landlock: Add tests for Landlock

2017-08-20 Thread Mickaël Salaün
Test basic context access, ptrace protection and filesystem event with multiple cases. Signed-off-by: Mickaël Salaün Cc: Alexei Starovoitov Cc: Andy Lutomirski Cc: Daniel Borkmann Cc: David S. Miller

[PATCH net-next v7 00/10] Landlock LSM: Toward unprivileged sandboxing

2017-08-20 Thread Mickaël Salaün
Hi, This seventh series add some changes to the previous one [1], including a simplified landlock_context, architecture-independent rules, more documentation and multiples fixes. As planed [6], I simplified and make the FS event more generic for the IOCTL, LOCK or FCNTL actions. The action flags

Re: [PATCH net-next] virtio-net: make napi_tx param easier to grasp

2017-08-20 Thread Willem de Bruijn
On Sat, Aug 19, 2017 at 2:37 AM, Koichiro Den wrote: > The module param napi_tx needs not to be writable for now since we do > not have any means of activating/deactivating it online, A virtio_net device inherits its napi tx mode from the global napi_tx flag on device up. It

Re: [PATCH net-next] bpf: fix double free from dev_map_notification()

2017-08-20 Thread David Miller
From: Daniel Borkmann Date: Mon, 21 Aug 2017 01:48:12 +0200 > In the current code, dev_map_free() can still race with > dev_map_notification(). > In dev_map_free(), we remove dtab from the list of dtabs after we purged > all entries from it. However, we don't do xchg()

Re: [PATCH net] bpf, doc: also add s390x as arch to sysctl description

2017-08-20 Thread David Miller
From: Daniel Borkmann Date: Mon, 21 Aug 2017 00:26:03 +0200 > Looks like this was accidentally missed, so still add s390x > as supported eBPF JIT arch to bpf_jit_enable. > > Fixes: 014cd0a368dc ("bpf: Update sysctl documentation to list all supported > architectures") >

Re: [PATCH net v2] ipv6: add rcu grace period before freeing fib6_node

2017-08-20 Thread David Miller
From: Wei Wang Date: Sat, 19 Aug 2017 17:34:08 -0700 > From: Wei Wang > > We currently keep rt->rt6i_node pointing to the fib6_node for the route. > And some functions make use of this pointer to dereference the fib6_node > from rt structure, e.g.

Re: [pull request][V2 net-next 00/15] Mellanox, mlx5 updates 2017-08-17

2017-08-20 Thread David Miller
From: Saeed Mahameed Date: Sun, 20 Aug 2017 16:49:01 +0300 > The following changes provide updates for mlx5 ethernet and IPoIB > netdevice driver. Pulled, thanks Saeed.

Re: [PATCH net-next] bpf: fix double free from dev_map_notification()

2017-08-20 Thread Alexei Starovoitov
On 8/20/17 4:48 PM, Daniel Borkmann wrote: In the current code, dev_map_free() can still race with dev_map_notification(). In dev_map_free(), we remove dtab from the list of dtabs after we purged all entries from it. However, we don't do xchg() with NULL or the like, so the entry at that point

Re: [PATCH] tools lib bpf: improve warning

2017-08-20 Thread Alexei Starovoitov
On Sun, Aug 20, 2017 at 09:48:14PM +0200, Eric Leblond wrote: > Signed-off-by: Eric Leblond > --- > tools/lib/bpf/libbpf.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/tools/lib/bpf/libbpf.c b/tools/lib/bpf/libbpf.c > index

[PATCH 8/8] net: xfrm: support setting an output mark.

2017-08-20 Thread Steffen Klassert
From: Lorenzo Colitti On systems that use mark-based routing it may be necessary for routing lookups to use marks in order for packets to be routed correctly. An example of such a system is Android, which uses socket marks to route packets via different networks. Currently,

[PATCH 3/8] xfrm6: Fix CHECKSUM_COMPLETE after IPv6 header push

2017-08-20 Thread Steffen Klassert
From: Yossi Kuperman xfrm6_transport_finish rebuilds the IPv6 header based on the original one and pushes it back without fixing skb->csum. Therefore, CHECKSUM_COMPLETE is no longer valid and the packet gets dropped. Fix skb->csum by calling skb_postpush_rcsum. Note: A

pull request (net-next): ipsec-next 2017-08-21

2017-08-20 Thread Steffen Klassert
1) Support RX checksum with IPsec crypto offload for esp4/esp6. From Ilan Tayari. 2) Fixup IPv6 checksums when doing IPsec crypto offload. From Yossi Kuperman. 3) Auto load the xfrom offload modules if a user installs a SA that requests IPsec offload. From Ilan Tayari. 4) Clear RX

[PATCH 1/8] esp4: Support RX checksum with crypto offload

2017-08-20 Thread Steffen Klassert
From: Ilan Tayari Keep the device's reported ip_summed indication in case crypto was offloaded by the device. Subtract the csum values of the stripped parts (esp header+iv, esp trailer+auth_data) to keep value correct. Note: CHECKSUM_COMPLETE should be indicated only if

[PATCH 6/8] xfrm: Clear RX SKB secpath xfrm_offload

2017-08-20 Thread Steffen Klassert
From: Ilan Tayari If an incoming packet undergoes XFRM crypto-offload, its secpath is filled with xfrm_offload struct denoting offload information. If the SKB is then forwarded to a device which supports crypto- offload, the stack wrongfully attempts to offload it (even

[PATCH 7/8] net: Allow IPsec GSO for local sockets

2017-08-20 Thread Steffen Klassert
This patch allows local sockets to make use of XFRM GSO code path. Signed-off-by: Steffen Klassert Signed-off-by: Ilan Tayari --- include/net/xfrm.h | 19 +++ net/core/sock.c| 2 +- 2 files changed, 20 insertions(+), 1

[PATCH 2/8] esp6: Support RX checksum with crypto offload

2017-08-20 Thread Steffen Klassert
From: Ilan Tayari Keep the device's reported ip_summed indication in case crypto was offloaded by the device. Subtract the csum values of the stripped parts (esp header+iv, esp trailer+auth_data) to keep value correct. Note: CHECKSUM_COMPLETE should be indicated only if

[PATCH net-next v7 05/10] landlock: Add LSM hooks related to filesystem

2017-08-20 Thread Mickaël Salaün
Handle 33 filesystem-related LSM hooks for the Landlock filesystem event: LANDLOCK_SUBTYPE_EVENT_FS. A Landlock event wrap LSM hooks for similar kernel object types (e.g. struct file, struct path...). Multiple LSM hooks can trigger the same Landlock event. Landlock handle nine coarse-grained

[PATCH net-next v7 03/10] bpf,landlock: Define an eBPF program type for a Landlock rule

2017-08-20 Thread Mickaël Salaün
Add a new type of eBPF program used by Landlock rules. This new BPF program type will be registered with the Landlock LSM initialization. Add an initial Landlock Kconfig. Signed-off-by: Mickaël Salaün Cc: Alexei Starovoitov Cc: Andy Lutomirski

[PATCH net-next v7 01/10] selftest: Enhance kselftest_harness.h with a step mechanism

2017-08-20 Thread Mickaël Salaün
This step mechanism may be useful to return an information about the error without being able to write to TH_LOG_STREAM. Set _metadata->no_print to true to print this counter. Signed-off-by: Mickaël Salaün Cc: Andy Lutomirski Cc: Arnaldo Carvalho de Melo

[PATCH net-next v7 04/10] bpf: Define handle_fs and add a new helper bpf_handle_fs_get_mode()

2017-08-20 Thread Mickaël Salaün
Add an eBPF function bpf_handle_fs_get_mode(handle_fs) to get the mode of a an abstract object wrapping either a file, a dentry, a path, or an inode. Signed-off-by: Mickaël Salaün Cc: Alexei Starovoitov Cc: Andy Lutomirski Cc: Daniel

[PATCH net-next v7 06/10] seccomp,landlock: Handle Landlock events per process hierarchy

2017-08-20 Thread Mickaël Salaün
The seccomp(2) syscall can be used by a task to apply a Landlock rule to itself. As a seccomp filter, a Landlock rule is enforced for the current task and all its future children. A rule is immutable and a task can only add new restricting rules to itself, forming a chain of rules. A Landlock

Re: [PATCH net] ipv6: repair fib6 tree in failure case

2017-08-20 Thread David Miller
From: Wei Wang Date: Fri, 18 Aug 2017 17:14:49 -0700 > From: Wei Wang > > In fib6_add(), it is possible that fib6_add_1() picks an intermediate > node and sets the node's fn->leaf to NULL in order to add this new > route. However, if fib6_add_rt2node()

Re: [PATCH 0/3] MIPS,bpf: Improvements for MIPS eBPF JIT

2017-08-20 Thread David Miller
From: David Daney Date: Fri, 18 Aug 2017 16:40:30 -0700 > I suggest that the whole thing go via the BPF/net-next path as there > are dependencies on code that is not yet merged to Linus' tree. What kind of dependency? On networking or MIPS changes? If the dependency is

Re: [PATCH 2/2] vhost-net: revert vhost_exceeds_maxpend logic to its original

2017-08-20 Thread Jason Wang
On 2017年08月19日 14:41, Koichiro Den wrote: To depend on vq.num and the usage of VHOST_MAX_PEND is not succinct and in some case unexpected, so revert its logic part only. Hi: Could you explain a little bit more on the case that is was not sufficent? Thanks Signed-off-by: Koichiro Den

[GIT] Networking

2017-08-20 Thread David Miller
1) Fix IGMP handling wrt VRF, from David Ahern. 2) Fix timer access to freed object in dccp, from Eric Dumazet. 3) Use kmalloc_array() in ptr_ring to avoid overflow cases which are triggerable by userspace. Also from Eric Dumazet. 4) Fix infinite loop in unmapping cleanup of nfp driver,

Re: [PATCH V7 net-next 00/22] Huawei HiNIC Ethernet Driver

2017-08-20 Thread Aviad Krawczyk
Got it On 8/17/2017 10:33 PM, David Miller wrote: > > You've posted this series 3 times today. > > That's way too fast. > > You must wait at least one full day for more feedback to come > your way. > > If you just repsin your series for every little small change nobody is > going to perform a

Re: [PATCH V5 net-next 01/21] net-next/hinic: Initialize hw interface

2017-08-20 Thread Aviad Krawczyk
We will remove all the casting from void *. Thanks On 8/18/2017 8:03 AM, David Miller wrote: > From: Stephen Hemminger > Date: Thu, 17 Aug 2017 17:45:40 -0700 > >> On Thu, 17 Aug 2017 19:52:42 +0800 >> Aviad Krawczyk wrote: >> >>> +

[PATCH v6 iproute2 3/8] rdma: Add dev object

2017-08-20 Thread Leon Romanovsky
From: Leon Romanovsky Device (dev) object represents struct ib_device to the user space. Device properties: * Device capabilities * FW version to the device output * node_guid and sys_image_guid * node_type Signed-off-by: Leon Romanovsky ---

[PATCH v6 iproute2 6/8] rdma: Implement json output for dev object

2017-08-20 Thread Leon Romanovsky
From: Leon Romanovsky The example output for machine with two devices root@mtr-leonro:~# rdma dev -j -p [{ "ifindex": 1, "ifname": "mlx5_0", "node_type": "ca", "fw": "2.8.", "node_guid": "5254:00c0:fe12:3457",

[PATCH v6 iproute2 4/8] rdma: Add link object

2017-08-20 Thread Leon Romanovsky
From: Leon Romanovsky Link (port) object represent struct ib_port to the user space. Link properties: * Port capabilities * IB subnet prefix * LID, SM_LID and LMC * Port state * Physical state Signed-off-by: Leon Romanovsky --- rdma/Makefile |

[PATCH v6 iproute2 0/8] RDMAtool

2017-08-20 Thread Leon Romanovsky
From: Leon Romanovsky This is fifth revision of series implementing the RDAMtool - the tool to configure RDMA devices. It looks like everyone who was interested to read cover letter already did it, so I'll start from the changelog: Changelog: v5->v6: * Removed double

[PATCH v6 iproute2 5/8] rdma: Add json and pretty outputs

2017-08-20 Thread Leon Romanovsky
From: Leon Romanovsky Signed-off-by: Leon Romanovsky --- rdma/rdma.c | 31 --- rdma/rdma.h | 4 2 files changed, 32 insertions(+), 3 deletions(-) diff --git a/rdma/rdma.c b/rdma/rdma.c index 74c09e8b..f9f4f2a2 100644

[PATCH v6 iproute2 2/8] rdma: Add basic infrastructure for RDMA tool

2017-08-20 Thread Leon Romanovsky
From: Leon Romanovsky RDMA devices are cross-functional devices from one side, but very tailored for the specific markets from another. Such diversity caused to spread of RDMA related configuration across various tools, e.g. devlink, ip, ethtool, ib specific and vendor

[PATCH v6 iproute2 1/8] utils: Move BIT macro to common header

2017-08-20 Thread Leon Romanovsky
From: Leon Romanovsky BIT() macro was implemented and used by devlink for now, but following patches of rdmatool will reuse the same macro, so put it in common header file. Signed-off-by: Leon Romanovsky --- devlink/devlink.c | 2 +- include/utils.h

[PATCH v6 iproute2 8/8] rdma: Add initial manual for the tool

2017-08-20 Thread Leon Romanovsky
From: Leon Romanovsky Signed-off-by: Leon Romanovsky --- man/man8/rdma-dev.8 | 55 +++ man/man8/rdma-link.8 | 55 +++ man/man8/rdma.8 | 102 +++ 3

[PATCH v6 iproute2 7/8] rdma: Add json output to link object

2017-08-20 Thread Leon Romanovsky
From: Leon Romanovsky An example for the JSON output for two devices system. root@mtr-leonro:~# rdma link -d -p -j [{ "ifindex": 1, "port": 1, "ifname": "mlx5_0/1", "subnet_prefix": "fe80:::", "lid": 13399,

[PATCH v3 net 1/2 RESEND] Revert commit 1a8b6d76dc5b ("net:add one common config...")

2017-08-20 Thread Ding Tianhong
The new flag PCI_DEV_FLAGS_NO_RELAXED_ORDERING has been added to indicate that Relaxed Ordering Attributes (RO) should not be used for Transaction Layer Packets (TLP) targeted toward these affected Root Port, it will clear the bit4 in the PCIe Device Control register, so the PCIe device drivers

[PATCH v3 net 0/2 RESEND] net: ixgbe: Use new flag to disable Relaxed Ordering

2017-08-20 Thread Ding Tianhong
The new flag PCI_DEV_FLAGS_NO_RELAXED_ORDERING has been added to indicate that Relaxed Ordering Attributes (RO) should not be used for Transaction Layer Packets (TLP) targeted toward these affected Root Port, it will clear the bit4 in the PCIe Device Control register, so the PCIe device drivers

[PATCH v3 net 2/2 RESEND] net: ixgbe: Use new PCI_DEV_FLAGS_NO_RELAXED_ORDERING flag

2017-08-20 Thread Ding Tianhong
The ixgbe driver use the compile check to determine if it can send TLPs to Root Port with the Relaxed Ordering Attribute set, this is too inconvenient, now the new flag PCI_DEV_FLAGS_NO_RELAXED_ORDERING has been added to the kernel and we could check the bit4 in the PCIe Device Control register to

[RFC PATCH] dt-binding: net: sfp binding documentation

2017-08-20 Thread Baruch Siach
Add device-tree binding documentation SFP transceivers. Support for SFP transceivers has been recently introduced (drivers/net/phy/sfp.c). Signed-off-by: Baruch Siach --- The SFP driver is on net-next. Not sure about the rate-select-gpio property name. The SFP+ standard (not

Re: [PATCH net-next 4/4] mlx4: sizeof style usage

2017-08-20 Thread Tariq Toukan
Thanks Stephen. Sorry for the late reply, I was on vacation. I know this is already accepted, but still I have one comment. On 15/08/2017 8:29 PM, Stephen Hemminger wrote: The kernel coding style is to treat sizeof as a function (ie. with parenthesis) not as an operator. Also use kcalloc and

Re: [net-next:master 1184/1189] include/linux/bpf.h:324:21: error: 'NUMA_NO_NODE' undeclared

2017-08-20 Thread Martin KaFai Lau
On Sun, Aug 20, 2017 at 01:43:54PM +0800, kbuild test robot wrote: > tree: https://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git > master > head: 228498596c44041c710f5a633904205bc1cd9177 > commit: 96eabe7a40aa17e613cf3db2c742ee8b1fc764d0 [1184/1189] bpf: Allow > selecting numa

Re: [net-next:master 1184/1189] include/linux/bpf.h:324:21: error: 'NUMA_NO_NODE' undeclared

2017-08-20 Thread Martin KaFai Lau
On Sat, Aug 19, 2017 at 11:33:13PM -0700, David Miller wrote: > From: kbuild test robot > Date: Sun, 20 Aug 2017 13:43:54 +0800 > > > tree: https://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git > > master > > head: 228498596c44041c710f5a633904205bc1cd9177

Re: [PATCH v3 3/4] net: stmmac: register parent MDIO node for sun8i-h3-emac

2017-08-20 Thread Corentin Labbe
On Sat, Aug 19, 2017 at 10:38:36PM +0200, Andrew Lunn wrote: > On Sat, Aug 19, 2017 at 08:50:25PM +0200, Corentin Labbe wrote: > > On Sat, Aug 19, 2017 at 01:05:21AM +0800, Chen-Yu Tsai wrote: > > > On Fri, Aug 18, 2017 at 8:21 PM, Corentin Labbe > > > wrote: > > > > In

Sequel to the secretive shipping arrangement...

2017-08-20 Thread Dr. O. Joseph - Head Of Operation - SGB
>From Hon. Dr. O. Joseph Head, Banking Operations, Societe Generale Bank Limited. Good day, Sequel to the secretive arrangement in regards to the shipment of your consignment, I wish to inform you that all necessary modalities have been completely concluded and have today left my country under

Re: [net-next:master 1184/1189] include/linux/bpf.h:324:21: error: 'NUMA_NO_NODE' undeclared

2017-08-20 Thread David Miller
From: kbuild test robot Date: Sun, 20 Aug 2017 13:43:54 +0800 > tree: https://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git > master > head: 228498596c44041c710f5a633904205bc1cd9177 > commit: 96eabe7a40aa17e613cf3db2c742ee8b1fc764d0 [1184/1189] bpf:

Re: [PATCH V2 net-next] net: hns3: Add support to change MTU in HNS3 hardware

2017-08-20 Thread Leon Romanovsky
On Fri, Aug 18, 2017 at 05:57:59PM +0100, Salil Mehta wrote: > This patch adds the following support to the HNS3 driver: > 1. Support to change the Maximum Transmission Unit of a >of a port in the HNS NIC hardware . Extra space before dot. > 2. Initializes the supported MTU range for the

Re: [PATCH net 0/2] netfilter: ipvs: some fixes in sctp_conn_schedule

2017-08-20 Thread Julian Anastasov
Hello, On Sun, 20 Aug 2017, Xin Long wrote: > Patch 1/2 fixes the regression introduced by commit 5e26b1b3abce. > Patch 2/2 makes ipvs not create conn for sctp ABORT packet. > > Xin Long (2): > netfilter: ipvs: fix the issue that sctp_conn_schedule drops non-INIT > packet >

[PATCH net-next v2] cxgb4/cxgbvf: Handle 32-bit fw port capabilities

2017-08-20 Thread Ganesh Goudar
Implement new 32-bit Firmware Port Capabilities in order to handle new speeds which couldn't be represented in the old 16-bit Firmware Port Capabilities values. Based on the original work of Casey Leedom Signed-off-by: Ganesh Goudar --- v2: Fixes build

  1   2   >