[PATCH v3 1/2] net: dsa: seville: the packet buffer is 2 megabits, not megabytes

2020-10-15 Thread Maxim Kochetkov
The VSC9953 Seville switch has 2 megabits of buffer split into 4360 words of 60 bytes each. 2048 * 1024 is 2 megabytes instead of 2 megabits. 2 megabits is (2048 / 8) * 1024 = 256 * 1024. Signed-off-by: Maxim Kochetkov Reviewed-by: Vladimir Oltean Fixes: a63ed92d217f ("net: dsa: seville: fix buf

RE: [PATCH 2/6] dt-bindings: can: flexcan: fix fsl,clk-source property

2020-10-15 Thread Joakim Zhang
Hi Marc, > -Original Message- > From: Marc Kleine-Budde > Sent: 2020年10月16日 14:22 > To: Joakim Zhang ; robh...@kernel.org; > shawn...@kernel.org; s.ha...@pengutronix.de > Cc: devicet...@vger.kernel.org; Peng Fan ; Ying Liu > ; netdev@vger.kernel.org; Pankaj Bansal > ; linux-ker...@vger.k

RE: [PATCH 3/6] dt-bindings: can: flexcan: add fsl, can-index property to indicate a resource

2020-10-15 Thread Joakim Zhang
Hi Marc, > -Original Message- > From: Marc Kleine-Budde > Sent: 2020年10月16日 14:20 > To: Joakim Zhang ; robh...@kernel.org; > shawn...@kernel.org; s.ha...@pengutronix.de > Cc: devicet...@vger.kernel.org; Peng Fan ; Ying Liu > ; netdev@vger.kernel.org; Pankaj Bansal > ; linux-ker...@vger.k

RE: [PATCH 5/6] can: flexcan: add CAN wakeup function for i.MX8QM

2020-10-15 Thread Joakim Zhang
Hi Marc, > -Original Message- > From: Marc Kleine-Budde > Sent: 2020年10月16日 14:19 > To: Joakim Zhang ; robh...@kernel.org; > shawn...@kernel.org; s.ha...@pengutronix.de > Cc: ker...@pengutronix.de; dl-linux-imx ; Ying Liu > ; Peng Fan ; > linux-...@vger.kernel.org; Pankaj Bansal ; > netde

RE: [PATCH 6/6] can: flexcan: fix ECC function on LS1021A/LX2160A

2020-10-15 Thread Joakim Zhang
Hi Marc, > -Original Message- > From: Marc Kleine-Budde > Sent: 2020年10月16日 14:05 > To: Joakim Zhang ; robh...@kernel.org; > shawn...@kernel.org; s.ha...@pengutronix.de > Cc: ker...@pengutronix.de; dl-linux-imx ; Ying Liu > ; Peng Fan ; > linux-...@vger.kernel.org; Pankaj Bansal ; > netde

RE: [PATCH 5/6] can: flexcan: add CAN wakeup function for i.MX8QM

2020-10-15 Thread Joakim Zhang
Hi Marc, > -Original Message- > From: Marc Kleine-Budde > Sent: 2020年10月16日 14:00 > To: Joakim Zhang ; robh...@kernel.org; > shawn...@kernel.org; s.ha...@pengutronix.de > Cc: ker...@pengutronix.de; dl-linux-imx ; Ying Liu > ; Peng Fan ; > linux-...@vger.kernel.org; Pankaj Bansal ; > netde

[PATCH] [v4] wireless: Initial driver submission for pureLiFi STA devices

2020-10-15 Thread Srinivasan Raju
This introduces the pureLiFi LiFi driver for LiFi-X, LiFi-XC and LiFi-XL USB devices. This driver implementation has been based on the zd1211rw driver. Driver is based on 802.11 softMAC Architecture and uses native 802.11 for configuration and management. The driver is compiled and tested in ARM

Re: [PATCH] [PATCH] [v3] wireless: Initial driver submission for pureLiFi STA devices

2020-10-15 Thread Srinivasan Raju
Thanks for your comments Joe, I have resubmitted with the comments addressed Regards, Srini

Re: [PATCH 4/6] can: flexcan: rename macro FLEXCAN_QUIRK_SETUP_STOP_MODE -> FLEXCAN_QUIRK_SETUP_STOP_MODE_GPR

2020-10-15 Thread Marc Kleine-Budde
On 10/16/20 3:43 PM, Joakim Zhang wrote: > This patch intends to rename FLEXCAN_QUIRK_SETUP_STOP_MODE quirk > to FLEXCAN_QUIRK_SETUP_STOP_MODE_GRP for non-scu SoCs, coming patch will > add quirk for scu SoCs. > > For non-scu SoCs, setup stop mode with GPR register. > For scu SoCs, setup stop mode

Re: [PATCH 2/6] dt-bindings: can: flexcan: fix fsl,clk-source property

2020-10-15 Thread Marc Kleine-Budde
On 10/16/20 3:43 PM, Joakim Zhang wrote: > Correct fsl,clk-source example since flexcan driver uses "of_property_read_u8" > to get this property. Hopefully today Oleksij will post the next round of the yaml bindings conversion patch. Please resping when Oleksij's patch is applied. Marc -- Pengu

Re: [PATCH 3/6] dt-bindings: can: flexcan: add fsl, can-index property to indicate a resource

2020-10-15 Thread Marc Kleine-Budde
On 10/16/20 3:43 PM, Joakim Zhang wrote: > For SoCs with SCU support, need setup stop mode via SCU firmware, > so this property can help indicate a resource. > > Signed-off-by: Joakim Zhang > --- > Documentation/devicetree/bindings/net/can/fsl-flexcan.txt | 5 + > 1 file changed, 5 insertion

Re: [PATCH 5/6] can: flexcan: add CAN wakeup function for i.MX8QM

2020-10-15 Thread Marc Kleine-Budde
On 10/16/20 3:43 PM, Joakim Zhang wrote: > The System Controller Firmware (SCFW) is a low-level system function > which runs on a dedicated Cortex-M core to provide power, clock, and > resource management. It exists on some i.MX8 processors. e.g. i.MX8QM > (QM, QP), and i.MX8QX (QXP, DX). SCU drive

Re: [PATCH] bpfilter: Fix build error with CONFIG_BPFILTER_UMH

2020-10-15 Thread Yuehaibing
On 2020/10/16 3:57, Alexei Starovoitov wrote: > On Thu, Oct 15, 2020 at 12:26 PM Jakub Kicinski wrote: >> >> On Thu, 15 Oct 2020 12:03:14 -0700 Alexei Starovoitov wrote: >>> On Thu, Oct 15, 2020 at 11:56 AM Jakub Kicinski wrote: How so? It's using in-tree headers instead of system ones. >

Re: [PATCH 6/6] can: flexcan: fix ECC function on LS1021A/LX2160A

2020-10-15 Thread Marc Kleine-Budde
On 10/16/20 3:43 PM, Joakim Zhang wrote: > After double check with Layerscape CAN owner (Pankaj Bansal), confirm > that LS1021A doesn't support ECC, and LX2160A indeed supports ECC. > > For SoCs with ECC supported, even use FLEXCAN_QUIRK_DISABLE_MECR quirk to > disable non-correctable errors inter

Re: linux-next: manual merge of the wireless-drivers tree with the net tree

2020-10-15 Thread Kalle Valo
Stephen Rothwell writes: > Hi all, > > Today's linux-next merge of the wireless-drivers tree got a conflict in: > > tools/testing/selftests/net/Makefile > > between commit: > > 1a01727676a8 ("selftests: Add VRF route leaking tests") > > from the net tree and commit: > > b7cc6d3c5c91 ("selft

Re: [PATCH 5/6] can: flexcan: add CAN wakeup function for i.MX8QM

2020-10-15 Thread Marc Kleine-Budde
On 10/16/20 3:43 PM, Joakim Zhang wrote: > The System Controller Firmware (SCFW) is a low-level system function > which runs on a dedicated Cortex-M core to provide power, clock, and > resource management. It exists on some i.MX8 processors. e.g. i.MX8QM > (QM, QP), and i.MX8QX (QXP, DX). SCU drive

Re: [GIT PULL] Networking

2020-10-15 Thread patchwork-bot+netdevbpf
Hello: This pull request was applied to netdev/net.git (refs/heads/master): On Thu, 15 Oct 2020 14:13:02 -0700 you wrote: > Hi! > > The following changes since commit 3fdd47c3b40ac48e6e6e5904cf24d12e6e073a96: > > Merge tag 'for_linus' of > git://git.kernel.org/pub/scm/linux/kernel/git/mst/vh

[PATCH 6/6] can: flexcan: fix ECC function on LS1021A/LX2160A

2020-10-15 Thread Joakim Zhang
After double check with Layerscape CAN owner (Pankaj Bansal), confirm that LS1021A doesn't support ECC, and LX2160A indeed supports ECC. For SoCs with ECC supported, even use FLEXCAN_QUIRK_DISABLE_MECR quirk to disable non-correctable errors interrupt and freeze mode, had better use FLEXCAN_QUIRK_

[PATCH 5/6] can: flexcan: add CAN wakeup function for i.MX8QM

2020-10-15 Thread Joakim Zhang
The System Controller Firmware (SCFW) is a low-level system function which runs on a dedicated Cortex-M core to provide power, clock, and resource management. It exists on some i.MX8 processors. e.g. i.MX8QM (QM, QP), and i.MX8QX (QXP, DX). SCU driver manages the IPC interface between host CPU and

[PATCH 4/6] can: flexcan: rename macro FLEXCAN_QUIRK_SETUP_STOP_MODE -> FLEXCAN_QUIRK_SETUP_STOP_MODE_GPR

2020-10-15 Thread Joakim Zhang
This patch intends to rename FLEXCAN_QUIRK_SETUP_STOP_MODE quirk to FLEXCAN_QUIRK_SETUP_STOP_MODE_GRP for non-scu SoCs, coming patch will add quirk for scu SoCs. For non-scu SoCs, setup stop mode with GPR register. For scu SoCs, setup stop mode with SCU firmware. Signed-off-by: Joakim Zhang ---

[PATCH 2/6] dt-bindings: can: flexcan: fix fsl,clk-source property

2020-10-15 Thread Joakim Zhang
Correct fsl,clk-source example since flexcan driver uses "of_property_read_u8" to get this property. Fixes: 9d733992772d ("dt-bindings: can: flexcan: add PE clock source property to device tree") Signed-off-by: Joakim Zhang --- Documentation/devicetree/bindings/net/can/fsl-flexcan.txt | 2 +- 1

[PATCH 1/6] firmware: imx: always export SCU symbols

2020-10-15 Thread Joakim Zhang
From: Liu Ying Always export SCU symbols for both SCU SoCs and non-SCU SoCs to avoid build error. Signed-off-by: Liu Ying Signed-off-by: Peng Fan Signed-off-by: Joakim Zhang --- include/linux/firmware/imx/ipc.h | 15 +++ include/linux/firmware/imx/svc/misc.h | 23 +++

[PATCH 3/6] dt-bindings: can: flexcan: add fsl,can-index property to indicate a resource

2020-10-15 Thread Joakim Zhang
For SoCs with SCU support, need setup stop mode via SCU firmware, so this property can help indicate a resource. Signed-off-by: Joakim Zhang --- Documentation/devicetree/bindings/net/can/fsl-flexcan.txt | 5 + 1 file changed, 5 insertions(+) diff --git a/Documentation/devicetree/bindings/ne

[PATCH 0/6] can: flexcan: add stop mode support for i.MX8QM

2020-10-15 Thread Joakim Zhang
The first patch from Liu Ying aims to export SCU symbols for SoCs w/wo SCU, so that no need to check CONFIG_IMX_SCU in the specific driver. The following patches are for flexcan to add stop mode support for i.MX8QM. Joakim Zhang (5): dt-bindings: can: flexcan: fix fsl,clk-source property dt-b

[PATCH net] ibmvnic: save changed mac address to adapter->mac_addr

2020-10-15 Thread Lijun Pan
After mac address change request completes successfully, the new mac address need to be saved to adapter->mac_addr as well as netdev->dev_addr. Otherwise, adapter->mac_addr still holds old data. Fixes: 62740e97881c("net/ibmvnic: Update MAC address settings after adapter reset") Signed-off-by: Lij

[PATCHv4] selftests: rtnetlink: load fou module for kci_test_encap_fou() test

2020-10-15 Thread Po-Hsu Lin
The kci_test_encap_fou() test from kci_test_encap() in rtnetlink.sh needs the fou module to work. Otherwise it will fail with: $ ip netns exec "$testns" ip fou add port ipproto 47 RTNETLINK answers: No such file or directory Error talking to the kernel Add the CONFIG_NET_FOU into the c

Re: Dts for eth network based on marvell's mv88e6390x crashes Xilinx's linux-kernel v5.4

2020-10-15 Thread Andrew Lunn
On Sun, Oct 11, 2020 at 03:31:52PM +0300, michael alayev wrote: > Hello, > > This is my system's network topology. It relies on Xilinx's Zynq-7000 soc. > > zynq-7000 switch1 switch2 > (cpu) mv88e6390xmv88e6390x > --- - - > | | | |

Re: [net-next PATCH 01/10] octeontx2-af: Update get/set resource count functions

2020-10-15 Thread sundeep subbaraya
Hi Jesse Branderburg, On Thu, Oct 15, 2020 at 9:27 PM Jesse Brandeburg wrote: > > sundeep.l...@gmail.com wrote: > > > From: Subbaraya Sundeep > > > > Since multiple blocks of same type are present in > > 98xx, modify functions which get resource count and > > which update resource count to work

Re: [net-next PATCH 06/10] octeontx2-af: Add NIX1 interfaces to NPC

2020-10-15 Thread sundeep subbaraya
Hi Jakub, On Thu, Oct 15, 2020 at 9:02 PM Jakub Kicinski wrote: > > On Thu, 15 Oct 2020 17:53:07 +0530 sundeep subbaraya wrote: > > Hi Jakub, > > > > On Thu, Oct 15, 2020 at 8:18 AM Jakub Kicinski wrote: > > > > > > On Tue, 13 Oct 2020 15:56:28 +0530 sundeep.l...@gmail.com wrote: > > > > -static

Re: [PATCH] Bluetooth: Use lock_sock() when acquiring lock in sco_conn_del

2020-10-15 Thread Xu, Yanfei
On 10/14/20 8:31 PM, Hillf Danton wrote: On Wed, 14 Oct 2020 15:17:31 +0800 From: Yanfei Xu Locking slock-AF_BLUETOOTH-BTPROTO_SCO may happen in process context or BH context. If in process context, we should use lock_sock(). As blow warning, sco_conn_del() is called in process context, so

[PATCH v3 net-next] net: stmmac: Enable EEE HW LPI timer with auto SW/HW switching

2020-10-15 Thread Voon Weifeng
From: "Vineetha G. Jaya Kumaran" This patch enables the HW LPI Timer which controls the automatic entry and exit of the LPI state. The EEE LPI timer value is configured through ethtool. The driver will auto select the LPI HW timer if the value in the HW timer supported range. Else, the driver wil

Re: [PATCH net-next 2/2] dt-bindings: net: dsa: b53: Drop old bindings

2020-10-15 Thread Florian Fainelli
On 10/15/2020 12:05 AM, Kurt Kanzenbach wrote: On Mon Oct 12 2020, Rob Herring wrote: On Sat, Oct 10, 2020 at 06:46:27PM +0200, Kurt Kanzenbach wrote: The device tree bindings have been converted to YAML. No need to keep the text file around. Update MAINTAINERS file accordingly. You can sq

Re: [PATCH v3] Add support for mv88e6393x family of Marvell.

2020-10-15 Thread Florian Fainelli
On 10/15/2020 7:09 PM, Pavana Sharma wrote: The Marvell 88E6393X device is a single-chip integration of a 11-port Ethernet switch with eight integrated Gigabit Ethernet (GbE) transceivers and three 10-Gigabit interfaces. This patch adds functionalities specific to mv88e6393x family (88E6393X,

[net 2/2] tipc: fix incorrect setting window for bcast link

2020-10-15 Thread Hoang Huu Le
In commit 16ad3f4022bb ("tipc: introduce variable window congestion control"), we applied the algorithm to select window size from minimum window to the configured maximum window for unicast link, and, besides we chose to keep the window size for broadcast link unchanged and equal (i.e fix window 5

[net 1/2] tipc: re-configure queue limit for broadcast link

2020-10-15 Thread Hoang Huu Le
The queue limit of the broadcast link is being calculated base on initial MTU. However, when MTU value changed (e.g manual changing MTU on NIC device, MTU negotiation etc.,) we do not re-calculate queue limit. This gives throughput does not reflect with the change. So fix it by calling the functio

[PATCH v3] Add support for mv88e6393x family of Marvell.

2020-10-15 Thread Pavana Sharma
The Marvell 88E6393X device is a single-chip integration of a 11-port Ethernet switch with eight integrated Gigabit Ethernet (GbE) transceivers and three 10-Gigabit interfaces. This patch adds functionalities specific to mv88e6393x family (88E6393X, 88E6193X and 88E6191X) Signed-off-by: Pavana Sh

[PATCH] rtnetlink: fix data overflow in rtnl_calcit()

2020-10-15 Thread zhudi
"ip addr show" command execute error when we have a physical network card with number of VFs larger than 247. The return value of if_nlmsg_size() in rtnl_calcit() will exceed range of u16 data type when any network cards has a larger number of VFs. rtnl_vfinfo_size() will significant increase need

Re: [GIT PULL] Networking

2020-10-15 Thread pr-tracker-bot
The pull request you sent on Thu, 15 Oct 2020 14:13:02 -0700: > git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net-next.git > tags/net-next-5.10 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/9ff9b0d392ea08090cd1780fb196f36dbb586529 Thank you! -- Deet-doot-do

Re: [PATCH 8/8] staging: wfx: improve robustness of wfx_get_hw_rate()

2020-10-15 Thread Nathan Chancellor
On Fri, Oct 09, 2020 at 07:13:07PM +0200, Jerome Pouiller wrote: > From: Jérôme Pouiller > > Smatch complains: > > data_tx.c:37 wfx_get_hw_rate() warn: constraint '(struct > ieee80211_supported_band)->bitrates' overflow 'band->bitrates' 0 <= abs_rl > '0-127' user_rl '' required = '(struct

Re: [PATCH v2 net-next] net: stmmac: Enable EEE HW LPI timer with auto SW/HW switching

2020-10-15 Thread kernel test robot
/kernel/git/davem/net-next.git d25e2e9388eda61b6e298585024ee3355f50c493 config: x86_64-randconfig-a012-20201015 (attached as .config) compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project e7b4feea8e1bf520b34ad8c116abab6677344b74) reproduce (this is a W=1 build): wget https

Re: [PATCH net-next v2 0/9] net: ethernet: ti: am65-cpsw: add multi port support in mac-only mode

2020-10-15 Thread Grygorii Strashko
On 16/10/2020 02:19, Grygorii Strashko wrote: Hi This series adds multi-port support in mac-only mode (multi MAC mode) to TI AM65x CPSW driver in preparation for enabling support for multi-port devices, like Main CPSW0 on K3 J721E SoC or future CPSW3g on K3 AM64x SoC. The multi MAC mode is i

[PATCH 3/3] selinux: Add SELinux GTP support

2020-10-15 Thread Richard Haines
The SELinux GTP implementation is explained in: Documentation/security/GTP.rst Signed-off-by: Richard Haines --- Documentation/security/GTP.rst | 61 ++ security/selinux/hooks.c| 66 + security/selinux/include/classmap.h | 2 +

[PATCH net-next v2 6/9] net: ethernet: ti: am65-cpsw: keep active if cpts enabled

2020-10-15 Thread Grygorii Strashko
Some K3 CPSW NUSS instances can lose context after PM runtime ON->OFF->ON transition depending on integration (including all submodules: CPTS, MDIO, etc), like J721E Main CPSW (CPSW9G). In case CPTS is enabled it's initialized during probe and does not expect to be reset. Hence, keep K3 CPSW activ

[PATCH net-next v2 7/9] net: ethernet: ti: am65-cpsw: fix tx csum offload for multi mac mode

2020-10-15 Thread Grygorii Strashko
The current implementation uses .ndo_set_features() callback to track NETIF_F_HW_CSUM feature changes and update generic CPSW_P0_CONTROL_REG.RX_CHECKSUM_EN option accordingly. It's not going to work in case of multi-port devices as TX csum offload can be changed per netdev. On K3 CPSWxG devices TX

[PATCH net-next v2 9/9] net: ethernet: ti: am65-cpsw: add multi port support in mac-only mode

2020-10-15 Thread Grygorii Strashko
This patch adds final multi-port support to TI AM65x CPSW driver path in preparation for adding support for multi-port devices, like Main CPSW0 on K3 J721E SoC or future CPSW3g on K3 AM64x SoC. - the separate netdev is created for every enabled external Port; - DMA channels are common/shared for al

[PATCH net-next v2 8/9] net: ethernet: ti: am65-cpsw: prepare xmit/rx path for multi-port devices in mac-only mode

2020-10-15 Thread Grygorii Strashko
This patch adds multi-port support to TI AM65x CPSW driver xmit/rx path in preparation for adding support for multi-port devices, like Main CPSW0 on K3 J721E SoC or future CPSW3g on K3 AM64x SoC. Hence DMA channels are common/shared for all ext Ports and the RX/TX NAPI and DMA processing going to b

[PATCH net-next v2 3/9] net: ethernet: ti: am65-cpsw: use cppi5_desc_is_tdcm()

2020-10-15 Thread Grygorii Strashko
Use cppi5_desc_is_tdcm() helper for teardown indicator detection instead of hard-coded value. Signed-off-by: Grygorii Strashko --- drivers/net/ethernet/ti/am65-cpsw-nuss.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/ethernet/ti/am65-cpsw-nuss.c b/drivers/

[PATCH net-next v2 5/9] net: ethernet: ti: am65-cpsw: fix vlan offload for multi mac mode

2020-10-15 Thread Grygorii Strashko
The VLAN offload for AM65x CPSW2G is implemented using existing ALE APIs, which are also used by legacy CPSW drivers. So, now it always adds current Ext. Port and Host as VLAN members when VLAN is added by 8021Q core (.ndo_vlan_rx_add_vid) and forcibly removes VLAN from ALE table in .ndo_vlan_rx_ki

[PATCH net-next v2 1/9] net: ethernet: ti: am65-cpsw: move ale selection in pdata

2020-10-15 Thread Grygorii Strashko
In preparation of adding more multi-port K3 CPSW versions move ALE selection in am65_cpsw_pdata, so it can be selected basing on DT compatibility property. Signed-off-by: Grygorii Strashko --- drivers/net/ethernet/ti/am65-cpsw-nuss.c | 4 +++- drivers/net/ethernet/ti/am65-cpsw-nuss.h | 1 + 2 fi

[PATCH net-next v2 2/9] net: ethernet: ti: am65-cpsw: move free desc queue mode selection in pdata

2020-10-15 Thread Grygorii Strashko
In preparation of adding more multi-port K3 CPSW versions move free descriptor queue mode selection in am65_cpsw_pdata, so it can be selected basing on DT compatibility property. Signed-off-by: Grygorii Strashko --- drivers/net/ethernet/ti/am65-cpsw-nuss.c | 4 +++- drivers/net/ethernet/ti/am65-

[PATCH net-next v2 4/9] net: ethernet: ti: cpsw_ale: add cpsw_ale_vlan_del_modify()

2020-10-15 Thread Grygorii Strashko
Add/export cpsw_ale_vlan_del_modify() and use it in cpsw_switchdev instead of generic cpsw_ale_del_vlan() to avoid mixing 8021Q and switchdev VLAN offload. This is preparation patch equired by follow up changes. Signed-off-by: Grygorii Strashko --- drivers/net/ethernet/ti/cpsw_ale.c | 24 +

[PATCH net-next v2 0/9] net: ethernet: ti: am65-cpsw: add multi port support in mac-only mode

2020-10-15 Thread Grygorii Strashko
Hi This series adds multi-port support in mac-only mode (multi MAC mode) to TI AM65x CPSW driver in preparation for enabling support for multi-port devices, like Main CPSW0 on K3 J721E SoC or future CPSW3g on K3 AM64x SoC. The multi MAC mode is implemented by configuring every enabled port in "m

Re: [PATCH 0/7] TC-ETF support PTP clocks series

2020-10-15 Thread Thomas Gleixner
Andreas, On Wed, Oct 14 2020 at 09:12, Andreas Meisinger wrote: > Sorry about the wrong format/style of my last mail, hope I did get it > right this time. No problem. Yes this looks better. The only thing which could be improved is that your mail client fails to add In-Reply-To: References:

Re: [PATCH net-next,v2 0/9] netfilter: flowtable bridge and vlan enhancements

2020-10-15 Thread Pablo Neira Ayuso
On Thu, Oct 15, 2020 at 12:47:48PM -0700, Jakub Kicinski wrote: > On Thu, 15 Oct 2020 18:30:29 +0200 Pablo Neira Ayuso wrote: > > The following patchset adds infrastructure to augment the Netfilter > > flowtable fastpath [1] to support for local network topologies that > > combine IP forwarding, br

Re: [PATCH v2] net: usb: rtl8150: don't incorrectly assign random MAC addresses

2020-10-15 Thread Jakub Kicinski
On Thu, 15 Oct 2020 15:24:51 -0700 Jakub Kicinski wrote: > On Fri, 16 Oct 2020 08:59:22 +1100 Stephen Rothwell wrote: > > > I will apply the above patch to the merge of the usb tree today to fix > > > up a semantic conflict between the usb tree and Linus' tree. > > > > It looks like you forgot

Re: [PATCH] [PATCH] [v3] wireless: Initial driver submission for pureLiFi STA devices

2020-10-15 Thread Joe Perches
On Wed, 2020-10-14 at 11:49 +0530, Srinivasan Raju wrote: > This introduces the pureLiFi LiFi driver for LiFi-X, LiFi-XC > and LiFi-XL USB devices. trivia: netdev_ might be better than dev_. > diff --git a/drivers/net/wireless/purelifi/chip.c > b/drivers/net/wireless/purelifi/chip.c [] > +int pu

[PATCH 0/3] Add LSM/SELinux support for GPRS Tunneling Protocol (GTP)

2020-10-15 Thread Richard Haines
These patches came about after looking at 5G open source in particular the updated 5G GTP driver at [1]. As this driver is still under development, added the LSM/SELinux hooks to the current stable GTP version in kernel selinux-next [2]. Similar hooks have also been implemented in [1] as it uses th

Re: [PATCH v2] net: usb: rtl8150: don't incorrectly assign random MAC addresses

2020-10-15 Thread Jakub Kicinski
On Fri, 16 Oct 2020 08:59:22 +1100 Stephen Rothwell wrote: > > I will apply the above patch to the merge of the usb tree today to fix > > up a semantic conflict between the usb tree and Linus' tree. > > It looks like you forgot to mention this one to Linus :-( > > It should probably say: > > F

Re: TCP sender stuck in persist despite peer advertising non-zero window

2020-10-15 Thread Apollon Oikonomopoulos
Yuchung Cheng writes: > On Thu, Oct 15, 2020 at 1:22 PM Neal Cardwell wrote: >> >> On Thu, Oct 15, 2020 at 2:31 PM Apollon Oikonomopoulos >> wrote: >> > >> > Hi, >> > >> > I'm trying to debug a (possible) TCP issue we have been encountering >> > sporadically during the past couple of years. Cu

Re: [PATCH v2] net: usb: rtl8150: don't incorrectly assign random MAC addresses

2020-10-15 Thread Stephen Rothwell
Hi Greg, On Mon, 12 Oct 2020 09:14:28 +1100 Stephen Rothwell wrote: > > On Sun, 11 Oct 2020 23:00:30 +0530 Anant Thazhemadam > wrote: > > > > In set_ethernet_addr(), if get_registers() succeeds, the ethernet address > > that was read must be copied over. Otherwise, a random ethernet address >

linux-next: manual merge of the wireless-drivers tree with the net tree

2020-10-15 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the wireless-drivers tree got a conflict in: tools/testing/selftests/net/Makefile between commit: 1a01727676a8 ("selftests: Add VRF route leaking tests") from the net tree and commit: b7cc6d3c5c91 ("selftests: net: Add drop monitor test") from the wi

Re: [PATCHv3 net-next 16/16] sctp: enable udp tunneling socks

2020-10-15 Thread Michael Tuexen
> On 15. Oct 2020, at 23:23, David Laight wrote: > > From: Marcelo Ricardo Leitner >> Sent: 15 October 2020 18:43 >> >> Actually.. >> >> On Tue, Oct 13, 2020 at 03:27:41PM +0800, Xin Long wrote: >> ... >>> Also add sysctl udp_port to allow changing the listening >>> sock's port by users. > > I

[PATCH net] net: dsa: reference count the host mdb addresses

2020-10-15 Thread Vladimir Oltean
Currently any DSA switch that implements the multicast ops (properly, that is) gets these errors after just sitting for a while, with at least 2 ports bridged: [ 286.013814] mscc_felix :00:00.5 swp3: failed (err=-2) to del object (id=3) The reason has to do with this piece of code:

RE: [PATCHv3 net-next 16/16] sctp: enable udp tunneling socks

2020-10-15 Thread David Laight
From: Marcelo Ricardo Leitner > Sent: 15 October 2020 18:43 > > Actually.. > > On Tue, Oct 13, 2020 at 03:27:41PM +0800, Xin Long wrote: > ... > > Also add sysctl udp_port to allow changing the listening > > sock's port by users. I've not read through this change... But surely the UDP port (or

Re: [PATCH net 1/4] ptp: ptp_idt82p33: update to support adjphase

2020-10-15 Thread Richard Cochran
On Thu, Oct 15, 2020 at 07:30:38PM +, Min Li wrote: > When you have time, can you take a look at this change? Thanks Min, I think your series was posted during a time when net-next was closed. Please report the series. Thanks, Richard

Re: pull-request: bpf-next 2020-10-15

2020-10-15 Thread Jakub Kicinski
On Thu, 15 Oct 2020 21:15:52 +0200 Daniel Borkmann wrote: > The main changes are: > > 1) Fix register equivalence tracking in verifier, from Alexei Starovoitov. > > 2) Fix sockmap error path to not call bpf_prog_put() with NULL, from Alex > Dewar. > > 3) Fix sockmap to add locking annotations t

Re: [PATCH v3 2/2] vhost-vdpa: fix page pinning leakage in error path

2020-10-15 Thread si-wei liu
On 10/15/2020 6:11 AM, Michael S. Tsirkin wrote: On Thu, Oct 15, 2020 at 02:15:32PM +0800, Jason Wang wrote: On 2020/10/14 上午7:42, si-wei liu wrote: So what I suggest is to fix the pinning leakage first and do the possible optimization on top (which is still questionable to me). OK. Unfortu

[PATCH net-next] net: pcs-xpcs: depend on MDIO_BUS instead of selecting it

2020-10-15 Thread Ioana Ciornei
The below compile time error can be seen when PHYLIB is configured as a module. ld: drivers/net/pcs/pcs-xpcs.o: in function `xpcs_read': pcs-xpcs.c:(.text+0x29): undefined reference to `mdiobus_read' ld: drivers/net/pcs/pcs-xpcs.o: in function `xpcs_soft_reset.constprop.7': pcs-xpcs.c:(.text+0

Re: [Patch net v2] ip_gre: set dev->hard_header_len and dev->needed_headroom properly

2020-10-15 Thread Willem de Bruijn
On Thu, Oct 15, 2020 at 3:19 PM Xie He wrote: > > On Thu, Oct 15, 2020 at 6:42 AM Willem de Bruijn > wrote: > > > > On Wed, Oct 14, 2020 at 10:25 PM Xie He wrote: > > > > > > Actually I think dev->type can be seen from user space. For example, > > > when you type "ip link", it will display the l

Re: [PATCH] bpfilter: Fix build error with CONFIG_BPFILTER_UMH

2020-10-15 Thread Alexei Starovoitov
On Thu, Oct 15, 2020 at 12:26 PM Jakub Kicinski wrote: > > On Thu, 15 Oct 2020 12:03:14 -0700 Alexei Starovoitov wrote: > > On Thu, Oct 15, 2020 at 11:56 AM Jakub Kicinski wrote: > > > How so? It's using in-tree headers instead of system ones. > > > Many samples seem to be doing the same thing. >

Re: [PATCH net-next 0/4] net: add functionality to net core byte/packet counters and use it in r8169

2020-10-15 Thread Jakub Kicinski
On Thu, 15 Oct 2020 17:47:32 +0200 Heiner Kallweit wrote: > This series adds missing functionality to the net core handling of > byte/packet counters and statistics. The extensions are used then > to remove private rx/tx byte/packet counters in r8169 driver. As much as I was hoping to apply this,

Re: [PATCH net-next,v2 0/9] netfilter: flowtable bridge and vlan enhancements

2020-10-15 Thread Jakub Kicinski
On Thu, 15 Oct 2020 18:30:29 +0200 Pablo Neira Ayuso wrote: > The following patchset adds infrastructure to augment the Netfilter > flowtable fastpath [1] to support for local network topologies that > combine IP forwarding, bridge and vlan devices. > > A typical scenario that can benefit from thi

Re: [PATCH RFC bpf-next 1/2] bpf_redirect_neigh: Support supplying the nexthop as a helper parameter

2020-10-15 Thread Toke Høiland-Jørgensen
David Ahern writes: > On 10/15/20 9:46 AM, Toke Høiland-Jørgensen wrote: >> diff --git a/include/uapi/linux/bpf.h b/include/uapi/linux/bpf.h >> index bf5a99d803e4..980cc1363be8 100644 >> --- a/include/uapi/linux/bpf.h >> +++ b/include/uapi/linux/bpf.h >> @@ -3677,15 +3677,19 @@ union bpf_attr { >

net-next is CLOSED

2020-10-15 Thread Jakub Kicinski
It's a wrap, please stop sending -next material. As most of you know from Twitter Dave had a medical emergency and we're temporarily on our own :( I may not be able to flip the "net-next" image on vger, so please just watch the mailing list for an announcement when tree opens.

RE: [PATCH net 2/4] ptp: ptp_idt82p33: add more debug logs

2020-10-15 Thread Min Li
Hi David/Richard When you have time, can you take a look at this change? Thanks Min -Original Message- From: min.li...@renesas.com Sent: August 7, 2020 11:58 AM To: richardcoch...@gmail.com Cc: netdev@vger.kernel.org; linux-ker...@vger.kernel.org; Min Li Subject: [PATCH net 2/4] ptp:

RE: [PATCH net 3/4] ptp: ptp_idt82p33: use do_aux_work for delay work

2020-10-15 Thread Min Li
Hi David/Richard When you have time, can you take a look at this change? Thanks Min -Original Message- From: min.li...@renesas.com Sent: August 7, 2020 11:58 AM To: richardcoch...@gmail.com Cc: netdev@vger.kernel.org; linux-ker...@vger.kernel.org; Min Li Subject: [PATCH net 3/4] ptp:

RE: [PATCH net 4/4] ptp: ptp_idt82p33: support individually configure output by index

2020-10-15 Thread Min Li
Hi David/Richard When you have time, can you take a look at this change? Thanks Min -Original Message- From: min.li...@renesas.com Sent: August 7, 2020 11:58 AM To: richardcoch...@gmail.com Cc: netdev@vger.kernel.org; linux-ker...@vger.kernel.org; Min Li Subject: [PATCH net 4/4] ptp:

RE: [PATCH net 1/4] ptp: ptp_idt82p33: update to support adjphase

2020-10-15 Thread Min Li
Hi David/Richard When you have time, can you take a look at this change? Thanks Min -Original Message- From: min.li...@renesas.com Sent: August 7, 2020 11:56 AM To: richardcoch...@gmail.com Cc: netdev@vger.kernel.org; linux-ker...@vger.kernel.org; Min Li Subject: [PATCH net 1/4] ptp:

Re: [PATCH] bpfilter: Fix build error with CONFIG_BPFILTER_UMH

2020-10-15 Thread Jakub Kicinski
On Thu, 15 Oct 2020 12:03:14 -0700 Alexei Starovoitov wrote: > On Thu, Oct 15, 2020 at 11:56 AM Jakub Kicinski wrote: > > How so? It's using in-tree headers instead of system ones. > > Many samples seem to be doing the same thing. > > There is no such thing as "usr/include" in the kernel build

Re: [Patch net v2] ip_gre: set dev->hard_header_len and dev->needed_headroom properly

2020-10-15 Thread Xie He
On Thu, Oct 15, 2020 at 6:42 AM Willem de Bruijn wrote: > > On Wed, Oct 14, 2020 at 10:25 PM Xie He wrote: > > > > Actually I think dev->type can be seen from user space. For example, > > when you type "ip link", it will display the link type for you. So I > > think it is useful to keep different

ethtool 5.9 released

2020-10-15 Thread Michal Kubecek
Hello, ethtool 5.9 has been released. Home page: https://www.kernel.org/pub/software/network/ethtool/ Download link: https://www.kernel.org/pub/software/network/ethtool/ethtool-5.9.tar.xz Release notes: * Feature: extended link state * Feature: QSFP-DD support * Feature:

pull-request: bpf-next 2020-10-15

2020-10-15 Thread Daniel Borkmann
Hi David, hi Jakub, The following pull-request contains BPF *fixes* for your *net-next* tree. We've added 4 non-merge commits during the last 3 day(s) which contain a total of 5 files changed, 70 insertions(+), 46 deletions(-). The main changes are: 1) Fix register equivalence tracking in verif

Re: [PATCH] net: sockmap: Don't call bpf_prog_put() on NULL pointer

2020-10-15 Thread patchwork-bot+netdevbpf
Hello: This patch was applied to bpf/bpf-next.git (refs/heads/master): On Mon, 12 Oct 2020 18:09:53 +0100 you wrote: > If bpf_prog_inc_not_zero() fails for skb_parser, then bpf_prog_put() is > called unconditionally on skb_verdict, even though it may be NULL. Fix > and tidy up error path. > > Ad

Re: [PATCH 1/2] net: store KCOV remote handle in sk_buff

2020-10-15 Thread Willem de Bruijn
On Tue, Oct 13, 2020 at 12:50 PM Jakub Kicinski wrote: > > On Tue, 13 Oct 2020 18:59:28 +0300 Aleksandr Nogikh wrote: > > On Mon, 12 Oct 2020 at 09:04, Dmitry Vyukov wrote: > > > > > > On Sat, Oct 10, 2020 at 5:14 PM Jakub Kicinski wrote: > > > > > > > > On Sat, 10 Oct 2020 09:54:57 +0200 Dmitry

Re: [PATCH] bpfilter: Fix build error with CONFIG_BPFILTER_UMH

2020-10-15 Thread Alexei Starovoitov
On Thu, Oct 15, 2020 at 11:56 AM Jakub Kicinski wrote: > > On Thu, 15 Oct 2020 11:53:08 -0700 Alexei Starovoitov wrote: > > On Thu, Oct 15, 2020 at 9:37 AM Jakub Kicinski wrote: > > > On Wed, 14 Oct 2020 17:17:49 +0800 YueHaibing wrote: > > > > IF CONFIG_BPFILTER_UMH is set, building fails: > > >

Re: [PATCH bpf-next] selftests/bpf: fix compilation error in progs/profiler.inc.h

2020-10-15 Thread Daniel Borkmann
On 10/15/20 7:50 AM, Song Liu wrote: On Oct 14, 2020, at 9:29 PM, Alexei Starovoitov wrote: On Tue, Oct 13, 2020 at 09:36:38PM -0700, Song Liu wrote: Fix the following error when compiling selftests/bpf progs/profiler.inc.h:246:5: error: redefinition of 'pids_cgrp_id' as different kind of sy

Re: [PATCH net-next] netfilter: nftables: allow re-computing sctp CRC-32C in 'payload' statements

2020-10-15 Thread patchwork-bot+netdevbpf
Hello: This patch was applied to netdev/net-next.git (refs/heads/master): On Thu, 15 Oct 2020 18:39:27 +0200 you wrote: > From: Davide Caratti > > nftables payload statements are used to mangle SCTP headers, but they can > only replace the Internet Checksum. As a consequence, nftables rules tha

Re: [PATCH] bpfilter: Fix build error with CONFIG_BPFILTER_UMH

2020-10-15 Thread Jakub Kicinski
On Thu, 15 Oct 2020 11:53:08 -0700 Alexei Starovoitov wrote: > On Thu, Oct 15, 2020 at 9:37 AM Jakub Kicinski wrote: > > On Wed, 14 Oct 2020 17:17:49 +0800 YueHaibing wrote: > > > IF CONFIG_BPFILTER_UMH is set, building fails: > > > > > > In file included from /usr/include/sys/socket.h:33:0, > >

Re: [PATCH v4 1/2] net: Add mhi-net driver

2020-10-15 Thread Eric Dumazet
On 10/15/20 3:29 PM, Loic Poulain wrote: > On Thu, 15 Oct 2020 at 14:41, Eric Dumazet wrote: >> >> >> >> On 10/15/20 12:31 PM, Loic Poulain wrote: >>> This patch adds a new network driver implementing MHI transport for >>> network packets. Packets can be in any format, though QMAP (rmnet) >>> i

Re: [PATCH net-next] netfilter: nftables: allow re-computing sctp CRC-32C in 'payload' statements

2020-10-15 Thread Jakub Kicinski
On Thu, 15 Oct 2020 18:39:27 +0200 Pablo Neira Ayuso wrote: > From: Davide Caratti > > nftables payload statements are used to mangle SCTP headers, but they can > only replace the Internet Checksum. As a consequence, nftables rules that > mangle sport/dport/vtag in SCTP headers potentially genera

Re: [PATCH] bpfilter: Fix build error with CONFIG_BPFILTER_UMH

2020-10-15 Thread Alexei Starovoitov
On Thu, Oct 15, 2020 at 9:37 AM Jakub Kicinski wrote: > > On Wed, 14 Oct 2020 17:17:49 +0800 YueHaibing wrote: > > IF CONFIG_BPFILTER_UMH is set, building fails: > > > > In file included from /usr/include/sys/socket.h:33:0, > > from net/bpfilter/main.c:6: > > /usr/include/bits/soc

Re: [PATCH ethtool] netlink: fix allocation failure handling in dump_features()

2020-10-15 Thread patchwork-bot+netdevbpf
Hello: This patch was applied to ethtool/ethtool.git (refs/heads/master): On Wed, 14 Oct 2020 18:49:52 +0200 (CEST) you wrote: > On allocation failure, dump_features() would set ret to -ENOMEM but then > return 0 anyway. As there is nothing to free in this case anyway, the > easiest fix is to sim

[PATCH net] icmp: randomize the global rate limiter

2020-10-15 Thread Eric Dumazet
From: Eric Dumazet Keyu Man reported that the ICMP rate limiter could be used by attackers to get useful signal. Details will be provided in an upcoming academic publication. Our solution is to add some noise, so that the attackers no longer can get help from the predictable token bucket limiter

Re: perf measure for stalled cycles per instruction on newer Intel processors

2020-10-15 Thread Andi Kleen
On Thu, Oct 15, 2020 at 05:53:40PM +0300, Or Gerlitz wrote: > Hi, > > Earlier Intel processors (e.g E5-2650) support the more of classical > two stall events (for backend and frontend [1]) and then perf shows > the nice measure of stalled cycles per instruction - e.g here where we > have IPC of 0.

Re: [PATCH net-next 0/2] rxrpc: Fixes

2020-10-15 Thread patchwork-bot+netdevbpf
Hello: This series was applied to netdev/net-next.git (refs/heads/master): On Thu, 15 Oct 2020 13:59:11 +0100 you wrote: > Here are a couple of fixes that need to be applied on top of rxrpc patches > in net-next: > > (1) Fix a bug in the connection bundle changes in the net-next tree. > > (2)

Re: [PATCH net-next v4 2/4] gve: Add support for raw addressing to the rx path

2020-10-15 Thread Jakub Kicinski
On Wed, 14 Oct 2020 15:27:13 -0700 David Awogbemila wrote: > diff --git a/drivers/net/ethernet/google/gve/gve_rx.c > b/drivers/net/ethernet/google/gve/gve_rx.c > index 008fa897a3e6..47d0687aa20a 100644 > --- a/drivers/net/ethernet/google/gve/gve_rx.c > +++ b/drivers/net/ethernet/google/gve/gve_rx.

TCP sender stuck in persist despite peer advertising non-zero window

2020-10-15 Thread Apollon Oikonomopoulos
Hi, I'm trying to debug a (possible) TCP issue we have been encountering sporadically during the past couple of years. Currently we're running 4.9.144, but we've been observing this since at least 3.16. Tl;DR: I believe we are seeing a case where snd_wl1 fails to be properly updated, leading to i

Re: [Linux-kernel-mentees] [PATCH] net: rose: Fix Null pointer dereference in rose_send_frame()

2020-10-15 Thread Anmol Karn
On Thu, Oct 15, 2020 at 05:50:51PM +0200, Greg KH wrote: > On Thu, Oct 15, 2020 at 07:40:12PM +0530, Anmol Karn wrote: > > On Thu, Oct 15, 2020 at 07:12:25AM +0200, Greg KH wrote: > > > On Thu, Oct 15, 2020 at 05:47:12AM +0530, Anmol Karn wrote: > > > > In rose_send_frame(), when comparing two ax.2

[PATCH 1/3] security: Add GPRS Tunneling Protocol (GTP) security hooks

2020-10-15 Thread Richard Haines
The GTP security hooks are explained in: Documentation/security/GTP.rst Signed-off-by: Richard Haines --- Documentation/security/GTP.rst | 39 Documentation/security/index.rst | 1 + include/linux/lsm_hook_defs.h| 3 +++ include/linux/lsm_hooks.h|

Re: [PATCH net-next 0/2] rxrpc: Fixes

2020-10-15 Thread Jakub Kicinski
. > > The patches are tagged here: > > git://git.kernel.org/pub/scm/linux/kernel/git/dhowells/linux-fs.git > rxrpc-next-20201015 Pulled, thanks!

  1   2   3   >