[PATCH net 1/4] s390/qeth: free netdevice when removing a card

2018-03-19 Thread Julian Wiedmann
On removal, a qeth card's netdevice is currently not properly freed because the call chain looks as follows: qeth_core_remove_device(card) lx_remove_device(card) unregister_netdev(card->dev) card->dev = NULL!!! qeth_core_free_

Re: [PATCH v2 net-next 2/5] cxgb4: Add support to initialise/read SRQ entries

2018-03-19 Thread Stefano Brivio
On Tue, 20 Mar 2018 07:58:39 +0100 Stefano Brivio wrote: > On Tue, 20 Mar 2018 11:43:34 +0530 > Raju Rangoju wrote: > > > +struct srq_data *t4_init_srq(int srq_size) > > +{ > > + struct srq_data *s; > > + > > + s = kzalloc(sizeof(*s), GFP_KERNEL | __GFP_NOWARN); > > + if (!s) > > +

Re: [PATCH v2 net-next 2/5] cxgb4: Add support to initialise/read SRQ entries

2018-03-19 Thread Stefano Brivio
On Tue, 20 Mar 2018 11:43:34 +0530 Raju Rangoju wrote: > +struct srq_data *t4_init_srq(int srq_size) > +{ > + struct srq_data *s; > + > + s = kzalloc(sizeof(*s), GFP_KERNEL | __GFP_NOWARN); > + if (!s) > + s = kvzalloc(sizeof(*s), GFP_KERNEL); > + if (!s) > +

[PATCH net-next 2/4] r8169: change type of first argument in rtl_tx_performance_tweak

2018-03-19 Thread Heiner Kallweit
Changing the type of the first argument to struct rtl8169_private * is more in line with the other functions in the driver and it allows to reduce the code size. Signed-off-by: Heiner Kallweit --- drivers/net/ethernet/realtek/r8169.c | 62 ++-- 1 file changed, 24

[PATCH net-next 3/4] r8169: change type of argument in rtl_disable/enable_clock_request

2018-03-19 Thread Heiner Kallweit
Changing the argument type to struct rtl8169_private * is more in line with the other functions in the driver and it allows to reduce the code size. Signed-off-by: Heiner Kallweit --- drivers/net/ethernet/realtek/r8169.c | 33 +++-- 1 file changed, 11 insertions(+), 2

[PATCH net-next 4/4] r8169: add helper tp_to_dev

2018-03-19 Thread Heiner Kallweit
In several places struct device is referenced by using &tp->pci_dev->dev. Add helper tp_to_dev() to improve code readability. Signed-off-by: Heiner Kallweit --- drivers/net/ethernet/realtek/r8169.c | 37 +--- 1 file changed, 22 insertions(+), 15 deletions(-) diff

[PATCH net-next 1/4] r8169: simplify rtl_set_mac_address

2018-03-19 Thread Heiner Kallweit
Replace open-coded functionality with eth_mac_addr(). Signed-off-by: Heiner Kallweit --- drivers/net/ethernet/realtek/r8169.c | 9 - 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/drivers/net/ethernet/realtek/r8169.c b/drivers/net/ethernet/realtek/r8169.c index 7055db16..

[PATCH net-next 0/4] r8169: series with smaller improvements w/o functional changes

2018-03-19 Thread Heiner Kallweit
This series includes smaller improvements w/o intended functional changes. Heiner Kallweit (4): r8169: simplify rtl_set_mac_address r8169: change type of first argument in rtl_tx_performance_tweak r8169: change type of argument in rtl_disable/enable_clock_request r8169: add helper tp_to_de

[PATCH v2 net-next 5/5] cxgb4: Support firmware rdma write completion work request.

2018-03-19 Thread Raju Rangoju
If FW supports RDMA WRITE_COMPLETION functionality, then advertise that to the ULDs. This will be used by iw_cxgb4 to allow WRITE_COMPLETION work requests. Signed-off-by: Potnuri Bharat Teja Signed-off-by: Raju Rangoju Signed-off-by: Ganesh Goudar Signed-off-by: Steve Wise --- drivers/net/eth

[PATCH v2 net-next 4/5] cxgb4: Support firmware rdma write with immediate work request.

2018-03-19 Thread Raju Rangoju
If FW supports RDMA WRITE_WITH_IMMEDATE functionality, then advertise that to the ULDs. This will be used by iw_cxgb4 to allow WRITE_WITH_IMMEDIATE work requests. Signed-off-by: Potnuri Bharat Teja Signed-off-by: Raju Rangoju Signed-off-by: Ganesh Goudar Signed-off-by: Steve Wise --- drivers/

[PATCH v2 net-next 1/5] cxgb4: Adds CPL support for Shared Receive Queues

2018-03-19 Thread Raju Rangoju
- Add srq table query cpl support for srq - Add cpl_abort_req_rss6 and cpl_abort_rpl_rss6 structs. - Add accessors, macros to get the SRQ IDX value. Signed-off-by: Raju Rangoju Reviewed-by: Steve Wise Signed-off-by: Ganesh Goudar --- drivers/net/ethernet/chelsio/cxgb4/t4_msg.h | 71 +

[PATCH v2 net-next 2/5] cxgb4: Add support to initialise/read SRQ entries

2018-03-19 Thread Raju Rangoju
- This patch adds support to initialise srq table and read srq entries Signed-off-by: Raju Rangoju Reviewed-by: Steve Wise Signed-off-by: Ganesh Goudar --- drivers/net/ethernet/chelsio/cxgb4/Makefile | 2 +- drivers/net/ethernet/chelsio/cxgb4/cxgb4.h | 2 + drivers/net/ethernet/chelsio/cx

[PATCH v2 net-next 3/5] cxgb4: Add support to query HW SRQ parameters

2018-03-19 Thread Raju Rangoju
This patch adds support to query FW for the HW SRQ table start/end, and advertise that for ULDs. Signed-off-by: Raju Rangoju Reviewed-by: Steve Wise Signed-off-by: Ganesh Goudar --- drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c | 20 drivers/net/ethernet/chelsio/cxgb4/cx

[PATCH v2 net-next 0/5] Add support for RDMA enhancements in cxgb4

2018-03-19 Thread Raju Rangoju
Allocates the HW-resources and provide the necessary routines for the upper layer driver (rdma/iw_cxgb4) to enable the RDMA SRQ support for Chelsio adapters. Advertise support for write with immediate work request Advertise support for write with completion v2: fixed the patching issues and also

Re: tg3 crashes under high load, when using 100Mbits

2018-03-19 Thread Satish Baddipadige
On Thu, Feb 15, 2018 at 7:37 PM, Siva Reddy Kallam wrote: > On Mon, Feb 12, 2018 at 10:59 AM, Siva Reddy Kallam > wrote: >> On Fri, Feb 9, 2018 at 10:41 AM, Kai Heng Feng >> wrote: >>> Hi Broadcom folks, >>> >>> We are now enabling a new platform with tg3 nic, unfortunately we observed >>> the b

Re: NETDEV WATCHDOG: eth0 (tg3): transmit queue 0 timed out

2018-03-19 Thread Satish Baddipadige
On Wed, Feb 28, 2018 at 7:40 PM, Siva Reddy Kallam wrote: > On Sat, Feb 24, 2018 at 3:48 PM, Borislav Petkov wrote: >> Hi, >> >> this didn't happen before but after 4.16-rc1 my tg3 nic stops for >> whatever reason and the connection to the machine is dead. It didn't show >> anything in dmesg unti

RE: [PATCH net-next 1/2] net: permit skb_segment on head_frag frag_list skb

2018-03-19 Thread Yuan, Linyu (NSB - CN/Shanghai)
Sorry, I should not add "Here cause next BUG_ON always false." It cause misunderstanding, I just comment on BUG_ON in else branch. > -Original Message- > From: Yonghong Song [mailto:y...@fb.com] > Sent: Tuesday, March 20, 2018 1:54 PM > To: Yuan, Linyu (NSB - CN/Shanghai); eduma...@google.

Re: [PATCH net-next 1/2] net: permit skb_segment on head_frag frag_list skb

2018-03-19 Thread Yonghong Song
On 3/19/18 10:30 PM, Yuan, Linyu (NSB - CN/Shanghai) wrote: -Original Message- From: netdev-ow...@vger.kernel.org [mailto:netdev-ow...@vger.kernel.org] On Behalf Of Yonghong Song Sent: Tuesday, March 20, 2018 1:16 PM To: eduma...@google.com; a...@fb.com; dan...@iogearbox.net; dipt...

Re: [bpf-next PATCH v3 08/18] bpf: sk_msg program helper bpf_sk_msg_pull_data

2018-03-19 Thread John Fastabend
On 03/19/2018 01:24 PM, Alexei Starovoitov wrote: > On Sun, Mar 18, 2018 at 12:57:25PM -0700, John Fastabend wrote: >> Currently, if a bpf sk msg program is run the program >> can only parse data that the (start,end) pointers already >> consumed. For sendmsg hooks this is likely the first >> scatte

RE: [PATCH net-next 1/2] net: permit skb_segment on head_frag frag_list skb

2018-03-19 Thread Yuan, Linyu (NSB - CN/Shanghai)
> -Original Message- > From: netdev-ow...@vger.kernel.org [mailto:netdev-ow...@vger.kernel.org] > On Behalf Of Yonghong Song > Sent: Tuesday, March 20, 2018 1:16 PM > To: eduma...@google.com; a...@fb.com; dan...@iogearbox.net; > dipt...@fb.com; netdev@vger.kernel.org > Cc: kernel-t...@fb.

[PATCH net-next 1/2] net: permit skb_segment on head_frag frag_list skb

2018-03-19 Thread Yonghong Song
One of our in-house projects, bpf-based NAT, hits a kernel BUG_ON at function skb_segment(), line 3667. The bpf program attaches to clsact ingress, calls bpf_skb_change_proto to change protocol from ipv4 to ipv6 or from ipv6 to ipv4, and then calls bpf_redirect to send the changed packet out. 3472

[PATCH net-next 0/2] net: permit skb_segment on head_frag frag_list skb

2018-03-19 Thread Yonghong Song
One of our in-house projects, bpf-based NAT, hits a kernel BUG_ON at function skb_segment(), line 3667. The bpf program attaches to clsact ingress, calls bpf_skb_change_proto to change protocol from ipv4 to ipv6 or from ipv6 to ipv4, and then calls bpf_redirect to send the changed packet out. ...

[PATCH net-next 2/2] net: bpf: add a test for skb_segment in test_bpf module

2018-03-19 Thread Yonghong Song
Without the previous commit, "modprobe test_bpf" will have the following errors: ... [ 98.149165] [ cut here ] [ 98.159362] kernel BUG at net/core/skbuff.c:3667! [ 98.169756] invalid opcode: [#1] SMP PTI [ 98.179370] Modules linked in: [ 98.179371] test_bpf(+

RE: [PATCH] bnx2x: fix spelling mistake: "registeration" -> "registration"

2018-03-19 Thread Kalluru, Sudarsana
-Original Message- From: Colin King [mailto:colin.k...@canonical.com] Sent: 19 March 2018 20:03 To: Elior, Ariel ; Dept-Eng Everest Linux L2 ; netdev@vger.kernel.org Cc: kernel-janit...@vger.kernel.org; linux-ker...@vger.kernel.org Subject: [PATCH] bnx2x: fix spelling mistake: "registerat

Re: [PATCH net-next v2 2/2] dt: bindings: add new dt entries for brcmfmac

2018-03-19 Thread Alexey Roslyakov
Arend, I use RK3288-firefly, bcm4339 (ap6335). Regards, Alex On 20 March 2018 at 06:16, Arend van Spriel wrote: > + Uffe > > On 3/19/2018 6:55 PM, Florian Fainelli wrote: >> >> On 03/19/2018 07:10 AM, Alexey Roslyakov wrote: >>> >>> Hi Arend, >>> I appreciate your response. In my opinion, it h

Re: [PATCH 13/36] fs: introduce new ->get_poll_head and ->poll_mask methods

2018-03-19 Thread Darrick J. Wong
On Mon, Mar 05, 2018 at 01:27:20PM -0800, Christoph Hellwig wrote: > ->get_poll_head returns the waitqueue that the poll operation is going > to sleep on. Note that this means we can only use a single waitqueue > for the poll, unlike some current drivers that use two waitqueues for > different eve

Re: [PATCH] mlx5: Remove call to ida_pre_get

2018-03-19 Thread Saeed Mahameed
On Thu, 2018-03-15 at 18:30 -0700, Matthew Wilcox wrote: > On Thu, Mar 15, 2018 at 11:58:07PM +, Saeed Mahameed wrote: > > On Wed, 2018-03-14 at 19:57 -0700, Matthew Wilcox wrote: > > > From: Matthew Wilcox > > > > > > The mlx5 driver calls ida_pre_get() in a loop for no readily > > > apparen

Re: [PATCH 07/36] aio: add delayed cancel support

2018-03-19 Thread Darrick J. Wong
On Mon, Mar 05, 2018 at 01:27:14PM -0800, Christoph Hellwig wrote: > The upcoming aio poll support would like to be able to complete the > iocb inline from the cancellation context, but that would cause > a lock order reversal. Add support for optionally moving the cancelation > outside the contex

Re: [PATCH v5 0/2] Remove false-positive VLAs when using max()

2018-03-19 Thread Arnd Bergmann
On Tue, Mar 20, 2018 at 7:29 AM, Linus Torvalds wrote: > On Mon, Mar 19, 2018 at 2:43 AM, David Laight wrote: >> >> Is it necessary to have the full checks for old versions of gcc? >> >> Even -Wvla could be predicated on very recent gcc - since we aren't >> worried about whether gcc decides to ge

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

2018-03-19 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 net-next 06/14] net/tls: Add generic NIC offload infrastructure

2018-03-19 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 net-next 00/14] TLS offload, netdev & MLX5 support

2018-03-19 Thread Saeed Mahameed
Hi Dave, The following series from Ilya and Boris provides TLS TX inline crypto offload. Boris says: === This series 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 t

[PATCH v4 05/17] ixgbevf: keep writel() closer to wmb()

2018-03-19 Thread Sinan Kaya
Remove ixgbevf_write_tail() in favor of moving writel() close to wmb(). Signed-off-by: Sinan Kaya Reviewed-by: Alexander Duyck --- drivers/net/ethernet/intel/ixgbevf/ixgbevf.h | 5 - drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c | 4 ++-- 2 files changed, 2 insertions(+), 7 deletio

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

2018-03-19 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 net-next 14/14] MAINTAINERS: Update TLS maintainers

2018-03-19 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 net-next 13/14] MAINTAINERS: Update mlx5 innova driver maintainers

2018-03-19 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 net-next 12/14] net/mlx5e: TLS, Add error statistics

2018-03-19 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 net-next 11/14] net/mlx5e: TLS, Add Innova TLS TX offload data path

2018-03-19 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 net-next 09/14] net/mlx5: Accel, Add TLS tx offload interface

2018-03-19 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 net-next 08/14] net/mlx5e: Move defines out of ipsec code

2018-03-19 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 net-next 01/14] tcp: Add clean acked data hook

2018-03-19 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 net-next 03/14] net: Add Software fallback infrastructure for socket dependent offloads

2018-03-19 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 net-next 07/14] net/tls: Support TLS device offload with IPv6

2018-03-19 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 | 49 - 1 file changed, 48 insertions(+), 1 deletion(-)

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

2018-03-19 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 net-next 02/14] net: Rename and export copy_skb_header

2018-03-19 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 v4 09/17] net: qla3xxx: Eliminate duplicate barriers on weakly-ordered archs

2018-03-19 Thread Sinan Kaya
Code includes wmb() followed by writel(). writel() already has a barrier on some architectures like arm64. This ends up CPU observing two barriers back to back before executing the register write. Since code already has an explicit barrier call, changing writel() to writel_relaxed(). Signed-off-

[PATCH v4 08/17] drivers: net: cxgb: Eliminate duplicate barriers on weakly-ordered archs

2018-03-19 Thread Sinan Kaya
Code includes wmb() followed by writel(). writel() already has a barrier on some architectures like arm64. This ends up CPU observing two barriers back to back before executing the register write. Since code already has an explicit barrier call, changing writel() to writel_relaxed(). Signed-off-

[PATCH v4 03/17] igbvf: eliminate duplicate barriers on weakly-ordered archs

2018-03-19 Thread Sinan Kaya
Code includes wmb() followed by writel(). writel() already has a barrier on some architectures like arm64. This ends up CPU observing two barriers back to back before executing the register write. Since code already has an explicit barrier call, changing writel() to writel_relaxed(). Signed-off-

[PATCH v4 06/17] ixgbevf: eliminate duplicate barriers on weakly-ordered archs

2018-03-19 Thread Sinan Kaya
Code includes wmb() followed by writel() in multiple places. writel() already has a barrier on some architectures like arm64. This ends up CPU observing two barriers back to back before executing the register write. Since code already has an explicit barrier call, changing writel() to writel_rela

[PATCH v4 02/17] ixgbe: eliminate duplicate barriers on weakly-ordered archs

2018-03-19 Thread Sinan Kaya
Code includes wmb() followed by writel() in multiple places. writel() already has a barrier on some architectures like arm64. This ends up CPU observing two barriers back to back before executing the register write. Since code already has an explicit barrier call, changing writel() to writel_rela

[PATCH v4 14/17] net: qlge: Eliminate duplicate barriers on weakly-ordered archs

2018-03-19 Thread Sinan Kaya
Code includes wmb() followed by writel(). writel() already has a barrier on some architectures like arm64. This ends up CPU observing two barriers back to back before executing the register write. Create a new wrapper function with relaxed write operator. Use the new wrapper when a write is follo

[PATCH v4 11/17] bnx2x: Eliminate duplicate barriers on weakly-ordered archs

2018-03-19 Thread Sinan Kaya
Code includes wmb() followed by writel(). writel() already has a barrier on some architectures like arm64. This ends up CPU observing two barriers back to back before executing the register write. Since code already has an explicit barrier call, changing writel() to writel_relaxed(). Signed-off-

[PATCH v4 15/17] bnxt_en: Eliminate duplicate barriers on weakly-ordered archs

2018-03-19 Thread Sinan Kaya
Code includes wmb() followed by writel(). writel() already has a barrier on some architectures like arm64. This ends up CPU observing two barriers back to back before executing the register write. Create a new wrapper function with relaxed write operator. Use the new wrapper when a write is follo

[PATCH v4 10/17] qlcnic: Eliminate duplicate barriers on weakly-ordered archs

2018-03-19 Thread Sinan Kaya
Code includes wmb() followed by writel(). writel() already has a barrier on some architectures like arm64. This ends up CPU observing two barriers back to back before executing the register write. Since code already has an explicit barrier call, changing writel() to writel_relaxed(). Signed-off-

[PATCH v4 12/17] net: cxgb4/cxgb4vf: Eliminate duplicate barriers on weakly-ordered archs

2018-03-19 Thread Sinan Kaya
Code includes wmb() followed by writel(). writel() already has a barrier on some architectures like arm64. This ends up CPU observing two barriers back to back before executing the register write. Create a new wrapper function with relaxed write operator. Use the new wrapper when a write is follo

[PATCH v4 16/17] qed/qede: Eliminate duplicate barriers on weakly-ordered archs

2018-03-19 Thread Sinan Kaya
Code includes wmb() followed by writel(). writel() already has a barrier on some architectures like arm64. This ends up CPU observing two barriers back to back before executing the register write. Create a new wrapper function with relaxed write operator. Use the new wrapper when a write is follo

[PATCH v4 17/17] net: ena: Eliminate duplicate barriers on weakly-ordered archs

2018-03-19 Thread Sinan Kaya
Code includes barrier() followed by writel(). writel() already has a barrier on some architectures like arm64. This ends up CPU observing two barriers back to back before executing the register write. Create a new wrapper function with relaxed write operator. Use the new wrapper when a write is f

[PATCH v4 04/17] igb: eliminate duplicate barriers on weakly-ordered archs

2018-03-19 Thread Sinan Kaya
Code includes wmb() followed by writel(). writel() already has a barrier on some architectures like arm64. This ends up CPU observing two barriers back to back before executing the register write. Since code already has an explicit barrier call, changing writel() to writel_relaxed(). Signed-off-

[PATCH v4 13/17] net: cxgb3: Eliminate duplicate barriers on weakly-ordered archs

2018-03-19 Thread Sinan Kaya
Code includes wmb() followed by writel(). writel() already has a barrier on some architectures like arm64. This ends up CPU observing two barriers back to back before executing the register write. Create a new wrapper function with relaxed write operator. Use the new wrapper when a write is follo

[PATCH v4 01/17] i40e/i40evf: Eliminate duplicate barriers on weakly-ordered archs

2018-03-19 Thread Sinan Kaya
Code includes wmb() followed by writel(). writel() already has a barrier on some architectures like arm64. This ends up CPU observing two barriers back to back before executing the register write. Since code already has an explicit barrier call, changing writel() to writel_relaxed(). Signed-off-

[PATCH v4 07/17] fm10k: Eliminate duplicate barriers on weakly-ordered archs

2018-03-19 Thread Sinan Kaya
Code includes wmb() followed by writel(). writel() already has a barrier on some architectures like arm64. This ends up CPU observing two barriers back to back before executing the register write. Since code already has an explicit barrier call, changing writel() to writel_relaxed(). Signed-off-

[PATCH v4 00/17] netdev: Eliminate duplicate barriers on weakly-ordered archs

2018-03-19 Thread Sinan Kaya
Code includes wmb() followed by writel() in multiple places. writel() already has a barrier on some architectures like arm64. This ends up CPU observing two barriers back to back before executing the register write. Since code already has an explicit barrier call, changing writel() to writel_rela

Re: [PATCH 12/36] fs: add new vfs_poll and file_can_poll helpers

2018-03-19 Thread Darrick J. Wong
On Mon, Mar 05, 2018 at 01:27:19PM -0800, Christoph Hellwig wrote: > These abstract out calls to the poll method in preparation for changes > in how we poll. > > Signed-off-by: Christoph Hellwig > --- > drivers/staging/comedi/drivers/serial2002.c | 4 ++-- > drivers/vfio/virqfd.c

Re: [bpf-next V3 PATCH 00/15] XDP redirect memory return API

2018-03-19 Thread Jason Wang
On 2018年03月19日 18:10, Jesper Dangaard Brouer wrote: On Fri, 16 Mar 2018 17:04:17 +0800 Jason Wang wrote: Looks like the series forget to register memory model for tun and virtio-net. Well, no. It is actually not strictly necessary to invoke xdp_rxq_info_reg_mem_model() because enum MEM_TYP

Re: [bpf-next V2 PATCH 10/15] xdp: rhashtable with allocator ID to pointer mapping

2018-03-19 Thread Jason Wang
On 2018年03月19日 17:48, Jesper Dangaard Brouer wrote: On Fri, 16 Mar 2018 16:45:30 +0800 Jason Wang wrote: On 2018年03月10日 00:07, Jesper Dangaard Brouer wrote: On Fri, 9 Mar 2018 21:07:36 +0800 Jason Wang wrote: Use the IDA infrastructure for getting a cyclic increasing ID number, that is

Re: [PATCH 11/36] fs: update documentation for __poll_t

2018-03-19 Thread Darrick J. Wong
On Mon, Mar 05, 2018 at 01:27:18PM -0800, Christoph Hellwig wrote: No commit message... "Update documentation to match the headers"? --D > Signed-off-by: Christoph Hellwig > --- > Documentation/filesystems/Locking | 2 +- > Documentation/filesystems/vfs.txt | 2 +- > 2 files changed, 2 inserti

Re: [PATCH 10/36] fs: cleanup do_pollfd

2018-03-19 Thread Darrick J. Wong
On Mon, Mar 05, 2018 at 01:27:17PM -0800, Christoph Hellwig wrote: > Use straigline code with failure handling gotos instead of a lot > of nested conditionals. > > Signed-off-by: Christoph Hellwig Looks ok, Reviewed-by: Darrick J. Wong --D > --- > fs/select.c | 48 +++

Re: [PATCH 09/36] fs: unexport poll_schedule_timeout

2018-03-19 Thread Darrick J. Wong
On Mon, Mar 05, 2018 at 01:27:16PM -0800, Christoph Hellwig wrote: > No users outside of select.c. > > Signed-off-by: Christoph Hellwig Looks ok, Reviewed-by: Darrick J. Wong --D > --- > fs/select.c | 3 +-- > include/linux/poll.h | 2 -- > 2 files changed, 1 insertion(+), 4 deletio

Re: [PATCH 08/36] aio: implement io_pgetevents

2018-03-19 Thread Darrick J. Wong
On Mon, Mar 05, 2018 at 01:27:15PM -0800, Christoph Hellwig wrote: > This is the io_getevents equivalent of ppoll/pselect and allows to > properly mix signals and aio completions (especially with IOCB_CMD_POLL) > and atomically executes the following sequence: > > sigset_t origmask; > >

Re: [PATCH bpf] bpf: fix crash due to inode i_op mismatch with clang/llvm

2018-03-19 Thread Linus Torvalds
On Mon, Mar 19, 2018 at 6:50 PM, Linus Torvalds wrote: > > Add it to everything. If it's an invalid optimization, it shouldn't be on. IOW, why isn't this just something like diff --git a/Makefile b/Makefile index d65e2e229017..01abedc2e79f 100644 --- a/Makefile +++ b/Makefile @@ -826,6

Re: [PATCH bpf] bpf: fix crash due to inode i_op mismatch with clang/llvm

2018-03-19 Thread Linus Torvalds
On Mon, Mar 19, 2018 at 6:17 PM, Daniel Borkmann wrote: > > Reason for this miscompilation is that clang has the more aggressive > -fmerge-all-constants enabled by default. In fact, clang source code > has an 'insightful' comment about it in its source code under > lib/AST/ExprConstant.cpp: > >

[PATCH v2 2/3] net: phy: realtek: Use the dummy stubs for MMD register access for rtl8211b

2018-03-19 Thread Kevin Hao
The Ethernet on mpc8315erdb is broken since commit b6b5e8a69118 ("gianfar: Disable EEE autoneg by default"). The reason is that even though the rtl8211b doesn't support the MMD extended registers access, it does return some random values if we trying to access the MMD register via indirect method.

[PATCH v2 3/3] net: phy: micrel: Use the general dummy stubs for MMD register access

2018-03-19 Thread Kevin Hao
The new general dummy stubs for MMD register access were introduced. Use that for the codes reuse. Signed-off-by: Kevin Hao --- drivers/net/phy/micrel.c | 23 ++- 1 file changed, 2 insertions(+), 21 deletions(-) diff --git a/drivers/net/phy/micrel.c b/drivers/net/phy/micrel.

[PATCH v2 1/3] net: phy: Add general dummy stubs for MMD register access

2018-03-19 Thread Kevin Hao
For some phy devices, even though they don't support the MMD extended register access, it does have some side effect if we are trying to read/write the MMD registers via indirect method. So introduce general dummy stubs for MMD register access which these devices can use to avoid such side effect.

[PATCH v2 0/3] net: phy: Add general dummy stubs for MMD register access

2018-03-19 Thread Kevin Hao
v2: As suggested by Andrew: - Add general dummy stubs - Also use that for the micrel phy This patch series fix the Ethernet broken on the mpc8315erdb board introduced by commit b6b5e8a69118 ("gianfar: Disable EEE autoneg by default"). Kevin Hao (3): net: phy: Add general dummy stubs for MMD

[PATCH bpf] bpf: fix crash due to inode i_op mismatch with clang/llvm

2018-03-19 Thread Daniel Borkmann
Prasad reported that he has seen crashes with netd on Android with arm64 in the form of (note, the taint is unrelated): [ 4134.721483] Unable to handle kernel paging request at virtual address 80001 [ 4134.820925] Mem abort info: [ 4134.901283] Exception class = DABT (current EL), IL

Re: [PATCH v2 0/2] net: phy: relax error checking when creating sysfs link netdev->phydev

2018-03-19 Thread David Miller
From: Grygorii Strashko Date: Fri, 16 Mar 2018 17:08:33 -0500 > Some ethernet drivers (like TI CPSW) may connect and manage >1 Net PHYs per > one netdevice, as result such drivers will produce warning during system > boot and fail to connect second phy to netdevice when PHYLIB framework > will tr

Re: [PATCH] net: gemini: fix memory leak

2018-03-19 Thread Linus Walleij
On Mon, Mar 19, 2018 at 7:40 AM, Igor Pylypiv wrote: > cppcheck report: > [drivers/net/ethernet/cortina/gemini.c:543]: (error) Memory leak: skb_tab > > Signed-off-by: Igor Pylypiv Acked-by: Linus Walleij Yours, Linus Walleij

[PATCH bpf-next] bpf: skip unnecessary capability check

2018-03-19 Thread Chenbo Feng
From: Chenbo Feng The current check statement in BPF syscall will do a capability check for CAP_SYS_ADMIN before checking sysctl_unprivileged_bpf_disabled. This code path will trigger unnecessary security hooks on capability checking and cause false alarms on unprivileged process trying to get CA

Re: [PATCH 06/36] aio: delete iocbs from the active_reqs list in kiocb_cancel

2018-03-19 Thread Darrick J. Wong
On Mon, Mar 05, 2018 at 01:27:13PM -0800, Christoph Hellwig wrote: > One we cancel an iocb there is no reason to keep it on the active_reqs > list, given that the list is only used to look for cancelation candidates. > > Signed-off-by: Christoph Hellwig > Acked-by: Jeff Moyer Reviewed-by: Darri

Re: [PATCH 05/36] aio: simplify cancellation

2018-03-19 Thread Darrick J. Wong
On Mon, Mar 05, 2018 at 01:27:12PM -0800, Christoph Hellwig wrote: > With the current aio code there is no need for the magic KIOCB_CANCELLED > value, as a cancelation just kicks the driver to queue the completion > ASAP, with all actual completion handling done in another thread. Given > that both

Re: [PATCH 04/36] aio: sanitize ki_list handling

2018-03-19 Thread Darrick J. Wong
On Mon, Mar 05, 2018 at 01:27:11PM -0800, Christoph Hellwig wrote: > Instead of handcoded non-null checks always initialize ki_list to an > empty list and use list_empty / list_empty_careful on it. While we're > at it also error out on a double call to kiocb_set_cancel_fn instead > of ignoring it.

Re: [PATCH 03/36] aio: refactor read/write iocb setup

2018-03-19 Thread Darrick J. Wong
On Mon, Mar 05, 2018 at 01:27:10PM -0800, Christoph Hellwig wrote: > Don't reference the kiocb structure from the common aio code, and move > any use of it into helper specific to the read/write path. This is in > preparation for aio_poll support that wants to use the space for different > fields.

Re: [PATCH 02/36] aio: remove an outdated comment in aio_complete

2018-03-19 Thread Darrick J. Wong
On Mon, Mar 05, 2018 at 01:27:09PM -0800, Christoph Hellwig wrote: > These days we don't treat sync iocbs special in the aio completion code as > they never use it. Remove the old comment, and move the BUG_ON for a sync > iocb to the top of the function. > > Signed-off-by: Christoph Hellwig > Ac

Re: [PATCH 01/36] aio: don't print the page size at boot time

2018-03-19 Thread Darrick J. Wong
On Mon, Mar 05, 2018 at 01:27:08PM -0800, Christoph Hellwig wrote: > The page size is in no way related to the aio code, and printing it in > the (debug) dmesg at every boot serves no purpose. > > Signed-off-by: Christoph Hellwig > Acked-by: Jeff Moyer Looks ok, Reviewed-by: Darrick J. Wong -

Re: interdependencies with cxgb4 and iw_cxgb4

2018-03-19 Thread David Miller
From: Steve Wise Date: Mon, 19 Mar 2018 14:50:57 -0500 > Let me ask a dumb question:  Why cannot one of the maintaners pull the > commit from the other mainainer's git repo directly?  IE why have this > third trusted/signed git repo that has to be on k.o, from which both > maintainers pull?  If o

Re: [PATCH v5 0/2] Remove false-positive VLAs when using max()

2018-03-19 Thread Linus Torvalds
On Mon, Mar 19, 2018 at 2:43 AM, David Laight wrote: > > Is it necessary to have the full checks for old versions of gcc? > > Even -Wvla could be predicated on very recent gcc - since we aren't > worried about whether gcc decides to generate a vla, but whether > the source requests one. You are c

[PATCH bpf-next] bpf, doc: add description wrt native/bpf clang target and pointer size

2018-03-19 Thread Daniel Borkmann
As this recently came up on netdev [0], lets add it to the BPF devel doc. [0] https://www.spinics.net/lists/netdev/msg489612.html Signed-off-by: Daniel Borkmann --- Documentation/bpf/bpf_devel_QA.txt | 12 1 file changed, 12 insertions(+) diff --git a/Documentation/bpf/bpf_devel

Re: [PATCH net-next v2 2/2] dt: bindings: add new dt entries for brcmfmac

2018-03-19 Thread Arend van Spriel
+ Uffe On 3/19/2018 6:55 PM, Florian Fainelli wrote: On 03/19/2018 07:10 AM, Alexey Roslyakov wrote: Hi Arend, I appreciate your response. In my opinion, it has nothing to do with SDIO host, because it defines "quirks" in the driver itself. It is not clear to me from your patch series whether

Re: [PATCH 11/16] treewide: simplify Kconfig dependencies for removed archs

2018-03-19 Thread Alexandre Belloni
On 14/03/2018 at 15:43:46 +0100, Arnd Bergmann wrote: > A lot of Kconfig symbols have architecture specific dependencies. > In those cases that depend on architectures we have already removed, > they can be omitted. > > Signed-off-by: Arnd Bergmann > --- > block/bounce.c |

Re: NULL pointer dereferences with 4.14.27

2018-03-19 Thread Holger Hoffstätte
(CC: davem, soheil & gregkh) On 03/17/18 20:12, Holger Hoffstätte wrote: > On 03/17/18 19:41, Carlos Carvalho wrote: >> I've put 4.14.27 this morning in this machine and in about 2h it started >> showing null dereferences identical to the following one. There were several >> of >> them, with abo

[PATCH AUTOSEL for 4.9 005/281] x86/asm: Don't use RBP as a temporary register in csum_partial_copy_generic()

2018-03-19 Thread Sasha Levin
From: Josh Poimboeuf [ Upstream commit 42fc6c6cb1662ba2fa727dd01c9473c63be4e3b6 ] Andrey Konovalov reported the following warning while fuzzing the kernel with syzkaller: WARNING: kernel stack regs at 8800686869f8 in a.out:4933 has bad 'bp' value c3fc855a10167ec0 The unwinder dump revea

Re: recursive static routes

2018-03-19 Thread Saku Ytti
Hey, > you want per-packet overhead instead of deferring the overhead event > based updates? network events tend to be much less frequent than > sending/forwarding packets Depending on performance cost and complexity cost of options. -- ++ytti

[PATCH net-next 1/2] net: dsa: mv88e6xxx: Use the DT IRQ trigger mode

2018-03-19 Thread Andrew Lunn
By calling request_threaded_irq() with the flag IRQF_TRIGGER_FALLING we override the trigger mode provided in device tree. And the interrupt is actually active low, which is what all the current device tree descriptions use. Suggested-by: Uwe Kleine-K�nig Signed-off-by: Andrew Lunn --- drivers/

[PATCH net-next 2/2] net: dsa: mv88e6xxx: Call the common IRQ free code

2018-03-19 Thread Andrew Lunn
When free'ing the polled IRQs, call the common irq free code. Otherwise the interrupts are left registered, and when we come to load the driver a second time, we get an Opps. Signed-off-by: Andrew Lunn --- drivers/net/dsa/mv88e6xxx/chip.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dri

[PATCH net-next 0/2] Fixes to allow mv88e6xxx module to be reloaded

2018-03-19 Thread Andrew Lunn
As reported by Uwe Kleine-K�nig, the interrupt trigger is first configured by DT and then reconfigured to edge. This results in a failure on EPROBE_DEFER, or if the module is unloaded and reloaded. A second crash happens on module reload due to a missing call to the common IRQ free code when using

[PATCH v3 iproute2 1/1] tc: fix conversion types when printing actions unsigned values

2018-03-19 Thread Roman Mashak
v3: fixed conversion in connmark missed out in first version v2: fixed coding style Signed-off-by: Roman Mashak --- tc/m_action.c | 2 +- tc/m_connmark.c | 2 +- tc/m_gact.c | 2 +- tc/m_ife.c| 2 +- tc/m_pedit.c | 2 +- tc/m_sample.c | 6 +++--- tc/m_tunnel_ke

Re: [PATCH v2 iproute2 1/1] tc: fix conversion types when printing actions unsigned values

2018-03-19 Thread Roman Mashak
Please disregard this patch, I will send v3. On Mon, Mar 19, 2018 at 2:13 PM, Roman Mashak wrote: > v2: >fixed coding style > > Signed-off-by: Roman Mashak > --- > tc/m_action.c | 2 +- > tc/m_gact.c | 2 +- > tc/m_ife.c| 2 +- > tc/m_pedit.c | 2 +- > tc/m_sample.c

Re: [PATCH net-next 3/4] net: dsa: Plug in PHYLINK support

2018-03-19 Thread Russell King - ARM Linux
On Mon, Mar 19, 2018 at 10:59:55AM -0700, Florian Fainelli wrote: > Hi Andrew, > > On 03/18/2018 12:19 PM, Andrew Lunn wrote: > >> +static int dsa_slave_nway_reset(struct net_device *dev) > >> +{ > >> + struct dsa_port *dp = dsa_slave_to_port(dev); > >> + > >> + return phylink_ethtool_nway_reset

[PATCH 3.18 34/68] MIPS: BPF: Quit clobbering callee saved registers in JIT code.

2018-03-19 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: David Daney [ Upstream commit 1ef0910cfd681f0bd0b81f8809935b2006e9cfb9 ] If bpf_needs_clear_a() returns true, only actually clear it if it is ever used. If it is not used, we don't save and

  1   2   3   4   >