Where is this patch buried?

2021-02-08 Thread Schmid, Carsten
Hi Greg, in kernel 4.14 i have seen a NULL pointer deref in [65064.613465] RIP: 0010:ip_route_output_key_hash_rcu+0x755/0x850 (i have a core dump and detailed analysis) That looks like this patch could have prevented it: https://www.spinics.net/lists/stable-commits/msg133055.html this one was q

Re: pull-request: wireless-drivers-2021-02-05

2021-02-08 Thread Kalle Valo
Lorenzo Bianconi writes: >> So what's the plan? Is there going to be a followup patch? And should >> that also go to v5.11 or can it wait v5.12? >> >> -- >> https://patchwork.kernel.org/project/linux-wireless/list/ >> >> https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatch

RE: [Patch bpf-next 01/19] bpf: rename BPF_STREAM_PARSER to BPF_SOCK_MAP

2021-02-08 Thread John Fastabend
Cong Wang wrote: > From: Cong Wang > > Before we add non-TCP support, it is necessary to rename > BPF_STREAM_PARSER as it will be no longer specific to TCP, > and it does not have to be a parser either. > > This patch renames BPF_STREAM_PARSER to BPF_SOCK_MAP, so > that sock_map.c hopefully woul

Re: [net-next V2 01/17] net/mlx5: E-Switch, Refactor setting source port

2021-02-08 Thread Vlad Buslov
On Sat 06 Feb 2021 at 20:13, Marcelo Ricardo Leitner wrote: > Hi, > > I didn't receive the cover letter, so I'm replying on this one. :-) > > This is nice. One thing is not clear to me yet. From the samples on > the cover letter: > > $ tc -s filter show dev enp8s0f0_1 ingress > filter protocol

Re: [PATCH v2 1/2] mei: bus: simplify mei_cl_device_remove()

2021-02-08 Thread Greg Kroah-Hartman
On Mon, Feb 08, 2021 at 08:37:04AM +0100, Uwe Kleine-König wrote: > The driver core only calls a bus' remove function when there is actually > a driver and a device. So drop the needless check and assign cldrv earlier. > > (Side note: The check for cldev being non-NULL is broken anyhow, because >

Re: pull-request: wireless-drivers-2021-02-05

2021-02-08 Thread Lorenzo Bianconi
On Feb 08, Kalle Valo wrote: > Lorenzo Bianconi writes: > > >> So what's the plan? Is there going to be a followup patch? And should > >> that also go to v5.11 or can it wait v5.12? > >> > >> -- > >> https://patchwork.kernel.org/project/linux-wireless/list/ > >> > >> https://wireless.wiki.kernel.

RE: [Patch bpf-next 04/19] sock_map: rename skb_parser and skb_verdict

2021-02-08 Thread John Fastabend
Cong Wang wrote: > From: Cong Wang > > These two ebpf programs are tied to BPF_SK_SKB_STREAM_PARSER > and BPF_SK_SKB_STREAM_VERDICT, rename them to reflect the fact > they are currently used for TCP. And save the generic name > skb_verdict for general use. > > Cc: John Fastabend > Cc: Daniel Bo

RE: [Patch bpf-next 05/19] sock_map: introduce BPF_SK_SKB_VERDICT

2021-02-08 Thread John Fastabend
Cong Wang wrote: > From: Cong Wang > > I was planning to reuse BPF_SK_SKB_STREAM_VERDICT but its name is > confusing and more importantly it seems kTLS relies on it to deliver > sk_msg too. To avoid messing up kTLS, we can just reuse the stream > verdict code but introduce a new type of eBPF prog

[PATCH v10 net-next 01/15] doc: marvell: add CM3 address space and PPv2.3 description

2021-02-08 Thread stefanc
From: Stefan Chulski Patch adds CM3 address space and PPv2.3 description. Signed-off-by: Stefan Chulski --- Documentation/devicetree/bindings/net/marvell-pp2.txt | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Documentation/devicetree/bindings/net/marvell-pp2.txt b/D

[PATCH v10 net-next 00/15] net: mvpp2: Add TX Flow Control support

2021-02-08 Thread stefanc
From: Stefan Chulski Armada hardware has a pause generation mechanism in GOP (MAC). The GOP generate flow control frames based on an indication programmed in Ports Control 0 Register. There is a bit per port. However assertion of the PortX Pause bits in the ports control 0 register only sends a

[PATCH v10 net-next 03/15] net: mvpp2: add CM3 SRAM memory map

2021-02-08 Thread stefanc
From: Stefan Chulski This patch adds CM3 memory map and CM3 read/write callbacks. Signed-off-by: Stefan Chulski Reviewed-by: Andrew Lunn --- drivers/net/ethernet/marvell/mvpp2/mvpp2.h | 1 + drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c | 26 2 files changed, 27 i

[PATCH v10 net-next 02/15] dts: marvell: add CM3 SRAM memory to cp11x ethernet device tree

2021-02-08 Thread stefanc
From: Konstantin Porotchkin CM3 SRAM address space would be used for Flow Control configuration. Signed-off-by: Stefan Chulski Signed-off-by: Konstantin Porotchkin --- arch/arm64/boot/dts/marvell/armada-cp11x.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/

[PATCH v10 net-next 05/15] net: mvpp2: add PPv23 version definition

2021-02-08 Thread stefanc
From: Stefan Chulski This patch add PPv23 version definition. PPv23 is new packet processor in CP115. Everything that supported by PPv22, also supported by PPv23. No functional changes in this stage. Signed-off-by: Stefan Chulski --- drivers/net/ethernet/marvell/mvpp2/mvpp2.h | 24 +++

[PATCH v10 net-next 04/15] net: mvpp2: always compare hw-version vs MVPP21

2021-02-08 Thread stefanc
From: Stefan Chulski Currently we have PP2v1 and PP2v2 hw-versions, with some different handlers depending upon condition hw_version = MVPP21/MVPP22. In a future there will be also PP2v3. Let's use now the generic "if equal/notEqual MVPP21" for all cases instead of "if MVPP22". This patch does n

[PATCH v10 net-next 08/15] net: mvpp2: add FCA RXQ non occupied descriptor threshold

2021-02-08 Thread stefanc
From: Stefan Chulski The firmware needs to monitor the RX Non-occupied descriptor bits for flow control to move to XOFF mode. These bits need to be unmasked to be functional, but they will not raise interrupts as we leave the RX exception summary bit in MVPP2_ISR_RX_TX_MASK_REG clear. Signed-off

[PATCH v10 net-next 06/15] net: mvpp2: increase BM pool and RXQ size

2021-02-08 Thread stefanc
From: Stefan Chulski BM pool and RXQ size increased to support Firmware Flow Control. Minimum depletion thresholds to support FC are 1024 buffers. BM pool size increased to 2048 to have some 1024 buffers space between depletion thresholds and BM pool size. Jumbo frames require a 9888B buffer, so

[PATCH v10 net-next 07/15] net: mvpp2: add FCA periodic timer configurations

2021-02-08 Thread stefanc
From: Stefan Chulski Flow Control periodic timer would be used if port in XOFF to transmit periodic XOFF frames. Signed-off-by: Stefan Chulski --- drivers/net/ethernet/marvell/mvpp2/mvpp2.h | 13 ++ drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c | 45 2 files cha

[PATCH v10 net-next 09/15] net: mvpp2: enable global flow control

2021-02-08 Thread stefanc
From: Stefan Chulski This patch enables global flow control in FW and in the phylink validate mask. Signed-off-by: Stefan Chulski --- drivers/net/ethernet/marvell/mvpp2/mvpp2.h | 11 +-- drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c | 30 +++- 2 files changed, 37 ins

[PATCH v10 net-next 10/15] net: mvpp2: add RXQ flow control configurations

2021-02-08 Thread stefanc
From: Stefan Chulski This patch adds RXQ flow control configurations. Flow control disabled by default. Minimum ring size limited to 1024 descriptors. Signed-off-by: Stefan Chulski --- drivers/net/ethernet/marvell/mvpp2/mvpp2.h | 35 +- drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c

[PATCH v10 net-next 13/15] net: mvpp2: add PPv23 RX FIFO flow control

2021-02-08 Thread stefanc
From: Stefan Chulski New FIFO flow control feature was added in PPv23. PPv2 FIFO polled by HW and trigger pause frame if FIFO fill level is below threshold. FIFO HW flow control enabled with CM3 RXQ&BM flow control with ethtool. Current FIFO thresholds is: 9KB for port with maximum speed 10Gb/s

[PATCH v10 net-next 12/15] net: mvpp2: add BM protection underrun feature support

2021-02-08 Thread stefanc
From: Stefan Chulski The PP2v23 hardware supports a feature allowing to double the size of BPPI by decreasing number of pools from 16 to 8. Increasing of BPPI size protect BM drop from BPPI underrun. Underrun could occurred due to stress on DDR and as result slow buffer transition from BPPE to BP

[PATCH v10 net-next 15/15] net: mvpp2: add TX FC firmware check

2021-02-08 Thread stefanc
From: Stefan Chulski Patch check that TX FC firmware is running in CM3. If not, global TX FC would be disabled. Signed-off-by: Stefan Chulski --- drivers/net/ethernet/marvell/mvpp2/mvpp2.h | 1 + drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c | 42 2 files changed,

[PATCH v10 net-next 14/15] net: mvpp2: set 802.3x GoP Flow Control mode

2021-02-08 Thread stefanc
From: Stefan Chulski This patch fix GMAC TX flow control autoneg. Flow control autoneg wrongly were disabled with enabled TX flow control. Signed-off-by: Stefan Chulski --- drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drive

[PATCH v10 net-next 11/15] net: mvpp2: add ethtool flow control configuration support

2021-02-08 Thread stefanc
From: Stefan Chulski This patch add ethtool flow control configuration support. Tx flow control retrieved correctly by ethtool get function. FW per port ethtool configuration capability added. Patch also takes care about mtu change procedure, if PPv2 switch BM pools during mtu change. Signed-o

Re: [Patch bpf-next 02/19] skmsg: get rid of struct sk_psock_parser

2021-02-08 Thread John Fastabend
Jakub Sitnicki wrote: > On Wed, Feb 03, 2021 at 05:16 AM CET, Cong Wang wrote: > > From: Cong Wang > > > > struct sk_psock_parser is embedded in sk_psock, it is > > unnecessary as skb verdict also uses ->saved_data_ready. > > We can simply fold these fields into sk_psock. > > > > Cc: John Fastaben

[PATCH v2] perf script: Simplify bool conversion

2021-02-08 Thread Yang Li
Fix the following coccicheck warning: ./tools/perf/builtin-script.c:2789:36-41: WARNING: conversion to bool not needed here ./tools/perf/builtin-script.c:3237:48-53: WARNING: conversion to bool not needed here Reported-by: Abaci Robot Signed-off-by: Yang Li --- Change in v2: -Change the subject

Re: [PATCH v10 net-next 03/15] net: mvpp2: add CM3 SRAM memory map

2021-02-08 Thread Marcin Wojtas
Hi, pon., 8 lut 2021 o 09:33 napisał(a): > > From: Stefan Chulski > > This patch adds CM3 memory map and CM3 read/write callbacks. The read/write callbacks are not added in this patch, please correct the commit message. Best regards, Marcin > > Signed-off-by: Stefan Chulski > Reviewed-by: An

Re: [PATCH v10 net-next 05/15] net: mvpp2: add PPv23 version definition

2021-02-08 Thread Marcin Wojtas
Hi, pon., 8 lut 2021 o 09:33 napisał(a): > > From: Stefan Chulski > > This patch add PPv23 version definition. > PPv23 is new packet processor in CP115. > Everything that supported by PPv22, also supported by PPv23. > No functional changes in this stage. > > Signed-off-by: Stefan Chulski > ---

Re: Where is this patch buried?

2021-02-08 Thread Greg KH
On Mon, Feb 08, 2021 at 08:12:29AM +, Schmid, Carsten wrote: > Hi Greg, > > in kernel 4.14 i have seen a NULL pointer deref in > [65064.613465] RIP: 0010:ip_route_output_key_hash_rcu+0x755/0x850 > (i have a core dump and detailed analysis) > > That looks like this patch could have prevented i

Re: [PATCH net-next v4] net: psample: Introduce stubs to remove NIC driver dependency

2021-02-08 Thread Ido Schimmel
On Mon, Feb 08, 2021 at 09:03:50AM +0200, Leon Romanovsky wrote: > On Mon, Feb 01, 2021 at 08:08:37PM +0200, Ido Schimmel wrote: > > On Mon, Feb 01, 2021 at 09:37:11AM +0800, Chris Mi wrote: > > > Hi Ido, > > > > > > On 1/30/2021 10:42 PM, Ido Schimmel wrote: > > > > On Fri, Jan 29, 2021 at 12:30:0

Re: [PATCH v1] vdpa/mlx5: Restore the hardware used index after change map

2021-02-08 Thread Jason Wang
On 2021/2/8 下午2:37, Eli Cohen wrote: On Mon, Feb 08, 2021 at 12:27:18PM +0800, Jason Wang wrote: On 2021/2/6 上午7:07, Si-Wei Liu wrote: On 2/3/2021 11:36 PM, Eli Cohen wrote: When a change of memory map occurs, the hardware resources are destroyed and then re-created again with the new memor

Re: [PATCH net-next v4] net: psample: Introduce stubs to remove NIC driver dependency

2021-02-08 Thread Leon Romanovsky
On Mon, Feb 08, 2021 at 10:57:46AM +0200, Ido Schimmel wrote: > On Mon, Feb 08, 2021 at 09:03:50AM +0200, Leon Romanovsky wrote: > > On Mon, Feb 01, 2021 at 08:08:37PM +0200, Ido Schimmel wrote: > > > On Mon, Feb 01, 2021 at 09:37:11AM +0800, Chris Mi wrote: > > > > Hi Ido, > > > > > > > > On 1/30/

RE: [Intel-wired-lan] [5.10] i40e/udp_tunnel: RTNL: assertion failed at net/ipv4/udp_tunnel_nic.c

2021-02-08 Thread Pierre Cheynier
On Wed, 3 Feb 2021 18:08:31 +0100 Jakub Kicinski wrote: > Yup! I'm pretty sure it's my conversion. The full commit quote upstream: > > 40a98cb6f01f ("i40e: convert to new udp_tunnel infrastructure") > > It should trigger if you have vxlan module loaded (or built in) > and then reload or re-probe

Re: [PATCH 0/7] xen/events: bug fixes and some diagnostic aids

2021-02-08 Thread Julien Grall
Hi Juergen, On 07/02/2021 12:58, Jürgen Groß wrote: On 06.02.21 19:46, Julien Grall wrote: Hi Juergen, On 06/02/2021 10:49, Juergen Gross wrote: The first three patches are fixes for XSA-332. The avoid WARN splats and a performance issue with interdomain events. Thanks for helping to figure

RE: [PATCH bpf-next v4 1/6] xsk: add tracepoints for packet drops

2021-02-08 Thread Loftus, Ciara
> > > > This commit introduces tracing infrastructure for AF_XDP sockets > > (xsks) and a new trace event called 'xsk_packet_drop'. This trace > > event is triggered when a packet cannot be processed by the socket > > due to one of the following issues: > > (1) packet exceeds the maximum permitted

Re: [PATCH v1 5/7] ARM i.MX6q: remove Atheros AR8035 SmartEEE fixup

2021-02-08 Thread Oleksij Rempel
On Wed, Feb 03, 2021 at 09:56:28AM +, Russell King - ARM Linux admin wrote: > On Wed, Feb 03, 2021 at 10:18:55AM +0100, Oleksij Rempel wrote: > > This fixup removes the Lpi_en bit. > > > > If this patch breaks functionality of your board, use following device > > tree properties: > > > >

AW: Where is this patch buried?

2021-02-08 Thread Schmid, Carsten
>> Hi Greg, >> >> in kernel 4.14 i have seen a NULL pointer deref in >> [65064.613465] RIP: 0010:ip_route_output_key_hash_rcu+0x755/0x850 >> (i have a core dump and detailed analysis) >> >> That looks like this patch could have prevented it: >> >> https://www.spinics.net/lists/stable-commits/msg133

Re: [PATCH v1] vdpa/mlx5: Restore the hardware used index after change map

2021-02-08 Thread Michael S. Tsirkin
On Mon, Feb 08, 2021 at 05:04:27PM +0800, Jason Wang wrote: > > On 2021/2/8 下午2:37, Eli Cohen wrote: > > On Mon, Feb 08, 2021 at 12:27:18PM +0800, Jason Wang wrote: > > > On 2021/2/6 上午7:07, Si-Wei Liu wrote: > > > > > > > > On 2/3/2021 11:36 PM, Eli Cohen wrote: > > > > > When a change of memory

[PATCH] selftests/net: so_txtime: remove unneeded semicolon

2021-02-08 Thread Yang Li
Eliminate the following coccicheck warning: ./tools/testing/selftests/net/so_txtime.c:199:3-4: Unneeded semicolon Reported-by: Abaci Robot Signed-off-by: Yang Li --- tools/testing/selftests/net/so_txtime.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftes

Re: [PATCH v2 1/2] net: usb: qmi_wwan: support ZTE P685M modem

2021-02-08 Thread Johan Hovold
On Sat, Feb 06, 2021 at 12:13:22PM -0800, Jakub Kicinski wrote: > On Sat, 6 Feb 2021 15:50:41 +0100 Lech Perczak wrote: > > >> Cc: Bjørn Mork > > >> Signed-off-by: Lech Perczak > > > Patch looks fine to me. But I don't think you can submit a net and usb > > > serial patch in a series. These are

[PATCH bpf-next v5 1/6] xsk: add tracepoints for packet drops

2021-02-08 Thread Ciara Loftus
This commit introduces tracing infrastructure for AF_XDP sockets (xsks) and a new trace event called 'xsk_packet_drop'. This trace event is triggered when a packet cannot be processed by the socket due to one of the following issues: (1) packet exceeds the maximum permitted size. (2) invalid fill d

[PATCH bpf-next v5 0/6] AF_XDP Packet Drop Tracing

2021-02-08 Thread Ciara Loftus
This series introduces tracing infrastructure for AF_XDP sockets (xsk). A trace event 'xsk_packet_drop' is created which can be enabled by toggling /sys/kernel/debug/tracing/events/xsk/xsk_packet_drop/enable When enabled and packets or empty packet buffers are dropped in the kernel, traces are ge

[PATCH bpf-next v5 2/6] selftests/bpf: restructure setting the packet count

2021-02-08 Thread Ciara Loftus
Prior to this, the packet count was fixed at 1 for every test. Future tracing tests need to modify the count in order to ensure the trace buffer does not become full. So, make it possible to set the count from test_xsk.h using the -C opt. Signed-off-by: Ciara Loftus --- tools/testing/selftes

[PATCH bpf-next v5 3/6] selftests/bpf: add framework for xsk selftests

2021-02-08 Thread Ciara Loftus
This commit introduces framework to the xsk selftests for testing the xsk_packet_drop traces. The '-t' or '--trace-enable' args enable the trace, and disable it on exit unless it was already enabled before the test. Signed-off-by: Ciara Loftus --- tools/testing/selftests/bpf/xdpxceiver.c | 65 ++

[PATCH bpf-next v5 4/6] selftests/bpf: XSK_TRACE_DROP_PKT_TOO_BIG test

2021-02-08 Thread Ciara Loftus
This test increases the UMEM headroom to a size that will cause packets to be dropped. Traces which report these drops are expected which look like so: xsk_packet_drop: netdev: ve3213 qid 0 reason: packet too big: \ len 60 max 1 not_used 0 The test validates that these traces were successfully

[PATCH bpf-next v5 5/6] selftests/bpf: XSK_TRACE_INVALID_FILLADDR test

2021-02-08 Thread Ciara Loftus
This test supplies invalid addresses to the fill queue at init. On RX, traces are expected which report the invalid address which look like so: xsk_packet_drop: netdev: ve3213 qid 0 reason: invalid fill addr: \ addr 262144 not_used 0 not_used 0 The test validates that these traces were successf

[PATCH bpf-next v5 6/6] selftests/bpf: XSK_TRACE_INVALID_DESC_TX test

2021-02-08 Thread Ciara Loftus
This test sets the length of tx descriptors to an invalid value. When the kernel tries to transmit these descriptors, error traces are expected which look like so: xsk_packet_drop: netdev: ve9266 qid 0 reason: invalid tx desc: \ addr 258048 len 4097 options 0 The test validates that these trace

Re: [PATCH 0/7] xen/events: bug fixes and some diagnostic aids

2021-02-08 Thread Jürgen Groß
On 08.02.21 10:11, Julien Grall wrote: Hi Juergen, On 07/02/2021 12:58, Jürgen Groß wrote: On 06.02.21 19:46, Julien Grall wrote: Hi Juergen, On 06/02/2021 10:49, Juergen Gross wrote: The first three patches are fixes for XSA-332. The avoid WARN splats and a performance issue with interdomai

[PATCH] bpf: Simplify bool comparison

2021-02-08 Thread Jiapeng Chong
Fix the following coccicheck warning: ./tools/bpf/bpf_dbg.c:893:32-36: WARNING: Comparison to bool. Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- tools/bpf/bpf_dbg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/bpf/bpf_dbg.c b/tools/bpf/bpf_dbg.c index

Re: Where is this patch buried?

2021-02-08 Thread Greg KH
On Mon, Feb 08, 2021 at 09:24:11AM +, Schmid, Carsten wrote: > >> Hi Greg, > >> > >> in kernel 4.14 i have seen a NULL pointer deref in > >> [65064.613465] RIP: 0010:ip_route_output_key_hash_rcu+0x755/0x850 > >> (i have a core dump and detailed analysis) > >> > >> That looks like this patch cou

Re: [PATCH v3] usb: serial: option: update interface mapping for ZTE P685M

2021-02-08 Thread Johan Hovold
On Sun, Feb 07, 2021 at 01:54:43AM +0100, Lech Perczak wrote: > This patch prepares for qmi_wwan driver support for the device. > Previously "option" driver mapped itself to interfaces 0 and 3 (matching > ff/ff/ff), while interface 3 is in fact a QMI port. > Interfaces 1 and 2 (matching ff/00/00) e

Re: [PATCH 0/7] xen/events: bug fixes and some diagnostic aids

2021-02-08 Thread Julien Grall
On 08/02/2021 09:41, Jürgen Groß wrote: On 08.02.21 10:11, Julien Grall wrote: Hi Juergen, On 07/02/2021 12:58, Jürgen Groß wrote: On 06.02.21 19:46, Julien Grall wrote: Hi Juergen, On 06/02/2021 10:49, Juergen Gross wrote: The first three patches are fixes for XSA-332. The avoid WARN sp

Re Thanks.

2021-02-08 Thread Mr.Richard Thomas
Dear Friend, I will be pleased if you can allow me to invest $104M Dollars in Estate Management,in your company or any area you best that will be of good profit to both of us Please do well to respond including your information for more details. Thanks. Mr.Richard Thomas

Re: [Patch bpf-next 08/19] udp: implement ->read_sock() for sockmap

2021-02-08 Thread Lorenz Bauer
On Wed, 3 Feb 2021 at 04:17, Cong Wang wrote: > > From: Cong Wang > > Cc: John Fastabend > Cc: Daniel Borkmann > Cc: Jakub Sitnicki > Cc: Lorenz Bauer > Signed-off-by: Cong Wang > --- > include/net/udp.h | 2 ++ > net/ipv4/af_inet.c | 1 + > net/ipv4/udp.c | 34 ++

Re: [Patch bpf-next 01/19] bpf: rename BPF_STREAM_PARSER to BPF_SOCK_MAP

2021-02-08 Thread Lorenz Bauer
On Mon, 8 Feb 2021 at 08:21, John Fastabend wrote: ... > > Rather than rename this, lets reduce its scope to just the set > of actions that need the STREAM_PARSER, this should be just the > stream parser programs. We probably should have done this sooner, > but doing it now will be fine. So sockm

Re: [PATCH RESEND net-next] cfg80211: remove unused callback

2021-02-08 Thread Kalle Valo
Matteo Croce writes: > From: Matteo Croce > > The ieee80211 class registers a callback which actually does nothing. > Given that the callback is optional, and all its accesses are protected > by a NULL check, remove it entirely. > > Signed-off-by: Matteo Croce > --- > net/wireless/sysfs.c | 7

Re: [vdpa_sim_net] 79991caf52: net/ipv4/ipmr.c:#RCU-list_traversed_in_non-reader_section

2021-02-08 Thread Michael S. Tsirkin
On Sun, Feb 07, 2021 at 11:03:30AM +0800, kernel test robot wrote: > > Greeting, > > FYI, we noticed the following commit (built with gcc-9): > > commit: 79991caf5202c7989928be534727805f8f68bb8d ("vdpa_sim_net: Add support > for user supported devices") > https://git.kernel.org/cgit/linux/kerne

Re: [PATCH v1] vdpa/mlx5: Restore the hardware used index after change map

2021-02-08 Thread Eli Cohen
On Mon, Feb 08, 2021 at 05:04:27PM +0800, Jason Wang wrote: > > On 2021/2/8 下午2:37, Eli Cohen wrote: > > On Mon, Feb 08, 2021 at 12:27:18PM +0800, Jason Wang wrote: > > > On 2021/2/6 上午7:07, Si-Wei Liu wrote: > > > > > > > > On 2/3/2021 11:36 PM, Eli Cohen wrote: > > > > > When a change of memory

Re: [PATCH 0/7] xen/events: bug fixes and some diagnostic aids

2021-02-08 Thread Jürgen Groß
On 08.02.21 10:54, Julien Grall wrote: On 08/02/2021 09:41, Jürgen Groß wrote: On 08.02.21 10:11, Julien Grall wrote: Hi Juergen, On 07/02/2021 12:58, Jürgen Groß wrote: On 06.02.21 19:46, Julien Grall wrote: Hi Juergen, On 06/02/2021 10:49, Juergen Gross wrote: The first three patches a

[PATCH] selftests: bpf: remove unneeded semicolon

2021-02-08 Thread Yang Li
Eliminate the following coccicheck warning: ./tools/testing/selftests/bpf/test_flow_dissector.c:506:2-3: Unneeded semicolon Reported-by: Abaci Robot Signed-off-by: Yang Li --- tools/testing/selftests/bpf/test_flow_dissector.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/t

Re: [PATCH v3] rtlwifi: rtl8192se: Simplify bool comparison

2021-02-08 Thread Kalle Valo
Jiapeng Zhong wrote: > Fix the follow coccicheck warnings: > > ./drivers/net/wireless/realtek/rtlwifi/rtl8192se/hw.c:2305:6-27: > WARNING: Comparison of 0/1 to bool variable. > > ./drivers/net/wireless/realtek/rtlwifi/rtl8192se/hw.c:1376:5-26: > WARNING: Comparison of 0/1 to bool variable. > >

Re: [PATCH v2] rtlwifi: rtl8821ae: style: Simplify bool comparison

2021-02-08 Thread Kalle Valo
Jiapeng Zhong wrote: > Fix the following coccicheck warning: > ./drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c:3853:7-17: > WARNING: Comparison of 0/1 to bool variable > > Reported-by: Abaci Robot > Signed-off-by: Jiapeng Zhong Please use your own email address and real name. Patch se

Re: rtlwifi: use tasklet_setup to initialize rx_work_tasklet

2021-02-08 Thread Kalle Valo
Emil Renner Berthing wrote: > In commit d3ccc14dfe95 most of the tasklets in this driver was > updated to the new API. However for the rx_work_tasklet only the > type of the callback was changed from > void _rtl_rx_work(unsigned long data) > to > void _rtl_rx_work(struct tasklet_struct *t). >

Re: [PATCH] rtlwifi: rtl8192se: remove redundant initialization of variable rtstatus

2021-02-08 Thread Kalle Valo
Colin King wrote: > From: Colin Ian King > > The variable rtstatu is being initialized with a value that is never > read and it is being updated later with a new value. The initialization > is redundant and can be removed. > > Addresses-Coverity: ("Unused value") > Signed-off-by: Colin Ian Ki

Re: [PATCH 0/7] xen/events: bug fixes and some diagnostic aids

2021-02-08 Thread Julien Grall
Hi Juergen, On 08/02/2021 10:22, Jürgen Groß wrote: On 08.02.21 10:54, Julien Grall wrote: ... I don't really see how the difference matter here. The idea is to re-use what's already existing rather than trying to re-invent the wheel with an extra lock (or whatever we can come up). The diffe

[PATCHv19 bpf-next 0/6] xdp: add a new helper for dev map multicast support

2021-02-08 Thread Hangbin Liu
This patch is for xdp multicast support. which has been discussed before[0], The goal is to be able to implement an OVS-like data plane in XDP, i.e., a software switch that can forward XDP frames to multiple ports. To achieve this, an application needs to specify a group of interfaces to forward a

[PATCHv19 bpf-next 2/6] bpf: add a new bpf argument type ARG_CONST_MAP_PTR_OR_NULL

2021-02-08 Thread Hangbin Liu
Add a new bpf argument type ARG_CONST_MAP_PTR_OR_NULL which could be used when we want to allow NULL pointer for map parameter. The bpf helper need to take care and check if the map is NULL when use this type. Acked-by: Toke Høiland-Jørgensen Acked-by: John Fastabend Signed-off-by: Hangbin Liu

[PATCHv19 bpf-next 1/6] bpf: run devmap xdp_prog on flush instead of bulk enqueue

2021-02-08 Thread Hangbin Liu
From: Jesper Dangaard Brouer This changes the devmap XDP program support to run the program when the bulk queue is flushed instead of before the frame is enqueued. This has a couple of benefits: - It "sorts" the packets by destination devmap entry, and then runs the same BPF program on all the

[PATCHv19 bpf-next 3/6] xdp: add a new helper for dev map multicast support

2021-02-08 Thread Hangbin Liu
This patch is for xdp multicast support, which has been discussed before[0], The goal is to be able to implement an OVS-like data plane in XDP, i.e., a software switch that can forward XDP frames to multiple ports. To achieve this, an application needs to specify a group of interfaces to forward a

[PATCHv19 bpf-next 4/6] sample/bpf: add xdp_redirect_map_multicast test

2021-02-08 Thread Hangbin Liu
This is a sample for xdp multicast. In the sample we could forward all packets between given interfaces. There is also an option -X that could enable 2nd xdp_prog on egress interface. Acked-by: Toke Høiland-Jørgensen Signed-off-by: Hangbin Liu --- v16-v19: no update v15: use bpf_object__find_pr

[PATCHv19 bpf-next 6/6] selftests/bpf: add xdp_redirect_multi test

2021-02-08 Thread Hangbin Liu
Add a bpf selftest for new helper xdp_redirect_map_multi(). In this test there are 3 forward groups and 1 exclude group. The test will redirect each interface's packets to all the interfaces in the forward group, and exclude the interface in exclude map. Two maps (DEVMAP, DEVMAP_HASH) and two xdp

[PATCHv19 bpf-next 5/6] selftests/bpf: Add verifier tests for bpf arg ARG_CONST_MAP_PTR_OR_NULL

2021-02-08 Thread Hangbin Liu
Use helper bpf_redirect_map() and bpf_redirect_map_multi() to test bpf arg ARG_CONST_MAP_PTR and ARG_CONST_MAP_PTR_OR_NULL. Make sure the map arg could be verified correctly when it is NULL or valid map pointer. Add devmap and devmap_hash in struct bpf_test due to bpf_redirect_{map, map_multi} lim

Re: [PATCH v2] brcmfmac: add support for CQM RSSI notifications

2021-02-08 Thread Kalle Valo
Alvin Šipraga wrote: > Add support for CQM RSSI measurement reporting and advertise the > NL80211_EXT_FEATURE_CQM_RSSI_LIST feature. This enables a userspace > supplicant such as iwd to be notified of changes in the RSSI for roaming > and signal monitoring purposes. > > Signed-off-by: Alvin Šipr

Re: [PATCH RESEND] wl1251: cmd: remove redundant assignment

2021-02-08 Thread Kalle Valo
samirweng1979 wrote: > From: wengjianfeng > > -ENOMEM has been used as a return value,it is not necessary to > assign it, and if kzalloc fail,not need free it,so just return > -ENOMEM when kzalloc fail. > > Signed-off-by: wengjianfeng You sent the previous version just five days ago: https:

Re: brcmsmac: fix alignment constraints

2021-02-08 Thread Kalle Valo
Arnd Bergmann wrote: > From: Arnd Bergmann > > sturct d11txh contains a ieee80211_rts structure, which is required to > have at least two byte alignment, and this conflicts with the __packed > attribute: > > drivers/net/wireless/broadcom/brcm80211/brcmsmac/d11.h:786:1: warning: > alignment 1

memory leak in qrtr_create

2021-02-08 Thread syzbot
Hello, syzbot found the following issue on: HEAD commit:13391c60 Merge branch 'linus' of git://git.kernel.org/pub/.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=15eb761b50 kernel config: https://syzkaller.appspot.com/x/.config?x=e7e6ee96c9292f22 das

Re: [PATCH net] net: bridge: use switchdev for port flags set through sysfs too

2021-02-08 Thread Nikolay Aleksandrov
On 07/02/2021 21:47, Vladimir Oltean wrote: > From: Vladimir Oltean > > Looking through patchwork I don't see that there was any consensus to > use switchdev notifiers only in case of netlink provided port flags but > not sysfs (as a sort of deprecation, punishment or anything like that), > so we

Re: [PATCH v2 -next] atmel: at76c50x: use DEFINE_MUTEX() for mutex lock

2021-02-08 Thread Kalle Valo
Zheng Yongjun wrote: > mutex lock can be initialized automatically with DEFINE_MUTEX() > rather than explicitly calling mutex_init(). > > Signed-off-by: Zheng Yongjun Patch applied to wireless-drivers-next.git, thanks. ae30a740a176 atmel: at76c50x: use DEFINE_MUTEX() for mutex lock -- https

Re: [PATCH v2] rtl8xxxu: remove unused assignment value

2021-02-08 Thread Kalle Valo
samirweng1979 wrote: > From: wengjianfeng > > at first, ret was assigned to zero, but later assigned to > a funciton,so the assignment to zero is no use, which can > simple be removed instead. > > Signed-off-by: wengjianfeng Patch applied to wireless-drivers-next.git, thanks. 199276b9bcef r

Re: [PATCH] libertas: remove redundant initialization of variable ret

2021-02-08 Thread Kalle Valo
Colin King wrote: > From: Colin Ian King > > The variable ret is being initialized with a value that is never read > and it is being updated later with a new value. The initialization is > redundant and can be removed. > > Addresses-Coverity: ("Unused value") > Signed-off-by: Colin Ian King

Re: [PATCH] mwifiex: Report connected BSS with cfg80211_connect_bss()

2021-02-08 Thread Kalle Valo
Yen-lin Lai wrote: > When a network is moved or reconfigured on the different channel, there > can be multiple BSSes with the same BSSID and SSID in scan result > before the old one expires. Then, it can cause cfg80211_connect_result > to map current_bss to a bss with the wrong channel. > > Let

Re: [PATCH] wl1251: cmd: remove redundant assignment

2021-02-08 Thread Kalle Valo
samirweng1979 wrote: > From: wengjianfeng > > -ENOMEM has been used as a return value,it is not necessary to > assign it, and if kzalloc fail,not need free it,so just return > -ENOMEM when kzalloc fail. > > Signed-off-by: wengjianfeng Patch applied to wireless-drivers-next.git, thanks. 05d7

Re: [PATCH] mwl8k: assign value when defining variables

2021-02-08 Thread Kalle Valo
samirweng1979 wrote: > From: wengjianfeng > > define refilled and then assign value to it, which should do > that at the same time. > > Signed-off-by: wengjianfeng Patch applied to wireless-drivers-next.git, thanks. bb779d476ff7 mwl8k: assign value when defining variables -- https://patch

Re: [PATCH] rsi: remove redundant assignment

2021-02-08 Thread Kalle Valo
samirweng1979 wrote: > From: wengjianfeng > > INVALID_QUEUE has been used as a return value,it is not necessary to > assign it to q_num,so just return INVALID_QUEUE. > > Signed-off-by: wengjianfeng Patch applied to wireless-drivers-next.git, thanks. d48aea6054d0 rsi: remove redundant assign

Re: [PATCH v2] rt2x00: remove duplicate word and fix typo in comment

2021-02-08 Thread Kalle Valo
samirweng1979 wrote: > From: wengjianfeng > > remove duplicate word 'we' in comment > change 'then' to 'than' in comment > > Signed-off-by: wengjianfeng > Acked-by: Randy Dunlap Patch applied to wireless-drivers-next.git, thanks. cc1546d6850c rt2x00: remove duplicate word and fix typo in c

Re: [PATCH] iwlegacy: 4965-mac: Simplify the calculation of variables

2021-02-08 Thread Kalle Valo
Jiapeng Chong wrote: > Fix the following coccicheck warnings: > > ./drivers/net/wireless/intel/iwlegacy/4965-mac.c:2596:54-56: WARNING !A > || A && B is equivalent to !A || B. > > Reported-by: Abaci Robot > Signed-off-by: Jiapeng Chong > Acked-by: Stanislaw Gruszka Patch applied to wireless

Re: [PATCH] wl3501: fix alignment constraints

2021-02-08 Thread Kalle Valo
Arnd Bergmann wrote: > From: Arnd Bergmann > > struct wl3501_80211_tx_hdr contains a ieee80211_hdr structure, which is > required to have at least two byte alignment, and this conflicts with > the __packed attribute: > > wireless/wl3501.h:553:1: warning: alignment 1 of 'struct wl3501_80211_tx_

Re: mwl8k: fix alignment constraints

2021-02-08 Thread Kalle Valo
Arnd Bergmann wrote: > From: Arnd Bergmann > > sturct mwl8k_dma_data contains a ieee80211_hdr structure, which is required to > have at least two byte alignment, and this conflicts with the __packed > attribute: > > vers/net/wireless/marvell/mwl8k.c:811:1: warning: alignment 1 of 'struct > mw

Re: [PATCH RESEND] wl1251: cmd: remove redundant assignment

2021-02-08 Thread wengjianfeng
On Mon, 8 Feb 2021 10:59:54 + (UTC) Kalle Valo wrote: > samirweng1979 wrote: > > > From: wengjianfeng > > > > -ENOMEM has been used as a return value,it is not necessary to > > assign it, and if kzalloc fail,not need free it,so just return > > -ENOMEM when kzalloc fail. > > > > Signed-o

Re: [PATCH net-next 2/9] net: bridge: offload initial and final port flags through switchdev

2021-02-08 Thread Nikolay Aleksandrov
On 08/02/2021 01:21, Vladimir Oltean wrote: > From: Vladimir Oltean > > It must first be admitted that switchdev device drivers have a life > beyond the bridge, and when they aren't offloading the bridge driver > they are operating with forwarding disabled between ports, emulating as > closely as

[PATCH] bpf: in bpf_skb_adjust_room correct inner protocol for vxlan

2021-02-08 Thread huangxuesen
From: huangxuesen When pushing vxlan tunnel header, set inner protocol as ETH_P_TEB in skb to avoid HW device disabling udp tunnel segmentation offload, just like vxlan_build_skb does. Drivers for NIC may invoke vxlan_features_check to check the inner_protocol in skb for vxlan packets to decide

[PATCH net-next 10/12] net: hns3: remove an unused parameter in hclge_vf_rate_param_check()

2021-02-08 Thread Huazhong Tan
Parameter vf in hclge_vf_rate_param_check() is unused now, so remove it. Signed-off-by: Huazhong Tan --- drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c b/driv

[PATCH net-next 09/12] net: hns3: remove redundant return value of hns3_uninit_all_ring()

2021-02-08 Thread Huazhong Tan
Since hns3_uninit_all_ring() only returns 0, so remove this redundant return value and function declaration in hns3_enet.h. Signed-off-by: Huazhong Tan --- drivers/net/ethernet/hisilicon/hns3/hns3_enet.c | 12 +++- drivers/net/ethernet/hisilicon/hns3/hns3_enet.h | 1 - 2 files changed,

[PATCH net-next 02/12] net: hns3: remove redundant client_setup_tc handle

2021-02-08 Thread Huazhong Tan
From: Jian Shen Since the real tx queue number and real rx queue number always be updated when netdev opens, it's redundant to call hclge_client_setup_tc to do the same thing. So remove it. Signed-off-by: Jian Shen Signed-off-by: Huazhong Tan --- drivers/net/ethernet/hisilicon/hns3/hnae3.h

[PATCH net-next 00/12] net: hns3: some cleanups for -next

2021-02-08 Thread Huazhong Tan
There are some cleanups for the HNS3 ethernet driver. Huazhong Tan (2): net: hns3: remove redundant return value of hns3_uninit_all_ring() net: hns3: remove an unused parameter in hclge_vf_rate_param_check() Jian Shen (2): net: hns3: remove redundant client_setup_tc handle net: hns3: clea

[PATCH net-next 12/12] net: hns3: cleanup for endian issue for VF RSS

2021-02-08 Thread Huazhong Tan
From: Jian Shen Currently the RSS commands of VF are using host byte order. According to the user manual, it should use little endian in the command to firmware. For the host and firmware are both using little endian, so it can work well in this case. Do cleanup to make it more explicitly. Sign

[PATCH net-next 08/12] net: hns3: change hclge_query_bd_num() param type

2021-02-08 Thread Huazhong Tan
From: Peng Li The type of parameter mpf_bd_num and pf_bd_num in hclge_query_bd_num() should be u32* instead of int*, so change them. Signed-off-by: Peng Li Signed-off-by: Huazhong Tan --- drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c | 4 ++-- 1 file changed, 2 insertions(+), 2 delet

[PATCH net-next 04/12] net: hns3: remove the shaper param magic number

2021-02-08 Thread Huazhong Tan
From: Peng Li To make the code more readable, this patch adds a definition for the magic number 126 used for the default shaper param ir_b, and rename macro DIVISOR_IR_B_126. No functional change. Signed-off-by: Peng Li Signed-off-by: Huazhong Tan --- drivers/net/ethernet/hisilicon/hns3/hns3

[PATCH net-next 07/12] net: hns3: change hclge_parse_speed() param type

2021-02-08 Thread Huazhong Tan
From: Peng Li The type of parameters in hclge_parse_speed() should be unsigned type, so change them. Signed-off-by: Peng Li Signed-off-by: Huazhong Tan --- drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/e

[PATCH net-next 03/12] net: hns3: check cmdq message parameters sent from VF

2021-02-08 Thread Huazhong Tan
From: Yufeng Mo The parameters sent from VF may be unreliable. If these parameters are used directly, memory overwriting may occur. Therefore, we need to check parameters before using. Signed-off-by: Yufeng Mo Signed-off-by: Huazhong Tan --- .../ethernet/hisilicon/hns3/hns3pf/hclge_main.c

  1   2   3   4   5   >