Re: [PATCH v4 net-next 21/21] Documentation: add TCP DDP offload documentation

2021-02-13 Thread Or Gerlitz
On Fri, Feb 12, 2021 at 4:11 PM Nikolay Aleksandrov wrote: > I got interested and read through the doc, there are a few typos below. thanks for spotting these, we will fix them

Re: [PATCH rdma-next 0/2] Real time/free running timestamp support

2021-02-13 Thread Leon Romanovsky
On Fri, Feb 12, 2021 at 05:21:53PM -0400, Jason Gunthorpe wrote: > On Fri, Feb 12, 2021 at 01:19:09PM -0800, Saeed Mahameed wrote: > > On Fri, 2021-02-12 at 17:14 -0400, Jason Gunthorpe wrote: > > > On Fri, Feb 12, 2021 at 01:09:20PM -0800, Saeed Mahameed wrote: > > > > On Fri, 2021-02-12 at 14:10

Re: [PATCH v2 2/4] net: stmmac: Add Toshiba Visconti SoCs glue driver

2021-02-13 Thread Leon Romanovsky
On Fri, Feb 12, 2021 at 11:58:04AM +0900, Nobuhiro Iwamatsu wrote: > Add dwmac-visconti to the stmmac driver in Toshiba Visconti ARM SoCs. > This patch contains only the basic function of the device. There is no > clock control, PM, etc. yet. These will be added in the future. > > Signed-off-by: No

Re: [PATCH 2/2] ath10k: detect conf_mutex held ath10k_drain_tx() calls

2021-02-13 Thread Kalle Valo
Shuah Khan writes: > ath10k_drain_tx() must not be called with conf_mutex held as workers can > use that also. Add call to lockdep_assert_not_held() on conf_mutex to > detect if conf_mutex is held by the caller. > > The idea for this patch stemmed from coming across the comment block > above the

Re: [PATCH mlx5-next v6 0/4] Dynamically assign MSI-X vectors count

2021-02-13 Thread Leon Romanovsky
On Tue, Feb 09, 2021 at 01:06:25PM -0800, Alexander Duyck wrote: > On Tue, Feb 9, 2021 at 5:34 AM Leon Romanovsky wrote: > > <...> > > Leon Romanovsky (4): > > PCI: Add sysfs callback to allow MSI-X table size change of SR-IOV VFs > > net/mlx5: Add dynamic MSI-X capabilities bits > > net/m

Re: [EXT] [bug report] octeontx2-af: cn10k: Uninitialized variables

2021-02-13 Thread Geethasowjanya Akula
Hi Gustavo, please see inline. Thank you, Geetha. >From: Gustavo A. R. Silva >Sent: Saturday, February 13, 2021 12:09 AM >To: Sunil Kovvuri Goutham; Linu Cherian; Geethasowjanya Akula; Jerin Jacob >>Kollanukkaran; Hariprasad Kelam; Subbaraya Sundeep Bh

Re: [PATCH v2 net-next 12/12] net: dsa: tag_ocelot_8021q: add support for PTP timestamping

2021-02-13 Thread Florian Fainelli
On 2/13/2021 14:38, Vladimir Oltean wrote: From: Vladimir Oltean For TX timestamping, we use the felix_txtstamp method which is common with the regular (non-8021q) ocelot tagger. This method says that skb deferral is needed, prepares a timestamp request ID, and puts a clone of the skb in a q

Re: [PATCH v2 net-next 11/12] net: dsa: felix: setup MMIO filtering rules for PTP when using tag_8021q

2021-02-13 Thread Florian Fainelli
On 2/13/2021 14:38, Vladimir Oltean wrote: From: Vladimir Oltean Since the tag_8021q tagger is software-defined, it has no means by itself for retrieving hardware timestamps of PTP event messages. Because we do want to support PTP on ocelot even with tag_8021q, we need to use the CPU port m

Re: [PATCH v2 net-next 10/12] net: mscc: ocelot: refactor ocelot_xtr_irq_handler into ocelot_xtr_poll

2021-02-13 Thread Florian Fainelli
On 2/13/2021 14:37, Vladimir Oltean wrote: From: Vladimir Oltean Since the felix DSA driver will need to poll the CPU port module for extracted frames as well, let's create some common functions that read an Extraction Frame Header, and then an skb, from a CPU extraction group. We abuse the

Re: [EXT] [bug report] octeontx2-af: cn10k: Identical code for different branches

2021-02-13 Thread Geethasowjanya Akula
Hi Gustavo, Please see inline. >From: Gustavo A. R. Silva >Sent: Saturday, February 13, 2021 1:31 AM >To: Sunil Kovvuri Goutham; Linu Cherian; Geethasowjanya Akula; Jerin Jacob >>Kollanukkaran; Hariprasad Kelam; Subbaraya Sundeep Bhatta; David S. Miller

Re: [PATCHv2] btf_encoder: Match ftrace addresses within elf functions

2021-02-13 Thread Nathan Chancellor
On Sat, Feb 13, 2021 at 05:46:48PM +0100, Jiri Olsa wrote: > Currently when processing DWARF function, we check its entrypoint > against ftrace addresses, assuming that the ftrace address matches > with function's entrypoint. > > This is not the case on some architectures as reported by Nathan > w

Re: [PATCH net-next 2/2] net: phy: at803x: use proper locking in at803x_aneg_done()

2021-02-13 Thread Vladimir Oltean
On Sun, Feb 14, 2021 at 03:18:49AM +0100, Michael Walle wrote: > Am 14. Februar 2021 02:57:33 MEZ schrieb Vladimir Oltean : > >Hi Michael, > > > >On Sun, Feb 14, 2021 at 02:04:05AM +0100, Michael Walle wrote: > >> at803x_aneg_done() checks if auto-negotiation is completed on the > >SGMII > >> side.

Re: [PATCH net-next 2/2] net: phy: at803x: use proper locking in at803x_aneg_done()

2021-02-13 Thread Michael Walle
Am 14. Februar 2021 02:57:33 MEZ schrieb Vladimir Oltean : >Hi Michael, > >On Sun, Feb 14, 2021 at 02:04:05AM +0100, Michael Walle wrote: >> at803x_aneg_done() checks if auto-negotiation is completed on the >SGMII >> side. This doesn't take the mdio bus lock and the page switching is >> open-coded.

Re: [PATCH net-next 2/2] net: phy: at803x: use proper locking in at803x_aneg_done()

2021-02-13 Thread Vladimir Oltean
Hi Michael, On Sun, Feb 14, 2021 at 02:04:05AM +0100, Michael Walle wrote: > at803x_aneg_done() checks if auto-negotiation is completed on the SGMII > side. This doesn't take the mdio bus lock and the page switching is > open-coded. Now that we have proper page support, just use > phy_read_paged()

Re: [PATCH v2 net-next 09/12] net: dsa: tag_ocelot: create separate tagger for Seville

2021-02-13 Thread Florian Fainelli
On 2/13/2021 14:37, Vladimir Oltean wrote: From: Vladimir Oltean The ocelot tagger is a hot mess currently, it relies on memory initialized by the attached driver for basic frame transmission. This is against all that DSA tagging protocols stand for, which is that the transmission and recept

Re: [PATCH v2 net-next 08/12] net: dsa: tag_ocelot: single out PTP-related transmit tag processing

2021-02-13 Thread Florian Fainelli
On 2/13/2021 14:37, Vladimir Oltean wrote: From: Vladimir Oltean There is one place where we cannot avoid accessing driver data, and that is 2-step PTP TX timestamping, since the switch wants us to provide a timestamp request ID through the injection header, which naturally must come from a

Re: [PATCH v2 net-next 07/12] net: mscc: ocelot: use common tag parsing code with DSA

2021-02-13 Thread Florian Fainelli
On 2/13/2021 14:37, Vladimir Oltean wrote: From: Vladimir Oltean The Injection Frame Header and Extraction Frame Header that the switch prepends to frames over the NPI port is also prepended to frames delivered over the CPU port module's queues. Let's unify the handling of the frame headers

Re: [PATCH v2 net-next 06/12] net: dsa: tag_ocelot: avoid accessing ds->priv in ocelot_rcv

2021-02-13 Thread Florian Fainelli
On 2/13/2021 14:37, Vladimir Oltean wrote: From: Vladimir Oltean Taggers should be written to do something valid irrespective of the switch driver that they are attached to. This is even more true now, because since the introduction of the .change_tag_protocol method, a certain tagger is not

Re: [PATCH v2 net-next 05/12] net: mscc: ocelot: refactor ocelot_port_inject_frame out of ocelot_port_xmit

2021-02-13 Thread Florian Fainelli
On 2/13/2021 14:37, Vladimir Oltean wrote: From: Vladimir Oltean The felix DSA driver will inject some frames through register MMIO, same as ocelot switchdev currently does. So we need to be able to reuse the common code. Also create some shim definitions, since the DSA tagger can be compil

Re: [PATCH v2 net-next 04/12] net: mscc: ocelot: use DIV_ROUND_UP helper in ocelot_port_inject_frame

2021-02-13 Thread Florian Fainelli
On 2/13/2021 14:37, Vladimir Oltean wrote: From: Vladimir Oltean This looks a bit nicer than the open-coded "(x + 3) % 4" idiom. Signed-off-by: Vladimir Oltean Reviewed-by: Florian Fainelli -- Florian

Re: [PATCH net-next] net: dsa: sja1105: make devlink property best_effort_vlan_filtering true by default

2021-02-13 Thread Florian Fainelli
On 2/13/2021 12:46, Vladimir Oltean wrote: From: Vladimir Oltean The sja1105 driver has a limitation, extensively described under Documentation/networking/dsa/sja1105.rst and Documentation/networking/devlink/sja1105.rst, which says that when the ports are under a bridge with vlan_filtering=1

Re: [PATCH v2 net-next 02/12] net: mscc: ocelot: only drain extraction queue on error

2021-02-13 Thread Florian Fainelli
On 2/13/2021 14:37, Vladimir Oltean wrote: From: Vladimir Oltean It appears that the intention of this snippet of code is to not exit ocelot_xtr_irq_handler() while in the middle of extracting a frame. The problem in extracting it word by word is that future extraction attempts are really ea

Re: [PATCH v2 net-next 03/12] net: mscc: ocelot: better error handling in ocelot_xtr_irq_handler

2021-02-13 Thread Florian Fainelli
On 2/13/2021 14:37, Vladimir Oltean wrote: From: Vladimir Oltean The ocelot_rx_frame_word() function can return a negative error code, however this isn't being checked for consistently. Errors being ignored have not been seen in practice though. Also, some constructs can be simplified by us

Re: [PATCH net-next 5/5] net: dsa: propagate extack to .port_vlan_filtering

2021-02-13 Thread Florian Fainelli
On 2/13/2021 12:43, Vladimir Oltean wrote: From: Vladimir Oltean Some drivers can't dynamically change the VLAN filtering option, or impose some restrictions, it would be nice to propagate this info through netlink instead of printing it to a kernel log that might never be read. Also netlink

[PATCH net-next] net: phy: at803x: add MDIX support to AR8031/33

2021-02-13 Thread Michael Walle
AR8035 recently gained MDIX support. The same functions will work for the AR8031/33 PHY. We just need to add the at803x_config_aneg() callback. This was tested on a Kontron sl28 board. Signed-off-by: Michael Walle --- drivers/net/phy/at803x.c | 1 + 1 file changed, 1 insertion(+) diff --git a/

Re: [PATCH net-next 4/5] net: dsa: propagate extack to .port_vlan_add

2021-02-13 Thread Florian Fainelli
On 2/13/2021 12:43, Vladimir Oltean wrote: From: Vladimir Oltean Allow drivers to communicate their restrictions to user space directly, instead of printing to the kernel log. Where the conversion would have been lossy and things like VLAN ID could no longer be conveyed (due to the lack of s

Re: [PATCH net-next 3/5] net: bridge: propagate extack through switchdev_port_attr_set

2021-02-13 Thread Florian Fainelli
On 2/13/2021 12:43, Vladimir Oltean wrote: From: Vladimir Oltean The benefit is the ability to propagate errors from switchdev drivers for the SWITCHDEV_ATTR_ID_BRIDGE_VLAN_FILTERING and SWITCHDEV_ATTR_ID_BRIDGE_VLAN_PROTOCOL attributes. Signed-off-by: Vladimir Oltean Reviewed-by: Floria

Re: [PATCH net-next 2/5] net: bridge: propagate extack through store_bridge_parm

2021-02-13 Thread Florian Fainelli
On 2/13/2021 12:43, Vladimir Oltean wrote: From: Vladimir Oltean The bridge sysfs interface stores parameters for the STP, VLAN, multicast etc subsystems using a predefined function prototype. Sometimes the underlying function being called supports a netlink extended ack message, and we igno

Re: [PATCH net-next 1/5] net: bridge: remove __br_vlan_filter_toggle

2021-02-13 Thread Florian Fainelli
On 2/13/2021 12:43, Vladimir Oltean wrote: From: Vladimir Oltean This function is identical with br_vlan_filter_toggle. Signed-off-by: Vladimir Oltean Reviewed-by: Florian Fainelli -- Florian

[PATCH net-next 0/2] net: phy: at803x: paging support

2021-02-13 Thread Michael Walle
Add paging support to the QCA AR8031/33 PHY. This will be needed if we add support for the .config_inband_aneg callback, see series [1]. But it also turns out, that the driver already accessed the fiber page all along without proper locking. Patch 2 will fix that. [1] https://lore.kernel.org/netde

[PATCH net-next 2/2] net: phy: at803x: use proper locking in at803x_aneg_done()

2021-02-13 Thread Michael Walle
at803x_aneg_done() checks if auto-negotiation is completed on the SGMII side. This doesn't take the mdio bus lock and the page switching is open-coded. Now that we have proper page support, just use phy_read_paged(). Also use phydev->interface to check if we have an SGMII link instead of reading th

[PATCH net-next 1/2] net: phy: at803x: add pages support to AR8031/33

2021-02-13 Thread Michael Walle
The AR8031 has two register sets: Copper and Fiber. The fiber page is used in case of 100Base-FX and 1000Base-X. But more importantly it is also used for the SGMII link. Add support to switch between these two. Signed-off-by: Michael Walle --- drivers/net/phy/at803x.c | 35 ++

Re: [PATCH iproute2-next] ss: Make leading ":" always optional for sport and dport

2021-02-13 Thread David Ahern
On 2/5/21 11:36 PM, Thayne McCombs wrote: > The sport and dport conditions in expressions were inconsistent on > whether there should be a ":" at the beginning of the port when only a > port was provided depending on the family. The link and netlink > families required a ":" to work. The vsock fami

Re: [PATCH iproute2-next] ip route: Print "rt_offload_failed" indication

2021-02-13 Thread David Ahern
On 2/9/21 2:12 AM, Amit Cohen wrote: > The kernel signals when offload fails using the 'RTM_F_OFFLOAD_FAILED' > flag. Print it to help users understand the offload state of the route. > The "rt_" prefix is used in order to distinguish it from the offload state > of nexthops, similar to "rt_offload"

RE: [PATCH net-next v2 2/5] lan743x: sync only the received area of an rx ring buffer

2021-02-13 Thread Bryan.Whitehead
> Will do. Are you planning to hold off your tests until v3? It shouldn't take > too > long. Sure, we will wait for v3

Re: [PATCH v6 net-next 00/11] skbuff: introduce skbuff_heads bulking and reusing

2021-02-13 Thread patchwork-bot+netdevbpf
Hello: This series was applied to netdev/net-next.git (refs/heads/master): On Sat, 13 Feb 2021 14:10:43 + you wrote: > Currently, all sorts of skb allocation always do allocate > skbuff_heads one by one via kmem_cache_alloc(). > On the other hand, we have percpu napi_alloc_cache to store > sk

[PATCH v2 net-next 11/12] net: dsa: felix: setup MMIO filtering rules for PTP when using tag_8021q

2021-02-13 Thread Vladimir Oltean
From: Vladimir Oltean Since the tag_8021q tagger is software-defined, it has no means by itself for retrieving hardware timestamps of PTP event messages. Because we do want to support PTP on ocelot even with tag_8021q, we need to use the CPU port module for that. The RX timestamp is present in t

[PATCH v2 net-next 12/12] net: dsa: tag_ocelot_8021q: add support for PTP timestamping

2021-02-13 Thread Vladimir Oltean
From: Vladimir Oltean For TX timestamping, we use the felix_txtstamp method which is common with the regular (non-8021q) ocelot tagger. This method says that skb deferral is needed, prepares a timestamp request ID, and puts a clone of the skb in a queue waiting for the timestamp IRQ. felix_txtst

[PATCH v2 net-next 09/12] net: dsa: tag_ocelot: create separate tagger for Seville

2021-02-13 Thread Vladimir Oltean
From: Vladimir Oltean The ocelot tagger is a hot mess currently, it relies on memory initialized by the attached driver for basic frame transmission. This is against all that DSA tagging protocols stand for, which is that the transmission and reception of a DSA-tagged frame, the data path, should

[PATCH v2 net-next 10/12] net: mscc: ocelot: refactor ocelot_xtr_irq_handler into ocelot_xtr_poll

2021-02-13 Thread Vladimir Oltean
From: Vladimir Oltean Since the felix DSA driver will need to poll the CPU port module for extracted frames as well, let's create some common functions that read an Extraction Frame Header, and then an skb, from a CPU extraction group. We abuse the struct ocelot_ops :: port_to_netdev function a

[PATCH v2 net-next 08/12] net: dsa: tag_ocelot: single out PTP-related transmit tag processing

2021-02-13 Thread Vladimir Oltean
From: Vladimir Oltean There is one place where we cannot avoid accessing driver data, and that is 2-step PTP TX timestamping, since the switch wants us to provide a timestamp request ID through the injection header, which naturally must come from a sequence number kept by the driver (it is genera

[PATCH v2 net-next 07/12] net: mscc: ocelot: use common tag parsing code with DSA

2021-02-13 Thread Vladimir Oltean
From: Vladimir Oltean The Injection Frame Header and Extraction Frame Header that the switch prepends to frames over the NPI port is also prepended to frames delivered over the CPU port module's queues. Let's unify the handling of the frame headers by making the ocelot driver call some helpers e

[PATCH v2 net-next 06/12] net: dsa: tag_ocelot: avoid accessing ds->priv in ocelot_rcv

2021-02-13 Thread Vladimir Oltean
From: Vladimir Oltean Taggers should be written to do something valid irrespective of the switch driver that they are attached to. This is even more true now, because since the introduction of the .change_tag_protocol method, a certain tagger is not necessarily strictly associated with a driver a

[PATCH v2 net-next 04/12] net: mscc: ocelot: use DIV_ROUND_UP helper in ocelot_port_inject_frame

2021-02-13 Thread Vladimir Oltean
From: Vladimir Oltean This looks a bit nicer than the open-coded "(x + 3) % 4" idiom. Signed-off-by: Vladimir Oltean --- Changes in v2: None. drivers/net/ethernet/mscc/ocelot_net.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/mscc/ocelot_net.c b/dr

[PATCH v2 net-next 05/12] net: mscc: ocelot: refactor ocelot_port_inject_frame out of ocelot_port_xmit

2021-02-13 Thread Vladimir Oltean
From: Vladimir Oltean The felix DSA driver will inject some frames through register MMIO, same as ocelot switchdev currently does. So we need to be able to reuse the common code. Also create some shim definitions, since the DSA tagger can be compiled without support for the switch driver. Signe

[PATCH v2 net-next 03/12] net: mscc: ocelot: better error handling in ocelot_xtr_irq_handler

2021-02-13 Thread Vladimir Oltean
From: Vladimir Oltean The ocelot_rx_frame_word() function can return a negative error code, however this isn't being checked for consistently. Errors being ignored have not been seen in practice though. Also, some constructs can be simplified by using "goto" instead of repeated "break" statement

[PATCH v2 net-next 02/12] net: mscc: ocelot: only drain extraction queue on error

2021-02-13 Thread Vladimir Oltean
From: Vladimir Oltean It appears that the intention of this snippet of code is to not exit ocelot_xtr_irq_handler() while in the middle of extracting a frame. The problem in extracting it word by word is that future extraction attempts are really easy to get desynchronized, since the IRQ handler

[PATCH v2 net-next 00/12] PTP for DSA tag_ocelot_8021q

2021-02-13 Thread Vladimir Oltean
From: Vladimir Oltean Changes in v2: Add stub definition for ocelot_port_inject_frame when switch driver is not compiled in. This is part two of the errata workaround begun here: https://patchwork.kernel.org/project/netdevbpf/cover/20210129010009.3959398-1-olte...@gmail.com/ Now that we have ba

[PATCH v2 net-next 01/12] net: mscc: ocelot: stop returning IRQ_NONE in ocelot_xtr_irq_handler

2021-02-13 Thread Vladimir Oltean
From: Vladimir Oltean Since the xtr (extraction) IRQ of the ocelot switch is not shared, then if it fired, it means that some data must be present in the queues of the CPU port module. So simplify the code. Signed-off-by: Vladimir Oltean Reviewed-by: Florian Fainelli --- Changes in v2: None.

Re: [PATCH net-next 0/8] mptcp: Add genl events for connection info

2021-02-13 Thread David Miller
From: Mat Martineau Date: Fri, 12 Feb 2021 20:46:30 -0800 (PST) > On Fri, 12 Feb 2021, Mat Martineau wrote: > >> This series from the MPTCP tree adds genl multicast events that are >> important for implementing a userspace path manager. In MPTCP, a path >> manager is responsible for adding or re

[Patch bpf-next v3 0/5] sock_map: clean up and refactor code for BPF_SK_SKB_VERDICT

2021-02-13 Thread Cong Wang
From: Cong Wang This patchset is the first series of patches separated out from the original large patchset, to make reviews easier. This patchset does not add any new feature or change any functionality but merely cleans up the existing sockmap and skmsg code and refactors it, to prepare for the

[Patch bpf-next v3 2/5] skmsg: get rid of struct sk_psock_parser

2021-02-13 Thread Cong Wang
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, and get rid of ->enabled. Cc: John Fastabend Cc: Daniel Borkmann Cc: Jakub Sitnicki Cc: Lorenz Bauer Signed-off-by: Co

[Patch bpf-next v3 5/5] sock_map: rename skb_parser and skb_verdict

2021-02-13 Thread Cong Wang
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 only used for TCP. And save the name 'skb_verdict' for general use later. Cc: John Fastabend Cc: Daniel Borkmann Cc: Jakub Sitnicki Reviewed-by:

[Patch bpf-next v3 4/5] skmsg: use skb ext instead of TCP_SKB_CB

2021-02-13 Thread Cong Wang
From: Cong Wang Currently TCP_SKB_CB() is hard-coded in skmsg code, it certainly does not work for any other non-TCP protocols. We can move them to skb ext instead of playing with skb cb, which is harder to make correct. Cc: John Fastabend Cc: Daniel Borkmann Cc: Jakub Sitnicki Reviewed-by: L

[Patch bpf-next v3 3/5] bpf: compute data_end dynamically with JIT code

2021-02-13 Thread Cong Wang
From: Cong Wang Currently, we compute ->data_end with a compile-time constant offset of skb. But as Jakub pointed out, we can actually compute it in eBPF JIT code at run-time, so that we can competely get rid of ->data_end. This is similar to skb_shinfo(skb) computation in bpf_convert_shinfo_acce

[Patch bpf-next v3 1/5] bpf: clean up sockmap related Kconfigs

2021-02-13 Thread Cong Wang
From: Cong Wang As suggested by John, clean up sockmap related Kconfigs: Reduce the scope of CONFIG_BPF_STREAM_PARSER down to TCP stream parser, to reflect its name. Make the rest sockmap code simply depend on CONFIG_BPF_SYSCALL. And leave CONFIG_NET_SOCK_MSG untouched, as it is used by non-soc

Re: [PATCH net-next v2 7/7] mld: convert ifmcaddr6 to RCU

2021-02-13 Thread kernel test robot
Hi Taehee, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on net-next/master] url: https://github.com/0day-ci/linux/commits/Taehee-Yoo/mld-change-context-from-atomic-to-sleepable/20210214-015930 base: https://git.kernel.org/pub/scm/linux/kernel/git/davem/ne

[PATCH net-next] net: dsa: sja1105: make devlink property best_effort_vlan_filtering true by default

2021-02-13 Thread Vladimir Oltean
From: Vladimir Oltean The sja1105 driver has a limitation, extensively described under Documentation/networking/dsa/sja1105.rst and Documentation/networking/devlink/sja1105.rst, which says that when the ports are under a bridge with vlan_filtering=1, traffic to and from the network stack is not p

[PATCH net-next 5/5] net: dsa: propagate extack to .port_vlan_filtering

2021-02-13 Thread Vladimir Oltean
From: Vladimir Oltean Some drivers can't dynamically change the VLAN filtering option, or impose some restrictions, it would be nice to propagate this info through netlink instead of printing it to a kernel log that might never be read. Also netlink extack includes the module that emitted the mes

[PATCH net-next 3/5] net: bridge: propagate extack through switchdev_port_attr_set

2021-02-13 Thread Vladimir Oltean
From: Vladimir Oltean The benefit is the ability to propagate errors from switchdev drivers for the SWITCHDEV_ATTR_ID_BRIDGE_VLAN_FILTERING and SWITCHDEV_ATTR_ID_BRIDGE_VLAN_PROTOCOL attributes. Signed-off-by: Vladimir Oltean --- include/net/switchdev.h | 3 ++- net/bridge/br_mrp_switch

[PATCH net-next 4/5] net: dsa: propagate extack to .port_vlan_add

2021-02-13 Thread Vladimir Oltean
From: Vladimir Oltean Allow drivers to communicate their restrictions to user space directly, instead of printing to the kernel log. Where the conversion would have been lossy and things like VLAN ID could no longer be conveyed (due to the lack of support for printf format specifier in netlink ex

[PATCH net-next 2/5] net: bridge: propagate extack through store_bridge_parm

2021-02-13 Thread Vladimir Oltean
From: Vladimir Oltean The bridge sysfs interface stores parameters for the STP, VLAN, multicast etc subsystems using a predefined function prototype. Sometimes the underlying function being called supports a netlink extended ack message, and we ignore it. Let's expand the store_bridge_parm funct

[PATCH net-next 1/5] net: bridge: remove __br_vlan_filter_toggle

2021-02-13 Thread Vladimir Oltean
From: Vladimir Oltean This function is identical with br_vlan_filter_toggle. Signed-off-by: Vladimir Oltean --- net/bridge/br_netlink.c | 2 +- net/bridge/br_private.h | 5 ++--- net/bridge/br_vlan.c| 7 +-- 3 files changed, 4 insertions(+), 10 deletions(-) diff --git a/net/bridge/br_

[PATCH net-next 0/5] Propagate extack for switchdev VLANs from DSA

2021-02-13 Thread Vladimir Oltean
From: Vladimir Oltean This series moves the restriction messages printed by the DSA core, and by some individual device drivers, into the netlink extended ack structure, to be communicated to user space where possible, or still printed to the kernel log from the bridge layer. Vladimir Oltean (5)

Re: [PATCH v6 net-next 00/11] skbuff: introduce skbuff_heads bulking and reusing

2021-02-13 Thread Alexander Duyck
On Sat, Feb 13, 2021 at 6:10 AM Alexander Lobakin wrote: > > Currently, all sorts of skb allocation always do allocate > skbuff_heads one by one via kmem_cache_alloc(). > On the other hand, we have percpu napi_alloc_cache to store > skbuff_heads queued up for freeing and flush them by bulks. > > W

Re: [RFC PATCH 04/13] nexthop: Add implementation of resilient next-hop groups

2021-02-13 Thread Ido Schimmel
On Sat, Feb 13, 2021 at 12:38:47PM -0700, David Ahern wrote: > On 2/8/21 1:42 PM, Petr Machata wrote: > > diff --git a/net/ipv4/nexthop.c b/net/ipv4/nexthop.c > > index 5d560d381070..4ce282b0a65f 100644 > > --- a/net/ipv4/nexthop.c > > +++ b/net/ipv4/nexthop.c> @@ -734,6 +834,22 @@ static struct ne

Re: [RFC PATCH 03/13] nexthop: Add netlink defines and enumerators for resilient NH groups

2021-02-13 Thread Ido Schimmel
On Sat, Feb 13, 2021 at 12:16:45PM -0700, David Ahern wrote: > On 2/8/21 1:42 PM, Petr Machata wrote: > > @@ -52,8 +53,50 @@ enum { > > NHA_FDB,/* flag; nexthop belongs to a bridge fdb */ > > /* if NHA_FDB is added, OIF, BLACKHOLE, ENCAP cannot be set */ > > > > + /* nested; res

Re: [PATCH net-next 1/2] net: phylink: explicitly configure in-band autoneg for PHYs that support it

2021-02-13 Thread Russell King - ARM Linux admin
On Sat, Feb 13, 2021 at 08:57:46PM +0100, Michael Walle wrote: > But then why bother with config_inband_aneg() at all and just enable > it unconditionally in config_init(). [and maybe keep the return -EINVAL]. > Which then begs the question, does it makes sense on (Q)SGMII links at > all? There ar

Re: [RFC PATCH 00/13] nexthop: Resilient next-hop groups

2021-02-13 Thread Ido Schimmel
On Sat, Feb 13, 2021 at 12:17:54PM -0700, David Ahern wrote: > On 2/13/21 12:16 PM, Ido Schimmel wrote: > > On Sat, Feb 13, 2021 at 11:57:03AM -0700, David Ahern wrote: > >> On 2/8/21 1:42 PM, Petr Machata wrote: > >>> To illustrate the usage, consider the following commands: > >>> > >>> # ip next

Re: [PATCH net-next 1/2] net: phylink: explicitly configure in-band autoneg for PHYs that support it

2021-02-13 Thread Vladimir Oltean
On Sat, Feb 13, 2021 at 08:57:46PM +0100, Michael Walle wrote: > > On the other hand, I never meant for the inband autoneg setting to only > > be configurable both ways. > > Then why is there a "bool enabled"? Let me stress the word _only_ both ways. The whole point of the "bool enabled" is to att

Re: [PATCH net-next v2 6/7] mld: convert ip6_sf_list to RCU

2021-02-13 Thread kernel test robot
Hi Taehee, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on net-next/master] url: https://github.com/0day-ci/linux/commits/Taehee-Yoo/mld-change-context-from-atomic-to-sleepable/20210214-015930 base: https://git.kernel.org/pub/scm/linux/kernel/git/davem/ne

Re: [PATCH net-next v2 0/7] mld: change context from atomic to sleepable

2021-02-13 Thread David Ahern
your patches still show up as 8 individual emails. Did you use 'git send-email --thread --no-chain-reply-to' as Jakub suggested? Please read the git-send-email man page for what the options do.

Re: [PATCH net-next 1/2] net: phylink: explicitly configure in-band autoneg for PHYs that support it

2021-02-13 Thread Michael Walle
Am 2021-02-13 19:56, schrieb Vladimir Oltean: On Sat, Feb 13, 2021 at 06:09:13PM +0100, Michael Walle wrote: Am 2021-02-13 17:53, schrieb Michael Walle: > Am 2021-02-13 01:36, schrieb Vladimir Oltean: > But the Atheros PHY seems to have a problem with the SGMII link > if there is no autoneg. > N

Re: [PATCH net-next 2/2] net: mvneta: Implement mqprio support

2021-02-13 Thread Andrew Lunn
On Fri, Feb 12, 2021 at 04:12:20PM +0100, Maxime Chevallier wrote: > +static void mvneta_setup_rx_prio_map(struct mvneta_port *pp) > +{ > + int i; > + u32 val = 0; Hi Maxime Reverse Chrismtass tree please. Andrew

Re: [PATCH net-next v2 5/7] mld: convert ipv6_mc_socklist->sflist to RCU

2021-02-13 Thread kernel test robot
Hi Taehee, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on net-next/master] url: https://github.com/0day-ci/linux/commits/Taehee-Yoo/mld-change-context-from-atomic-to-sleepable/20210214-015930 base: https://git.kernel.org/pub/scm/linux/kernel/git/davem/ne

Re: [RFC PATCH 04/13] nexthop: Add implementation of resilient next-hop groups

2021-02-13 Thread David Ahern
On 2/8/21 1:42 PM, Petr Machata wrote: > diff --git a/net/ipv4/nexthop.c b/net/ipv4/nexthop.c > index 5d560d381070..4ce282b0a65f 100644 > --- a/net/ipv4/nexthop.c > +++ b/net/ipv4/nexthop.c> @@ -734,6 +834,22 @@ static struct nexthop *nexthop_select_path_mp(struct nh_group *nhg, int hash) > r

Re: [RFC PATCH 04/13] nexthop: Add implementation of resilient next-hop groups

2021-02-13 Thread David Ahern
On 2/8/21 1:42 PM, Petr Machata wrote: > @@ -212,7 +254,7 @@ static inline bool nexthop_is_multipath(const struct > nexthop *nh) > struct nh_group *nh_grp; > > nh_grp = rcu_dereference_rtnl(nh->nh_grp); > - return nh_grp->mpath; > + return nh_g

Re: [PATCH net-next v2 3/7] mld: add a new delayed_work, mc_delrec_work

2021-02-13 Thread Cong Wang
On Sat, Feb 13, 2021 at 9:52 AM Taehee Yoo wrote: > > The goal of mc_delrec_work delayed work is to call mld_clear_delrec(). > The mld_clear_delrec() is called under both data path and control path. > So, the context of mld_clear_delrec() can be atomic. > But this function accesses struct ifmcaddr

Re: [RFC PATCH 00/13] nexthop: Resilient next-hop groups

2021-02-13 Thread David Ahern
On 2/13/21 12:16 PM, Ido Schimmel wrote: > On Sat, Feb 13, 2021 at 11:57:03AM -0700, David Ahern wrote: >> On 2/8/21 1:42 PM, Petr Machata wrote: >>> To illustrate the usage, consider the following commands: >>> >>> # ip nexthop add id 1 via 192.0.2.2 dev dummy1 >>> # ip nexthop add id 2 via 192.

Re: [RFC PATCH 03/13] nexthop: Add netlink defines and enumerators for resilient NH groups

2021-02-13 Thread David Ahern
On 2/8/21 1:42 PM, Petr Machata wrote: > @@ -52,8 +53,50 @@ enum { > NHA_FDB,/* flag; nexthop belongs to a bridge fdb */ > /* if NHA_FDB is added, OIF, BLACKHOLE, ENCAP cannot be set */ > > + /* nested; resilient nexthop group attributes */ > + NHA_RES_GROUP, > + /

Re: [RFC PATCH 00/13] nexthop: Resilient next-hop groups

2021-02-13 Thread Ido Schimmel
On Sat, Feb 13, 2021 at 11:57:03AM -0700, David Ahern wrote: > On 2/8/21 1:42 PM, Petr Machata wrote: > > To illustrate the usage, consider the following commands: > > > > # ip nexthop add id 1 via 192.0.2.2 dev dummy1 > > # ip nexthop add id 2 via 192.0.2.3 dev dummy1 > > # ip nexthop add id 1

Re: [PATCHv2] btf_encoder: Match ftrace addresses within elf functions

2021-02-13 Thread Sedat Dilek
On Sat, Feb 13, 2021 at 5:46 PM Jiri Olsa wrote: > > Currently when processing DWARF function, we check its entrypoint > against ftrace addresses, assuming that the ftrace address matches > with function's entrypoint. > > This is not the case on some architectures as reported by Nathan > when buil

Re: [PATCH net-next v2 1/7] mld: convert from timer to delayed work

2021-02-13 Thread Cong Wang
On Sat, Feb 13, 2021 at 9:51 AM Taehee Yoo wrote: > -static void mld_dad_start_timer(struct inet6_dev *idev, unsigned long delay) > +static void mld_dad_start_work(struct inet6_dev *idev, unsigned long delay) > { > unsigned long tv = prandom_u32() % delay; > > - if (!mod_timer(&idev

Re: [RFC PATCH 00/13] nexthop: Resilient next-hop groups

2021-02-13 Thread David Ahern
On 2/8/21 1:42 PM, Petr Machata wrote: > To illustrate the usage, consider the following commands: > > # ip nexthop add id 1 via 192.0.2.2 dev dummy1 > # ip nexthop add id 2 via 192.0.2.3 dev dummy1 > # ip nexthop add id 10 group 1/2 type resilient \ > buckets 8 idle_timer 60 unbalanced_t

Re: [PATCH net-next 1/2] net: phylink: explicitly configure in-band autoneg for PHYs that support it

2021-02-13 Thread Vladimir Oltean
On Sat, Feb 13, 2021 at 06:09:13PM +0100, Michael Walle wrote: > Am 2021-02-13 17:53, schrieb Michael Walle: > > Am 2021-02-13 01:36, schrieb Vladimir Oltean: > > But the Atheros PHY seems to have a problem with the SGMII link > > if there is no autoneg. > > No matter what I do, I can't get any tra

[PATCH net-next v2 7/7] mld: convert ifmcaddr6 to RCU

2021-02-13 Thread Taehee Yoo
The ifmcaddr6 has been protected by inet6_dev->lock(rwlock) so that the critical section is atomic context. In order to switch this context, changing locking is needed. The ifmcaddr6 actually already protected by RTNL So if it's converted to use RCU, its control path context can be switched to slee

[PATCH net-next v2 5/7] mld: convert ipv6_mc_socklist->sflist to RCU

2021-02-13 Thread Taehee Yoo
The sflist has been protected by rwlock so that the critical section is atomic context. In order to switch this context, changing locking is needed. The sflist actually already protected by RTNL So if it's converted to use RCU, its control path context can be switched to sleepable. Suggested-by: C

[PATCH net-next v2 4/7] mld: get rid of inet6_dev->mc_lock

2021-02-13 Thread Taehee Yoo
The purpose of mc_lock is to protect inet6_dev->mc_tomb. But mc_tomb is already protected by RTNL and all functions, which manipulate mc_tomb are called under RTNL. So, mc_lock is not needed. Furthermore, it is spinlock so the critical section is atomic. In order to reduce atomic context, it should

[PATCH net-next v2 6/7] mld: convert ip6_sf_list to RCU

2021-02-13 Thread Taehee Yoo
The ip6_sf_list has been protected by mca_lock(spin_lock) so that the critical section is atomic context. In order to switch this context, changing locking is needed. The ip6_sf_list actually already protected by RTNL So if it's converted to use RCU, its control path context can be switched to slee

[PATCH net-next v2 2/7] mld: separate two flags from ifmcaddr6->mca_flags

2021-02-13 Thread Taehee Yoo
In the ifmcaddr6->mca_flags, there are follows flags. MAF_TIMER_RUNNING MAF_LAST_REPORTER MAF_LOADED MAF_NOREPORT MAF_GSQUERY The mca_flags value will be protected by a spinlock since the next patches. But MAF_LOADED and MAF_NOREPORT do not need spinlock because they will be protected by RTNL. So,

[PATCH net-next v2 3/7] mld: add a new delayed_work, mc_delrec_work

2021-02-13 Thread Taehee Yoo
The goal of mc_delrec_work delayed work is to call mld_clear_delrec(). The mld_clear_delrec() is called under both data path and control path. So, the context of mld_clear_delrec() can be atomic. But this function accesses struct ifmcaddr6 and struct ip6_sf_list. These structures are going to be pr

[PATCH net-next v2 0/7] mld: change context from atomic to sleepable

2021-02-13 Thread Taehee Yoo
This patchset changes the context of MLD module. Before this patchset, MLD functions are atomic context so it couldn't use sleepable functions and flags. There are several reasons why MLD functions are under atomic context. 1. It uses timer API. Timer expiration functions are executed in the atomi

[PATCH net-next v2 1/7] mld: convert from timer to delayed work

2021-02-13 Thread Taehee Yoo
mcast.c has several timers for delaying works. Timer's expire handler is working under atomic context so it can't use sleepable things such as GFP_KERNEL, mutex, etc. In order to use sleepable APIs, it converts from timers to delayed work. But there are some critical sections, which is used by both

Re: [PATCH net-next 1/2] net: phylink: explicitly configure in-band autoneg for PHYs that support it

2021-02-13 Thread Michael Walle
Am 2021-02-13 17:53, schrieb Michael Walle: Am 2021-02-13 01:36, schrieb Vladimir Oltean: But the Atheros PHY seems to have a problem with the SGMII link if there is no autoneg. No matter what I do, I can't get any traffic though if its not gigabit on the copper side. Unfortunately, I don't have

Re: [PATCH net-next 1/2] net: phylink: explicitly configure in-band autoneg for PHYs that support it

2021-02-13 Thread Russell King - ARM Linux admin
On Sat, Feb 13, 2021 at 05:41:55PM +0100, Michael Walle wrote: > Am 2021-02-13 01:18, schrieb Russell King - ARM Linux admin: > > That is a function of the interface mode and the PHY capabilities. > > > > 1) if the PHY supports rate adaption, and is programmed for that, then > >the PHY link no

[PATCH net-next] net: caif: Use netif_rx_any_context().

2021-02-13 Thread Sebastian Andrzej Siewior
The usage of in_interrupt() in non-core code is phased out. Ideally the information of the calling context should be passed by the callers or the functions be split as appropriate. The attempt to consolidate the code by passing an arguemnt or by distangling it failed due lack of knowledge about th

Re: [PATCH net-next 1/2] net: phylink: explicitly configure in-band autoneg for PHYs that support it

2021-02-13 Thread Andrew Lunn
> Thanks, but I'm not sure I understand the difference between "rate > adaption" and symbol repetition. The SGMII link is always 1.25Gb, > right? If the media side is 100Mbit it will repeat the symbol 10 > times or 100 times in case of 10Mbit. What is "rate adaption" then? Hi Michael Some multiG

Re: [PATCH net-next 1/2] net: phylink: explicitly configure in-band autoneg for PHYs that support it

2021-02-13 Thread Michael Walle
Am 2021-02-13 01:36, schrieb Vladimir Oltean: On Fri, Feb 12, 2021 at 11:40:59PM +0100, Michael Walle wrote: Am 2021-02-12 18:23, schrieb Vladimir Oltean: > From: Vladimir Oltean > > Currently Linux has no control over whether a MAC-to-PHY interface uses > in-band signaling or not, even though

Re: [PATCH net-next v2 2/2] net: phy: broadcom: Do not modify LED configuration for SFP module PHYs

2021-02-13 Thread Andrew Lunn
On Fri, Feb 12, 2021 at 08:18:40PM -0600, Robert Hancock wrote: > bcm54xx_config_init was modifying the PHY LED configuration to enable link > and activity indications. However, some SFP modules (such as Bel-Fuse > SFP-1GBT-06) have no LEDs but use the LED outputs to control the SFP LOS > signal, a

Re: [RFC PATCH v3 00/11] NVMeTCP Offload ULP and QEDN Device Driver

2021-02-13 Thread Shai Malin
On Fri, 12 Feb 2021 at 20:06, Chris Leech wrote: > > On Sun, Feb 07, 2021 at 08:13:13PM +0200, Shai Malin wrote: > > Queue Initialization: > > = > > The nvme-tcp-offload ULP module shall register with the existing > > nvmf_transport_ops (.name = "tcp_offload"), nvme_ctrl_ops and

  1   2   >