Re: INFO: rcu detected stall in sock_close (3)

2020-07-20 Thread syzbot
syzbot has bisected this issue to: commit 5e9eeccc58f3e6bcc99b929670665d2ce047e9c9 Author: Tuong Lien Date: Wed Jun 3 05:06:01 2020 + tipc: fix NULL pointer dereference in streaming bisection log: https://syzkaller.appspot.com/x/bisect.txt?x=16c5517d10 start commit: 7cc2a8ea Me

Re: [PATCH net-next v2] net: ena: Fix using plain integer as NULL pointer in ena_init_napi_in_range

2020-07-20 Thread wanghai (M)
在 2020/7/20 11:15, Joe Perches 写道: On Mon, 2020-07-20 at 10:53 +0800, Wang Hai wrote: Fix sparse build warning: drivers/net/ethernet/amazon/ena/ena_netdev.c:2193:34: warning: Using plain integer as NULL pointer [] diff --git a/drivers/net/ethernet/amazon/ena/ena_netdev.c b/drivers/net/et

[PATCH v2 net-next] net: hyperv: Add attributes to show TX indirection table

2020-07-20 Thread Chi Song
An imbalanced TX indirection table causes netvsc to have low performance. This table is created and managed during runtime. To help better diagnose performance issues caused by imbalanced tables, add device attributes to show the content of TX indirection tables. Signed-off-by: Chi Song --- v2: r

[PATCH v3 net-next] net: hyperv: Add attributes to show TX indirection table

2020-07-20 Thread Chi Song
An imbalanced TX indirection table causes netvsc to have low performance. This table is created and managed during runtime. To help better diagnose performance issues caused by imbalanced tables, add device attributes to show the content of TX indirection tables. Signed-off-by: Chi Song --- v2: r

[PATCH net] net: bcmgenet: fix error returns in bcmgenet_probe()

2020-07-20 Thread Zhang Changzhong
The driver forgets to call clk_disable_unprepare() in error path after a success calling for clk_prepare_enable(). Fix to goto err_clk_disable if clk_prepare_enable() is successful. Fixes: 99d55638d4b0 ("net: bcmgenet: enable NETIF_F_HIGHDMA flag") Signed-off-by: Zhang Changzhong --- drivers/ne

Re: [Intel-wired-lan] [PATCH 1/2] xdp: i40e: ixgbe: ixgbevf: not flip rx buffer for copy mode xdp

2020-07-20 Thread Magnus Karlsson
On Fri, Jul 17, 2020 at 8:24 AM Li RongQing wrote: > > i40e/ixgbe/ixgbevf_rx_buffer_flip in copy mode xdp can lead to > data corruption, like the following flow: > >1. first skb is not for xsk, and forwarded to another device > or socket queue >2. seconds skb is for xsk, copy data to

[patch net-next] sched: sch_api: add missing rcu read lock to silence the warning

2020-07-20 Thread Jiri Pirko
From: Jiri Pirko In case the qdisc_match_from_root function() is called from non-rcu path with rtnl mutex held, a suspiciout rcu usage warning appears: [ 241.504354] = [ 241.504358] WARNING: suspicious RCU usage [ 241.504366] 5.8.0-rc4-custom-01521-g72a7c7d549c3 #3

[PATCH net] net: bcmgenet: fix error returns in bcmgenet_probe()

2020-07-20 Thread Zhang Changzhong
The driver forgets to call clk_disable_unprepare() in error path after a success calling for clk_prepare_enable(). Fix to goto err_clk_disable if clk_prepare_enable() is successful. Fixes: c80d36ff63a5 ("net: bcmgenet: Use devm_clk_get_optional() to get the clocks") Signed-off-by: Zhang Changzho

Re: [PATCH for v5.9] net: ieee802154: adf7242: Replace HTTP links with HTTPS ones

2020-07-20 Thread Stefan Schmidt
Hello. On 19.07.20 13:31, Alexander A. Klimov wrote: Rationale: Reduces attack surface on kernel devs opening the links for MITM as HTTPS traffic is much harder to manipulate. Deterministic algorithm: For each file: If not .svg: For each line: If doesn't contain `\bxmlns\b`:

Re: [PATCH V2 2/6] kvm: detect assigned device via irqbypass manager

2020-07-20 Thread Zhu, Lingshan
On 7/17/2020 12:01 PM, Jason Wang wrote: On 2020/7/16 下午7:23, Zhu Lingshan wrote: vDPA devices has dedicated backed hardware like passthrough-ed devices. Then it is possible to setup irq offloading to vCPU for vDPA devices. Thus this patch tries to manipulated assigned device counters via irq

Re: [PATCH V2 1/6] vhost: introduce vhost_call_ctx

2020-07-20 Thread Zhu, Lingshan
On 7/17/2020 11:32 AM, Jason Wang wrote: On 2020/7/16 下午7:23, Zhu Lingshan wrote: This commit introduces struct vhost_call_ctx which replaced raw struct eventfd_ctx *call_ctx in struct vhost_virtqueue. Besides eventfd_ctx, it contains a spin lock and an irq_bypass_producer in its structure.

Re: [patch net-next] sched: sch_api: add missing rcu read lock to silence the warning

2020-07-20 Thread Ido Schimmel
On Mon, Jul 20, 2020 at 09:22:48AM +0200, Jiri Pirko wrote: > From: Jiri Pirko > > In case the qdisc_match_from_root function() is called from non-rcu path > with rtnl mutex held, a suspiciout rcu usage warning appears: > > [ 241.504354] = > [ 241.504358] WARNING: s

[PATCH net-next v3] net: ena: Fix using plain integer as NULL pointer in ena_init_napi_in_range

2020-07-20 Thread Wang Hai
Fix sparse build warning: drivers/net/ethernet/amazon/ena/ena_netdev.c:2193:34: warning: Using plain integer as NULL pointer Reported-by: Hulk Robot Signed-off-by: Wang Hai Suggested-by: Joe Perches Acked-by: Shay Agroskin --- v1->v2: Improve code readability based on Joe Perches's suggesti

[patch net-next v2] sched: sch_api: add missing rcu read lock to silence the warning

2020-07-20 Thread Jiri Pirko
From: Jiri Pirko In case the qdisc_match_from_root function() is called from non-rcu path with rtnl mutex held, a suspiciout rcu usage warning appears: [ 241.504354] = [ 241.504358] WARNING: suspicious RCU usage [ 241.504366] 5.8.0-rc4-custom-01521-g72a7c7d549c3 #3

Re: [patch net-next] sched: sch_api: add missing rcu read lock to silence the warning

2020-07-20 Thread Jiri Pirko
Mon, Jul 20, 2020 at 09:50:00AM CEST, ido...@idosch.org wrote: >On Mon, Jul 20, 2020 at 09:22:48AM +0200, Jiri Pirko wrote: >> From: Jiri Pirko >> >> In case the qdisc_match_from_root function() is called from non-rcu path >> with rtnl mutex held, a suspiciout rcu usage warning appears: >> >> [

Re: [PATCH bpf-next v3] bpftool: use only nftw for file tree parsing

2020-07-20 Thread Quentin Monnet
On 17/07/2020 23:55, Tony Ambardar wrote: > The bpftool sources include code to walk file trees, but use multiple > frameworks to do so: nftw and fts. While nftw conforms to POSIX/SUSv3 and > is widely available, fts is not conformant and less common, especially on > non-glibc systems. The inconsis

[PATCH] ixgbe: use eth_zero_addr() to clear mac address

2020-07-20 Thread linmiaohe
From: Miaohe Lin Use eth_zero_addr() to clear mac address insetad of memset(). Signed-off-by: Miaohe Lin --- drivers/net/ethernet/intel/ixgbe/ixgbe_sriov.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/intel/ixgbe/ixgbe_sriov.c b/drivers/net/ethernet

RE: how is the bpfilter sockopt processing supposed to work

2020-07-20 Thread David Laight
From: Alexei Starovoitov > Sent: 17 July 2020 18:29 > On Fri, Jul 17, 2020 at 9:25 AM Christoph Hellwig wrote: > > > > On Fri, Jul 17, 2020 at 09:13:07AM -0700, Alexei Starovoitov wrote: > > > On Thu, Jul 16, 2020 at 10:52 PM Christoph Hellwig wrote: > > > > > > > > Hi Alexei, > > > > > > > > I'v

[PATCH] igb: use eth_zero_addr() to clear mac address

2020-07-20 Thread linmiaohe
From: Miaohe Lin Use eth_zero_addr() to clear mac address insetad of memset(). Signed-off-by: Miaohe Lin --- drivers/net/ethernet/intel/igb/igb_main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/ethernet/intel/igb/igb_main.c b/drivers/net/ethernet/intel

KASAN: use-after-free Read in xfrm6_tunnel_alloc_spi

2020-07-20 Thread syzbot
Hello, syzbot found the following issue on: HEAD commit:4c43049f Add linux-next specific files for 20200716 git tree: linux-next console output: https://syzkaller.appspot.com/x/log.txt?x=1524330710 kernel config: https://syzkaller.appspot.com/x/.config?x=2c76d72659687242 dashboard

KASAN: slab-out-of-bounds Read in __xfrm6_tunnel_spi_check

2020-07-20 Thread syzbot
Hello, syzbot found the following issue on: HEAD commit:4c43049f Add linux-next specific files for 20200716 git tree: linux-next console output: https://syzkaller.appspot.com/x/log.txt?x=12e58d7d10 kernel config: https://syzkaller.appspot.com/x/.config?x=2c76d72659687242 dashboard

[PATCH] vhost: vdpa: remove per device feature whitelist

2020-07-20 Thread Jason Wang
We used to have a per device feature whitelist to filter out the unsupported virtio features. But this seems unnecessary since: - the main idea behind feature whitelist is to block control vq feature until we finalize the control virtqueue API. But the current vhost-vDPA uAPI is sufficient to

Re: [PATCH RFC v8 02/11] vhost: use batched get_vq_desc version

2020-07-20 Thread Jason Wang
On 2020/7/17 上午1:16, Eugenio Perez Martin wrote: On Fri, Jul 10, 2020 at 7:58 AM Michael S. Tsirkin wrote: On Fri, Jul 10, 2020 at 07:39:26AM +0200, Eugenio Perez Martin wrote: How about playing with the batch size? Make it a mod parameter instead of the hard coded 64, and measure for all va

[PATCH net-next] brcm80211: fix possible memleak in brcmf_proto_msgbuf_attach

2020-07-20 Thread Wang Yufen
When brcmf_proto_msgbuf_attach fail and msgbuf->txflow_wq != NULL, we should destroy the workqueue. Fixes: 05491d2ccf20 ("brcm80211: move under broadcom vendor directory") Reported-by: Hulk Robot Signed-off-by: Wang Yufen --- drivers/net/wireless/broadcom/brcm80211/brcmfmac/msgbuf.c | 2 ++ 1 f

[PATCH net-next] brcm80211: fix possible memleak in brcmf_proto_msgbuf_attach

2020-07-20 Thread Wang Yufen
When brcmf_proto_msgbuf_attach fail and msgbuf->txflow_wq != NULL, we should destroy the workqueue. Fixes: 05491d2ccf20 ("brcm80211: move under broadcom vendor directory") Reported-by: Hulk Robot Signed-off-by: Wang Yufen --- drivers/net/wireless/broadcom/brcm80211/brcmfmac/msgbuf.c | 2 ++ 1 f

[PATCH net-next] ath11k: Fix possible memleak in ath11k_qmi_init_service

2020-07-20 Thread Wang Yufen
When qmi_add_lookup fail, we should destroy the workqueue Fixes: d5c65159f289 ("ath11k: driver for Qualcomm IEEE 802.11ax devices") Reported-by: Hulk Robot Signed-off-by: Wang Yufen --- drivers/net/wireless/ath/ath11k/qmi.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/wireles

[PATCH v3] net: dsa: microchip: call phy_remove_link_mode during probe

2020-07-20 Thread Helmut Grohne
When doing "ip link set dev ... up" for a ksz9477 backed link, ksz9477_phy_setup is called and it calls phy_remove_link_mode to remove 1000baseT HDX. During phy_remove_link_mode, phy_advertise_supported is called. Doing so reverts any previous change to advertised link modes e.g. using a udevd .lin

Re: [PATCH bpf-next] bpf: cpumap: fix possible rcpu kthread hung

2020-07-20 Thread Jakub Sitnicki
On Sun, Jul 19, 2020 at 05:52 PM CEST, Lorenzo Bianconi wrote: > Fix the following cpumap kthread hung. The issue is currently occurring > when __cpu_map_load_bpf_program fails (e.g if the bpf prog has not > BPF_XDP_CPUMAP as expected_attach_type) > > $./test_progs -n 101 > 101/1 cpumap_with_progs:

[PATCH bpf-next v3 07/14] xsk: move addrs from buffer pool to umem

2020-07-20 Thread Magnus Karlsson
Replicate the addrs pointer in the buffer pool to the umem. This mapping will be the same for all buffer pools sharing the same umem. In the buffer pool we leave the addrs pointer for performance reasons. Signed-off-by: Magnus Karlsson --- include/net/xdp_sock.h | 1 + net/xdp/xdp_umem.c

[PATCH bpf-next v3 05/14] xsk: move queue_id, dev and need_wakeup to buffer pool

2020-07-20 Thread Magnus Karlsson
Move queue_id, dev, and need_wakeup from the umem to the buffer pool. This so that we in a later commit can share the umem between multiple HW queues. There is one buffer pool per dev and queue id, so these variables should belong to the buffer pool, not the umem. Need_wakeup is also something that

[PATCH bpf-next v3 06/14] xsk: move xsk_tx_list and its lock to buffer pool

2020-07-20 Thread Magnus Karlsson
Move the xsk_tx_list and the xsk_tx_list_lock from the umem to the buffer pool. This so that we in a later commit can share the umem between multiple HW queues. There is one xsk_tx_list per device and queue id, so it should be located in the buffer pool. Signed-off-by: Magnus Karlsson --- includ

[PATCH bpf-next v3 03/14] xsk: create and free buffer pool independently from umem

2020-07-20 Thread Magnus Karlsson
Create and free the buffer pool independently from the umem. Move these operations that are performed on the buffer pool from the umem create and destroy functions to new create and destroy functions just for the buffer pool. This so that in later commits we can instantiate multiple buffer pools pe

[PATCH bpf-next v3 00/14] xsk: support shared umems between devices and queues

2020-07-20 Thread Magnus Karlsson
This patch set adds support to share a umem between AF_XDP sockets bound to different queue ids on the same device or even between devices. It has already been possible to do this by registering the umem multiple times, but this wastes a lot of memory. Just imagine having 10 threads each having 10

[PATCH bpf-next v3 04/14] xsk: move fill and completion rings to buffer pool

2020-07-20 Thread Magnus Karlsson
Move the fill and completion rings from the umem to the buffer pool. This so that we in a later commit can share the umem between multiple HW queue ids. In this case, we need one fill and completion ring per queue id. As the buffer pool is per queue id and napi id this is a natural place for it and

[PATCH bpf-next v3 11/14] xsk: add shared umem support between devices

2020-07-20 Thread Magnus Karlsson
Add support to share a umem between different devices. This mode can be invoked with the XDP_SHARED_UMEM bind flag. Previously, sharing was only supported within the same device. Note that when sharing a umem between devices, just as in the case of sharing a umem between queue ids, you need to crea

[PATCH bpf-next v3 12/14] libbpf: support shared umems between queues and devices

2020-07-20 Thread Magnus Karlsson
Add support for shared umems between hardware queues and devices to the AF_XDP part of libbpf. This so that zero-copy can be achieved in applications that want to send and receive packets between HW queues on one device or between different devices/netdevs. In order to create sockets that share a

[PATCH bpf-next v3 14/14] xsk: documentation for XDP_SHARED_UMEM between queues and netdevs

2020-07-20 Thread Magnus Karlsson
Add documentation for the XDP_SHARED_UMEM feature when a UMEM is shared between different queues and/or netdevs. Signed-off-by: Magnus Karlsson --- Documentation/networking/af_xdp.rst | 68 +++-- 1 file changed, 58 insertions(+), 10 deletions(-) diff --git a/Docu

[PATCH bpf-next v3 13/14] samples/bpf: add new sample xsk_fwd.c

2020-07-20 Thread Magnus Karlsson
From: Cristian Dumitrescu This sample code illustrates the packet forwarding between multiple AF_XDP sockets in multi-threading environment. All the threads and sockets are sharing a common buffer pool, with each socket having its own private buffer cache. The sockets are created with the xsk_soc

[PATCH bpf-next v3 08/14] xsk: enable sharing of dma mappings

2020-07-20 Thread Magnus Karlsson
Enable the sharing of dma mappings by moving them out from the buffer pool. Instead we put each dma mapped umem region in a list in the umem structure. If dma has already been mapped for this umem and device, it is not mapped again and the existing dma mappings are reused. Signed-off-by: Magnus Ka

[PATCH bpf-next v3 09/14] xsk: rearrange internal structs for better performance

2020-07-20 Thread Magnus Karlsson
Rearrange the xdp_sock, xdp_umem and xsk_buff_pool structures so that they get smaller and align better to the cache lines. In the previous commits of this patch set, these structs have been reordered with the focus on functionality and simplicity, not performance. This patch improves throughput pe

[PATCH bpf-next v3 10/14] xsk: add shared umem support between queue ids

2020-07-20 Thread Magnus Karlsson
Add support to share a umem between queue ids on the same device. This mode can be invoked with the XDP_SHARED_UMEM bind flag. Previously, sharing was only supported within the same queue id and device, and you shared one set of fill and completion rings. However, note that when sharing a umem betw

Re: [PATCH net-next v3] net: ena: Fix using plain integer as NULL pointer in ena_init_napi_in_range

2020-07-20 Thread Shay Agroskin
Wang Hai writes: Fix sparse build warning: drivers/net/ethernet/amazon/ena/ena_netdev.c:2193:34: warning: Using plain integer as NULL pointer Reported-by: Hulk Robot Signed-off-by: Wang Hai Suggested-by: Joe Perches Acked-by: Shay Agroskin --- v1->v2: Improve code readability based on

Re: [PATCH v2 net-next 01/14] qed: convert link mode from u32 to bitmap

2020-07-20 Thread Alexander Lobakin
Date: Sun, 19 Jul 2020 23:21:00 +0200 From: Andrew Lunn > On Sun, Jul 19, 2020 at 11:14:40PM +0300, Alexander Lobakin wrote: >> Currently qed driver already ran out of 32 bits to store link modes, >> and this doesn't allow to add and support more speeds. >> Convert link mode to bitmap that will a

Re: [PATCH RFC v8 02/11] vhost: use batched get_vq_desc version

2020-07-20 Thread Michael S. Tsirkin
On Thu, Jul 16, 2020 at 07:16:27PM +0200, Eugenio Perez Martin wrote: > On Fri, Jul 10, 2020 at 7:58 AM Michael S. Tsirkin wrote: > > > > On Fri, Jul 10, 2020 at 07:39:26AM +0200, Eugenio Perez Martin wrote: > > > > > How about playing with the batch size? Make it a mod parameter instead > > > > >

[PATCH bpf-next v3 02/14] xsk: i40e: ice: ixgbe: mlx5: rename xsk zero-copy driver interfaces

2020-07-20 Thread Magnus Karlsson
Rename the AF_XDP zero-copy driver interface functions to better reflect what they do after the replacement of umems with buffer pools in the previous commit. Mostly it is about replacing the umem name from the function names with xsk_buff and also have them take the a buffer pool pointer instead o

Re: [PATCH bpf-next v2 11/14] xsk: add shared umem support between devices

2020-07-20 Thread Magnus Karlsson
On Thu, Jul 16, 2020 at 6:35 AM Magnus Karlsson wrote: > > On Tue, Jul 14, 2020 at 12:18 PM Maxim Mikityanskiy > wrote: > > > > On 2020-07-10 17:16, Magnus Karlsson wrote: > > > Add support to share a umem between different devices. This mode > > > can be invoked with the XDP_SHARED_UMEM bind fla

[PATCH net] net: bcmgenet: add missed clk_disable_unprepare in bcmgenet_probe

2020-07-20 Thread Zhang Changzhong
The driver forgets to call clk_disable_unprepare() in error path after a success calling for clk_prepare_enable(). Fix to goto err_clk_disable if clk_prepare_enable() is successful. Fixes: c80d36ff63a5 ("net: bcmgenet: Use devm_clk_get_optional() to get the clocks") Signed-off-by: Zhang Changzho

Re: [PATCH v2 01/11] xen/manage: keep track of the on-going suspend mode

2020-07-20 Thread Roger Pau Monné
On Sat, Jul 18, 2020 at 09:47:04PM -0400, Boris Ostrovsky wrote: > (Roger, question for you at the very end) > > On 7/17/20 3:10 PM, Anchal Agarwal wrote: > > On Wed, Jul 15, 2020 at 05:18:08PM -0400, Boris Ostrovsky wrote: > >> CAUTION: This email originated from outside of the organization. Do n

pull-request: ieee802154 for net 2020-07-20

2020-07-20 Thread Stefan Schmidt
Hello Dave. An update from ieee802154 for your *net* tree. A potential memory leak fix for adf7242 from Liu Jian, and one more HTTPS link change from Alexander A. Klimov. regards Stefan Schmidt The following changes since commit 473309fb8372365ad211f425bca760af800e10a7: net: dp83640: fix S

Re: [PATCH V2 3/6] vDPA: implement IRQ offloading helpers in vDPA core

2020-07-20 Thread Jason Wang
On 2020/7/20 下午5:07, Zhu, Lingshan wrote: +} + +static void vdpa_unsetup_irq(struct vdpa_device *vdev, int qid) +{ +    struct vdpa_driver *drv = drv_to_vdpa(vdev->dev.driver); + +    if (drv->unsetup_vq_irq) +    drv->unsetup_vq_irq(vdev, qid); Do you need to check the existence of drv

[PATCH bpf-next v3 01/14] xsk: i40e: ice: ixgbe: mlx5: pass buffer pool to driver instead of umem

2020-07-20 Thread Magnus Karlsson
Replace the explicit umem reference passed to the driver in AF_XDP zero-copy mode with the buffer pool instead. This in preparation for extending the functionality of the zero-copy mode so that umems can be shared between queues on the same netdev and also between netdevs. In this commit, only an u

Re: [PATCH RFC net-next 00/13] RX filtering for DSA switches

2020-07-20 Thread Vladimir Oltean
On Thu, May 28, 2020 at 05:37:18PM +0300, Ido Schimmel wrote: > On Wed, May 27, 2020 at 02:36:53PM +0300, Vladimir Oltean wrote: > > On Tue, 26 May 2020 at 17:02, Ido Schimmel wrote: > > > > > > On Mon, May 25, 2020 at 11:23:34PM +0300, Vladimir Oltean wrote: > > > > Hi Ido, > > > > > > > > On Mon

Re: [RFC PATCH net-next v2 6/6] devlink: add overwrite mode to flash update

2020-07-20 Thread Jiri Pirko
Fri, Jul 17, 2020 at 08:35:41PM CEST, jacob.e.kel...@intel.com wrote: >A flash image may contain settings or device identifying information. >When performing a flash update, these settings and information may >conflict with contents already in the flash. Devices may handle this >conflict in multipl

Re: [PATCH RFC net-next 07/13] net: phylink: simplify ksettings_set() implementation

2020-07-20 Thread Ioana Ciornei
On 6/30/20 5:29 PM, Russell King wrote: > Simplify the ksettings_set() implementation to look more like phylib's > implementation; use a switch() for validating the autoneg setting, and > use the linkmode_modify() helper to set the autoneg bit in the > advertisement mask. > > Signed-off-by: Russel

[PATCH 1/2] net: dsa: Add flag for 802.1AD when adding VLAN for dsa switch and port

2020-07-20 Thread hongbo . wang
From: "hongbo.wang" the following command can be supported: ip link add link swp1 name swp1.100 type vlan protocol 802.1ad id 100 Signed-off-by: hongbo.wang --- include/uapi/linux/if_bridge.h | 1 + net/dsa/slave.c| 9 +++-- 2 files changed, 8 insertions(+), 2 deletions(-)

[PATCH 2/2] net: dsa: Set flag for 802.1AD when deleting vlan for dsa switch and port

2020-07-20 Thread hongbo . wang
From: "hongbo.wang" the following command will be supported: Add VLAN: ip link add link swp1 name swp1.100 type vlan protocol 802.1ad id 100 Delete VLAN: ip link del link swp1 name swp1.100 Signed-off-by: hongbo.wang --- net/dsa/dsa_priv.h | 2 +- net/dsa/port.c | 3 ++- net/dsa/

Re: [PATCH 1/2] net: dsa: Add flag for 802.1AD when adding VLAN for dsa switch and port

2020-07-20 Thread Nikolay Aleksandrov
On 20/07/2020 13:41, hongbo.w...@nxp.com wrote: > From: "hongbo.wang" > > the following command can be supported: > ip link add link swp1 name swp1.100 type vlan protocol 802.1ad id 100 > > Signed-off-by: hongbo.wang > --- > include/uapi/linux/if_bridge.h | 1 + > net/dsa/slave.c

Re: [PATCH RFC net-next 08/13] net: phylink: simplify phy case for ksettings_set method

2020-07-20 Thread Ioana Ciornei
On 6/30/20 5:29 PM, Russell King wrote: > When we have a PHY attached, an ethtool ksettings_set() call only > really needs to call through to the phylib equivalent; phylib will > call back to us when the link changes so we can update our state. > Therefore, we can bypass most of our ksettings_set()

Re: [PATCH RFC net-next 09/13] net: phylink: simplify fixed-link case for ksettings_set method

2020-07-20 Thread Ioana Ciornei
On 6/30/20 5:29 PM, Russell King wrote: > For fixed links, we only allow the current settings, so this should be > a matter of merely rejecting an attempt to change the settings. If the > settings agree, then there is nothing more we need to do. > > Signed-off-by: Russell King Reviewed-by: Ioan

RE: [EXT] Re: [PATCH v2 net-next 03/10] net: mscc: ocelot: allocated rules to different hardware VCAP TCAMs by chain index

2020-07-20 Thread Xiaoliang Yang
18.07.2020 3:10, Allan wrote: > > Okay - I will need to look deeper into to this to really understand the > consequences of mixing different types of filters. As far as Joergens example > goes, "matchall" is really the same as a flower without any matches. > > Long story short, to me the most im

Re: [PATCH RFC net-next 10/13] net: bridge: add port flags for host flooding

2020-07-20 Thread Vladimir Oltean
On Fri, May 22, 2020 at 08:45:34PM +0200, Allan W. Nielsen wrote: > On 22.05.2020 16:13, Vladimir Oltean wrote: > > EXTERNAL EMAIL: Do not click links or open attachments unless you know the > > content is safe > > > > On Fri, 22 May 2020 at 15:38, Nikolay Aleksandrov > > wrote: > > > > > > On

Re: [PATCH] ath11k: Fix memory leak in ath11k_qmi_init_service()

2020-07-20 Thread Markus Elfring
> When qmi_add_lookup fail, we should destroy the workqueue Can the following wording variant be nicer for the change description? Destroy the work queue object in an if branch after a call of the function “qmi_add_lookup” failed. Regards, Markus

Re: [PATCH 00/20] Add support for [H]SCIF/TMU/CMT/THS/SDHI/MSIOF/CAN[FD]/I2C/IIC/RWDT on R8A774E1

2020-07-20 Thread Mark Brown
On Wed, 15 Jul 2020 12:08:50 +0100, Lad Prabhakar wrote: > This patch series enables support for following on RZ/G2H SoC, > * CPU OPP > * THS > * CMT/TMU > * I2C/IIC > * MSIOF > * RWDT > * SDHI > * SCIF/HSCIF > * CAN/CANFD > > [...] Applied to https://git.kernel.org/pub/scm/linux/kernel/git/b

[PATCH net-next] net: fs_enet: remove redundant null check

2020-07-20 Thread Zhang Changzhong
Because clk_prepare_enable and clk_disable_unprepare already checked NULL clock parameter, so the additional checks are unnecessary, just remove them. Signed-off-by: Zhang Changzhong --- drivers/net/ethernet/freescale/fs_enet/fs_enet-main.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletion

Re: [PATCH RFC v8 02/11] vhost: use batched get_vq_desc version

2020-07-20 Thread Eugenio Pérez
On Mon, Jul 20, 2020 at 11:27 AM Michael S. Tsirkin wrote: > On Thu, Jul 16, 2020 at 07:16:27PM +0200, Eugenio Perez Martin wrote: > > On Fri, Jul 10, 2020 at 7:58 AM Michael S. Tsirkin wrote: > > > On Fri, Jul 10, 2020 at 07:39:26AM +0200, Eugenio Perez Martin wrote: > > > > > > How about play

Re: [PATCH RFC leds + net-next 2/3] leds: trigger: return error value if .activate() failed

2020-07-20 Thread Pavel Machek
Hi! > Currently when the .activate() method fails and returns a negative error > code while writing to the /sys/class/leds//trigger file, the write > system call does not inform the user abouth this failure. > > This patch fixes this. > > Signed-off-by: Marek Behún > --- > drivers/leds/led-tri

Re: [PATCH RFC leds + net-next 1/3] leds: trigger: add support for LED-private device triggers

2020-07-20 Thread Pavel Machek
Hi! > Some LED controllers may come with an internal HW triggering mechanism > for the LED and the ability to switch between SW control and the > internal HW control. This includes most PHYs, various ethernet switches, > the Turris Omnia LED controller or AXP20X PMIC. > > This adds support for re

Re: [PATCH v2] drivers/net/wan/x25_asy: Fix to make it work

2020-07-20 Thread Martin Schiller
On 2020-07-17 01:44, Xie He wrote: This driver is not working because of problems of its receiving code. This patch fixes it to make it work. When the driver receives an LAPB frame, it should first pass the frame to the LAPB module to process. After processing, the LAPB module passes the data (t

[PATCH] net-sysfs: add a newline when printing 'tx_timeout' by sysfs

2020-07-20 Thread Xiongfeng Wang
When I cat 'tx_timeout' by sysfs, it displays as follows. It's better to add a newline for easy reading. root@syzkaller:~# cat /sys/devices/virtual/net/lo/queues/tx-0/tx_timeout 0root@syzkaller:~# Signed-off-by: Xiongfeng Wang --- net/core/net-sysfs.c | 2 +- 1 file changed, 1 insertion(+), 1 d

[PATCH] arch, net: remove the last csum_partial_copy() leftovers

2020-07-20 Thread Christoph Hellwig
Most of the tree only uses and implements csum_partial_copy_nocheck, but the c6x and lib/checksum.c implement a csum_partial_copy that isn't used anywere except to define csum_partial_copy. Get rid of this pointless alias. Signed-off-by: Christoph Hellwig --- arch/c6x/lib/checksum.c |

Re: [PATCH RFC net-next 11/13] net: phylink: re-implement interface configuration with PCS

2020-07-20 Thread Ioana Ciornei
On 6/30/20 5:29 PM, Russell King wrote: > With PCS support, how we implement interface reconfiguration is not up > to the job; we end up reconfiguring the PCS for an interface change > while the link could potentially be up. In order to solve this, add > two additional MAC methods for interface co

[PATCH net] rxrpc: Fix sendmsg() returning EPIPE due to recvmsg() returning ENODATA

2020-07-20 Thread David Howells
rxrpc_sendmsg() returns EPIPE if there's an outstanding error, such as if rxrpc_recvmsg() indicating ENODATA if there's nothing for it to read. Change rxrpc_recvmsg() to return EAGAIN instead if there's nothing to read as this particular error doesn't get stored in ->sk_err by the networking core.

Re: [PATCH net-next] efx: convert to new udp_tunnel infrastructure

2020-07-20 Thread Edward Cree
Subject line prefix should probably be sfc:, that's what we  usually use for this driver. On 18/07/2020 00:53, Jakub Kicinski wrote: > Check MC_CMD_DRV_ATTACH_EXT_OUT_FLAG_TRUSTED, before setting > the info, which will hopefully protect us from -EPERM errors Sorry, I forgot to pass on the answer I

Re: [PATCH RFC v8 02/11] vhost: use batched get_vq_desc version

2020-07-20 Thread Michael S. Tsirkin
On Mon, Jul 20, 2020 at 01:16:47PM +0200, Eugenio Pérez wrote: > > On Mon, Jul 20, 2020 at 11:27 AM Michael S. Tsirkin wrote: > > On Thu, Jul 16, 2020 at 07:16:27PM +0200, Eugenio Perez Martin wrote: > > > On Fri, Jul 10, 2020 at 7:58 AM Michael S. Tsirkin > > > wrote: > > > > On Fri, Jul 10, 2

[PATCH/RFC v2] net: ethernet: ravb: exit if hardware is in-progress in tx timeout

2020-07-20 Thread Yoshihiro Shimoda
According to the report of [1], this driver is possible to cause the following error in ravb_tx_timeout_work(). ravb e680.ethernet ethernet: failed to switch device to config mode This error means that the hardware could not change the state from "Operation" to "Configuration" while some tx a

Re: [PATCH bpf-next v3 04/14] xsk: move fill and completion rings to buffer pool

2020-07-20 Thread kernel test robot
Hi Magnus, I love your patch! Yet something to improve: [auto build test ERROR on bpf-next/master] url: https://github.com/0day-ci/linux/commits/Magnus-Karlsson/xsk-support-shared-umems-between-devices-and-queues/20200720-180143 base: https://git.kernel.org/pub/scm/linux/kernel/git/bpf

[PATCH] net: packetengines: switch from 'pci_' to 'dma_' API

2020-07-20 Thread Christophe JAILLET
The wrappers in include/linux/pci-dma-compat.h should go away. The patch has been generated with the coccinelle script below and has been hand modified to replace GFP_ with a correct flag. It has been compile tested. When memory is allocated in 'hamachi_init_one()' (hamachi.c), GFP_KERNEL can be

Re: [PATCH RFC net-next 11/13] net: phylink: re-implement interface configuration with PCS

2020-07-20 Thread Russell King - ARM Linux admin
On Mon, Jul 20, 2020 at 11:40:44AM +, Ioana Ciornei wrote: > On 6/30/20 5:29 PM, Russell King wrote: > > With PCS support, how we implement interface reconfiguration is not up > > to the job; we end up reconfiguring the PCS for an interface change > > while the link could potentially be up. In

Re: [PATCH RFC net-next 08/13] net: phylink: simplify phy case for ksettings_set method

2020-07-20 Thread Russell King - ARM Linux admin
On Mon, Jul 20, 2020 at 10:44:11AM +, Ioana Ciornei wrote: > On 6/30/20 5:29 PM, Russell King wrote: > > When we have a PHY attached, an ethtool ksettings_set() call only > > really needs to call through to the phylib equivalent; phylib will > > call back to us when the link changes so we can u

[PATCH 20/24] net/ipv6: switch do_ipv6_setsockopt to sockptr_t

2020-07-20 Thread Christoph Hellwig
Pass a sockptr_t to prepare for set_fs-less handling of the kernel pointer from bpf-cgroup. Signed-off-by: Christoph Hellwig --- net/ipv6/ipv6_sockglue.c | 66 1 file changed, 33 insertions(+), 33 deletions(-) diff --git a/net/ipv6/ipv6_sockglue.c b/net/

[PATCH 16/24] net/ipv6: switch ip6_mroute_setsockopt to sockptr_t

2020-07-20 Thread Christoph Hellwig
Pass a sockptr_t to prepare for set_fs-less handling of the kernel pointer from bpf-cgroup. Signed-off-by: Christoph Hellwig --- include/linux/mroute6.h | 8 net/ipv6/ip6mr.c | 17 + net/ipv6/ipv6_sockglue.c | 3 ++- 3 files changed, 15 insertions(+), 13 delet

[PATCH 22/24] net/tcp: switch ->md5_parse to sockptr_t

2020-07-20 Thread Christoph Hellwig
Pass a sockptr_t to prepare for set_fs-less handling of the kernel pointer from bpf-cgroup. Signed-off-by: Christoph Hellwig --- include/net/tcp.h | 2 +- net/ipv4/tcp.c | 3 ++- net/ipv4/tcp_ipv4.c | 4 ++-- net/ipv6/tcp_ipv6.c | 4 ++-- 4 files changed, 7 insertions(+), 6 deletions(-)

[PATCH 12/24] bpfilter: switch bpfilter_ip_set_sockopt to sockptr_t

2020-07-20 Thread Christoph Hellwig
This is mostly to prepare for cleaning up the callers, as bpfilter by design can't handle kernel pointers. Signed-off-by: Christoph Hellwig --- include/linux/bpfilter.h | 6 +++--- net/bpfilter/bpfilter_kern.c | 8 net/ipv4/bpfilter/sockopt.c | 8 net/ipv4/ip_sockglue.c

[PATCH 09/24] netfilter: remove the unused user argument to do_update_counters

2020-07-20 Thread Christoph Hellwig
Signed-off-by: Christoph Hellwig --- net/bridge/netfilter/ebtables.c | 9 - 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/net/bridge/netfilter/ebtables.c b/net/bridge/netfilter/ebtables.c index fe13108af1f542..12f8929667bf43 100644 --- a/net/bridge/netfilter/ebtables.c +++

get rid of the address_space override in setsockopt

2020-07-20 Thread Christoph Hellwig
Hi Dave, setsockopt is the last place in architecture-independ code that still uses set_fs to force the uaccess routines to operate on kernel pointers. This series adds a new sockptr_t type that can contained either a kernel or user pointer, and which has accessors that do the right thing, and th

[PATCH 17/24] net/ipv6: split up ipv6_flowlabel_opt

2020-07-20 Thread Christoph Hellwig
Split ipv6_flowlabel_opt into a subfunction for each action and a small wrapper. Signed-off-by: Christoph Hellwig --- net/ipv6/ip6_flowlabel.c | 311 +-- 1 file changed, 167 insertions(+), 144 deletions(-) diff --git a/net/ipv6/ip6_flowlabel.c b/net/ipv6/ip6_

[PATCH 21/24] net/udp: switch udp_lib_setsockopt to sockptr_t

2020-07-20 Thread Christoph Hellwig
Pass a sockptr_t to prepare for set_fs-less handling of the kernel pointer from bpf-cgroup. Signed-off-by: Christoph Hellwig --- include/net/udp.h | 2 +- net/ipv4/udp.c| 7 --- net/ipv6/udp.c| 3 ++- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/include/net/udp.h b/

[PATCH 23/24] net/tcp: switch do_tcp_setsockopt to sockptr_t

2020-07-20 Thread Christoph Hellwig
Pass a sockptr_t to prepare for set_fs-less handling of the kernel pointer from bpf-cgroup. Signed-off-by: Christoph Hellwig --- net/ipv4/tcp.c | 34 -- 1 file changed, 16 insertions(+), 18 deletions(-) diff --git a/net/ipv4/tcp.c b/net/ipv4/tcp.c index 49bf15c27

[PATCH 24/24] net: pass a sockptr_t into ->setsockopt

2020-07-20 Thread Christoph Hellwig
Rework the remaining setsockopt code to pass a sockptr_t instead of a plain user pointer. This removes the last remaining set_fs(KERNEL_DS) outside of architecture specific code. Signed-off-by: Christoph Hellwig --- crypto/af_alg.c | 7 ++-- drivers/crypto/chelsio/cht

[PATCH 19/24] net/ipv6: factor out a ipv6_set_opt_hdr helper

2020-07-20 Thread Christoph Hellwig
Factour out a helper to set the IPv6 option headers from do_ipv6_setsockopt. Signed-off-by: Christoph Hellwig --- net/ipv6/ipv6_sockglue.c | 150 +++ 1 file changed, 75 insertions(+), 75 deletions(-) diff --git a/net/ipv6/ipv6_sockglue.c b/net/ipv6/ipv6_sockg

[PATCH 18/24] net/ipv6: switch ipv6_flowlabel_opt to sockptr_t

2020-07-20 Thread Christoph Hellwig
Pass a sockptr_t to prepare for set_fs-less handling of the kernel pointer from bpf-cgroup. Note that the get case is pretty weird in that it actually copies data back to userspace from setsockopt. Signed-off-by: Christoph Hellwig --- include/net/ipv6.h | 2 +- net/ipv6/ip6_flowlabel.c |

[PATCH 15/24] net/ipv4: switch do_ip_setsockopt to sockptr_t

2020-07-20 Thread Christoph Hellwig
Pass a sockptr_t to prepare for set_fs-less handling of the kernel pointer from bpf-cgroup. Signed-off-by: Christoph Hellwig --- net/ipv4/ip_sockglue.c | 68 -- 1 file changed, 33 insertions(+), 35 deletions(-) diff --git a/net/ipv4/ip_sockglue.c b/net/ip

[PATCH 13/24] net/ipv4: switch ip_mroute_setsockopt to sockptr_t

2020-07-20 Thread Christoph Hellwig
Pass a sockptr_t to prepare for set_fs-less handling of the kernel pointer from bpf-cgroup. Signed-off-by: Christoph Hellwig --- include/linux/mroute.h | 5 +++-- net/ipv4/ip_sockglue.c | 3 ++- net/ipv4/ipmr.c| 14 +++--- 3 files changed, 12 insertions(+), 10 deletions(-) dif

[PATCH v2 1/3] dt-bindings: net: dsa: Add DSA yaml binding

2020-07-20 Thread Kurt Kanzenbach
For future DSA drivers it makes sense to add a generic DSA yaml binding which can be used then. This was created using the properties from dsa.txt. It includes the ports and the dsa,member property. Suggested-by: Florian Fainelli Signed-off-by: Kurt Kanzenbach --- .../devicetree/bindings/net/ds

[PATCH 14/24] net/ipv4: merge ip_options_get and ip_options_get_from_user

2020-07-20 Thread Christoph Hellwig
Use the sockptr_t type to merge the versions. Signed-off-by: Christoph Hellwig --- include/net/ip.h | 5 ++--- net/ipv4/ip_options.c | 43 +++--- net/ipv4/ip_sockglue.c | 7 --- 3 files changed, 17 insertions(+), 38 deletions(-) diff --git a/incl

[PATCH 11/24] netfilter: switch nf_setsockopt to sockptr_t

2020-07-20 Thread Christoph Hellwig
Pass a sockptr_t to prepare for set_fs-less handling of the kernel pointer from bpf-cgroup. Signed-off-by: Christoph Hellwig --- include/linux/netfilter.h | 6 -- net/bridge/netfilter/ebtables.c | 37 +++-- net/decnet/af_decnet.c | 3 ++- net/ipv4

[PATCH v2 2/3] dt-bindings: net: dsa: Let dsa.txt refer to dsa.yaml

2020-07-20 Thread Kurt Kanzenbach
The DSA bindings have been converted to YAML. Therefore, the old text style documentation should refer to that one. The text file can be removed completely once all the existing DSA switch bindings have been converted as well. Signed-off-by: Kurt Kanzenbach --- .../devicetree/bindings/net/dsa/d

[PATCH v2 3/3] net: dsa: of: Allow ethernet-ports as encapsulating node

2020-07-20 Thread Kurt Kanzenbach
Due to unified Ethernet Switch Device Tree Bindings allow for ethernet-ports as encapsulating node as well. Signed-off-by: Kurt Kanzenbach --- net/dsa/dsa2.c | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/net/dsa/dsa2.c b/net/dsa/dsa2.c index e055efff390b..c0ffc7a2b6

[PATCH v2 0/3] Add DSA yaml binding

2020-07-20 Thread Kurt Kanzenbach
Hi, as discussed [1] [2] it makes sense to add a DSA yaml binding. This is the second version and contains now two ways of specifying the switch ports: Either by "ports" or by "ethernet-ports". That is why the third patch also adjusts the DSA core for it. Tested in combination with the hellcreek.

[PATCH 07/24] net: switch sock_set_timeout to sockptr_t

2020-07-20 Thread Christoph Hellwig
Pass a sockptr_t to prepare for set_fs-less handling of the kernel pointer from bpf-cgroup. Signed-off-by: Christoph Hellwig --- include/net/sock.h | 3 ++- net/core/sock.c | 26 -- net/mptcp/protocol.c | 6 -- net/socket.c | 3 ++- 4 files changed,

  1   2   3   4   5   >