[PATCH net v2 0/4] net: ethernet: fec: move GPR reigster offset and bit into DT

2020-05-25 Thread fugang . duan
From: Fugang Duan The commit da722186f654 (net: fec: set GPR bit on suspend by DT configuration) set the GPR reigster offset and bit in driver for wol feature. It bring trouble to enable wol feature on imx6sx/imx6ul/imx7d platforms that have multiple ethernet instances with different GPR bit f

[PATCH net v2 1/4] net: ethernet: fec: move GPR register offset and bit into DT

2020-05-25 Thread fugang . duan
From: Fugang Duan The commit da722186f654 (net: fec: set GPR bit on suspend by DT configuration) set the GPR reigster offset and bit in driver for wake on lan feature. But it introduces two issues here: - one SOC has two instances, they have different bit - different SOCs may have different offs

[PATCH net v2 4/4] ARM: dts: imx6qdl-sabresd: enable fec wake-on-lan

2020-05-25 Thread fugang . duan
From: Fugang Duan Enable ethernet wake-on-lan feature for imx6q/dl/qp sabresd boards since the PHY clock is supplied by exteranl osc. Signed-off-by: Fugang Duan --- arch/arm/boot/dts/imx6qdl-sabresd.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/boot/dts/imx6qdl-sabresd.dtsi

[PATCH net v2 2/4] dt-bindings: fec: update the gpr property

2020-05-25 Thread fugang . duan
From: Fugang Duan - rename the 'gpr' property string to 'fsl,stop-mode'. - Update the property to define gpr register offset and bit in DT, since different instance have different gpr bit. v2: * rename 'gpr' property string to 'fsl,stop-mode'. Signed-off-by: Fugang Duan --- Documentation/dev

[PATCH net v2 3/4] ARM: dts: imx: add ethernet stop mode property

2020-05-25 Thread fugang . duan
From: Fugang Duan - Update the imx6qdl gpr property to define gpr register offset and bit in DT. - Add imx6sx/imx6ul/imx7d ethernet stop mode property. Signed-off-by: Fugang Duan --- arch/arm/boot/dts/imx6qdl.dtsi | 2 +- arch/arm/boot/dts/imx6sx.dtsi | 2 ++ arch/arm/boot/dts/imx6ul.dtsi

Re: [PATCH v2 5/7] connector/cn_proc: Protect send_msg() with a local lock

2020-05-25 Thread Ingo Molnar
* Sebastian Andrzej Siewior wrote: > From: Mike Galbraith > > send_msg() disables preemption to avoid out-of-order messages. As the > code inside the preempt disabled section acquires regular spinlocks, > which are converted to 'sleeping' spinlocks on a PREEMPT_RT kernel and > eventually call

Re: XDP socket DOS bug

2020-05-25 Thread Björn Töpel
On 2020-05-20 17:16, Minh Bùi Quang wrote: Dear sir, In function xdp_umem_reg (net/xdp/xdp_umem.c), there is an initialization //size is u64 umem->npgs = size / PAGE_SIZE; When look at the definition of xdp_umem struct, I see struct xdp_umem { ...

[PATCH] bridge: mrp: Fix out-of-bounds read in br_mrp_parse

2020-05-25 Thread Horatiu Vultur
The issue was reported by syzbot. When the function br_mrp_parse was called with a valid net_bridge_port, the net_bridge was an invalid pointer. Therefore the check br->stp_enabled could pass/fail depending where it was pointing in memory. The fix consists of setting the net_bridge pointer if the p

[PATCH bpf] xsk: add overflow check for u64 division, stored into u32

2020-05-25 Thread Björn Töpel
From: Björn Töpel The npgs member of struct xdp_umem is an u32 entity, and stores the number of pages the UMEM consumes. The calculation of npgs npgs = size / PAGE_SIZE can overflow. To avoid overflow scenarios, the division is now first stored in a u64, and the result is verified to fit int

Re: [RFC 02/11] net: phy: Simplify MMD device list termination

2020-05-25 Thread Russell King - ARM Linux admin
On Sun, May 24, 2020 at 09:48:55PM -0500, Jeremy Linton wrote: > Hi, > > On 5/23/20 1:36 PM, Russell King - ARM Linux admin wrote: > > On Fri, May 22, 2020 at 04:30:50PM -0500, Jeremy Linton wrote: > > > Since we are already checking for *devs == 0 after > > > the loop terminates, we can add a mos

[PATCH net 1/1] net: stmmac: enable timestamp snapshot for required PTP packets in dwmac v5.10a

2020-05-25 Thread Fugang Duan
For rx filter 'HWTSTAMP_FILTER_PTP_V2_EVENT', it should be PTP v2/802.AS1, any layer, any kind of event packet, but HW only take timestamp snapshot for below PTP message: sync, Pdelay_req, Pdelay_resp. Then it causes below issue when test E2E case: ptp4l[2479.534]: port 1: received DELAY_REQ witho

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

2020-05-25 Thread Pavel Machek
Hi! > > If the feedback from the community is truly and finally that system() should > not be used in these applications, then is there support for updating the man > page to better communicate that? > Clarifying documenation might be the best way forward. Note you'd have to do that anyway, s

Re: [PATCH v4 1/5] net: macb: fix wakeup test in runtime suspend/resume routines

2020-05-25 Thread Nicolas Ferre
On 07/05/2020 at 12:03, Nicolas Ferre wrote: On 06/05/2020 at 22:18, Jakub Kicinski wrote: EXTERNAL EMAIL: Do not click links or open attachments unless you know the content is safe On Wed, 6 May 2020 13:37:37 +0200 nicolas.fe...@microchip.com wrote: From: Nicolas Ferre Use the proper struc

Re: [RFC 07/11] net: phy: reset invalid phy reads of 0 back to 0xffffffff

2020-05-25 Thread Russell King - ARM Linux admin
On Sun, May 24, 2020 at 11:20:01PM -0500, Jeremy Linton wrote: > Hi, > > On 5/23/20 1:44 PM, Russell King - ARM Linux admin wrote: > > On Fri, May 22, 2020 at 04:30:55PM -0500, Jeremy Linton wrote: > > > MMD's in the device list sometimes return 0 for their id. > > > When that happens lets reset t

Re: [PATCH 03/17] ARM: dts: r8a7742: Add I2C and IIC support

2020-05-25 Thread Geert Uytterhoeven
Hi Wolfram, On Fri, May 22, 2020 at 10:17 PM Wolfram Sang wrote: > > > According to the Hardware User's Manual Rev. 1.00, the registers do exist > > > on all RZ/G1, except for RZ/G1E (see below). > > > > > >"(automatic transmission can be used as a hardware function, but this > > > is > > >

[PATCH net 1/1] net: stmmac: enable timestamp snapshot for required PTP packets in dwmac v5.10a

2020-05-25 Thread Fugang Duan
For rx filter 'HWTSTAMP_FILTER_PTP_V2_EVENT', it should be PTP v2/802.AS1, any layer, any kind of event packet, but HW only take timestamp snapshot for below PTP message: sync, Pdelay_req, Pdelay_resp. Then it causes below issue when test E2E case: ptp4l[2479.534]: port 1: received DELAY_REQ witho

[PATCH] qlcnic: fix missing release in qlcnic_83xx_interrupt_test.

2020-05-25 Thread wu000273
From: Qiushi Wu In function qlcnic_83xx_interrupt_test(), function qlcnic_83xx_diag_alloc_res() is not handled by function qlcnic_83xx_diag_free_res() after a call of the function qlcnic_alloc_mbx_args() failed. Fix this issue by adding a jump target "fail_mbx_args", and jump to this new target w

Re: [RFC 08/11] net: phy: Allow mdio buses to auto-probe c45 devices

2020-05-25 Thread Russell King - ARM Linux admin
On Sun, May 24, 2020 at 11:28:52PM -0500, Jeremy Linton wrote: > Hi, > > On 5/24/20 9:44 AM, Andrew Lunn wrote: > > > +++ b/include/linux/phy.h > > > @@ -275,6 +275,11 @@ struct mii_bus { > > > int reset_delay_us; > > > /* RESET GPIO descriptor pointer */ > > > struct

Re: [PATCH net-next] net: Avoid spurious rx_dropped increases with tap and rx_handler

2020-05-25 Thread Benjamin Poirier
On 2020-05-24 22:41 -0700, Eric Dumazet wrote: > On Sun, May 24, 2020 at 10:02 PM Benjamin Poirier > wrote: > > > > Consider an skb which doesn't match a ptype_base/ptype_specific handler. If > > this skb is delivered to a ptype_all handler, it does not count as a drop. > > However, if the skb is

[PATCH] stmmac: platform: add "snps,dwmac-5.10a" IP compatible string

2020-05-25 Thread Fugang Duan
Add "snps,dwmac-5.10a" compatible string for 5.10a version that can avoid to define some plat data in glue layer. Signed-off-by: Fugang Duan diff --git a/drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c b/drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c index bcda49d..f32317f 100644 -

Recall: [PATCH net 1/1] net: stmmac: enable timestamp snapshot for required PTP packets in dwmac v5.10a

2020-05-25 Thread Andy Duan
Andy Duan would like to recall the message, "[PATCH net 1/1] net: stmmac: enable timestamp snapshot for required PTP packets in dwmac v5.10a".

Re: [PATCH] bridge: mrp: Fix out-of-bounds read in br_mrp_parse

2020-05-25 Thread Nikolay Aleksandrov
On 25/05/2020 12:55, Horatiu Vultur wrote: > The issue was reported by syzbot. When the function br_mrp_parse was > called with a valid net_bridge_port, the net_bridge was an invalid > pointer. Therefore the check br->stp_enabled could pass/fail > depending where it was pointing in memory. > The fi

Re: [PATCH] sctp: check assoc before SCTP_ADDR_{MADE_PRIM,ADDED} event

2020-05-25 Thread Xin Long
On Sat, May 23, 2020 at 8:04 PM Jonas Falkevik wrote: > > On Tue, May 19, 2020 at 10:42 PM Marcelo Ricardo Leitner > wrote: > > > > On Fri, May 15, 2020 at 10:30:29AM +0200, Jonas Falkevik wrote: > > > On Wed, May 13, 2020 at 11:32 PM Marcelo Ricardo Leitner > > > wrote: > > > > > > > > On Wed,

Re: [PATCH v4 3/5] net: macb: fix macb_get/set_wol() when moving to phylink

2020-05-25 Thread Russell King - ARM Linux admin
On Wed, May 13, 2020 at 04:16:04PM +0200, Nicolas Ferre wrote: > Russell, > > Thanks for the feedback. > > On 13/05/2020 at 15:05, Russell King - ARM Linux admin wrote: > > On Wed, May 06, 2020 at 01:37:39PM +0200, nicolas.fe...@microchip.com wrote: > > > From: Nicolas Ferre > > > > > > Keep pr

Re: [PATCH] mac80211_hwsim: report the WIPHY_FLAG_SUPPORTS_5_10_MHZ capability

2020-05-25 Thread Johannes Berg
On Fri, 2020-05-15 at 13:46 -0300, Ramon Fontes wrote: > Signed-off-by: Ramon Fontes > --- > drivers/net/wireless/mac80211_hwsim.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/net/wireless/mac80211_hwsim.c > b/drivers/net/wireless/mac80211_hwsim.c > index 0528d4cb4..67f97ac3

Re: [PATCH v4 1/5] net: macb: fix wakeup test in runtime suspend/resume routines

2020-05-25 Thread Russell King - ARM Linux admin
On Mon, May 25, 2020 at 10:18:16AM +0200, Nicolas Ferre wrote: > On 07/05/2020 at 12:03, Nicolas Ferre wrote: > > On 06/05/2020 at 22:18, Jakub Kicinski wrote: > > > EXTERNAL EMAIL: Do not click links or open attachments unless you know > > > the content is safe > > > > > > On Wed, 6 May 2020 13:

Re: [PATCH iproute2 v3 0/2] bpf: memory access fixes

2020-05-25 Thread Andrea Claudi
On Sat, May 23, 2020 at 12:32 PM Jamal Hadi Salim wrote: > > On 2020-05-22 9:33 p.m., Daniel Borkmann wrote: > > On 5/18/20 3:00 PM, Jamal Hadi Salim wrote: > >> ping? > >> > >> Note: these are trivial bug fixes. > > > > Looking at c0325b06382c ("bpf: replace snprintf with asprintf when > > dealin

Re: [PATCH v3 1/8] dt-bindings: net: meson-dwmac: Add the amlogic,rx-delay-ns property

2020-05-25 Thread Pavel Machek
Hi! > > On Tue 2020-05-12 23:10:56, Martin Blumenstingl wrote: > >> The PRG_ETHERNET registers on Meson8b and newer SoCs can add an RX > >> delay. Add a property with the known supported values so it can be > >> configured according to the board layout. > >> > >> Reviewed-by: Andrew Lunn > >> Sig

Re: [RFC 1/2] devlink: add simple fw crash helpers

2020-05-25 Thread Andy Shevchenko
On Fri, May 22, 2020 at 04:23:55PM -0700, Steve deRosier wrote: > On Fri, May 22, 2020 at 2:51 PM Luis Chamberlain wrote: > I had to go RTFM re: kernel taints because it has been a very long > time since I looked at them. It had always seemed to me that most were > caused by "kernel-unfriendly" u

Re: [RFC PATCH v12 10/11] arm64: add mechanism to let user choose which counter to return

2020-05-25 Thread Marc Zyngier
On 2020-05-24 03:11, Richard Cochran wrote: On Fri, May 22, 2020 at 04:37:23PM +0800, Jianyong Wu wrote: In general, vm inside will use virtual counter compered with host use phyical counter. But in some special scenarios, like nested virtualization, phyical counter maybe used by vm. A interface

MRP netlink interface

2020-05-25 Thread Horatiu Vultur
Hi, While I was working on adding support for MRA role to MRP, I noticed that I might have some issues with the netlink interface, so it would be great if you can give me an advice on how to continue. First a node with MRA role can behave as a MRM(Manager) or as a MRC(Client). The behaviour is de

Re: MRP netlink interface

2020-05-25 Thread Nikolay Aleksandrov
On 25/05/2020 14:28, Horatiu Vultur wrote: > Hi, > > While I was working on adding support for MRA role to MRP, I noticed that I > might have some issues with the netlink interface, so it would be great if you > can give me an advice on how to continue. > > First a node with MRA role can behave a

Re: [RFC 01/11] net: phy: Don't report success if devices weren't found

2020-05-25 Thread Russell King - ARM Linux admin
On Sun, May 24, 2020 at 09:46:55PM -0500, Jeremy Linton wrote: > Hi, > > Thanks for taking a look at this. > > On 5/23/20 1:20 PM, Russell King - ARM Linux admin wrote: > > On Fri, May 22, 2020 at 04:30:49PM -0500, Jeremy Linton wrote: > > > C45 devices are to return 0 for registers they haven't

Re: MRP netlink interface

2020-05-25 Thread Horatiu Vultur
The 05/25/2020 12:33, Nikolay Aleksandrov wrote: > EXTERNAL EMAIL: Do not click links or open attachments unless you know the > content is safe > > On 25/05/2020 14:28, Horatiu Vultur wrote: > > Hi, > > > > While I was working on adding support for MRA role to MRP, I noticed that I > > might have

Re: [RFC 04/11] net: phy: Handle c22 regs presence better

2020-05-25 Thread Russell King - ARM Linux admin
On Sun, May 24, 2020 at 10:34:13PM -0500, Jeremy Linton wrote: > Hi, > > On 5/23/20 1:37 PM, Russell King - ARM Linux admin wrote: > > On Fri, May 22, 2020 at 04:30:52PM -0500, Jeremy Linton wrote: > > > Until this point, we have been sanitizing the c22 > > > regs presence bit out of all the MMD d

Re: [PATCH v2 bpf-next 7/7] docs/bpf: add BPF ring buffer design notes

2020-05-25 Thread Alban Crequy
Hi, Thanks. Both motivators look very interesting to me: On Sun, 17 May 2020 at 21:58, Andrii Nakryiko wrote: [...] > +Motivation > +-- > +There are two distinctive motivators for this work, which are not satisfied > by > +existing perf buffer, which prompted creation of a new ring buff

Re: [PATCH 0/3] Patch series for a PTP Grandmaster use case using stmmac/gmac3 ptp clock

2020-05-25 Thread Olivier Dautricourt
The 05/15/2020 16:30, Richard Cochran wrote: > On Fri, May 15, 2020 at 03:26:47PM +0200, Julien Beraud wrote: > > So the question is what interface could we use to configure a timestamping > > clock that has more than one functioning mode and which mode can be changed > > at > > runtime, but not w

Re: MRP netlink interface

2020-05-25 Thread Michal Kubecek
On Mon, May 25, 2020 at 11:28:27AM +, Horatiu Vultur wrote: [...] > My first approach was to extend the 'struct br_mrp_instance' with a field that > contains the priority of the node. But this breaks the backwards > compatibility, > and then every time when I need to change something, I will b

Re: [RFC 04/11] net: phy: Handle c22 regs presence better

2020-05-25 Thread Russell King - ARM Linux admin
On Sun, May 24, 2020 at 10:34:13PM -0500, Jeremy Linton wrote: > Hi, > > On 5/23/20 1:37 PM, Russell King - ARM Linux admin wrote: > > On Fri, May 22, 2020 at 04:30:52PM -0500, Jeremy Linton wrote: > > > Until this point, we have been sanitizing the c22 > > > regs presence bit out of all the MMD d

Re: inconsistent lock state in icmp_send

2020-05-25 Thread syzbot
syzbot suspects this bug was fixed by commit: commit 1378817486d6860f6a927f573491afe65287abf1 Author: Eric Dumazet Date: Thu May 21 18:29:58 2020 + tipc: block BH before using dst_cache bisection log: https://syzkaller.appspot.com/x/bisect.txt?x=10cbef0610 start commit: f5d5827

Re: MRP netlink interface

2020-05-25 Thread Nikolay Aleksandrov
On 25/05/2020 13:03, Michal Kubecek wrote: > On Mon, May 25, 2020 at 11:28:27AM +, Horatiu Vultur wrote: > [...] >> My first approach was to extend the 'struct br_mrp_instance' with a field >> that >> contains the priority of the node. But this breaks the backwards >> compatibility, >> and th

[PATCH net 0/2] net: ethernet: dwmac: add Ethernet glue layer for NXP imx8 chip

2020-05-25 Thread Fugang Duan
NXP imx8mp/imx8dxl sillicon integrate Synopsys MAC 5.10a IP. The patch is to add Ethernet glue layer for NXP imx8 chips support. It mainly handles the platform things like clocks, dwmac address width, txclk rate adjustion and phy interface selection. Fugang Duan (2): net: ethernet: dwmac: add

[PATCH net 2/2] dt-bindings: net: imx-dwmac: Add NXP imx8 DWMAC glue layer

2020-05-25 Thread Fugang Duan
Add description for NXP imx8 families like imx8mp/imx8dxl that integrate the Synopsys gmac IP version 5.10a. Signed-off-by: Fugang Duan --- .../devicetree/bindings/net/imx-dwmac.txt | 56 ++ 1 file changed, 56 insertions(+) diff --git a/Documentation/devicetree/bind

[PATCH net 1/2] net: ethernet: dwmac: add Ethernet glue logic for NXP imx8 chip

2020-05-25 Thread Fugang Duan
NXP imx8 family like imx8mp/imx8dxl chips support Synopsys MAC 5.10a IP. This patch adds settings for NXP imx8 glue layer: - clocks - dwmac address width - phy interface mode selection - adjust rgmii txclk rate Signed-off-by: Fugang Duan --- drivers/net/ethernet/stmicro/stmmac/Kconfig | 13

Re: [PATCH -next] mt76: mt7915: Fix build error

2020-05-25 Thread Kalle Valo
Yuehaibing writes: > On 2020/5/22 18:11, Kalle Valo wrote: >> YueHaibing writes: >> >>> In file included from ./include/linux/firmware.h:6:0, >>> from drivers/net/wireless/mediatek/mt76/mt7915/mcu.c:4: >>> In function ‘__mt7915_mcu_msg_send’, >>> inlined from ‘mt7915_mcu_se

Re: [PATCH net v2 1/4] net: ethernet: fec: move GPR register offset and bit into DT

2020-05-25 Thread Sascha Hauer
On Mon, May 25, 2020 at 03:09:26PM +0800, fugang.d...@nxp.com wrote: > From: Fugang Duan > > The commit da722186f654 (net: fec: set GPR bit on suspend by DT > configuration) set the GPR reigster offset and bit in driver for > wake on lan feature. > > But it introduces two issues here: > - one SO

Dringend bitte lesen

2020-05-25 Thread Mary Farmer
-- Lieber Freund, Es gibt etwas sehr Wichtiges, das ich mit Ihnen besprechen muss. Ich schreibe diesen Brief in Tränen und Angst. In Tränen, weil ich Ich werde bald abreisen und Angst haben, weil ich nicht wirklich weiß, ob du werde dies treu tun. Ich bin COVID-19-Patient und der Arzt hat bere

Re: general protection fault in sock_recvmsg

2020-05-25 Thread Paolo Abeni
On Sun, 2020-05-24 at 20:14 -0700, syzbot wrote: > syzbot found the following crash on: > > HEAD commit:caffb99b Merge git://git.kernel.org/pub/scm/linux/kernel/g.. > git tree: upstream > console output: https://syzkaller.appspot.com/x/log.txt?x=15a7444110 > kernel config: https://s

Re: MRP netlink interface

2020-05-25 Thread Horatiu Vultur
The 05/25/2020 13:26, Nikolay Aleksandrov wrote: > EXTERNAL EMAIL: Do not click links or open attachments unless you know the > content is safe > > On 25/05/2020 13:03, Michal Kubecek wrote: > > On Mon, May 25, 2020 at 11:28:27AM +, Horatiu Vultur wrote: > > [...] > >> My first approach was t

Re: [PATCH net-next v2 0/4] Implement classifier-action terse dump mode

2020-05-25 Thread Vlad Buslov
On Fri 22 May 2020 at 22:33, Cong Wang wrote: > On Wed, May 20, 2020 at 12:24 AM Vlad Buslov wrote: >> >> >> On Tue 19 May 2020 at 21:58, Cong Wang wrote: >> > On Tue, May 19, 2020 at 2:04 AM Vlad Buslov wrote: >> >> I considered that approach initially but decided against it for >> >> followin

pull-request: wireless-drivers-next-2020-05-25

2020-05-25 Thread Kalle Valo
Hi, here's a pull request to net-next tree, more info below. Please let me know if there are any problems. Kalle The following changes since commit 790709f249728640faa4eff38286a9feb34fed81: net: relax SO_TXTIME CAP_NET_ADMIN check (2020-05-07 18:17:32 -0700) are available in the git reposito

Re: [PATCH RFC bpf-next 0/4] bpf: Add support for XDP programs in DEVMAPs

2020-05-25 Thread Toke Høiland-Jørgensen
David Ahern writes: > On 5/22/20 9:59 AM, Toke Høiland-Jørgensen wrote: >> David Ahern writes: >> >>> Implementation of Daniel's proposal for allowing DEVMAP entries to be >>> a device index, program id pair. Daniel suggested an fd to specify the >>> program, but that seems odd to me that you i

[PATCH v2] e1000: use generic power management

2020-05-25 Thread Vaibhav Gupta
compile-tested only With legacy PM hooks, it was the responsibility of a driver to manage PCI states and also the device's power state. The generic approach is to let PCI core handle the work. e1000_suspend() calls __e1000_shutdown() to perform intermediate tasks. __e1000_shutdown() modifies the

[PATCH bpf-next] bpf: Fix returned error sign when link doesn't support updates

2020-05-25 Thread Jakub Sitnicki
System calls encode returned errors as negative values. Fix a typo that breaks this convention for bpf(LINK_UPDATE) when bpf_link doesn't support update operation. Fixes: f9d041271cf4 ("bpf: Refactor bpf_link update handling") Signed-off-by: Jakub Sitnicki --- kernel/bpf/syscall.c | 2 +- 1 file

linux-next: build warning after merge of the net-next tree

2020-05-25 Thread Stephen Rothwell
Hi all, After merging the net-next tree, today's linux-next build (sparc64 defconfig) produced this warning: drivers/net/ethernet/intel/e1000e/netdev.c:137:13: warning: 'e1000e_check_me' defined but not used [-Wunused-function] static bool e1000e_check_me(u16 device_id) ^~~

Re: [PATCH RFC bpf-next 0/4] bpf: Add support for XDP programs in DEVMAPs

2020-05-25 Thread Jesper Dangaard Brouer
On Mon, 25 May 2020 14:15:32 +0200 Toke Høiland-Jørgensen wrote: > David Ahern writes: > > > On 5/22/20 9:59 AM, Toke Høiland-Jørgensen wrote: > >> David Ahern writes: > >> > >>> Implementation of Daniel's proposal for allowing DEVMAP entries to be > >>> a device index, program id pair. D

Re: [PATCH RFC bpf-next 0/4] bpf: Add support for XDP programs in DEVMAPs

2020-05-25 Thread Toke Høiland-Jørgensen
Jesper Dangaard Brouer writes: > On Mon, 25 May 2020 14:15:32 +0200 > Toke Høiland-Jørgensen wrote: > >> David Ahern writes: >> >> > On 5/22/20 9:59 AM, Toke Høiland-Jørgensen wrote: >> >> David Ahern writes: >> >> >> >>> Implementation of Daniel's proposal for allowing DEVMAP entries to

Re: [PATCH] sctp: check assoc before SCTP_ADDR_{MADE_PRIM,ADDED} event

2020-05-25 Thread Marcelo Ricardo Leitner
On Mon, May 25, 2020 at 04:42:16PM +0800, Xin Long wrote: > On Sat, May 23, 2020 at 8:04 PM Jonas Falkevik > wrote: > > > > On Tue, May 19, 2020 at 10:42 PM Marcelo Ricardo Leitner > > wrote: > > > > > > On Fri, May 15, 2020 at 10:30:29AM +0200, Jonas Falkevik wrote: > > > > On Wed, May 13, 2020

Re: MRP netlink interface

2020-05-25 Thread Michal Kubecek
On Mon, May 25, 2020 at 01:14:35PM +, Horatiu Vultur wrote: > The 05/25/2020 13:26, Nikolay Aleksandrov wrote: > > EXTERNAL EMAIL: Do not click links or open attachments unless you know the > > content is safe > > > > On 25/05/2020 13:03, Michal Kubecek wrote: > > > On Mon, May 25, 2020 at 11

Re: [PATCH] qlcnic: Complete exception handling in qlcnic_83xx_interrupt_test()

2020-05-25 Thread Markus Elfring
> …, function qlcnic_83xx_diag_alloc_res() is not handled by > function qlcnic_83xx_diag_free_res() after a call of … I have got understanding difficulties for this wording. > Fix this issue by adding a jump target "fail_mbx_args", > and jump to this new target when qlcnic_alloc_mbx_args() faile

Re: [PATCH v2 0/7] Share events between metrics

2020-05-25 Thread Arnaldo Carvalho de Melo
Em Sun, May 24, 2020 at 12:19:36AM +0200, Jiri Olsa escreveu: > On Fri, May 22, 2020 at 10:56:59AM -0700, Ian Rogers wrote: > > SNIP > > > >> > #11 0x004b6911 in cmd_test (argc=1, argv=0x7fffd7f0) > > >> > at tests/builtin-test.c:772 > > >> > #12 0x004e977b in run

Re: [RFC 08/11] net: phy: Allow mdio buses to auto-probe c45 devices

2020-05-25 Thread Andrew Lunn
> > > So i think it would be better to have > > > > > > enum { > > > MDIOBUS_UNKNOWN = 0, > > > MDIOBUS_C22, > > > MDIOBUS_C45, > > > MDIOBUS_C45_C22, > > > } bus_capabilities; > > > > > > Describe just what the bus master can support. > > > > Yes, the

Re: [PATCH net v2 3/4] ARM: dts: imx: add ethernet stop mode property

2020-05-25 Thread Andrew Lunn
On Mon, May 25, 2020 at 03:09:28PM +0800, fugang.d...@nxp.com wrote: > From: Fugang Duan > > - Update the imx6qdl gpr property to define gpr register > offset and bit in DT. > - Add imx6sx/imx6ul/imx7d ethernet stop mode property. > > Signed-off-by: Fugang Duan Thanks for adding a user. Rev

Re: [PATCH net v2 4/4] ARM: dts: imx6qdl-sabresd: enable fec wake-on-lan

2020-05-25 Thread Andrew Lunn
On Mon, May 25, 2020 at 03:09:29PM +0800, fugang.d...@nxp.com wrote: > From: Fugang Duan > > Enable ethernet wake-on-lan feature for imx6q/dl/qp sabresd > boards since the PHY clock is supplied by exteranl osc. external Reviewed-by: Andrew Lunn Andrew

Re: [PATCH net v2 0/4] net: ethernet: fec: move GPR reigster offset and bit into DT

2020-05-25 Thread Andrew Lunn
On Mon, May 25, 2020 at 03:09:25PM +0800, fugang.d...@nxp.com wrote: > From: Fugang Duan > > The commit da722186f654 (net: fec: set GPR bit on suspend by DT > configuration) set the GPR reigster offset and bit in driver for wol feature. The cover letter gets committed as the merge commit messag

Re: [PATCH v3 1/8] dt-bindings: net: meson-dwmac: Add the amlogic,rx-delay-ns property

2020-05-25 Thread Andrew Lunn
> > standardizing on rx-delay-ps and tx-delay-ps would make sense since that > > is the lowest resolution and the property would be correctly named with > > an unit in the name. > > Seems like similar patch is already being reviewed from Dan Murphy (?) > from TI. Dan is working on the PHY side. B

Re: [PATCH] stmmac: platform: add "snps,dwmac-5.10a" IP compatible string

2020-05-25 Thread Andrew Lunn
On Mon, May 25, 2020 at 04:22:25PM +0800, Fugang Duan wrote: > Add "snps,dwmac-5.10a" compatible string for 5.10a version that can > avoid to define some plat data in glue layer. Documentation/devicetree/bindings/net/snps,dwmac.yaml ? Andrew

pull-request: mac80211 2020-05-25

2020-05-25 Thread Johannes Berg
Hi Dave, We have a couple more fixes, all of them seem sort of older issues that surfaced now. Please pull and let me know if there's any problem. Thanks, johannes The following changes since commit 98790bbac4db1697212ce9462ec35ca09c4a2810: Merge tag 'efi-urgent-2020-05-24' of git://git.k

[PATCH] MAINTAINERS: adjust entry in XDP SOCKETS to actual file name

2020-05-25 Thread Lukas Bulwahn
h. Hence, ./scripts/get_maintainer.pl --self-test=patterns complains: warning: no file matches F: include/net/xsk_buffer_pool.h Adjust the entry in XDP SOCKETS to the actual file name. Signed-off-by: Lukas Bulwahn --- Bj??rn, please pick this minor non-urgent patch. applies to next-20200525 o

[PATCH] SUNRPC: Remove unreachable error condition in rpcb_getport_async()

2020-05-25 Thread Xiyu Yang
rpcb_getport_async() invokes rpcb_call_async(), which return the value of rpc_run_task() to "child". Since rpc_run_task() is impossible to return an ERR pointer, there is no need to add the IS_ERR() condition on "child" here. So we need to remove it. Signed-off-by: Xiyu Yang Signed-off-by: Xin Ta

RE: [RFC PATCH v12 10/11] arm64: add mechanism to let user choose which counter to return

2020-05-25 Thread Jianyong Wu
Hi Marc, > -Original Message- > From: Marc Zyngier > Sent: Monday, May 25, 2020 5:17 PM > To: Richard Cochran ; Jianyong Wu > > Cc: netdev@vger.kernel.org; yangbo...@nxp.com; john.stu...@linaro.org; > t...@linutronix.de; pbonz...@redhat.com; sean.j.christopher...@intel.com; > Mark Rutlan

pull-request: mac80211-next next-2020-04-25

2020-05-25 Thread Johannes Berg
Hi Dave, Here's a batch of updates for net-next. I didn't get through everything yet, but Kalle needed some of the changes here (the ones related to DPP) for some driver changes, so here it is. Please pull and let me know if there's any problem. Thanks, johannes The following changes since co

Re: [PATCH mlx5-next 01/14] net/mlx5: Export resource dump interface

2020-05-25 Thread Jason Gunthorpe
On Wed, May 13, 2020 at 12:50:21PM +0300, Leon Romanovsky wrote: > From: Maor Gottlieb > > Export some of the resource dump API, so it could be > used by the mlx5_ib driver as well. This description doesn't really match the patch, is this other stuff dead code? Jason

[PATCH net] mptcp: avoid NULL-ptr derefence on fallback

2020-05-25 Thread Paolo Abeni
In the MPTCP receive path we must cope with TCP fallback on blocking recvmsg(). Currently in such code path we detect the fallback condition, but we don't fetch the struct socket required for fallback. The above allowed syzkaller to trigger a NULL pointer dereference: general protection fault, pr

Re: [PATCH] MAINTAINERS: adjust entry in XDP SOCKETS to actual file name

2020-05-25 Thread Björn Töpel
t patch. applies to next-20200525 on top of the commits mentioned above Thanks Lukas! Daniel/Alexei, this should go to the bpf-next tree. Thanks! Björn MAINTAINERS | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MAINTAINERS b/MAINTAINERS index 7a442b48f24b..895c5

Re: [net-next 05/10] net/mlx5e: Introduce kconfig var for TC support

2020-05-25 Thread Marcelo Ricardo Leitner
On Fri, May 22, 2020 at 04:51:43PM -0700, Saeed Mahameed wrote: ... > +config MLX5_CLS_ACT > + bool "MLX5 TC classifier action support" > + depends on MLX5_ESWITCH && NET_CLS_ACT > + default y > + help > + mlx5 ConnectX offloads support for TC classifier action (NET_CLS_ACT),

Re: [PATCH v2 5/7] connector/cn_proc: Protect send_msg() with a local lock

2020-05-25 Thread Sebastian Andrzej Siewior
On 2020-05-25 09:18:19 [+0200], Ingo Molnar wrote: > > +static DEFINE_PER_CPU(struct local_evt, local_evt) = { > > + .counts = 0, > > I don't think zero initializations need to be written out explicitly. yes. > > + .lock = INIT_LOCAL_LOCK(lock), > > +}; > > > > static inline void send_msg(

RE: [PATCH] dpaa_eth: fix usage as DSA master, try 3

2020-05-25 Thread Madalin Bucur (OSS)
> -Original Message- > From: Vladimir Oltean > Sent: Monday, May 25, 2020 12:23 AM > To: da...@davemloft.net > Cc: and...@lunn.ch; f.faine...@gmail.com; vivien.dide...@gmail.com; > Madalin Bucur (OSS) ; netdev@vger.kernel.org > Subject: [PATCH] dpaa_eth: fix usage as DSA master, try 3 > >

Re: [PATCH mlx5-next 01/14] net/mlx5: Export resource dump interface

2020-05-25 Thread Maor Gottlieb
On 5/25/2020 5:24 PM, Jason Gunthorpe wrote: On Wed, May 13, 2020 at 12:50:21PM +0300, Leon Romanovsky wrote: From: Maor Gottlieb Export some of the resource dump API, so it could be used by the mlx5_ib driver as well. This description doesn't really match the patch, is this other stuff dea

Re: [RFC PATCH v12 10/11] arm64: add mechanism to let user choose which counter to return

2020-05-25 Thread Marc Zyngier
On 2020-05-25 15:18, Jianyong Wu wrote: Hi Marc, -Original Message- From: Marc Zyngier Sent: Monday, May 25, 2020 5:17 PM To: Richard Cochran ; Jianyong Wu Cc: netdev@vger.kernel.org; yangbo...@nxp.com; john.stu...@linaro.org; t...@linutronix.de; pbonz...@redhat.com; sean.j.christoph

Re: [PATCH] dpaa_eth: fix usage as DSA master, try 3

2020-05-25 Thread Andrew Lunn
On Mon, May 25, 2020 at 03:20:09PM +, Madalin Bucur (OSS) wrote: > > -Original Message- > > From: Vladimir Oltean > > Sent: Monday, May 25, 2020 12:23 AM > > To: da...@davemloft.net > > Cc: and...@lunn.ch; f.faine...@gmail.com; vivien.dide...@gmail.com; > > Madalin Bucur (OSS) ; netdev

RE: [EXT] Re: [PATCH net v2 1/4] net: ethernet: fec: move GPR register offset and bit into DT

2020-05-25 Thread Andy Duan
From: Sascha Hauer Sent: Monday, May 25, 2020 6:49 PM > On Mon, May 25, 2020 at 03:09:26PM +0800, fugang.d...@nxp.com wrote: > > From: Fugang Duan > > > > The commit da722186f654 (net: fec: set GPR bit on suspend by DT > > configuration) set the GPR reigster offset and bit in driver for wake > >

RE: [EXT] Re: [PATCH net v2 3/4] ARM: dts: imx: add ethernet stop mode property

2020-05-25 Thread Andy Duan
From: Andrew Lunn Sent: Monday, May 25, 2020 9:51 PM > On Mon, May 25, 2020 at 03:09:28PM +0800, fugang.d...@nxp.com wrote: > > From: Fugang Duan > > > > - Update the imx6qdl gpr property to define gpr register > > offset and bit in DT. > > - Add imx6sx/imx6ul/imx7d ethernet stop mode property.

RE: [EXT] Re: [PATCH net v2 4/4] ARM: dts: imx6qdl-sabresd: enable fec wake-on-lan

2020-05-25 Thread Andy Duan
From: Andrew Lunn Sent: Monday, May 25, 2020 9:52 PM > On Mon, May 25, 2020 at 03:09:29PM +0800, fugang.d...@nxp.com wrote: > > From: Fugang Duan > > > > Enable ethernet wake-on-lan feature for imx6q/dl/qp sabresd boards > > since the PHY clock is supplied by exteranl osc. > > external > > Revi

RE: [EXT] Re: [PATCH net v2 0/4] net: ethernet: fec: move GPR reigster offset and bit into DT

2020-05-25 Thread Andy Duan
From: Andrew Lunn Sent: Monday, May 25, 2020 9:55 PM > On Mon, May 25, 2020 at 03:09:25PM +0800, fugang.d...@nxp.com wrote: > > From: Fugang Duan > > > > The commit da722186f654 (net: fec: set GPR bit on suspend by DT > configuration) set the GPR reigster offset and bit in driver for wol feature.

[PATCH net-next] xfrm: no-anti-replay protection flag

2020-05-25 Thread Petr Vaněk
RFC 4303 in section 3.3.3 suggests to disable anti-replay for manually distributed ICVs. This patch introduces new extra_flag XFRM_SA_XFLAG_NO_ANTI_REPLAY which disables anti-replay for outbound packets if set. The flag is used only in legacy and bmp code, because esn should not be negotiated if a

RE: [EXT] Re: [PATCH] stmmac: platform: add "snps,dwmac-5.10a" IP compatible string

2020-05-25 Thread Andy Duan
From: Andrew Lunn Sent: Monday, May 25, 2020 10:11 PM > On Mon, May 25, 2020 at 04:22:25PM +0800, Fugang Duan wrote: > > Add "snps,dwmac-5.10a" compatible string for 5.10a version that can > > avoid to define some plat data in glue layer. > > Documentation/devicetree/bindings/net/snps,dwmac.yaml

Re: [PATCH v2 bpf-next 1/7] bpf: implement BPF ring buffer and verifier support for it

2020-05-25 Thread Paul E. McKenney
On Fri, May 22, 2020 at 11:46:49AM -0700, Andrii Nakryiko wrote: > On Thu, May 21, 2020 at 5:25 PM Paul E. McKenney wrote: > > > > On Sun, May 17, 2020 at 12:57:21PM -0700, Andrii Nakryiko wrote: > > > This commits adds a new MPSC ring buffer implementation into BPF > > > ecosystem, > > > which a

Re: [EXT] Re: [PATCH] stmmac: platform: add "snps,dwmac-5.10a" IP compatible string

2020-05-25 Thread Andrew Lunn
On Mon, May 25, 2020 at 04:00:29PM +, Andy Duan wrote: > From: Andrew Lunn Sent: Monday, May 25, 2020 10:11 PM > > On Mon, May 25, 2020 at 04:22:25PM +0800, Fugang Duan wrote: > > > Add "snps,dwmac-5.10a" compatible string for 5.10a version that can > > > avoid to define some plat data in glue

Re: [PATCH] sctp: check assoc before SCTP_ADDR_{MADE_PRIM,ADDED} event

2020-05-25 Thread Xin Long
On Mon, May 25, 2020 at 9:10 PM Marcelo Ricardo Leitner wrote: > > On Mon, May 25, 2020 at 04:42:16PM +0800, Xin Long wrote: > > On Sat, May 23, 2020 at 8:04 PM Jonas Falkevik > > wrote: > > > > > > On Tue, May 19, 2020 at 10:42 PM Marcelo Ricardo Leitner > > > wrote: > > > > > > > > On Fri, Ma

Re: [PATCH 2/2] e1000e: Make WOL info in ethtool consistent with device wake up ability

2020-05-25 Thread Chen Yu
On Sun, May 24, 2020 at 11:06:53PM +0200, Michal Kubecek wrote: > On Sat, May 23, 2020 at 05:09:50PM +0800, Chen Yu wrote: > > Hi Michal, > > Thanks for reviewing, > > and sorry for late reply. > > On Thu, May 21, 2020 at 09:23:42PM +0200, Michal Kubecek wrote: > > > On Fri, May 22, 2020 at 01:59:1

RE: [EXT] Re: [PATCH] stmmac: platform: add "snps,dwmac-5.10a" IP compatible string

2020-05-25 Thread Andy Duan
From: Andrew Lunn Sent: Tuesday, May 26, 2020 12:06 AM > On Mon, May 25, 2020 at 04:00:29PM +, Andy Duan wrote: > > From: Andrew Lunn Sent: Monday, May 25, 2020 10:11 > PM > > > On Mon, May 25, 2020 at 04:22:25PM +0800, Fugang Duan wrote: > > > > Add "snps,dwmac-5.10a" compatible string for 5

Re: [PATCH] dpaa_eth: fix usage as DSA master, try 3

2020-05-25 Thread Vladimir Oltean
Hi Madalin, On Mon, 25 May 2020 at 18:20, Madalin Bucur (OSS) wrote: > > > -Original Message- > > From: Vladimir Oltean > > Sent: Monday, May 25, 2020 12:23 AM > > To: da...@davemloft.net > > Cc: and...@lunn.ch; f.faine...@gmail.com; vivien.dide...@gmail.com; > > Madalin Bucur (OSS) ; ne

[PATCH bpf-next] libbpf: add API to consume the perf ring buffer content

2020-05-25 Thread Eelco Chaudron
This new API, perf_buffer__consume, can be used as follows: - When you have a perf ring where wakeup_events is higher than 1, and you have remaining data in the rings you would like to pull out on exit (or maybe based on a timeout). - For low latency cases where you burn a CPU that constantly p

Re: [PATCH v1 01/25] net: core: device_rename: Use rwsem instead of a seqcount

2020-05-25 Thread Ahmed S. Darwish
On Wed, May 20, 2020 at 05:37:07PM +0300, Dan Carpenter wrote: ... > > smatch warnings: > net/core/dev.c:953 netdev_get_name() warn: inconsistent returns > 'devnet_rename_sem'. > ... > > 5dbe7c178d3f0a4 Nicolas Schichan 2013-06-26 935 int netdev_get_name(struct > net *net, char *name, int ifind

[PATCH net v3 1/4] net: ethernet: fec: move GPR register offset and bit into DT

2020-05-25 Thread fugang . duan
From: Fugang Duan The commit da722186f654 (net: fec: set GPR bit on suspend by DT configuration) set the GPR reigster offset and bit in driver for wake on lan feature. But it introduces two issues here: - one SOC has two instances, they have different bit - different SOCs may have different offs

[PATCH net v3 0/4] net: ethernet: fec: move GPR reigster offset and bit into DT

2020-05-25 Thread fugang . duan
From: Fugang Duan The commit da722186f654 (net: fec: set GPR bit on suspend by DT configuration) set the GPR reigster offset and bit in driver for wol feature support. It brings trouble to enable wol feature on imx6sx/imx6ul/imx7d platforms that have multiple ethernet instances with different GP

[PATCH net v3 3/4] ARM: dts: imx: add ethernet stop mode property

2020-05-25 Thread fugang . duan
From: Fugang Duan - Update the imx6qdl gpr property to define gpr register offset and bit in DT. - Add imx6sx/imx6ul/imx7d ethernet stop mode property. Reviewed-by: Andrew Lunn Signed-off-by: Fugang Duan --- arch/arm/boot/dts/imx6qdl.dtsi | 2 +- arch/arm/boot/dts/imx6sx.dtsi | 2 ++ arch/

[PATCH net v3 4/4] ARM: dts: imx6qdl-sabresd: enable fec wake-on-lan

2020-05-25 Thread fugang . duan
From: Fugang Duan Enable ethernet wake-on-lan feature for imx6q/dl/qp sabresd boards since the PHY clock is supplied by external osc. Reviewed-by: Andrew Lunn Signed-off-by: Fugang Duan --- arch/arm/boot/dts/imx6qdl-sabresd.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/boo

[PATCH net v3 2/4] dt-bindings: fec: update the gpr property

2020-05-25 Thread fugang . duan
From: Fugang Duan - rename the 'gpr' property string to 'fsl,stop-mode'. - Update the property to define gpr register offset and bit in DT, since different instance have different gpr bit. v2: * rename 'gpr' property string to 'fsl,stop-mode'. Signed-off-by: Fugang Duan --- Documentation/dev

  1   2   3   >