[PATCH] staging: qlge: unmap dma when lock failed

2020-05-16 Thread Xiangyang Zhang
DMA not unmapped when lock failed, this patch fixed it. Signed-off-by: Xiangyang Zhang --- drivers/staging/qlge/qlge_main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/staging/qlge/qlge_main.c b/drivers/staging/qlge/qlge_main.c index a9163fb659d9..402edaeffe12 1

getting bpf_tail_call to work with bpf function calls. Was: [RFC PATCH bpf-next 0/1] bpf, x64: optimize JIT prologue/epilogue generation

2020-05-16 Thread Alexei Starovoitov
On Wed, May 13, 2020 at 01:58:55PM +0200, Maciej Fijalkowski wrote: > > So to me, if we would like to get rid of maxing out stack space, then we > would have to do some dancing for preserving the tail call counter - keep > it in some unused register? Or epilogue would pop it from stack to some > r

unstable xdp tests. Was: [PATCH net-next v4 31/33] bpf: add xdp.frame_sz in bpf_prog_test_run_xdp().

2020-05-16 Thread Alexei Starovoitov
On Thu, May 14, 2020 at 3:51 AM Jesper Dangaard Brouer wrote: > > Update the memory requirements, when adding xdp.frame_sz in BPF test_run > function bpf_prog_test_run_xdp() which e.g. is used by XDP selftests. > > Specifically add the expected reserved tailroom, but also allocated a > larger memo

Re: [PATCH V6 20/20] net: ks8851: Drop define debug and pr_fmt()

2020-05-16 Thread Joe Perches
On Sun, 2020-05-17 at 04:47 +0200, Marek Vasut wrote: > On 5/17/20 4:37 AM, Joe Perches wrote: > > On Sun, 2020-05-17 at 04:28 +0200, Marek Vasut wrote: > > > On 5/17/20 4:01 AM, Joe Perches wrote: > > > > On Sun, 2020-05-17 at 02:33 +0200, Marek Vasut wrote: > > > > > Drop those debug statements f

Re: [PATCH V6 20/20] net: ks8851: Drop define debug and pr_fmt()

2020-05-16 Thread Marek Vasut
On 5/17/20 4:37 AM, Joe Perches wrote: > On Sun, 2020-05-17 at 04:28 +0200, Marek Vasut wrote: >> On 5/17/20 4:01 AM, Joe Perches wrote: >>> On Sun, 2020-05-17 at 02:33 +0200, Marek Vasut wrote: Drop those debug statements from both drivers. They were there since at least 2011 and enabled

Re: [PATCH V6 20/20] net: ks8851: Drop define debug and pr_fmt()

2020-05-16 Thread Joe Perches
On Sun, 2020-05-17 at 04:28 +0200, Marek Vasut wrote: > On 5/17/20 4:01 AM, Joe Perches wrote: > > On Sun, 2020-05-17 at 02:33 +0200, Marek Vasut wrote: > > > Drop those debug statements from both drivers. They were there since > > > at least 2011 and enabled by default, but that's likely wrong. >

Re: [PATCH V6 20/20] net: ks8851: Drop define debug and pr_fmt()

2020-05-16 Thread Marek Vasut
On 5/17/20 4:01 AM, Joe Perches wrote: > On Sun, 2020-05-17 at 02:33 +0200, Marek Vasut wrote: >> Drop those debug statements from both drivers. They were there since >> at least 2011 and enabled by default, but that's likely wrong. > [] >> diff --git a/drivers/net/ethernet/micrel/ks8851_par.c >>

Re: [PATCH V6 00/20] net: ks8851: Unify KS8851 SPI and MLL drivers

2020-05-16 Thread Marek Vasut
On 5/17/20 4:02 AM, David Miller wrote: > From: Marek Vasut > Date: Sun, 17 May 2020 02:33:34 +0200 > >> The KS8851SNL/SNLI and KS8851-16MLL/MLLI/MLLU are very much the same pieces >> of silicon, except the former has an SPI interface, while the later has a >> parallel bus interface. Thus far, Li

Re: [PATCH V6 00/20] net: ks8851: Unify KS8851 SPI and MLL drivers

2020-05-16 Thread David Miller
From: Marek Vasut Date: Sun, 17 May 2020 02:33:34 +0200 > The KS8851SNL/SNLI and KS8851-16MLL/MLLI/MLLU are very much the same pieces > of silicon, except the former has an SPI interface, while the later has a > parallel bus interface. Thus far, Linux has two separate drivers for each > and they

Re: [PATCH V6 20/20] net: ks8851: Drop define debug and pr_fmt()

2020-05-16 Thread Joe Perches
On Sun, 2020-05-17 at 02:33 +0200, Marek Vasut wrote: > Drop those debug statements from both drivers. They were there since > at least 2011 and enabled by default, but that's likely wrong. [] > diff --git a/drivers/net/ethernet/micrel/ks8851_par.c > b/drivers/net/ethernet/micrel/ks8851_par.c [] >

[PATCH] net/tls: fix encryption error checking

2020-05-16 Thread Vadim Fedorenko
tls_push_record can return -EAGAIN because of tcp layer. In that case open_rec is already in the tx_record list and should not be freed. Also the record size can be more than the size requested to write in tls_sw_do_sendpage(). That leads to overflow of copied variable and wrong return code. Fixes

[PATCH] rds: convert get_user_pages() --> pin_user_pages()

2020-05-16 Thread John Hubbard
This code was using get_user_pages_fast(), in a "Case 2" scenario (DMA/RDMA), using the categorization from [1]. That means that it's time to convert the get_user_pages_fast() + put_page() calls to pin_user_pages_fast() + unpin_user_pages() calls. There is some helpful background in [2]: basically

[PATCH V6 15/20] net: ks8851: Permit overridding interrupt enable register

2020-05-16 Thread Marek Vasut
The parallel bus variant does not need to use the TX interrupt at all as it writes the TX FIFO directly with in .ndo_start_xmit, permit the drivers to configure the interrupt enable bits. Reviewed-by: Andrew Lunn Signed-off-by: Marek Vasut Cc: David S. Miller Cc: Lukas Wunner Cc: Petr Stetiar

[PATCH V6 17/20] net: ks8851: Separate SPI operations into separate file

2020-05-16 Thread Marek Vasut
Pull all the SPI bus specific code into a separate file, so that it is not mixed with the common code. Rename ks8851.c to ks8851_common.c. The ks8851_common.c is linked with ks8851_spi.c now, so it can call the accessors in the ks8851_spi.c without any pointer indirection. Signed-off-by: Marek Vas

[PATCH V6 01/20] net: ks8851: Factor out spi->dev in probe()/remove()

2020-05-16 Thread Marek Vasut
Pull out the spi->dev into one common place in the function instead of having it repeated over and over again. This is done in preparation for unifying ks8851 and ks8851-mll drivers. No functional change. Reviewed-by: Andrew Lunn Signed-off-by: Marek Vasut Cc: David S. Miller Cc: Lukas Wunner

[PATCH V6 11/20] net: ks8851: Factor out SKB receive function

2020-05-16 Thread Marek Vasut
Factor out this netif_rx_ni(), so it could be overridden by the parallel bus variant of the KS8851 driver. Signed-off-by: Marek Vasut Cc: David S. Miller Cc: Lukas Wunner Cc: Petr Stetiar Cc: YueHaibing --- V3: New patch V4: No change V5: No change V6: No change --- drivers/net/ethernet/micr

[PATCH V6 05/20] net: ks8851: Use devm_alloc_etherdev()

2020-05-16 Thread Marek Vasut
Use device managed version of alloc_etherdev() to simplify the code. No functional change intended. Reviewed-by: Andrew Lunn Signed-off-by: Marek Vasut Cc: David S. Miller Cc: Lukas Wunner Cc: Petr Stetiar Cc: YueHaibing --- V2: Add RB from Andrew V3: No change V4: No change V5: No change V6

[PATCH V6 00/20] net: ks8851: Unify KS8851 SPI and MLL drivers

2020-05-16 Thread Marek Vasut
The KS8851SNL/SNLI and KS8851-16MLL/MLLI/MLLU are very much the same pieces of silicon, except the former has an SPI interface, while the later has a parallel bus interface. Thus far, Linux has two separate drivers for each and they are diverging considerably. This series unifies them into a singl

[PATCH V6 09/20] net: ks8851: Use 16-bit read of RXFC register

2020-05-16 Thread Marek Vasut
The RXFC register is the only one being read using 8-bit accessors. To make it easier to support the 16-bit accesses used by the parallel bus variant of KS8851, use 16-bit accessor to read RXFC register as well as neighboring RXFCTR register. Remove ks8851_rdreg8() as it is not used anywhere anymo

[PATCH V6 20/20] net: ks8851: Drop define debug and pr_fmt()

2020-05-16 Thread Marek Vasut
Drop those debug statements from both drivers. They were there since at least 2011 and enabled by default, but that's likely wrong. Signed-off-by: Marek Vasut Cc: David S. Miller Cc: Lukas Wunner Cc: Petr Stetiar Cc: YueHaibing --- V6: New patch --- drivers/net/ethernet/micrel/ks8851_par.c |

[PATCH V6 08/20] net: ks8851: Use 16-bit writes to program MAC address

2020-05-16 Thread Marek Vasut
On the SPI variant of KS8851, the MAC address can be programmed with either 8/16/32-bit writes. To make it easier to support the 16-bit parallel option of KS8851 too, switch both the MAC address programming and readout to 16-bit operations. Remove ks8851_wrreg8() as it is not used anywhere anymore

[PATCH V6 02/20] net: ks8851: Rename ndev to netdev in probe

2020-05-16 Thread Marek Vasut
Rename ndev variable to netdev for the sake of consistency. No functional change. Reviewed-by: Andrew Lunn Signed-off-by: Marek Vasut Cc: David S. Miller Cc: Lukas Wunner Cc: Petr Stetiar Cc: YueHaibing --- V2: New patch V3: No change V4: No change V5: No change V6: No change --- drivers/n

[PATCH V6 03/20] net: ks8851: Replace dev_err() with netdev_err() in IRQ handler

2020-05-16 Thread Marek Vasut
Use netdev_err() instead of dev_err() to avoid accessing the spidev->dev in the interrupt handler. This is the only place which uses the spidev in this function, so replace it with netdev_err() to get rid of it. This is done in preparation for unifying the KS8851 SPI and parallel drivers. Reviewed

[PATCH V6 06/20] net: ks8851: Use dev_{get,set}_drvdata()

2020-05-16 Thread Marek Vasut
Replace spi_{get,set}_drvdata() with dev_{get,set}_drvdata(), which works for both SPI and platform drivers. This is done in preparation for unifying the KS8851 SPI and parallel bus drivers. There should be no functional change. Reviewed-by: Andrew Lunn Signed-off-by: Marek Vasut Cc: David S. M

[PATCH V6 12/20] net: ks8851: Split out SPI specific entries in struct ks8851_net

2020-05-16 Thread Marek Vasut
Add a new struct ks8851_net_spi, which embeds the original struct ks8851_net and contains the entries specific only to the SPI variant of KS8851. There should be no functional change. Reviewed-by: Andrew Lunn Signed-off-by: Marek Vasut Cc: David S. Miller Cc: Lukas Wunner Cc: Petr Stetiar Cc

[PATCH V6 14/20] net: ks8851: Factor out TX work flush function

2020-05-16 Thread Marek Vasut
While the SPI version of the KS8851 requires a TX worker thread to pump data via SPI, the parallel bus version can write data into the TX FIFO directly in .ndo_start_xmit, as the parallel bus access is much faster and does not sleep. Factor out this TX work flush part, so it can be overridden by th

[PATCH V6 04/20] net: ks8851: Pass device node into ks8851_init_mac()

2020-05-16 Thread Marek Vasut
Since the driver probe function already has a struct device *dev pointer and can easily derive of_node pointer from it, pass the of_node pointer as a parameter to ks8851_init_mac() to avoid fishing it out from ks->spidev. This is the only reference to spidev in the function, so get rid of it. This

[PATCH V6 10/20] net: ks8851: Factor out bus lock handling

2020-05-16 Thread Marek Vasut
Pull out bus access locking code into separate functions, this is done in preparation for unifying the driver with the parallel bus one. The parallel bus driver does not need heavy mutex locking of the bus and works better with spinlocks, hence prepare these locking functions to be overridden then.

[PATCH V6 18/20] net: ks8851: Implement Parallel bus operations

2020-05-16 Thread Marek Vasut
Implement accessors for KS8851-16MLL/MLLI/MLLU parallel bus variant of the KS8851. This is based off the ks8851_mll.c , which is a driver for exactly the same hardware, however the ks8851.c code is much higher quality. Hence, this patch pulls out the relevant information from the ks8851_mll.c on ho

[PATCH V6 13/20] net: ks8851: Split out SPI specific code from probe() and remove()

2020-05-16 Thread Marek Vasut
Factor out common code into ks8851_probe_common() and ks8851_remove_common() to permit both SPI and parallel bus driver variants to use the common code path for both probing and removal. There should be no functional change. Reviewed-by: Andrew Lunn Signed-off-by: Marek Vasut Cc: David S. Mille

[PATCH V6 07/20] net: ks8851: Remove ks8851_rdreg32()

2020-05-16 Thread Marek Vasut
The ks8851_rdreg32() is used only in one place, to read two registers using a single read. To make it easier to support 16-bit accesses via parallel bus later on, replace this single read with two 16-bit reads from each of the registers and drop the ks8851_rdreg32() altogether. If this has noticea

[PATCH V6 16/20] net: ks8851: Implement register, FIFO, lock accessor callbacks

2020-05-16 Thread Marek Vasut
The register and FIFO accessors are bus specific, so is locking. Implement callbacks so that each variant of the KS8851 can implement matching accessors and locking, and use the rest of the common code. Reviewed-by: Andrew Lunn Signed-off-by: Marek Vasut Cc: David S. Miller Cc: Lukas Wunner Cc

[PATCH V6 19/20] net: ks8851: Remove ks8851_mll.c

2020-05-16 Thread Marek Vasut
The ks8851_mll.c is replaced by ks8851_par.c, which is using common code from ks8851.c, just like ks8851_spi.c . Remove this old ad-hoc driver. Signed-off-by: Marek Vasut Cc: David S. Miller Cc: Lukas Wunner Cc: Petr Stetiar Cc: YueHaibing --- V2: No change V3: No change V4: No change V5: No

Re: [PATCH net-next 0/2] net: ipa: sc7180 suspend/resume

2020-05-16 Thread David Miller
From: Alex Elder Date: Fri, 15 May 2020 15:07:29 -0500 > This series permits suspend/resume to work for the IPA driver > on the Qualcomm SC7180 SoC. The IPA version on this SoC requires > interrupts to be enabled when the suspend and resume callbacks are > made, and the first patch moves away fr

Re: [PATCH net-next 0/6] mlxsw: Reorganize trap data

2020-05-16 Thread David Miller
From: Ido Schimmel Date: Sun, 17 May 2020 01:43:04 +0300 > From: Ido Schimmel > > This patch set does not include any functional changes. It merely > reworks the internal storage of traps, trap groups and trap policers in > mlxsw to each use a single array. > > These changes allow us to get ri

Re: [PATCH] net/packet: simply allocations in alloc_one_pg_vec_page

2020-05-16 Thread David Miller
From: Shakeel Butt Date: Sat, 16 May 2020 15:35:46 -0700 > So, my argument is if non-zero order vzalloc has failed (allocations > internal to vzalloc, including virtual mapping allocation and page > table allocations, are order 0 and use GFP_KERNEL i.e. triggering > reclaim and oom-killer) then t

Re: [PATCH AUTOSEL 5.4 26/35] SUNRPC: defer slow parts of rpc_free_client() to a workqueue.

2020-05-16 Thread Sasha Levin
On Fri, May 08, 2020 at 07:18:53AM +1000, NeilBrown wrote: On Thu, May 07 2020, Sasha Levin wrote: From: NeilBrown [ Upstream commit 7c4310ff56422ea43418305d22bbc5fe19150ec4 ] This one is buggy - it introduces a use-after-free. Best delay it for now. I've dropped it, thanks! -- Thanks,

Re: [PATCH] net: mscc: ocelot: replace readx_poll_timeout with readx_poll_timeout_atomic

2020-05-16 Thread Vladimir Oltean
On Sat, 16 May 2020 at 23:54, David Miller wrote: > > From: Xulin Sun > Date: Fri, 15 May 2020 11:18:13 +0800 > > > BUG: sleeping function called from invalid context at > > drivers/net/ethernet/mscc/ocelot.c:59 > > in_atomic(): 1, irqs_disabled(): 0, pid: 3778, name: ifconfig > > INFO: lockdep

[PATCH net-next 4/6] mlxsw: spectrum_trap: Store all trap data in one array

2020-05-16 Thread Ido Schimmel
From: Ido Schimmel Each trap registered with devlink is mapped to one or more Rx listeners. These listeners allow the switch driver (e.g., mlxsw_spectrum) to register a function that is called when a packet is received (trapped) for a specific reason. Currently, three arrays are used to describe

[PATCH net-next 3/6] mlxsw: spectrum_trap: Store all trap group data in one array

2020-05-16 Thread Ido Schimmel
From: Ido Schimmel Use one array to store all the information about all the trap groups instead of hard coding it in code. This will be used in future patches to disable certain functionality (e.g., policer binding) on a trap group basis. Signed-off-by: Ido Schimmel Reviewed-by: Jiri Pirko ---

[PATCH net-next 5/6] selftests: devlink_lib: Remove double blank line

2020-05-16 Thread Ido Schimmel
From: Ido Schimmel One blank line is enough. Signed-off-by: Ido Schimmel Reviewed-by: Jiri Pirko --- tools/testing/selftests/net/forwarding/devlink_lib.sh | 1 - 1 file changed, 1 deletion(-) diff --git a/tools/testing/selftests/net/forwarding/devlink_lib.sh b/tools/testing/selftests/net/fo

[PATCH net-next 6/6] selftests: mlxsw: Do not hard code trap group name

2020-05-16 Thread Ido Schimmel
From: Ido Schimmel It can be derived dynamically from the trap's name, so drop it. Signed-off-by: Ido Schimmel Reviewed-by: Jiri Pirko --- .../net/mlxsw/devlink_trap_acl_drops.sh | 4 +-- .../net/mlxsw/devlink_trap_l2_drops.sh| 33 +++-- .../net/mlxsw/devlink_trap_l

[PATCH net-next 1/6] mlxsw: spectrum_trap: Move struct definition out of header file

2020-05-16 Thread Ido Schimmel
From: Ido Schimmel 'struct mlxsw_sp_trap_policer_item' is only used in one file, so move it there. Signed-off-by: Ido Schimmel Reviewed-by: Jiri Pirko --- drivers/net/ethernet/mellanox/mlxsw/spectrum_trap.c | 6 ++ drivers/net/ethernet/mellanox/mlxsw/spectrum_trap.h | 6 -- 2 files ch

[PATCH net-next 2/6] mlxsw: spectrum_trap: Store all trap policer data in one array

2020-05-16 Thread Ido Schimmel
From: Ido Schimmel Instead of maintaining an array of policers and a linked list, only maintain an array. Signed-off-by: Ido Schimmel Reviewed-by: Jiri Pirko --- .../ethernet/mellanox/mlxsw/spectrum_trap.c | 148 +++--- .../ethernet/mellanox/mlxsw/spectrum_trap.h | 3 +- 2 f

[PATCH net-next 0/6] mlxsw: Reorganize trap data

2020-05-16 Thread Ido Schimmel
From: Ido Schimmel This patch set does not include any functional changes. It merely reworks the internal storage of traps, trap groups and trap policers in mlxsw to each use a single array. These changes allow us to get rid of the multiple arrays we currently have for traps, which make the trap

Re: [PATCH net-next] r8169: remove remaining call to mdiobus_unregister

2020-05-16 Thread David Miller
From: Heiner Kallweit Date: Sun, 17 May 2020 00:05:08 +0200 > After having switched to devm_mdiobus_register() also this remaining > call to mdiobus_unregister() can be removed. > > Signed-off-by: Heiner Kallweit Applied, thanks.

Re: [next-queue RFC 0/4] ethtool: Add support for frame preemption

2020-05-16 Thread David Miller
From: Vladimir Oltean Date: Sun, 17 May 2020 00:03:39 +0300 > As to why this doesn't go to tc but to ethtool: why would it go to tc? Maybe you can't %100 duplicate the on-the-wire special format and whatever, but the queueing behavior ABSOLUTELY you can emulate in software. And then you have th

Re: [PATCH net 1/1] net: ipa: don't be a hog in gsi_channel_poll()

2020-05-16 Thread David Miller
From: Alex Elder Date: Fri, 15 May 2020 14:52:03 -0500 > The iteration count value used in gsi_channel_poll() is intended to > limit poll iterations to the budget supplied as an argument. But > it's never updated. > > Fix this bug by incrementing the count each time through the loop. > > Repor

[PATCH net-next] r8169: remove remaining call to mdiobus_unregister

2020-05-16 Thread Heiner Kallweit
After having switched to devm_mdiobus_register() also this remaining call to mdiobus_unregister() can be removed. Signed-off-by: Heiner Kallweit --- drivers/net/ethernet/realtek/r8169_main.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/net/ethernet/realtek/r8169_main.c b/drivers/n

Re: KASAN: use-after-free Write in hci_sock_release

2020-05-16 Thread syzbot
syzbot suspects this bug was fixed by commit: commit f1e67e355c2aafeddf1eac31335709236996d2fe Author: Thomas Gleixner Date: Mon Nov 18 13:28:24 2019 + fs/buffer: Make BH_Uptodate_Lock bit_spin_lock a regular spinlock_t bisection log: https://syzkaller.appspot.com/x/bisect.txt?x=1761c

Re: [PATCH net-next 0/3] ethtool: set_channels: add a few more checks

2020-05-16 Thread Michal Kubecek
On Sat, May 16, 2020 at 01:56:58PM -0700, David Miller wrote: > From: Jakub Kicinski > Date: Fri, 15 May 2020 12:48:59 -0700 > > > There seems to be a few more things we can check in the core before > > we call drivers' ethtool_ops->set_channels. Adding the checks to > > the core simplifies the d

Re: [next-queue RFC 0/4] ethtool: Add support for frame preemption

2020-05-16 Thread Vladimir Oltean
Hi David, On Sat, 16 May 2020 at 23:39, David Miller wrote: > > From: Vinicius Costa Gomes > Date: Fri, 15 May 2020 18:29:44 -0700 > > > This series adds support for configuring frame preemption, as defined > > by IEEE 802.1Q-2018 (previously IEEE 802.1Qbu) and IEEE 802.3br. > > > > Frame preemp

Re: [PATCH net-next 0/3] ethtool: set_channels: add a few more checks

2020-05-16 Thread David Miller
From: Jakub Kicinski Date: Fri, 15 May 2020 12:48:59 -0700 > There seems to be a few more things we can check in the core before > we call drivers' ethtool_ops->set_channels. Adding the checks to > the core simplifies the drivers. This set only includes changes > to the NFP driver as an example.

Re: [PATCH 4/4] ipv6: symbol_get to access a sit symbol

2020-05-16 Thread David Miller
From: Christoph Hellwig Date: Fri, 15 May 2020 08:33:24 +0200 > My initial plan was to add a ->tunnel_ctl method to the net_device_ops, > and lift the copy_{to,from}_user for SIOCADDTUNNEL, SIOCCHGTUNNEL, > SIOCDELTUNNEL and maybe SIOCGETTUNNEL to net/socket.c. But that turned > out to have two

Re: [PATCH] net: mscc: ocelot: replace readx_poll_timeout with readx_poll_timeout_atomic

2020-05-16 Thread David Miller
From: Xulin Sun Date: Fri, 15 May 2020 11:18:13 +0800 > BUG: sleeping function called from invalid context at > drivers/net/ethernet/mscc/ocelot.c:59 > in_atomic(): 1, irqs_disabled(): 0, pid: 3778, name: ifconfig > INFO: lockdep is turned off. > Preemption disabled at: > [] dev_set_rx_mode+0x24

Re: [PATCH net-next] mptcp: Use 32-bit DATA_ACK when possible

2020-05-16 Thread David Miller
From: Christoph Paasch Date: Thu, 14 May 2020 08:53:03 -0700 > RFC8684 allows to send 32-bit DATA_ACKs as long as the peer is not > sending 64-bit data-sequence numbers. The 64-bit DSN is only there for > extreme scenarios when a very high throughput subflow is combined with a > long-RTT subflow

Re: [PATCH REPOST] net: dsa: mt7530: fix roaming from DSA user ports

2020-05-16 Thread David Miller
From: DENG Qingfang Date: Wed, 13 May 2020 23:10:16 +0800 > When a client moves from a DSA user port to a software port in a bridge, > it cannot reach any other clients that connected to the DSA user ports. > That is because SA learning on the CPU port is disabled, so the switch > ignores the cli

Re: [PATCH net-next] netns: enable to inherit devconf from current netns

2020-05-16 Thread David Miller
From: Nicolas Dichtel Date: Wed, 13 May 2020 15:58:43 +0200 > The goal is to be able to inherit the initial devconf parameters from the > current netns, ie the netns where this new netns has been created. > > This is useful in a containers environment where /proc/sys is read only. > For example,

Re: [PATCH net v2] ipv6: Fix suspicious RCU usage warning in ip6mr

2020-05-16 Thread David Miller
From: madhuparnabhowmi...@gmail.com Date: Sat, 16 May 2020 13:15:15 +0530 > From: Madhuparna Bhowmik > > This patch fixes the following warning: > > = > WARNING: suspicious RCU usage > 5.7.0-rc4-next-20200507-syzkaller #0 Not tainted > - >

Re: [PATCH] net/packet: simply allocations in alloc_one_pg_vec_page

2020-05-16 Thread David Miller
From: Shakeel Butt Date: Fri, 15 May 2020 19:17:36 -0700 > and thus there is no need to have any fallback after vzalloc. This statement is false. The virtual mapping allocation or the page table allocations can fail. A fallback is therefore indeed necessary.

Re: [next-queue RFC 0/4] ethtool: Add support for frame preemption

2020-05-16 Thread David Miller
From: Vinicius Costa Gomes Date: Fri, 15 May 2020 18:29:44 -0700 > This series adds support for configuring frame preemption, as defined > by IEEE 802.1Q-2018 (previously IEEE 802.1Qbu) and IEEE 802.3br. > > Frame preemption allows a packet from a higher priority queue marked > as "express" to p

Re: [PATCH net-next v1] hinic: add set_channels ethtool_ops support

2020-05-16 Thread David Miller
From: Luo bin Date: Fri, 15 May 2020 19:42:12 + > add support to change TX/RX queue number with ethtool -L > > Signed-off-by: Luo bin I don't think you are properly following the semantics of this ethtool command with your changes. In fact, you are breaking the hinic_get_channels() functi

Re: [PATCH net-next] hinic: add support to set and get pause param

2020-05-16 Thread David Miller
From: Luo bin Date: Sat, 16 May 2020 02:00:30 + > add support to set pause param with ethtool -A and get pause > param with ethtool -a. Also remove set_link_ksettings ops for VF. > > Signed-off-by: Luo bin Why are you using a semaphore and not a plain mutex. Semaphores should be used as a

[PATCH] lan743x: Added fixed link support

2020-05-16 Thread Roelof Berg
Microchip lan7431 is frequently connected to a phy. However, it can also be directly connected to a MII remote peer without any phy in between. For supporting such a phyless hardware setup in Linux we added the capability to the driver to understand the fixed-link and the phy-connection-type entrie

Re: [Patch net-next v2 1/2] net: partially revert dynamic lockdep key changes

2020-05-16 Thread Vladimir Oltean
Hi Taehee, On Sat, 16 May 2020 at 18:22, Taehee Yoo wrote: > > On Thu, 14 May 2020 at 00:56, Vladimir Oltean wrote: > > > > Hi Cong, Taehee, > > > > Hi Vladimir! > Sorry for the late reply. > > ... > > > I have a platform with the following layout: > > > > Regular NIC > >| > >

Re: [Ocfs2-devel] [PATCH 27/33] sctp: export sctp_setsockopt_bindx

2020-05-16 Thread Matthew Wilcox
On Sat, May 16, 2020 at 03:11:40PM +, David Laight wrote: > From: David Howells > > Sent: 15 May 2020 16:20 > > Christoph Hellwig wrote: > > > > > > The advantage on using kernel_setsockopt here is that sctp module will > > > > only be loaded if dlm actually creates a SCTP socket. With this

Re: [Patch net-next v2 1/2] net: partially revert dynamic lockdep key changes

2020-05-16 Thread Taehee Yoo
On Thu, 14 May 2020 at 00:56, Vladimir Oltean wrote: > > Hi Cong, Taehee, > Hi Vladimir! Sorry for the late reply. ... > I have a platform with the following layout: > > Regular NIC >| >+> DSA master for switch port >| >+> DSA master

RE: [PATCH 27/33] sctp: export sctp_setsockopt_bindx

2020-05-16 Thread David Laight
From: Christoph Hellwig > Sent: 15 May 2020 16:25 > On Fri, May 15, 2020 at 04:20:02PM +0100, David Howells wrote: > > Christoph Hellwig wrote: > > > > > > The advantage on using kernel_setsockopt here is that sctp module will > > > > only be loaded if dlm actually creates a SCTP socket. With thi

Re: [PATCH net-next] hinic: add support to set and get pause param

2020-05-16 Thread Andrew Lunn
On Sat, May 16, 2020 at 02:00:30AM +, Luo bin wrote: > +static int hinic_set_pauseparam(struct net_device *netdev, > + struct ethtool_pauseparam *pause) > +{ > + struct hinic_dev *nic_dev = netdev_priv(netdev); > + struct hinic_pause_config pause_info = {0};

RE: [PATCH 27/33] sctp: export sctp_setsockopt_bindx

2020-05-16 Thread David Laight
From: David Howells > Sent: 15 May 2020 16:20 > Christoph Hellwig wrote: > > > > The advantage on using kernel_setsockopt here is that sctp module will > > > only be loaded if dlm actually creates a SCTP socket. With this > > > change, sctp will be loaded on setups that may not be actually using

RE: move the SIOCDELRT and SIOCADDRT compat_ioctl handlers v2

2020-05-16 Thread David Laight
From: Christoph Hellwig > Sent: 15 May 2020 14:19 > > this series moves the compat_ioctl handlers into the protocol handlers, > avoiding the need to override the address space limited as in the current > handler. Is it worth moving the user copies for the main ioctl buffer into the sys_ioctl() ent

Re: [PATCH v2 12/15] ath10k: use new module_firmware_crashed()

2020-05-16 Thread Johannes Berg
On Sat, 2020-05-16 at 15:24 +0200, Johannes Berg wrote: > Instead of the kernel taint, IMHO you should provide an annotation in > sysfs (or somewhere else) for the *struct device* that had its firmware > crash. Or maybe, if it's too complex to walk the entire hierarchy > checking for that, have a

Re: [PATCH v2] bnxt_en: use new module_firmware_crashed()

2020-05-16 Thread kbuild test robot
use '--base' option to specify the base tree in git format-patch, please see https://stackoverflow.com/a/37406982] url: https://github.com/0day-ci/linux/commits/Vasundhara-Volam/bnxt_en-use-new-module_firmware_crashed/20200516-163022 base: https://git.kernel.org/pub/scm/linux/

Re: [PATCH v2] Implement close-on-fork

2020-05-16 Thread Christian Brauner
On Fri, May 15, 2020 at 08:57:30AM -0700, Matthew Wilcox wrote: > On Fri, May 15, 2020 at 10:23:17AM -0500, Nate Karstens wrote: > > Series of 4 patches to implement close-on-fork. Tests have been > > published to https://github.com/nkarstens/ltp/tree/close-on-fork > > and cover close-on-fork funct

Re: [PATCH v2 12/15] ath10k: use new module_firmware_crashed()

2020-05-16 Thread Johannes Berg
On Fri, 2020-05-15 at 21:28 +, Luis Chamberlain wrote:> module_firmware_crashed You didn't CC me or the wireless list on the rest of the patches, so I'm replying to a random one, but ... What is the point here? This should in no way affect the integrity of the system/kernel, for most device

Re: [PATCH v2] bnxt_en: use new module_firmware_crashed()

2020-05-16 Thread kbuild test robot
system. BTW, we also suggest to use '--base' option to specify the base tree in git format-patch, please see https://stackoverflow.com/a/37406982] url: https://github.com/0day-ci/linux/commits/Vasundhara-Volam/bnxt_en-use-new-module_firmware_crashed/20200516-163022 base: https://git.

[PATCH net-next] hinic: add support to set and get pause param

2020-05-16 Thread Luo bin
add support to set pause param with ethtool -A and get pause param with ethtool -a. Also remove set_link_ksettings ops for VF. Signed-off-by: Luo bin --- .../net/ethernet/huawei/hinic/hinic_ethtool.c | 100 +- .../net/ethernet/huawei/hinic/hinic_hw_dev.c | 2 + .../net/etherne

Re: [next-queue RFC 0/4] ethtool: Add support for frame preemption

2020-05-16 Thread Michal Kubecek
On Fri, May 15, 2020 at 06:29:44PM -0700, Vinicius Costa Gomes wrote: > Hi, > > This series adds support for configuring frame preemption, as defined > by IEEE 802.1Q-2018 (previously IEEE 802.1Qbu) and IEEE 802.3br. > > Frame preemption allows a packet from a higher priority queue marked > as "e

[PATCH net-next 7/7] net: allow __skb_ext_alloc to sleep

2020-05-16 Thread Florian Westphal
mptcp calls this from the transmit side, from process context. Allow a sleeping allocation instead of unconditional GFP_ATOMIC. Acked-by: Paolo Abeni Signed-off-by: Florian Westphal --- include/linux/skbuff.h | 2 +- net/core/skbuff.c | 8 +--- net/mptcp/protocol.c | 4 +++- 3 files

[PATCH net-next 6/7] mptcp: remove inner wait loop from mptcp_sendmsg_frag

2020-05-16 Thread Florian Westphal
previous patches made sure we only call into this function when these prerequisites are met, so no need to wait on the subflow socket anymore. Closes: https://github.com/multipath-tcp/mptcp_net-next/issues/7 Acked-by: Paolo Abeni Signed-off-by: Florian Westphal --- net/mptcp/protocol.c | 14 ---

[PATCH net-next 5/7] mptcp: fill skb page frag cache outside of mptcp_sendmsg_frag

2020-05-16 Thread Florian Westphal
The mptcp_sendmsg_frag helper contains a loop that will wait on the subflow sk. It seems preferrable to only wait in mptcp_sendmsg() when blocking io is requested. mptcp_sendmsg already has such a wait loop that is used when no subflow socket is available for transmission. This is another prepar

[PATCH net-next 4/7] mptcp: fill skb extension cache outside of mptcp_sendmsg_frag

2020-05-16 Thread Florian Westphal
The mptcp_sendmsg_frag helper contains a loop that will wait on the subflow sk. It seems preferrable to only wait in mptcp_sendmsg() when blocking io is requested. mptcp_sendmsg already has such a wait loop that is used when no subflow socket is available for transmission. This is a preparation

[PATCH net-next 1/7] mptcp: move common nospace-pattern to a helper

2020-05-16 Thread Florian Westphal
Paolo noticed that ssk_check_wmem() has same pattern, so add/use common helper for both places. Suggested-by: Paolo Abeni Signed-off-by: Florian Westphal --- net/mptcp/protocol.c | 27 +-- 1 file changed, 13 insertions(+), 14 deletions(-) diff --git a/net/mptcp/protocol

[PATCH net-next 2/7] mptcp: break and restart in case mptcp sndbuf is full

2020-05-16 Thread Florian Westphal
Its not enough to check for available tcp send space. We also hold on to transmitted data for mptcp-level retransmits. Right now we will send more and more data if the peer can ack data at the tcp level fast enough, since that frees up tcp send buffer space. But we also need to check that data wa

[PATCH net-next 3/7] mptcp: avoid blocking in tcp_sendpages

2020-05-16 Thread Florian Westphal
The transmit loop continues to xmit new data until an error is returned or all data was transmitted. For the blocking i/o case, this means that tcp_sendpages() may block on the subflow until more space becomes available, i.e. we end up sleeping with the mptcp socket lock held. Instead we should c

[PATCH net-next 0/7] mptcp: do not block on subflow socket

2020-05-16 Thread Florian Westphal
This series reworks mptcp_sendmsg logic to avoid blocking on the subflow socket. It does so by removing the wait loop from mptcp_sendmsg_frag helper. In order to do that, it moves prerequisites that are currently handled in mptcp_sendmsg_frag (and cause it to wait until they are met, e.g. frag ca

[PATCH v2] bnxt_en: use new module_firmware_crashed()

2020-05-16 Thread Vasundhara Volam
This makes use of the new module_firmware_crashed() to help annotate when firmware for device drivers crash. When firmware crashes devices can sometimes become unresponsive, and recovery sometimes requires a driver unload / reload and in the worst cases a reboot. Using a taint flag allows us to an

RE: [PATCH v2 net-next 0/7] dpaa2-eth: add support for Rx traffic classes

2020-05-16 Thread Ioana Ciornei
> Subject: Re: [PATCH v2 net-next 0/7] dpaa2-eth: add support for Rx traffic > classes > > On Fri, 15 May 2020 20:48:27 + Ioana Ciornei wrote: > > > > There is no input taken from the user at the moment. The traffic > > > > class id is statically selected based on the VLAN PCP field. The > >

RE: [EXT] [PATCH] mwifiex: Fix memory corruption in dump_station

2020-05-16 Thread Ganapathi Bhat
Hi Pali, > The mwifiex_cfg80211_dump_station() uses static variable for iterating over > a linked list of all associated stations (when the driver is in UAP role). > This has > a race condition if .dump_station is called in parallel for multiple > interfaces. > This corruption can be triggered b

Re: [PATCH] bnxt_en: use new module_firmware_crashed()

2020-05-16 Thread kbuild test robot
use '--base' option to specify the base tree in git format-patch, please see https://stackoverflow.com/a/37406982] url: https://github.com/0day-ci/linux/commits/Vasundhara-Volam/bnxt_en-use-new-module_firmware_crashed/20200516-135339 base: https://git.kernel.org/pub/scm/linux/

Re: [PATCH] security: fix the default value of secid_to_secctx hook

2020-05-16 Thread Arnd Bergmann
On Sat, May 16, 2020 at 1:29 AM Alexei Starovoitov wrote: > > On Thu, May 14, 2020 at 12:47 PM Alexei Starovoitov > wrote: > > > > On Thu, May 14, 2020 at 12:43 PM James Morris > > wrote: > > > > > > On Wed, 13 May 2020, Alexei Starovoitov wrote: > > > > > > > James, > > > > > > > > since you to

Re: [PATCH] Fix suspicious RCU usage warning

2020-05-16 Thread Madhuparna Bhowmik
On Thu, May 14, 2020 at 12:50:11PM -0700, David Miller wrote: > From: Madhuparna Bhowmik > Date: Thu, 14 May 2020 12:34:09 +0530 > > > Sorry for this malformed patch, I have sent a patch with all these > > corrections. > > It still needs more work, see Jakub's feedback. > Yes, I have sent the v2

[PATCH net v2] ipv6: Fix suspicious RCU usage warning in ip6mr

2020-05-16 Thread madhuparnabhowmik10
From: Madhuparna Bhowmik This patch fixes the following warning: = WARNING: suspicious RCU usage 5.7.0-rc4-next-20200507-syzkaller #0 Not tainted - net/ipv6/ip6mr.c:124 RCU-list traversed in non-reader section!! ipmr_new_table() returns an