[PATCH iproute2 net-next] iproute: Display offload indication per-nexthop

2017-08-03 Thread Ido Schimmel
Since kernel commit 475abbf1ef67 ("ipv4: fib: Set offload indication according to nexthop flags") offload indication is reported on a per-nexthop basis. Adjust iproute2 to display it. Signed-off-by: Ido Schimmel Reviewed-by: Jiri Pirko --- ip/iproute.c

[PATCH net] ipv6: set rt6i_protocol properly in the route when it is installed

2017-08-03 Thread Xin Long
After commit c2ed1880fd61 ("net: ipv6: check route protocol when deleting routes"), ipv6 route checks rt protocol when trying to remove a rt entry. It introduced a side effect causing 'ip -6 route flush cache' not to work well. When flushing caches with iproute, all route caches get dumped from

[PATCH net] net: fix keepalive code vs TCP_FASTOPEN_CONNECT

2017-08-03 Thread Eric Dumazet
From: Eric Dumazet syzkaller was able to trigger a divide by 0 in TCP stack [1] Issue here is that keepalive timer needs to be updated to not attempt to send a probe if the connection setup was deferred using TCP_FASTOPEN_CONNECT socket option added in linux-4.11 [1]

[PATCH net-next 06/14] sctp: remove the typedef sctp_ecnehdr_t

2017-08-03 Thread Xin Long
This patch is to remove the typedef sctp_ecnehdr_t, and replace with struct sctp_ecnehdr in the places where it's using this typedef. It is also to use sizeof(variable) instead of sizeof(type). Signed-off-by: Xin Long --- include/linux/sctp.h | 6 +++---

[PATCH net-next 07/14] sctp: remove the typedef sctp_ecne_chunk_t

2017-08-03 Thread Xin Long
This patch is to remove the typedef sctp_ecne_chunk_t, and replace with struct sctp_ecne_chunk in the places where it's using this typedef. Signed-off-by: Xin Long --- include/linux/sctp.h| 4 ++-- net/sctp/sm_statefuns.c | 4 ++-- 2 files changed, 4 insertions(+), 4

[PATCH net-next 08/14] sctp: remove the typedef sctp_cwrhdr_t

2017-08-03 Thread Xin Long
This patch is to remove the typedef sctp_cwrhdr_t, and replace with struct sctp_cwrhdr in the places where it's using this typedef. It is also to use sizeof(variable) instead of sizeof(type). Signed-off-by: Xin Long --- include/linux/sctp.h | 6 +++---

[PATCH net-next 10/14] sctp: remove the typedef sctp_addip_param_t

2017-08-03 Thread Xin Long
This patch is to remove the typedef sctp_addip_param_t, and replace with struct sctp_addip_param in the places where it's using this typedef. It is to use sizeof(variable) instead of sizeof(type), and also fix some indent problems. Signed-off-by: Xin Long ---

[PATCH net-next 12/14] sctp: remove the typedef sctp_addip_chunk_t

2017-08-03 Thread Xin Long
This patch is to remove the typedef sctp_addip_chunk_t, and replace with struct sctp_addip_chunk in the places where it's using this typedef. Signed-off-by: Xin Long --- include/linux/sctp.h | 4 ++-- net/sctp/input.c | 2 +- net/sctp/sm_make_chunk.c | 8

[PATCH net-next 14/14] sctp: remove the typedef sctp_auth_chunk_t

2017-08-03 Thread Xin Long
This patch is to remove the typedef sctp_auth_chunk_t, and replace with struct sctp_auth_chunk in the places where it's using this typedef. It is also to use sizeof(variable) instead of sizeof(type). Signed-off-by: Xin Long --- include/linux/sctp.h| 4 ++--

[PATCH net-next 11/14] sctp: remove the typedef sctp_addiphdr_t

2017-08-03 Thread Xin Long
This patch is to remove the typedef sctp_addiphdr_t, and replace with struct sctp_addiphdr in the places where it's using this typedef. It is also to use sizeof(variable) instead of sizeof(type). Signed-off-by: Xin Long --- include/linux/sctp.h | 6 +++---

[PATCH net-next 09/14] sctp: remove the typedef sctp_cwr_chunk_t

2017-08-03 Thread Xin Long
Remove this typedef including the struct, there is even no places using it. Signed-off-by: Xin Long --- include/linux/sctp.h | 5 - 1 file changed, 5 deletions(-) diff --git a/include/linux/sctp.h b/include/linux/sctp.h index 3c8c418..2a97639 100644 ---

[PATCH net-next 05/14] sctp: remove the typedef sctp_error_t

2017-08-03 Thread Xin Long
This patch is to remove the typedef sctp_error_t, and replace with enum sctp_error in the places where it's using this typedef. Signed-off-by: Xin Long --- include/linux/sctp.h| 4 ++-- net/sctp/sm_statefuns.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-)

[PATCH net-next 13/14] sctp: remove the typedef sctp_authhdr_t

2017-08-03 Thread Xin Long
This patch is to remove the typedef sctp_authhdr_t, and replace with struct sctp_authhdr in the places where it's using this typedef. It is also to use sizeof(variable) instead of sizeof(type). Signed-off-by: Xin Long --- include/linux/sctp.h | 6 +++---

[PATCH] net: arc_emac: Add support for ndo_do_ioctl net_device_ops operation

2017-08-03 Thread Romain Perier
This operation is required for handling ioctl commands like SIOCGMIIREG, when debugging MDIO registers from userspace. This commit adds support for this operation. Signed-off-by: Romain Perier --- drivers/net/ethernet/arc/emac_main.c | 13 + 1 file

Re: [PATCH net-next v2 1/2] bpf: add support for sys_enter_* and sys_exit_* tracepoints

2017-08-03 Thread Peter Zijlstra
On Wed, Aug 02, 2017 at 10:28:27PM -0700, Yonghong Song wrote: > Currently, bpf programs cannot be attached to sys_enter_* and sys_exit_* > style tracepoints. The iovisor/bcc issue #748 > (https://github.com/iovisor/bcc/issues/748) documents this issue. > For example, if you try to attach a bpf

Re: [RFC PATCH v2 0/2] nb8800 suspend/resume support

2017-08-03 Thread Mason
On 02/08/2017 22:02, Mason wrote: > I need to run the test slightly slower, to prevent packet loss > at the sender. # iperf3 -c 172.27.64.45 -u -b 0 -l 1000 Connecting to host 172.27.64.45, port 5201 [ 4] local 172.27.64.1 port 42607 connected to 172.27.64.45 port 5201 [ ID] Interval

Re: [PATCH v7 2/3] PCI: Enable PCIe Relaxed Ordering if supported

2017-08-03 Thread Raj, Ashok
Hi Casey On Wed, Aug 02, 2017 at 05:53:52PM +, Casey Leedom wrote: >   Okay, here you go.  As you can tell, it's almost a trivial copy of the > cxgb4 patch. >   >   By the way, I realized that we have yet another hole which is likely not > to be fixable.  If we're dealing with a problematic

[PATCH net-next 03/14] sctp: remove the typedef sctp_errhdr_t

2017-08-03 Thread Xin Long
This patch is to remove the typedef sctp_errhdr_t, and replace with struct sctp_errhdr in the places where it's using this typedef. It is also to use sizeof(variable) instead of sizeof(type). Signed-off-by: Xin Long --- include/linux/sctp.h | 6 +++---

[PATCH net-next 02/14] sctp: fix the name of struct sctp_shutdown_chunk_t

2017-08-03 Thread Xin Long
This patch is to fix the name of struct sctp_shutdown_chunk_t , replace with struct sctp_initack_chunk in the places where it's using it. It is also to fix some indent problem. Signed-off-by: Xin Long --- include/linux/sctp.h| 2 +- net/sctp/sm_statefuns.c | 16

[PATCH net-next 00/14] sctp: remove typedefs from structures part 4

2017-08-03 Thread Xin Long
As we know, typedef is suggested not to use in kernel, even checkpatch.pl also gives warnings about it. Now sctp is using it for many structures. All this kind of typedef's using should be removed. This patchset is the part 4 to remove it for another 14 basic structures from linux/sctp.h. After

[PATCH net-next 01/14] sctp: remove the typedef sctp_shutdownhdr_t

2017-08-03 Thread Xin Long
This patch is to remove the typedef sctp_shutdownhdr_t, and replace with struct sctp_shutdownhdr in the places where it's using this typedef. It is also to use sizeof(variable) instead of sizeof(type). Signed-off-by: Xin Long --- include/linux/sctp.h | 6 +++---

[PATCH net-next 04/14] sctp: remove the typedef sctp_operr_chunk_t

2017-08-03 Thread Xin Long
This patch is to remove the typedef sctp_operr_chunk_t, and replace with struct sctp_operr_chunk in the places where it's using this typedef. Signed-off-by: Xin Long --- include/linux/sctp.h| 4 ++-- net/sctp/sm_statefuns.c | 4 ++-- 2 files changed, 4 insertions(+), 4

[PATCH net-next v2 1/7] net: mvpp2: fix MVPP21_ISR_RXQ_GROUP_REG definition

2017-08-03 Thread Thomas Petazzoni
The MVPP21_ISR_RXQ_GROUP_REG register is not indexed by rxq, but by port, so we fix the parameter name accordingly. There are no functional changes. Signed-off-by: Thomas Petazzoni --- drivers/net/ethernet/marvell/mvpp2.c | 2 +- 1 file changed, 1

Re: net: thunderx: Buffer overwrite on bgx_probe

2017-08-03 Thread Sunil Kovvuri
On Wed, Aug 2, 2017 at 10:29 PM, Anton Vasilyev wrote: > Hello. > > While searching for memory errors in Linux kernel I've come across > drivers/net/ethernet/cavium/thunder/thunder_bgx.ko module. > > I've found buffer overwrite at bgx_probe(): > Consider device

[PATCH net-next v2 7/7] dt-bindings: net: marvell-pp2: update interrupt-names with TX interrupts

2017-08-03 Thread Thomas Petazzoni
The PPv2.2 unit has several interrupts used for TX completion notification. This commit updates the Device Tree binding describing this HW block to mention such interrupts. While at it, we update the example to use a recent Device Tree example, that uses interrupts going through the ICU, and not

[PATCH net-next v2 5/7] net: mvpp2: introduce queue_vector concept

2017-08-03 Thread Thomas Petazzoni
In preparation to the introduction of TX interrupts and improved RX queue distribution, this commit introduces the concept of "queue vector". A queue vector represents a number of RX and/or TX queues, and an associated NAPI instance and interrupt. This commit currently only creates a single

[PATCH net-next v2 4/7] net: mvpp2: move from cpu-centric naming to "software thread" naming

2017-08-03 Thread Thomas Petazzoni
The PPv2.2 IP has a concept of "software thread", with all registers of the PPv2.2 mapped 8 times, for concurrent accesses by 8 "software threads". In addition, interrupts on RX queues are associated to such "software thread". For most cases, we map a "software thread" to the more conventional

[PATCH net-next v2 0/7] net: mvpp2: add TX interrupts support

2017-08-03 Thread Thomas Petazzoni
Hello, So far, the mvpp2 driver was using an hrtimer to handle TX completion. This patch series adds support for using TX interrupts (for each CPU) on PPv2.2, the variant of the IP used on Marvell Armada 7K/8K. Dave: this version can be applied right away, it no longer depends on Antoine's patch

[PATCH net-next v2 2/7] net: mvpp2: remove RX queue group reset code

2017-08-03 Thread Thomas Petazzoni
The RX queue group allocation is anyway re-done later in mvpp2_port_init(), so resetting it in mvpp2_init() is not very useful, and will be annoying as we are going to rework the RX queue group allocation logic. Signed-off-by: Thomas Petazzoni ---

[PATCH net-next v2 6/7] net: mvpp2: add support for TX interrupts and RX queue distribution modes

2017-08-03 Thread Thomas Petazzoni
This commit adds the support for two related features: - Support for TX interrupts, with one interrupt for each CPU - Support for different RX queue distribution modes MVPP2_QDIST_SINGLE_MODE where a single interrupt, shared by all CPUs, receives the RX events, and

[PATCH net-next v2 3/7] net: mvpp2: introduce per-port nrxqs/ntxqs variables

2017-08-03 Thread Thomas Petazzoni
Currently, the global variables rxq_number and txq_number hold the number of per-port TXQs and RXQs. Until now, such numbers were constant regardless of the driver configuration. As we are going to introduce different modes for TX and RX queues, these numbers will depend on the configuration

Re: [PATCH v7 1/3] PCI: Add new PCIe Fabric End Node flag, PCI_DEV_FLAGS_NO_RELAXED_ORDERING

2017-08-03 Thread Raj, Ashok
Hi Ding Not sure if V7 is the last version. can you consider rewording this just to make it a little bit more readable? My suggestion below, feel free to use/modify Otherwise its all good and you can add my Ack. Acked-by: Ashok Raj On Thu, Jul 13, 2017 at 10:21:30PM

Re: [PATCH v7 2/3] PCI: Enable PCIe Relaxed Ordering if supported

2017-08-03 Thread Raj, Ashok
Hi Ding patch looks good, except would reword the patch description for clarity here is my crack at it, feel free to use. On Thu, Jul 13, 2017 at 10:21:31PM +0800, Ding Tianhong wrote: > The PCIe Device Control Register use the bit 4 to indicate that > whether the device is permitted to enable

Re: [PATCH v2 net-next 2/3] net: dsa: lan9303: define LAN9303_NUM_PORTS 3

2017-08-03 Thread Egil Hjelmeland
On 01. aug. 2017 15:27, Andrew Lunn wrote: On Tue, Aug 01, 2017 at 02:31:44PM +0200, Egil Hjelmeland wrote: On 01. aug. 2017 13:49, Juergen Borleis wrote: Hi Egil, On Tuesday 01 August 2017 13:14:38 Egil Hjelmeland wrote: Will be used instead of '3' in upcomming patches. +#define

[PATCH V3 net-next 21/21] net-next/hinic: Add select_queue and netpoll

2017-08-03 Thread Aviad Krawczyk
Add more netdev operations. Signed-off-by: Aviad Krawczyk Signed-off-by: Zhao Chen --- MAINTAINERS| 7 ++ drivers/net/ethernet/huawei/hinic/hinic_main.c | 35 ++ 2 files changed,

[PATCH V3 net-next 18/21] net-next/hinic: Add Rx handler

2017-08-03 Thread Aviad Krawczyk
Set the io resources in the nic and handle rx events by qp operations. Signed-off-by: Aviad Krawczyk Signed-off-by: Zhao Chen --- drivers/net/ethernet/huawei/hinic/hinic_dev.h | 1 + drivers/net/ethernet/huawei/hinic/hinic_hw_csr.h | 1

[PATCH V3 net-next 04/21] net-next/hinic: Initialize api cmd hw

2017-08-03 Thread Aviad Krawczyk
Update the hardware about api cmd resources and initialize it. Signed-off-by: Aviad Krawczyk Signed-off-by: Zhao Chen --- .../net/ethernet/huawei/hinic/hinic_hw_api_cmd.c | 173 -

[PATCH V3 net-next 05/21] net-next/hinic: Add management messages

2017-08-03 Thread Aviad Krawczyk
Add the management messages for sending to api cmd and the asynchronous event handler for the completion of the messages. Signed-off-by: Aviad Krawczyk Signed-off-by: Zhao Chen --- .../net/ethernet/huawei/hinic/hinic_hw_api_cmd.c | 35 ++

Re: [PATCH v3 2/4] dt-bindings: can: fixed-transceiver: Add new CAN fixed transceiver bindings

2017-08-03 Thread Sergei Shtylyov
Hello! On 8/3/2017 3:51 AM, Franklin S Cooper Jr wrote: Add documentation to describe usage of the new fixed transceiver binding. This new binding is applicable for any CAN device therefore it exists as its own document. Signed-off-by: Franklin S Cooper Jr ---

Re: [PATCH v3 3/4] dt-bindings: can: m_can: Include reference to new fixed transceiver binding

2017-08-03 Thread Sergei Shtylyov
On 8/3/2017 3:51 AM, Franklin S Cooper Jr wrote: Add information regarding fixed transceiver binding. This is especially important for MCAN since the IP allows CAN FD mode to run significantly faster than what most transceivers are capable of. Signed-off-by: Franklin S Cooper Jr

[PATCH v3 net-next 2/5] net: dsa: lan9303: define LAN9303_NUM_PORTS 3

2017-08-03 Thread Egil Hjelmeland
Will be used instead of '3' in upcomming patches. Signed-off-by: Egil Hjelmeland --- drivers/net/dsa/lan9303-core.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/dsa/lan9303-core.c b/drivers/net/dsa/lan9303-core.c index fa19e320c5a8..126e8b84bdf0

[PATCH v3 net-next 1/5] net: dsa: lan9303: Change lan9303_xxx_packet_processing() port param.

2017-08-03 Thread Egil Hjelmeland
lan9303_enable_packet_processing, lan9303_disable_packet_processing() Pass port number (0,1,2) as parameter instead of port offset. Because other functions in the module pass port numbers. And to enable simplifications in following patch. Introduce lan9303_write_switch_port(). Signed-off-by:

[PATCH v3 net-next 3/5] net: dsa: lan9303: Simplify lan9303_xxx_packet_processing() usage

2017-08-03 Thread Egil Hjelmeland
Simplify usage of lan9303_enable_packet_processing, lan9303_disable_packet_processing() Signed-off-by: Egil Hjelmeland --- drivers/net/dsa/lan9303-core.c | 24 ++-- 1 file changed, 10 insertions(+), 14 deletions(-) diff --git

[PATCH v3 net-next 0/5] Refactor lan9303_xxx_packet_processing

2017-08-03 Thread Egil Hjelmeland
This series is purely non functional. It changes the lan9303_enable_packet_processing, lan9303_disable_packet_processing() to pass port number (0,1,2) as parameter instead of port offset. This aligns them with other functions in the module, and makes it possible to simplify the code. The

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

2017-08-03 Thread Aviad Krawczyk
Initialize hw interface as part of the nic initialization for accessing hw. Signed-off-by: Aviad Krawczyk Signed-off-by: Zhao Chen --- Documentation/networking/hinic.txt | 125 ++ drivers/net/ethernet/Kconfig

Re: qtnfmac: Tidy up DMA mask setting

2017-08-03 Thread Kalle Valo
Robin Murphy wrote: > As the only caller of dma_supported() outside of DMA API internals, the > qtfnmac driver stands out and invites scrutiny. Thankfully, it's not > being used for evil, but it is entirely redundant, since it open-codes a > check that the DMA mask setting

[PATCH V3 net-next 20/21] net-next/hinic: Add ethtool and stats

2017-08-03 Thread Aviad Krawczyk
Add ethtool operations and statistics operations. Signed-off-by: Aviad Krawczyk Signed-off-by: Zhao Chen --- drivers/net/ethernet/huawei/hinic/hinic_dev.h | 3 + drivers/net/ethernet/huawei/hinic/hinic_main.c | 220 -

[PATCH V3 net-next 12/21] net-next/hinic: Add qp resources

2017-08-03 Thread Aviad Krawczyk
Create the resources for queue pair operations: doorbell area, consumer index address and producer index address. Signed-off-by: Aviad Krawczyk Signed-off-by: Zhao Chen --- drivers/net/ethernet/huawei/hinic/Makefile | 4 +-

[PATCH V3 net-next 16/21] net-next/hinic: Add cmdq commands

2017-08-03 Thread Aviad Krawczyk
Add cmdq commands for setting queue pair contexts in the nic. Signed-off-by: Aviad Krawczyk Signed-off-by: Zhao Chen --- drivers/net/ethernet/huawei/hinic/hinic_common.c | 25 ++ drivers/net/ethernet/huawei/hinic/hinic_common.h | 9 +

[PATCH V3 net-next 13/21] net-next/hinic: Set qp context

2017-08-03 Thread Aviad Krawczyk
Update the nic about the resources of the queue pairs. Signed-off-by: Aviad Krawczyk Signed-off-by: Zhao Chen --- drivers/net/ethernet/huawei/hinic/Makefile | 5 +- drivers/net/ethernet/huawei/hinic/hinic_common.c | 55 ++

Re: [01/11] rtlwifi: rtl8192de: constify pci_device_id.

2017-08-03 Thread Kalle Valo
Arvind Yadav wrote: > pci_device_id are not supposed to change at runtime. All functions > working with pci_device_id provided by work with > const pci_device_id. So mark the non-const structs as const. > > File size before: >text data bss dec

[PATCH V3 net-next 09/21] net-next/hinic: Add Rx mode and link event handler

2017-08-03 Thread Aviad Krawczyk
Add port management message for setting Rx mode in the card, used for rx_mode netdev operation. The link event handler is used for getting a notification about the link state. Signed-off-by: Aviad Krawczyk Signed-off-by: Zhao Chen ---

Re: [PATCH v7 1/3] PCI: Add new PCIe Fabric End Node flag, PCI_DEV_FLAGS_NO_RELAXED_ORDERING

2017-08-03 Thread Ding Tianhong
On 2017/8/3 16:55, Raj, Ashok wrote: > Hi Ding > > Not sure if V7 is the last version. > > can you consider rewording this just to make it a little bit more > readable? My suggestion below, feel free to use/modify > > Otherwise its all good and you can add my Ack. > > Acked-by: Ashok Raj

Re: [PATCH v7 2/3] PCI: Enable PCIe Relaxed Ordering if supported

2017-08-03 Thread Ding Tianhong
On 2017/8/3 17:13, Raj, Ashok wrote: > Hi Ding > > patch looks good, except would reword the patch description for clarity > > here is my crack at it, feel free to use. > > On Thu, Jul 13, 2017 at 10:21:31PM +0800, Ding Tianhong wrote: >> The PCIe Device Control Register use the bit 4 to

Re: [PATCH] xfrm: policy: check policy direction value

2017-08-03 Thread Steffen Klassert
On Wed, Aug 02, 2017 at 07:50:14PM +0200, Vladis Dronov wrote: > The 'dir' parameter in xfrm_migrate() is a user-controlled byte which is used > as an array index. This can lead to an out-of-bound access, kernel lockup and > DoS. Add a check for the 'dir' value. > > This fixes CVE-2017-11600. >

Re: [PATCH v3 05/11] net: stmmac: dwmac-rk: Add internal phy support

2017-08-03 Thread Chen-Yu Tsai
On Thu, Aug 3, 2017 at 1:38 AM, Florian Fainelli wrote: > On 08/01/2017 11:21 PM, David Wu wrote: >> To make internal phy work, need to configure the phy_clock, >> phy cru_reset and related registers. >> >> Signed-off-by: David Wu >> --- >>

Re: [PATCH net] xfrm: fix null pointer dereference on state and tmpl sort

2017-08-03 Thread Steffen Klassert
On Tue, Aug 01, 2017 at 11:21:46PM +0900, Koichiro Den wrote: > Creating sub policy that matches the same outer flow as main policy does > leads to a null pointer dereference if the outer mode's family is ipv4. > For userspace compatibility, this patch just eliminates the crash i.e., > does not

[PATCH V3 net-next 02/21] net-next/hinic: Initialize hw device components

2017-08-03 Thread Aviad Krawczyk
Initialize hw device by calling the initialization functions of aeqs and management channel. Signed-off-by: Aviad Krawczyk Signed-off-by: Zhao Chen --- drivers/net/ethernet/huawei/hinic/Makefile| 3 +-

[PATCH V3 net-next 00/21] Huawei HiNIC Ethernet Driver

2017-08-03 Thread Aviad Krawczyk
The patch-set contains the support of the HiNIC Ethernet driver for hinic family of PCIE Network Interface Cards. The Huawei's PCIE HiNIC card is a new Ethernet card and hence there was a need of a new driver. The current driver is meant to be used for the Physical Function and there would soon

[PATCH V3 net-next 14/21] net-next/hinic: Initialize cmdq

2017-08-03 Thread Aviad Krawczyk
Create the work queues for cmdq and update the nic about the work queue contexts. cmdq commands are used for updating the nic about the qp contexts. Signed-off-by: Aviad Krawczyk Signed-off-by: Zhao Chen ---

[PATCH V3 net-next 15/21] net-next/hinic: Add ceqs

2017-08-03 Thread Aviad Krawczyk
Initialize the completion event queues and handle ceq events by calling the registered handlers. Used for cmdq command completion. Signed-off-by: Aviad Krawczyk Signed-off-by: Zhao Chen --- drivers/net/ethernet/huawei/hinic/hinic_hw_cmdq.c | 16

[PATCH V3 net-next 19/21] net-next/hinic: Add Tx operation

2017-08-03 Thread Aviad Krawczyk
Add transmit operation for sending data by qp operations. Signed-off-by: Aviad Krawczyk Signed-off-by: Zhao Chen --- drivers/net/ethernet/huawei/hinic/hinic_dev.h | 1 + drivers/net/ethernet/huawei/hinic/hinic_hw_dev.c | 47 +++

[PATCH V3 net-next 17/21] net-next/hinic: Add cmdq completion handler

2017-08-03 Thread Aviad Krawczyk
Add cmdq completion handler for getting a notification about the completion of cmdq commands. Signed-off-by: Aviad Krawczyk Signed-off-by: Zhao Chen --- drivers/net/ethernet/huawei/hinic/hinic_hw_cmdq.c | 292 +-

[PATCH V3 net-next 08/21] net-next/hinic: Add port management commands

2017-08-03 Thread Aviad Krawczyk
Add the port management commands that are sent as management messages. The port management commands are used for netdev operations. Signed-off-by: Aviad Krawczyk Signed-off-by: Zhao Chen --- drivers/net/ethernet/huawei/hinic/Makefile | 4

Re: [net] hostap: Fix outdated comment about dev->destructor

2017-08-03 Thread Kalle Valo
Stefano Brivio wrote: > After commit cf124db566e6 ("net: Fix inconsistent teardown and > release of private netdev state."), setting > 'dev->needs_free_netdev' ensures device data is released, and > 'dev->destructor' is not used anymore. > > Fixes: cf124db566e6 ("net: Fix

[PATCH V3 net-next 11/21] net-next/hinic: Add wq

2017-08-03 Thread Aviad Krawczyk
Create work queues for use of the queue pairs. Signed-off-by: Aviad Krawczyk Signed-off-by: Zhao Chen --- drivers/net/ethernet/huawei/hinic/Makefile | 4 +- drivers/net/ethernet/huawei/hinic/hinic_common.h | 25 ++

[PATCH V3 net-next 03/21] net-next/hinic: Initialize api cmd resources

2017-08-03 Thread Aviad Krawczyk
Initialize api cmd resources as part of management initialization. Signed-off-by: Aviad Krawczyk Signed-off-by: Zhao Chen --- drivers/net/ethernet/huawei/hinic/Makefile | 4 +- .../net/ethernet/huawei/hinic/hinic_hw_api_cmd.c | 444

Re: [PATCH net-next 0/7] IPSec offload improvements

2017-08-03 Thread Steffen Klassert
On Tue, Aug 01, 2017 at 12:49:03PM +0300, il...@mellanox.com wrote: > From: Ilan Tayari > > Hi Steffen, > > This patchset introduces several improvements to IPSec offload. > We would like to see these merged in 4.14. > > Patches 1-4 add RX checksum offload support. > This

[PATCH v3 net-next 4/5] net: dsa: lan9303: Rename lan9303_xxx_packet_processing()

2017-08-03 Thread Egil Hjelmeland
The lan9303_enable_packet_processing, lan9303_disable_packet_processing functions operate on port, so the names should reflect that. And to align with lan9303_disable_processing(), rename: lan9303_enable_packet_processing -> lan9303_enable_processing_port lan9303_disable_packet_processing ->

[PATCH v3 net-next 5/5] net: dsa: lan9303: refactor lan9303_get_ethtool_stats

2017-08-03 Thread Egil Hjelmeland
In lan9303_get_ethtool_stats: Get rid of 0x400 constant magic by using new lan9303_read_switch_reg() inside loop. Reduced scope of two variables. Signed-off-by: Egil Hjelmeland --- drivers/net/dsa/lan9303-core.c | 26 -- 1 file changed, 16

[PATCH V3 net-next 10/21] net-next/hinic: Add logical Txq and Rxq

2017-08-03 Thread Aviad Krawczyk
Create the logical queues of the nic. Signed-off-by: Aviad Krawczyk Signed-off-by: Zhao Chen --- drivers/net/ethernet/huawei/hinic/Makefile | 5 +- drivers/net/ethernet/huawei/hinic/hinic_dev.h| 5 +

Re: qtfnmac: Tidy up DMA mask setting

2017-08-03 Thread Kalle Valo
Robin Murphy wrote: > As the only caller of dma_supported() outside of DMA API internals, the > qtfnmac driver stands out and invites scrutiny. Thankfully, it's not > being used for evil, but it is entirely redundant, since it open-codes a > check that the DMA mask setting

[PATCH V3 net-next 07/21] net-next/hinic: Add aeqs

2017-08-03 Thread Aviad Krawczyk
Handle aeq elements that are accumulated on the aeq by calling the registered handler for the specific event. Signed-off-by: Aviad Krawczyk Signed-off-by: Zhao Chen --- drivers/net/ethernet/huawei/hinic/hinic_hw_csr.h | 49 +++

Re: [10/11] net: qtnfmac: constify pci_device_id.

2017-08-03 Thread Kalle Valo
Arvind Yadav wrote: > pci_device_id are not supposed to change at runtime. All functions > working with pci_device_id provided by work with > const pci_device_id. So mark the non-const structs as const. > > Signed-off-by: Arvind Yadav >

[PATCH V3 net-next 06/21] net-next/hinic: Add api cmd commands

2017-08-03 Thread Aviad Krawczyk
Add the api cmd commands for sending management messages to the nic. Signed-off-by: Aviad Krawczyk Signed-off-by: Zhao Chen --- .../net/ethernet/huawei/hinic/hinic_hw_api_cmd.c | 329 -

AF_VSOCK unimplemented sockopts

2017-08-03 Thread Stefan Hajnoczi
Hi Jorgen, There are 3 sockopts defined in include/uapi/linux/vm_sockets.h that are currently not implemented in net/vmw_vsock/af_vsock.c: * SO_VM_SOCKETS_PEER_HOST_VM_ID * SO_VM_SOCKETS_TRUSTED * SO_VM_SOCKETS_NONBLOCK_TXRX I noticed this because SO_VM_SOCKETS_TRUSTED is interesting for

Linux kernel: net/irda/af_irda.c: irda_getsockopt() stack infoleak

2017-08-03 Thread sohu0106
Sometimes irda_getsockopt() doesn't initialize all members of list field of irda_device_list struct.  This structure is then copied to userland.  It leads to leaking of contents of kernel stack memory.   2  net/irda/af_irda.c @@ -2248,6 +2248,8 @@ static int irda_getsockopt(struct socket

[iproute PATCH] tc-simple: Fix documentation

2017-08-03 Thread Phil Sutter
- CONTROL has to come last, otherwise 'index' applies to gact and not simple itself. - Man page wasn't updated to reflect syntax changes. Signed-off-by: Phil Sutter --- man/man8/tc-simple.8 | 29 ++--- tc/m_simple.c| 4 ++-- 2 files changed, 28

[PATCH 02/27] ip: add new command line argument -json (mutually exclusive with -color)

2017-08-03 Thread Julien Fortin
From: Julien Fortin Signed-off-by: Julien Fortin --- include/utils.h | 1 + ip/ip.c | 6 ++ 2 files changed, 7 insertions(+) diff --git a/include/utils.h b/include/utils.h index 6080b962..565bda60 100644 --- a/include/utils.h

[PATCH 04/27] ip: ip_print: add new API to print JSON or regular format output

2017-08-03 Thread Julien Fortin
From: Julien Fortin To avoid code duplication and have a ligther impact on most of the files, these functions were made to handle both stdout (FP context) or JSON output. Using this api, the changes are easier to read and the code stays as compact as possible.

[PATCH v4 net-next 09/13] selftests/bpf: don't try to access past MAX_PACKET_OFF in test_verifier

2017-08-03 Thread Edward Cree
A number of selftests fell foul of the changed MAX_PACKET_OFF handling. For instance, "direct packet access: test2" was potentially reading four bytes from pkt + 0x, which could take it past the verifier's limit, causing the program to be rejected (checks against pkt_end didn't give us any

Re: [PATCH net] net: hns: Add self-adaptive interrupt coalesce support in hns driver

2017-08-03 Thread David Miller
From: Yunsheng Lin Date: Wed, 2 Aug 2017 17:57:37 +0800 > From: Lin Yun Sheng > > When deal with low and high throughput, it is hard to achiece both > high performance and low latency. In order to achiece that, this patch > calculates the rx

Re: [PATCH net-next 0/4] ibmvnic: Improve ethtool functionality

2017-08-03 Thread David Miller
From: John Allen Date: Wed, 2 Aug 2017 16:42:49 -0500 > This patch series improves ibmvnic ethtool functionality by adding support > for ethtool -l and -g options, correcting existing statistics reporting, > and augmenting the existing statistics with counters for each

Re: [PATCH net-next v2 1/2] bpf: add support for sys_enter_* and sys_exit_* tracepoints

2017-08-03 Thread Yonghong Song
On 8/3/17 1:08 AM, Peter Zijlstra wrote: On Wed, Aug 02, 2017 at 10:28:27PM -0700, Yonghong Song wrote: Currently, bpf programs cannot be attached to sys_enter_* and sys_exit_* style tracepoints. The iovisor/bcc issue #748 (https://github.com/iovisor/bcc/issues/748) documents this issue. For

[PATCH 00/27] ip: add -json support to 'ip link show'

2017-08-03 Thread Julien Fortin
From: Julien Fortin This patch series adds json support to 'ip [-details] link show [dev DEV]' Each patch describes the json schema it adds and provides some examples. Julien Fortin (27): color: add new COLOR_NONE and disable_color function ip: add new command

[PATCH 17/27] ip: iplink_vxlan.c: add json output support

2017-08-03 Thread Julien Fortin
From: Julien Fortin Schema: { "id": { "type": "uint", "attr": "IFLA_VXLAN_ID" }, "group": { "type": "string", "attr": "IFLA_VXLAN_GROUP" }, "remote": { "type": "string", "attr": "IFLA_VXLAN_GROUP"

[PATCH 11/27] ip: iplink_bridge_slave.c: add json output support

2017-08-03 Thread Julien Fortin
From: Julien Fortin Schema: bridge_slave: IFLA_INFO_SLAVE_DATA { "state": { "type": "string", "attr": "IFLA_BRPORT_STATE", "mutually_exclusive": { "state_index": { "type": "uint", "comment": "if

[PATCH 23/27] ip: link_iptnl.c: add json output support

2017-08-03 Thread Julien Fortin
From: Julien Fortin Schema { "remote": { "type": "string", "attr": "IFLA_IPTUN_REMOTE" }, "local": { "type": "string", "attr": "IFLA_IPTUN_LOCAL" }, "link": { "type": "string", "attr":

[PATCH 26/27] ip: link_macvlan.c: add json output support

2017-08-03 Thread Julien Fortin
From: Julien Fortin Schema: { "mode": { "type": "string", "attr": "IFLA_MACVLAN_MODE" }, "nopromisc": { "type": "bool", "attr": "MACVLAN_FLAG_NOPROMISC" }, "macaddr_count": { "type": "int", "attr":

[PATCH 06/27] ip: iplink.c: open/close json object for ip -brief -json link show dev DEV

2017-08-03 Thread Julien Fortin
From: Julien Fortin Signed-off-by: Julien Fortin --- ip/iplink.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ip/iplink.c b/ip/iplink.c index 5aff2fde..19bda1b9 100644 --- a/ip/iplink.c +++ b/ip/iplink.c @@ -1041,10 +1041,12 @@

[PATCH 09/27] ip: iplink_hsr.c: add json output support

2017-08-03 Thread Julien Fortin
From: Julien Fortin Schema: hsr: IFLA_INFO_DATA { "slave1": { "type": "string", "attr": "IFLA_HSR_SLAVE1" }, "slave2": { "type": "string", "attr": "IFLA_HSR_SLAVE2" }, "seq_nr": { "type": "int",

[PATCH v4 net-next 01/13] bpf/verifier: rework value tracking

2017-08-03 Thread Edward Cree
Unifies adjusted and unadjusted register value types (e.g. FRAME_POINTER is now just a PTR_TO_STACK with zero offset). Tracks value alignment by means of tracking known & unknown bits. This also replaces the 'reg->imm' (leading zero bits) calculations for (what were) UNKNOWN_VALUEs. If pointer

[PATCH v4 net-next 02/13] nfp: change bpf verifier hooks to match new verifier data structures

2017-08-03 Thread Edward Cree
Signed-off-by: Edward Cree --- drivers/net/ethernet/netronome/nfp/bpf/verifier.c | 24 +-- kernel/bpf/tnum.c | 1 + 2 files changed, 15 insertions(+), 10 deletions(-) diff --git

Re: [PATCH net-next] rds: reduce memory footprint for RDS when transport is RDMA

2017-08-03 Thread David Miller
From: Sowmini Varadhan Date: Wed, 2 Aug 2017 10:34:31 -0700 > RDS over IB does not use multipath RDS, so the array > of additional rds_conn_path structures is always superfluous > in this case. Reduce the memory footprint of the rds module > by making this a dynamic

[PATCH v3] iwlwifi: Demote messages about fw flags size to info

2017-08-03 Thread João Paulo Rechi Vita
These messages are not reporting a real error, just the fact that the firmware knows about more flags than the driver. Currently these messages are presented to the user during boot if there is no bootsplash covering the console, even when booting the kernel with "quiet". Demoting it to the warn

[PATCH 05/27] ip: ipaddress.c: add support for json output

2017-08-03 Thread Julien Fortin
From: Julien Fortin This patch converts all output (mostly fprintfs) to the new ip_print api which handle both regular and json output. Initialize a json_writer and open an array object if -json was specified. Note that the JSON attribute naming follows the

[PATCH 10/27] ip: iplink_bridge.c: add json output support

2017-08-03 Thread Julien Fortin
From: Julien Fortin Schema and live example: bridge: IFLA_INFO_DATA { "forward_delay": { "type": "uint", "attr": "IFLA_BR_FORWARD_DELAY" }, "hello_time": { "type": "uint", "attr": "IFLA_BR_HELLO_TIME" }, "max_age": {

[PATCH 03/27] json_writer: add new json handlers (null, float with format, lluint, hu)

2017-08-03 Thread Julien Fortin
From: Julien Fortin Signed-off-by: Julien Fortin --- include/json_writer.h | 9 + lib/json_writer.c | 44 2 files changed, 49 insertions(+), 4 deletions(-) diff --git

[PATCH 01/27] color: add new COLOR_NONE and disable_color function

2017-08-03 Thread Julien Fortin
From: Julien Fortin Signed-off-by: Julien Fortin --- include/color.h | 2 ++ lib/color.c | 9 +++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/include/color.h b/include/color.h index ba0b237e..a4ca1177 100644

[PATCH 07/27] ip: iplink_bond.c: add json output support

2017-08-03 Thread Julien Fortin
From: Julien Fortin Schema and live example: bond: IFLA_INFO_DATA { "mode": { "type": "string", "attr": "IFLA_BOND_MODE" }, "active_slave": { "type": "string", "attr": "IFLA_BOND_ACTIVE_SLAVE", "mutually_exclusive":

  1   2   3   4   >