[PATCH] net: qed: remove unused including

2021-04-08 Thread Tian Tao
Remove including that don't need it. Signed-off-by: Tian Tao Signed-off-by: Zhiqi Song --- include/linux/qed/qed_ll2_if.h | 1 - 1 file changed, 1 deletion(-) diff --git a/include/linux/qed/qed_ll2_if.h b/include/linux/qed/qed_ll2_if.h index 2f64ed7..ea273ba 100644 --- a/include/linux/qed/qed

Re: [PATCH v6 10/10] Documentation: Add documentation for VDUSE

2021-04-08 Thread Jason Wang
在 2021/3/31 下午4:05, Xie Yongji 写道: VDUSE (vDPA Device in Userspace) is a framework to support implementing software-emulated vDPA devices in userspace. This document is intended to clarify the VDUSE design and usage. Signed-off-by: Xie Yongji --- Documentation/userspace-api/index.rst | 1

Re: [PATCH v4 01/23] iidc: Introduce iidc.h

2021-04-08 Thread Leon Romanovsky
On Wed, Apr 07, 2021 at 07:43:24PM -0300, Jason Gunthorpe wrote: > On Wed, Apr 07, 2021 at 08:58:49PM +, Saleem, Shiraz wrote: > > > Subject: Re: [PATCH v4 01/23] iidc: Introduce iidc.h > > > > > > On Tue, Apr 06, 2021 at 04:01:03PM -0500, Shiraz Saleem wrote: > > > > > > > +/* Following APIs

Re: [PATCH net-next] net: mana: Add a driver for Microsoft Azure Network Adapter (MANA)

2021-04-08 Thread Leon Romanovsky
On Wed, Apr 07, 2021 at 09:59:52PM +, Dexuan Cui wrote: > > From: Leon Romanovsky > > Sent: Wednesday, April 7, 2021 5:45 AM > > > > > > > > BTW, you don't need to write { 0 }, the {} is enough. > > > > > > Thanks for the suggestion! I'll use {0} in v2. > > > > You missed the point, "{ 0 }" c

Re: [PATCH net-next] [RESEND] wireguard: disable in FIPS mode

2021-04-08 Thread Ondrej Mosnacek
On Thu, Apr 8, 2021 at 8:52 AM Hangbin Liu wrote: > On Wed, Apr 07, 2021 at 03:15:51PM -0600, Jason A. Donenfeld wrote: > > Hi Hangbin, > > > > On Wed, Apr 7, 2021 at 5:39 AM Hangbin Liu wrote: > > > > > > As the cryptos(BLAKE2S, Curve25519, CHACHA20POLY1305) in WireGuard are not > > > FIPS certi

[PATCH net] net: flow_offload: Fix UBSAN invalid-load warning in tcf_block_unbind

2021-04-08 Thread Jianbo Liu
When device is removed, indirect block is unregisterd. As bo->unlocked_driver_cb is not initialized, the following UBSAN is triggered. UBSAN: invalid-load in net/sched/cls_api.c:1496:10 load of value 6 is not a valid value for type '_Bool' This patch fixes the warning by calling device's indr blo

Re: [PATCH net v2 2/3] net: sched: fix action overwrite reference counting

2021-04-08 Thread Vlad Buslov
On Thu 08 Apr 2021 at 02:50, Cong Wang wrote: > On Wed, Apr 7, 2021 at 8:36 AM Vlad Buslov wrote: >> >> Action init code increments reference counter when it changes an action. >> This is the desired behavior for cls API which needs to obtain action >> reference for every classifier that points

Re: Re: [PATCH v6 10/10] Documentation: Add documentation for VDUSE

2021-04-08 Thread Yongji Xie
On Thu, Apr 8, 2021 at 3:18 PM Jason Wang wrote: > > > 在 2021/3/31 下午4:05, Xie Yongji 写道: > > VDUSE (vDPA Device in Userspace) is a framework to support > > implementing software-emulated vDPA devices in userspace. This > > document is intended to clarify the VDUSE design and usage. > > > > Signed

Re: [PATCH v2] Bluetooth: Add ncmd=0 recovery handling

2021-04-08 Thread Marcel Holtmann
Hi Manish, > During command status or command complete event, the controller may set > ncmd=0 indicating that it is not accepting any more commands. In such a > case, host holds off sending any more commands to the controller. If the > controller doesn't recover from such condition, host will wait

[PATCH] selinux:Delete selinux_xfrm_policy_lookup() useless argument

2021-04-08 Thread  Zhongjun Tan
From: Zhongjun Tan Delete selinux selinux_xfrm_policy_lookup() useless argument. Signed-off-by: Zhongjun Tan --- include/linux/lsm_hook_defs.h | 3 +-- include/linux/security.h| 4 ++-- net/xfrm/xfrm_policy.c | 6 ++ security/security.c | 4 ++-- security/sel

Re: [PATCH net-next v9 1/2] net: Add a WWAN subsystem

2021-04-08 Thread Loic Poulain
Hi Dan, On Wed, 7 Apr 2021 at 16:32, Dan Williams wrote: > > On Mon, 2021-04-05 at 11:52 +0200, Loic Poulain wrote: > > This change introduces initial support for a WWAN framework. Given > > the > > complexity and heterogeneity of existing WWAN hardwares and > > interfaces, > > there is no strict

[PATCH] selinux:Delete selinux_xfrm_policy_lookup() useless argument

2021-04-08 Thread  Zhongjun Tan
From: Zhongjun Tan Delete selinux selinux_xfrm_policy_lookup() useless argument. Signed-off-by: Zhongjun Tan --- include/linux/lsm_hook_defs.h | 3 +-- include/linux/security.h| 4 ++-- net/xfrm/xfrm_policy.c | 6 ++ security/security.c | 4 ++-- security/sel

Re: [PATCH net-next 0/3] net: make PHY PM ops a no-op if MAC driver manages PHY PM

2021-04-08 Thread Heiner Kallweit
On 08.04.2021 07:42, Joakim Zhang wrote: > > Hi Heiner, > > Why not target this patch set to net repo as a bug fixes? Others may also > suffer from this. > Reason is that the patch includes new functionality that usually doesn't get backported. I'd like to see whether your case remains the only

[PATCH 0/5] VDPA mlx5 fixes

2021-04-08 Thread Eli Cohen
Hi Michael, The following series contains fixes to mlx5 vdpa driver. Included first is Siwei's fix to queried MTU was already reviewed a while ago and is not in your tree. Patches 2 and 3 are required to allow mlx5_vdpa run on sub functions. This series contains patches that were included in Pa

[PATCH 1/5] vdpa/mlx5: should exclude header length and fcs from mtu

2021-04-08 Thread Eli Cohen
From: Si-Wei Liu When feature VIRTIO_NET_F_MTU is negotiated on mlx5_vdpa, 22 extra bytes worth of MTU length is shown in guest. This is because the mlx5_query_port_max_mtu API returns the "hardware" MTU value, which does not just contain the Ethernet payload, but includes extra lengths starting

[PATCH 2/5] vdpa/mlx5: Use the correct dma device when registering memory

2021-04-08 Thread Eli Cohen
In cases where the vdpa instance uses a SF (sub function), the DMA device is the parent device. Use a function to retrieve the correct DMA device. Fixes: 1958fc2f0712 ("net/mlx5: SF, Add auxiliary device driver") Signed-off-by: Eli Cohen Reviewed-by: Parav Pandit --- drivers/vdpa/mlx5/core/mr.c

[PATCH 3/5] vdpa/mlx5: Retrieve BAR address suitable any function

2021-04-08 Thread Eli Cohen
struct mlx5_core_dev has a bar_addr field that contains the correct bar address for the function regardless of whether it is pci function or sub function. Use it. Fixes: 1958fc2f0712 ("net/mlx5: SF, Add auxiliary device driver") Signed-off-by: Eli Cohen Reviewed-by: Parav Pandit --- drivers/vdp

[PATCH 4/5] vdpa/mlx5: Fix wrong use of bit numbers

2021-04-08 Thread Eli Cohen
VIRTIO_F_VERSION_1 is a bit number. Use BIT_ULL() with mask conditionals. Also, in mlx5_vdpa_is_little_endian() use BIT_ULL for consistency with the rest of the code. Fixes: 1a86b377aa21 ("vdpa/mlx5: Add VDPA driver for supported mlx5 devices") Signed-off-by: Eli Cohen --- drivers/vdpa/mlx5/net

[PATCH 5/5] vdpa/mlx5: Fix suspend/resume index restoration

2021-04-08 Thread Eli Cohen
When we suspend the VM, the VDPA interface will be reset. When the VM is resumed again, clear_virtqueues() will clear the available and used indices resulting in hardware virqtqueue objects becoming out of sync. We can avoid this function alltogether since qemu will clear them if required, e.g. whe

[PATCH] vdpa/mlx5: Enable user to add/delete vdpa device

2021-04-08 Thread Eli Cohen
Allow to control vdpa device creation and destruction using the vdpa management tool. Examples: 1. List the management devices $ vdpa mgmtdev show pci/:3b:00.1: supported_classes net 2. Create vdpa instance $ vdpa dev add mgmtdev pci/:3b:00.1 name vdpa0 3. Show vdpa devices $ vdpa dev

Re: [PATCH 0/5] VDPA mlx5 fixes

2021-04-08 Thread Greg KH
On Thu, Apr 08, 2021 at 12:10:42PM +0300, Eli Cohen wrote: > Hi Michael, > > The following series contains fixes to mlx5 vdpa driver. Included first > is Siwei's fix to queried MTU was already reviewed a while ago and is > not in your tree. > > Patches 2 and 3 are required to allow mlx5_vdpa run

Re: Re: [PATCH v6 09/10] vduse: Introduce VDUSE - vDPA Device in Userspace

2021-04-08 Thread Yongji Xie
On Thu, Apr 8, 2021 at 2:57 PM Jason Wang wrote: > > > 在 2021/3/31 下午4:05, Xie Yongji 写道: > > This VDUSE driver enables implementing vDPA devices in userspace. > > Both control path and data path of vDPA devices will be able to > > be handled in userspace. > > > > In the control path, the VDUSE dr

Re: [PATCH 2/5] vdpa/mlx5: Use the correct dma device when registering memory

2021-04-08 Thread Jason Wang
在 2021/4/8 下午5:10, Eli Cohen 写道: In cases where the vdpa instance uses a SF (sub function), the DMA device is the parent device. Use a function to retrieve the correct DMA device. Fixes: 1958fc2f0712 ("net/mlx5: SF, Add auxiliary device driver") Signed-off-by: Eli Cohen Reviewed-by: Parav Pan

Re: [PATCH 3/5] vdpa/mlx5: Retrieve BAR address suitable any function

2021-04-08 Thread Jason Wang
在 2021/4/8 下午5:10, Eli Cohen 写道: struct mlx5_core_dev has a bar_addr field that contains the correct bar address for the function regardless of whether it is pci function or sub function. Use it. Fixes: 1958fc2f0712 ("net/mlx5: SF, Add auxiliary device driver") Signed-off-by: Eli Cohen Review

Re: [PATCH 5/5] vdpa/mlx5: Fix suspend/resume index restoration

2021-04-08 Thread Jason Wang
在 2021/4/8 下午5:10, Eli Cohen 写道: When we suspend the VM, the VDPA interface will be reset. When the VM is resumed again, clear_virtqueues() will clear the available and used indices resulting in hardware virqtqueue objects becoming out of sync. We can avoid this function alltogether since qemu

Re: [PATCH 4/5] vdpa/mlx5: Fix wrong use of bit numbers

2021-04-08 Thread Jason Wang
在 2021/4/8 下午5:10, Eli Cohen 写道: VIRTIO_F_VERSION_1 is a bit number. Use BIT_ULL() with mask conditionals. Also, in mlx5_vdpa_is_little_endian() use BIT_ULL for consistency with the rest of the code. Fixes: 1a86b377aa21 ("vdpa/mlx5: Add VDPA driver for supported mlx5 devices") Signed-off-by:

RE: [PATCH net-next v2 0/5] net: pch: fix and a few cleanups

2021-04-08 Thread Flavio Suligoi
Hi Andy, > > > On Thu, Mar 25, 2021 at 07:34:07PM +0200, Andy Shevchenko wrote: > > > > The series provides one fix (patch 1) for GPIO to be able to wait for > > > > the GPIO driver to appear. This is separated from the conversion to > > > > the GPIO descriptors (patch 2) in order to have a possib

Re: [PATCH bpf-next] cpumap: bulk skb using netif_receive_skb_list

2021-04-08 Thread Lorenzo Bianconi
> On Thu, Apr 1, 2021 at 9:49 AM Lorenzo Bianconi wrote: > > > > > On Thu, Apr 1, 2021 at 1:57 AM Lorenzo Bianconi > > > wrote: > > > > > > > > [...] > > > > > > - /* Inject into network stack */ > > > > - ret = netif_receive_skb_core(skb); > > > > -

Re: WARNING net/core/stream.c:208 when running test_sockmap

2021-04-08 Thread Jiri Olsa
On Wed, Apr 07, 2021 at 04:14:27PM -0700, Cong Wang wrote: > On Wed, Apr 7, 2021 at 2:22 PM Jiri Olsa wrote: > > > > hi, > > I'm getting couple of WARNINGs below when running > > test_sockmap on latest bpf-next/master, like: > > > > # while :; do ./test_sockmap ; done > > > > The warning is at:

Remote netlink or other solution to map 2nd SoC wlan0 device into 1st SoC?

2021-04-08 Thread Kestrel seventyfour
Hi, I am working on better supporting fritzbox 7490 with linux. It has an implementation where there are two SoC on the board. 1st is lantiq with no wifi, 2nd is ath79 with 2 wifis. The lantiq SoC has a 5 port switch, where the 5th port is the eth 1Gb link to the ath79 SoC which has eth0, wlan0 an

[PATCH net-next] ethtool: Move __ethtool_get_link_ksettings() to common file

2021-04-08 Thread Danielle Ratson
__ethtool_get_link_ksettings() function is shared by both ioctl and netlink ethtool interfaces. Move it to net/ethtool/common.c file, which is the suitable place for a shared code. Signed-off-by: Danielle Ratson Suggested-by: Jakub Kicinski Reviewed-by: Ido Schimmel Reviewed-by: Jiri Pirko --

[net-next, v2, 0/2] enetc: support PTP Sync packet one-step timestamping

2021-04-08 Thread Yangbo Lu
This patch-set is to add one-step timestamping support for PTP Sync packet. Since ENETC single-step register has to be configured dynamically per packet for correctionField offeset and UDP checksum update, current one-step timestamping packet has to be sent only when the last one completes transmit

[net-next, v2, 1/2] enetc: mark TX timestamp type per skb

2021-04-08 Thread Yangbo Lu
Mark TX timestamp type per skb on skb->cb[0], instead of global variable for all skbs. This is a preparation for one step timestamp support. For one-step timestamping enablement, there will be both one-step and two-step PTP messages to transfer. And a skb queue is needed for one-step PTP messages

[net-next, v2, 2/2] enetc: support PTP Sync packet one-step timestamping

2021-04-08 Thread Yangbo Lu
This patch is to add support for PTP Sync packet one-step timestamping. Since ENETC single-step register has to be configured dynamically per packet for correctionField offeset and UDP checksum update, current one-step timestamping packet has to be sent only when the last one completes transmitting

RE: [PATCH 2/2] enetc: support PTP Sync packet one-step timestamping

2021-04-08 Thread Y.b. Lu
Hi Claudiu, > -Original Message- > From: Claudiu Manoil > Sent: 2021年3月28日 15:52 > To: Y.b. Lu ; netdev@vger.kernel.org > Cc: David S . Miller ; Richard Cochran > ; Claudiu Manoil ; > Jakub Kicinski ; Vladimir Oltean > Subject: Re: [PATCH 2/2] enetc: support PTP Sync packet one-step > ti

[PATCH 0/2] brcmfmac: support parse country code map from DT

2021-04-08 Thread Shawn Guo
This is a couple of patches adding optional brcm,ccode-map bindings for brcmfmac driver to parse country code map from DT. Shawn Guo (2): dt-binding: bcm43xx-fmac: add optional brcm,ccode-map brcmfmac: support parse country code map from DT .../net/wireless/brcm,bcm43xx-fmac.txt| 7

[PATCH 2/2] brcmfmac: support parse country code map from DT

2021-04-08 Thread Shawn Guo
With any regulatory domain requests coming from either user space or 802.11 IE (Information Element), the country is coded in ISO3166 standard. It needs to be translated to firmware country code and revision with the mapping info in settings->country_codes table. Support populate country_codes tab

[PATCH 1/2] dt-binding: bcm43xx-fmac: add optional brcm,ccode-map

2021-04-08 Thread Shawn Guo
Add optional brcm,ccode-map property to support translation from ISO3166 country code to brcmfmac firmware country code and revision. Signed-off-by: Shawn Guo --- .../devicetree/bindings/net/wireless/brcm,bcm43xx-fmac.txt | 7 +++ 1 file changed, 7 insertions(+) diff --git a/Documentation/

Re: [PATCH rdma-next v2 0/5] Get rid of custom made module dependency

2021-04-08 Thread Devesh Sharma
On Sat, Apr 3, 2021 at 5:12 PM Leon Romanovsky wrote: > > On Sat, Apr 03, 2021 at 03:52:13PM +0530, Devesh Sharma wrote: > > On Thu, Apr 1, 2021 at 12:27 PM Leon Romanovsky wrote: > > > > > > From: Leon Romanovsky > > > > > > Changelog: > > > v2: > > > * kbuild spotted that I didn't delete all

Re: [PATCH rdma-next v2 0/5] Get rid of custom made module dependency

2021-04-08 Thread Leon Romanovsky
On Thu, Apr 08, 2021 at 05:06:24PM +0530, Devesh Sharma wrote: > On Sat, Apr 3, 2021 at 5:12 PM Leon Romanovsky wrote: > > > > On Sat, Apr 03, 2021 at 03:52:13PM +0530, Devesh Sharma wrote: > > > On Thu, Apr 1, 2021 at 12:27 PM Leon Romanovsky wrote: > > > > > > > > From: Leon Romanovsky > > > >

Re: [PATCHv2 bpf-next 3/5] selftests/bpf: Add re-attach test to fexit_test

2021-04-08 Thread Jiri Olsa
On Wed, Apr 07, 2021 at 03:51:46PM -0700, Andrii Nakryiko wrote: > On Wed, Apr 7, 2021 at 4:21 AM Jiri Olsa wrote: > > > > Adding the test to re-attach (detach/attach again) tracing > > fexit programs, plus check that already linked program can't > > be attached again. > > > > Fixing the number of

Re: [PATCHv2 bpf-next 2/5] selftests/bpf: Add re-attach test to fentry_test

2021-04-08 Thread Jiri Olsa
On Wed, Apr 07, 2021 at 03:47:30PM -0700, Andrii Nakryiko wrote: > On Wed, Apr 7, 2021 at 4:21 AM Jiri Olsa wrote: > > > > Adding the test to re-attach (detach/attach again) tracing > > fentry programs, plus check that already linked program can't > > be attached again. > > > > Fixing the number o

Re: [PATCH rdma-next v2 0/5] Get rid of custom made module dependency

2021-04-08 Thread Jason Gunthorpe
On Thu, Apr 08, 2021 at 02:44:45PM +0300, Leon Romanovsky wrote: > > In my internal testing, I am seeing a crash using the 3rd patch. I am > > spending a few cycles on debugging it. expect my input in a day or so. > > Can you please post the kernel crash report here? > I don't see how function re

[PATCH 1/3] batman-adv: Fix order of kernel doc in batadv_priv

2021-04-08 Thread Simon Wunderlich
From: Linus Lüssing During the inlining process of kerneldoc in commit 8b84cc4fb556 ("batman-adv: Use inline kernel-doc for enum/struct"), some comments were placed at the wrong struct members. Fixing this by reordering the comments. Signed-off-by: Linus Lüssing Signed-off-by: Sven Eckelmann S

[PATCH 3/3] batman-adv: Fix misspelled "wont"

2021-04-08 Thread Simon Wunderlich
From: Sven Eckelmann checkpatch started to complain about the mispelling of: CHECK: 'wont' may be misspelled - perhaps 'won't'? #459: FILE: ./net/batman-adv/bat_iv_ogm.c:459: +* - the resulting packet wont be bigger than Signed-off-by: Sven Eckelmann Signed-off-by: Simon Wunderlich

[PATCH 0/3] pull request for net-next: batman-adv 2021-04-08

2021-04-08 Thread Simon Wunderlich
:08:40 +0100) are available in the Git repository at: git://git.open-mesh.org/linux-merge.git tags/batadv-next-pullrequest-20210408 for you to fetch changes up to 35796c1d343871fa75a6e6b0f4584182cbeae6ac: batman-adv: Fix misspelled "wont" (2021-03-30 21:1

[PATCH 2/3] batman-adv: Drop unused header preempt.h

2021-04-08 Thread Simon Wunderlich
From: Sven Eckelmann The commit b1de0f01b011 ("batman-adv: Use netif_rx_any_context().") removed the last user for a function declaration from linux/preempt.h. The include should therefore be cleaned up. Signed-off-by: Sven Eckelmann Signed-off-by: Simon Wunderlich --- net/batman-adv/bridge_l

Re: [PATCH net-next] [RESEND] wireguard: disable in FIPS mode

2021-04-08 Thread Hangbin Liu
On Thu, Apr 08, 2021 at 09:06:52AM +0800, Hangbin Liu wrote: > > Also, couldn't you just consider WireGuard to be outside your FIPS module > > boundary, which would remove it from the scope of the certification? > > > > And how do you handle all the other places in the kernel that use ChaCha20 >

Re: [PATCH net v2 2/3] net: sched: fix action overwrite reference counting

2021-04-08 Thread Jamal Hadi Salim
On 2021-04-07 7:50 p.m., Cong Wang wrote: On Wed, Apr 7, 2021 at 8:36 AM Vlad Buslov wrote: Action init code increments reference counter when it changes an action. This is the desired behavior for cls API which needs to obtain action reference for every classifier that points to action. Howev

Re: [PATCHv2 bpf-next 5/5] selftests/bpf: Test that module can't be unloaded with attached trampoline

2021-04-08 Thread Jiri Olsa
On Wed, Apr 07, 2021 at 04:04:48PM -0700, Andrii Nakryiko wrote: > On Wed, Apr 7, 2021 at 4:22 AM Jiri Olsa wrote: > > > > Adding test to verify that once we attach module's trampoline, > > the module can't be unloaded. > > > > Signed-off-by: Jiri Olsa > > --- > > To be fair, to test that you ar

Re: [PATCH rdma-next v2 0/5] Get rid of custom made module dependency

2021-04-08 Thread Leon Romanovsky
On Thu, Apr 08, 2021 at 08:53:47AM -0300, Jason Gunthorpe wrote: > On Thu, Apr 08, 2021 at 02:44:45PM +0300, Leon Romanovsky wrote: > > > > In my internal testing, I am seeing a crash using the 3rd patch. I am > > > spending a few cycles on debugging it. expect my input in a day or so. > > > > Ca

Re: [PATCH rdma-next 4/8] IB/core: Skip device which doesn't have necessary capabilities

2021-04-08 Thread Jason Gunthorpe
On Wed, Apr 07, 2021 at 03:44:35PM +, Parav Pandit wrote: > > If it returns EOPNOTUPP then the remove is never called so if it allocated > > memory and left it allocated then it is leaking memory. > > > I probably confused you. There is no leak today because add_one > allocates memory, and la

[RFC v3 net-next 0/4] MT7530 interrupt support

2021-04-08 Thread DENG Qingfang
Add support for MT7530 interrupt controller. DENG Qingfang (4): net: phy: add MediaTek PHY driver net: dsa: mt7530: add interrupt support dt-bindings: net: dsa: add MT7530 interrupt controller binding staging: mt7621-dts: enable MT7530 interrupt controller .../devicetree/bindings/net/dsa

[RFC v3 net-next 1/4] net: phy: add MediaTek PHY driver

2021-04-08 Thread DENG Qingfang
Add support for MediaTek PHYs found in MT7530 and MT7531 switches. The initialization procedure is from the vendor driver, but due to lack of documentation, the function of some register values remains unknown. Signed-off-by: DENG Qingfang Reviewed-by: Andrew Lunn --- RFC v2 -> RFC v3: - No chan

[RFC v3 net-next 2/4] net: dsa: mt7530: add interrupt support

2021-04-08 Thread DENG Qingfang
Add support for MT7530 interrupt controller to handle internal PHYs. In order to assign an IRQ number to each PHY, the registration of MDIO bus is also done in this driver. Signed-off-by: DENG Qingfang --- RFC v2 -> RFC v3: - Rework IRQ request and free procedure. - Add irq_set_nested_thread. - M

[RFC v3 net-next 3/4] dt-bindings: net: dsa: add MT7530 interrupt controller binding

2021-04-08 Thread DENG Qingfang
Add device tree binding to support MT7530 interrupt controller. Signed-off-by: DENG Qingfang Reviewed-by: Andrew Lunn --- RFC v2 -> RFC v3: - No changes. Documentation/devicetree/bindings/net/dsa/mt7530.txt | 5 + 1 file changed, 5 insertions(+) diff --git a/Documentation/devicetree/bindi

[RFC v3 net-next 4/4] staging: mt7621-dts: enable MT7530 interrupt controller

2021-04-08 Thread DENG Qingfang
Enable MT7530 interrupt controller in the MT7621 SoC. Signed-off-by: DENG Qingfang Reviewed-by: Andrew Lunn --- RFC v2 -> RFC v3: - No changes. drivers/staging/mt7621-dts/mt7621.dtsi | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/staging/mt7621-dts/mt7621.dtsi b/drivers/stagin

[PATCH v8 bpf-next 00/14] mvneta: introduce XDP multi-buffer support

2021-04-08 Thread Lorenzo Bianconi
This series introduce XDP multi-buffer support. The mvneta driver is the first to support these new "non-linear" xdp_{buff,frame}. Reviewers please focus on how these new types of xdp_{buff,frame} packets traverse the different layers and the layout design. It is on purpose that BPF-helpers are kep

[PATCH v8 bpf-next 01/14] xdp: introduce mb in xdp_buff/xdp_frame

2021-04-08 Thread Lorenzo Bianconi
Introduce multi-buffer bit (mb) in xdp_frame/xdp_buffer data structure in order to specify if this is a linear buffer (mb = 0) or a multi-buffer frame (mb = 1). In the latter case the shared_info area at the end of the first buffer will be properly initialized to link together subsequent buffers.

[PATCH v8 bpf-next 04/14] xdp: add multi-buff support to xdp_return_{buff/frame}

2021-04-08 Thread Lorenzo Bianconi
Take into account if the received xdp_buff/xdp_frame is non-linear recycling/returning the frame memory to the allocator or into xdp_frame_bulk. Introduce xdp_return_num_frags_from_buff to return a given number of fragments from a xdp multi-buff starting from the tail. Signed-off-by: Lorenzo Bianc

[PATCH v8 bpf-next 05/14] net: mvneta: add multi buffer support to XDP_TX

2021-04-08 Thread Lorenzo Bianconi
Introduce the capability to map non-linear xdp buffer running mvneta_xdp_submit_frame() for XDP_TX and XDP_REDIRECT Signed-off-by: Lorenzo Bianconi --- drivers/net/ethernet/marvell/mvneta.c | 94 +-- 1 file changed, 58 insertions(+), 36 deletions(-) diff --git a/drivers/

[PATCH v8 bpf-next 03/14] net: mvneta: update mb bit before passing the xdp buffer to eBPF layer

2021-04-08 Thread Lorenzo Bianconi
Update multi-buffer bit (mb) in xdp_buff to notify XDP/eBPF layer and XDP remote drivers if this is a "non-linear" XDP buffer. Access xdp_shared_info only if xdp_buff mb is set. Signed-off-by: Lorenzo Bianconi --- drivers/net/ethernet/marvell/mvneta.c | 26 -- 1 file chan

[PATCH v8 bpf-next 02/14] xdp: add xdp_shared_info data structure

2021-04-08 Thread Lorenzo Bianconi
Introduce xdp_shared_info data structure to contain info about "non-linear" xdp frame. xdp_shared_info will alias skb_shared_info allowing to keep most of the frags in the same cache-line. Introduce some xdp_shared_info helpers aligned to skb_frag* ones Signed-off-by: Lorenzo Bianconi --- driver

[PATCH v8 bpf-next 06/14] net: mvneta: enable jumbo frames for XDP

2021-04-08 Thread Lorenzo Bianconi
Enable the capability to receive jumbo frames even if the interface is running in XDP mode Signed-off-by: Lorenzo Bianconi --- drivers/net/ethernet/marvell/mvneta.c | 10 -- 1 file changed, 10 deletions(-) diff --git a/drivers/net/ethernet/marvell/mvneta.c b/drivers/net/ethernet/marvel

[PATCH v8 bpf-next 07/14] net: xdp: add multi-buff support to xdp_build_skb_from_fram

2021-04-08 Thread Lorenzo Bianconi
Introduce xdp multi-buff support to __xdp_build_skb_from_frame/xdp_build_skb_from_fram utility routines. Signed-off-by: Lorenzo Bianconi --- net/core/xdp.c | 26 ++ 1 file changed, 26 insertions(+) diff --git a/net/core/xdp.c b/net/core/xdp.c index 430f516259d9..7388bc6d

[PATCH v8 bpf-next 08/14] bpf: add multi-buff support to the bpf_xdp_adjust_tail() API

2021-04-08 Thread Lorenzo Bianconi
From: Eelco Chaudron This change adds support for tail growing and shrinking for XDP multi-buff. Signed-off-by: Eelco Chaudron Signed-off-by: Lorenzo Bianconi --- include/net/xdp.h | 5 net/core/filter.c | 63 +++ 2 files changed, 68 insertion

[PATCH v8 bpf-next 10/14] bpf: add new frame_length field to the XDP ctx

2021-04-08 Thread Lorenzo Bianconi
From: Eelco Chaudron This patch adds a new field to the XDP context called frame_length, which will hold the full length of the packet, including fragments if existing. eBPF programs can determine if fragments are present using something like: if (ctx->data_end - ctx->data < ctx->frame_length

[PATCH v8 bpf-next 09/14] bpd: add multi-buffer support to xdp copy helpers

2021-04-08 Thread Lorenzo Bianconi
From: Eelco Chaudron This patch adds support for multi-buffer for the following helpers: - bpf_xdp_output() - bpf_perf_event_output() Signed-off-by: Eelco Chaudron Signed-off-by: Lorenzo Bianconi --- net/core/filter.c | 63 - .../selftests/bpf/prog_tes

[PATCH v8 bpf-next 13/14] bpf: test_run: add xdp_shared_info pointer in bpf_test_finish signature

2021-04-08 Thread Lorenzo Bianconi
introduce xdp_shared_info pointer in bpf_test_finish signature in order to copy back paged data from a xdp multi-buff frame to userspace buffer Signed-off-by: Lorenzo Bianconi --- net/bpf/test_run.c | 48 ++ 1 file changed, 40 insertions(+), 8 deletion

[PATCH v8 bpf-next 12/14] bpf: introduce multibuff support to bpf_prog_test_run_xdp()

2021-04-08 Thread Lorenzo Bianconi
Introduce the capability to allocate a xdp multi-buff in bpf_prog_test_run_xdp routine. This is a preliminary patch to introduce the selftests for new xdp multi-buff ebpf helpers Signed-off-by: Lorenzo Bianconi --- net/bpf/test_run.c | 52 +++--- 1 file ch

[PATCH v8 bpf-next 14/14] bpf: update xdp_adjust_tail selftest to include multi-buffer

2021-04-08 Thread Lorenzo Bianconi
From: Eelco Chaudron This change adds test cases for the multi-buffer scenarios when shrinking and growing. Signed-off-by: Eelco Chaudron Signed-off-by: Lorenzo Bianconi --- .../bpf/prog_tests/xdp_adjust_tail.c | 105 ++ .../bpf/progs/test_xdp_adjust_tail_grow.c |

[PATCH v8 bpf-next 11/14] bpf: move user_size out of bpf_test_init

2021-04-08 Thread Lorenzo Bianconi
Rely on data_size_in in bpf_test_init routine signature. This is a preliminary patch to introduce xdp multi-buff selftest Signed-off-by: Lorenzo Bianconi --- net/bpf/test_run.c | 13 +++-- 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/net/bpf/test_run.c b/net/bpf/test_run

pull-request: mac80211 2021-04-08

2021-04-08 Thread Johannes Berg
Hi, Yes, I'm late with this, sorry about that. I've mostly restricted this to the most necessary fixes, though the virt_wifi one isn't but since that's not used a lot, it's harmless and included since it's obvious. The only thing that's bigger is the rfkill thing, but that's just since it adds a

Re: [PATCH net-next v4] net: Allow to specify ifindex when device is moved to another namespace

2021-04-08 Thread Christian Brauner
On Tue, Apr 06, 2021 at 12:54:48AM -0700, Andrei Vagin wrote: > Currently, we can specify ifindex on link creation. This change allows > to specify ifindex when a device is moved to another network namespace. > > Even now, a device ifindex can be changed if there is another device > with the same

Re: [PATCH net-next v2 0/5] net: pch: fix and a few cleanups

2021-04-08 Thread Andy Shevchenko
On Thu, Apr 08, 2021 at 09:57:12AM +, Flavio Suligoi wrote: > > > > On Thu, Mar 25, 2021 at 07:34:07PM +0200, Andy Shevchenko wrote: > > > > > The series provides one fix (patch 1) for GPIO to be able to wait for > > > > > the GPIO driver to appear. This is separated from the conversion to > >

Re: [PATCH v8 bpf-next 02/14] xdp: add xdp_shared_info data structure

2021-04-08 Thread Vladimir Oltean
Hi Lorenzo, On Thu, Apr 08, 2021 at 02:50:54PM +0200, Lorenzo Bianconi wrote: > Introduce xdp_shared_info data structure to contain info about > "non-linear" xdp frame. xdp_shared_info will alias skb_shared_info > allowing to keep most of the frags in the same cache-line. > Introduce some xdp_shar

[PATCH net-next 2/7] net: sched: Make the action trap_fwd offloadable

2021-04-08 Thread Petr Machata
Add the new flow action and related support so that drivers can offload the trap_fwd action. Signed-off-by: Petr Machata Reviewed-by: Jiri Pirko Reviewed-by: Ido Schimmel --- include/net/flow_offload.h | 1 + include/net/tc_act/tc_gact.h | 5 + net/sched/cls_api.c | 2 ++ 3 file

[PATCH net-next 3/7] devlink: Add a new trap for the trap_fwd action

2021-04-08 Thread Petr Machata
Add a new trap so that drivers can report packets forwarded due to the trap_fwd action correctly. Signed-off-by: Petr Machata Reviewed-by: Ido Schimmel --- Documentation/networking/devlink/devlink-trap.rst | 4 include/net/devlink.h | 3 +++ net/core/devlink.c

[PATCH net-next 0/7] tc: Introduce a trap-and-forward action

2021-04-08 Thread Petr Machata
The TC action "trap" is used to instruct the HW datapath to drop the matched packet and transfer it to the host for processing in the SW pipeline. If instead it is desirable to forward the packet in the HW datapath, and to transfer a _copy_ to the SW pipeline, there is no practical way to achieve t

[PATCH net-next 4/7] mlxsw: Propagate extack to mlxsw_afa_block_commit()

2021-04-08 Thread Petr Machata
In the following patch, attempts to change the next/goto of a flexible action set from goto to next will be rejected for action sets that contain a trap_fwd action. Propagate extack to make it possible to communicate the issue to the user. Signed-off-by: Petr Machata Reviewed-by: Jiri Pirko Revi

[PATCH net-next 5/7] mlxsw: Offload trap_fwd

2021-04-08 Thread Petr Machata
Offload the TC action trap_fwd. This is offloaded as a TRAP_ACTION with forward_action of FORWARD (as opposed to NOP for the trap action). Unlike trap, trap_fwd needs to be in an "goto"-typed action set, not "next"-typed one. Trap_fwd'd traffic is marked with offload_fwd_mark and offload_l3_fwd_ma

[PATCH net-next 1/7] net: sched: Add a trap-and-forward action

2021-04-08 Thread Petr Machata
The TC action "trap" is used to instruct the HW datapath to drop the matched packet and transfer it for processing in the SW pipeline. If instead it is desirable to forward the packet and transferring a _copy_ to the SW pipeline, there is no practical way to achieve that. To that end add a new gen

[PATCH net-next 6/7] selftests: forwarding: Add a test for TC trapping behavior

2021-04-08 Thread Petr Machata
Test that trapped packets are forwarded through the SW datapath, whereas trap_fwd'd ones are not (but are forwarded through HW datapath). For completeness' sake, also test that "pass" (i.e. lack of trapping) simply forwards the packets in the HW datapath. Signed-off-by: Petr Machata Reviewed-by:

[PATCH net-next 7/7] selftests: mlxsw: Add a trap_fwd test to devlink_trap_control

2021-04-08 Thread Petr Machata
Test that trap_fwd'd packets show up under the correct trap. Signed-off-by: Petr Machata Reviewed-by: Ido Schimmel --- .../drivers/net/mlxsw/devlink_trap_control.sh | 23 --- 1 file changed, 20 insertions(+), 3 deletions(-) diff --git a/tools/testing/selftests/drivers/net/mlxsw

Re: [PATCH net v2 2/3] net: sched: fix action overwrite reference counting

2021-04-08 Thread Jamal Hadi Salim
On 2021-04-08 3:50 a.m., Vlad Buslov wrote: On Thu 08 Apr 2021 at 02:50, Cong Wang wrote: Origins of setting ovr based on NLM_F_REPLACE are lost since this code goes back to Linus' Linux-2.6.12-rc2 commit. Jamal, do you know if this is the expected behavior or just something unintended? Se

Re: [PATCH net-next] ethtool: Move __ethtool_get_link_ksettings() to common file

2021-04-08 Thread Andrew Lunn
On Thu, Apr 08, 2021 at 01:58:13PM +0300, Danielle Ratson wrote: > __ethtool_get_link_ksettings() function is shared by both ioctl and > netlink ethtool interfaces. > > Move it to net/ethtool/common.c file, which is the suitable place for > a shared code. > > Signed-off-by: Danielle Ratson > Sug

Re: [PATCH net-next] [RESEND] wireguard: disable in FIPS mode

2021-04-08 Thread Simo Sorce
On Wed, 2021-04-07 at 15:15 -0600, Jason A. Donenfeld wrote: > Hi Hangbin, > > On Wed, Apr 7, 2021 at 5:39 AM Hangbin Liu wrote: > > As the cryptos(BLAKE2S, Curve25519, CHACHA20POLY1305) in WireGuard are not > > FIPS certified, the WireGuard module should be disabled in FIPS mode. > > I'm not su

Re: [RFC v3 net-next 0/4] MT7530 interrupt support

2021-04-08 Thread René van Dorst
Quoting DENG Qingfang : Add support for MT7530 interrupt controller. DENG Qingfang (4): net: phy: add MediaTek PHY driver net: dsa: mt7530: add interrupt support dt-bindings: net: dsa: add MT7530 interrupt controller binding staging: mt7621-dts: enable MT7530 interrupt controller .../

Re: [PATCH net-next 1/7] net: sched: Add a trap-and-forward action

2021-04-08 Thread Jamal Hadi Salim
Hi Petr, On 2021-04-08 9:38 a.m., Petr Machata wrote: The TC action "trap" is used to instruct the HW datapath to drop the matched packet and transfer it for processing in the SW pipeline. If instead it is desirable to forward the packet and transferring a _copy_ to the SW pipeline, there is no

Re: [PATCH v2] ipv6: report errors for iftoken via netlink extack

2021-04-08 Thread David Ahern
On 4/7/21 9:59 AM, Stephen Hemminger wrote: > From: Stephen Hemminger > > Setting iftoken can fail for several different reasons but there > and there was no report to user as to the cause. Add netlink > extended errors to the processing of the request. > > This requires adding additional argume

Re: [PATCH v8 bpf-next 02/14] xdp: add xdp_shared_info data structure

2021-04-08 Thread Lorenzo Bianconi
> Hi Lorenzo, > > On Thu, Apr 08, 2021 at 02:50:54PM +0200, Lorenzo Bianconi wrote: > > Introduce xdp_shared_info data structure to contain info about > > "non-linear" xdp frame. xdp_shared_info will alias skb_shared_info > > allowing to keep most of the frags in the same cache-line. > > Introduce

Re: pull-request: mac80211 2021-04-08

2021-04-08 Thread Johannes Berg
On Thu, 2021-04-08 at 14:53 +0200, Johannes Berg wrote: > Hi, > > Yes, I'm late with this, sorry about that. I've mostly restricted this > to the most necessary fixes, though the virt_wifi one isn't but since > that's not used a lot, it's harmless and included since it's obvious. > > The only thi

Re: [PATCH v2 net-next] net: mana: Add a driver for Microsoft Azure Network Adapter (MANA)

2021-04-08 Thread kernel test robot
Hi Dexuan, I love your patch! Yet something to improve: [auto build test ERROR on net-next/master] url: https://github.com/0day-ci/linux/commits/Dexuan-Cui/net-mana-Add-a-driver-for-Microsoft-Azure-Network-Adapter-MANA/20210408-171836 base: https://git.kernel.org/pub/scm/linux/kernel/git

pull-request: mac80211 2021-04-08.2

2021-04-08 Thread Johannes Berg
Hi, Yes, I'm late with this, sorry about that. I've mostly restricted this to the most necessary fixes, though the virt_wifi one isn't but since that's not used a lot, it's harmless and included since it's obvious. This updated version includes another netlink buffer overrun fix, as reported by sy

pull-request: bpf 2021-04-08

2021-04-08 Thread Daniel Borkmann
Hi David, hi Jakub, The following pull-request contains BPF updates for your *net* tree. We've added 4 non-merge commits during the last 2 day(s) which contain a total of 4 files changed, 31 insertions(+), 10 deletions(-). The main changes are: 1) Validate and reject invalid JIT branch displace

Re: [RFC v3 net-next 0/4] MT7530 interrupt support

2021-04-08 Thread DENG Qingfang
Hi René, On Thu, Apr 8, 2021 at 10:02 PM René van Dorst wrote: > > Tested on Ubiquiti ER-X-SFP (MT7621) with 1 external phy which uses irq=POLL. > I wonder if the external PHY's IRQ can be registered in the devicetree. Change MT7530_NUM_PHYS to 6, and add the following to ER-X-SFP dts PHY node:

Re: [PATCH] SUNRPC: Add a check for gss_release_msg

2021-04-08 Thread Trond Myklebust
On Tue, 2021-04-06 at 19:16 -0500, Aditya Pakki wrote: > In gss_pipe_destroy_msg(), in case of error in msg, gss_release_msg > deletes gss_msg. The patch adds a check to avoid a potential double > free. > > Signed-off-by: Aditya Pakki > --- >  net/sunrpc/auth_gss/auth_gss.c | 3 ++- >  1 file chan

Re: [PATCH net-next] [RESEND] wireguard: disable in FIPS mode

2021-04-08 Thread Eric Biggers
On Thu, Apr 08, 2021 at 07:58:08PM +0800, Hangbin Liu wrote: > On Thu, Apr 08, 2021 at 09:06:52AM +0800, Hangbin Liu wrote: > > > Also, couldn't you just consider WireGuard to be outside your FIPS module > > > boundary, which would remove it from the scope of the certification? > > > > > > And how

Re: [PATCH rdma-next v2 0/5] Get rid of custom made module dependency

2021-04-08 Thread Devesh Sharma
On Thu, Apr 8, 2021 at 5:14 PM Leon Romanovsky wrote: > > On Thu, Apr 08, 2021 at 05:06:24PM +0530, Devesh Sharma wrote: > > On Sat, Apr 3, 2021 at 5:12 PM Leon Romanovsky wrote: > > > > > > On Sat, Apr 03, 2021 at 03:52:13PM +0530, Devesh Sharma wrote: > > > > On Thu, Apr 1, 2021 at 12:27 PM Leo

[PATCH] net: sched: sch_teql: fix null-pointer dereference

2021-04-08 Thread Pavel Tikhomirov
Reproduce: modprobe sch_teql tc qdisc add dev teql0 root teql0 This leads to (for instance in Centos 7 VM) OOPS: [ 532.366633] BUG: unable to handle kernel NULL pointer dereference at 00a8 [ 532.366733] IP: [] teql_destroy+0x18/0x100 [sch_teql] [ 532.366825] PGD 8001376d5

  1   2   3   >