答复: [Intel-wired-lan] [bug ?] i40e_rx_buffer_flip should not be called for redirected xsk copy mode

2020-07-05 Thread Li,Rongqing
> -邮件原件- > 发件人: Magnus Karlsson [mailto:magnus.karls...@gmail.com] > 发送时间: 2020年7月6日 14:13 > 收件人: Li,Rongqing > 抄送: intel-wired-lan ; Björn Töpel > ; Karlsson, Magnus ; > Netdev > 主题: Re: [Intel-wired-lan] [bug ?] i40e_rx_buffer_flip should not be called for > redirected xsk copy mode >

Re: [PATCH net-next 5/7] net: phy: dp83640: Fixup cast to restricted __be16 warning

2020-07-05 Thread Richard Cochran
On Sun, Jul 05, 2020 at 01:45:50PM -0700, Florian Fainelli wrote: > > > On 7/5/2020 11:29 AM, Andrew Lunn wrote: > > ntohs() expects to be passed a __be16. Correct the type of the > > variable holding the sequence ID. > > > > Cc: Richard Cochran > > Signed-off-by: Andrew Lunn > > Reviewed-by:

Re: [PATCH v2 iproute2-next] devlink: Add board.serial_number to info subcommand.

2020-07-05 Thread Jiri Pirko
Sun, Jul 05, 2020 at 08:03:01PM CEST, step...@networkplumber.org wrote: >On Mon, 29 Jun 2020 13:13:04 +0530 >Vasundhara Volam wrote: > >> Add support for reading board serial_number to devlink info >> subcommand. Example: >> >> $ devlink dev info pci/:af:00.0 -jp >> { >> "info": { >>

KASAN: use-after-free Read in wg_get_device_start

2020-07-05 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:7cc2a8ea Merge tag 'block-5.8-2020-07-01' of git://git.ker.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=123532a710 kernel config: https://syzkaller.appspot.com/x/.config?x=183dd243398ba7ec das

BUG: unable to handle kernel NULL pointer dereference in bpf_prog_ADDR_L

2020-07-05 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:cb8e59cc Merge git://git.kernel.org/pub/scm/linux/kernel/g.. git tree: bpf-next console output: https://syzkaller.appspot.com/x/log.txt?x=1446cfd310 kernel config: https://syzkaller.appspot.com/x/.config?x=a16ddbc78955e3a9 das

INFO: task hung in gate_exit_net

2020-07-05 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:2b04a661 Merge branch 'cxgb4-add-mirror-action-support-for.. git tree: net-next console output: https://syzkaller.appspot.com/x/log.txt?x=12d9b86b10 kernel config: https://syzkaller.appspot.com/x/.config?x=2172f4d0dbc37e27 das

Re: WARNING in bpf_xdp_adjust_tail

2020-07-05 Thread Jesper Dangaard Brouer
On Sun, 05 Jul 2020 00:20:18 -0700 syzbot wrote: > Hello, > > syzbot found the following crash on: It is WARN that trigger this, due to panic_on_warn set. It's great to see that syzbot report these, as the WARN_ONCE is meant to catch drivers that forget to init xdp->frame_sz. In this case it

Re: [net 05/11] net/mlx5e: Hold reference on mirred devices while accessing them

2020-07-05 Thread Or Gerlitz
On Sun, Jul 5, 2020 at 10:19 AM Eli Cohen wrote: > > On Fri, Jul 03, 2020 at 12:33:58PM +0300, Or Gerlitz wrote: > > On Fri, Jul 3, 2020 at 1:24 AM Saeed Mahameed wrote: > > > From: Eli Cohen > > > > > > Net devices might be removed. For example, a vxlan device could be > > > deleted and its ifn

Re: [Intel-wired-lan] [bug ?] i40e_rx_buffer_flip should not be called for redirected xsk copy mode

2020-07-05 Thread Magnus Karlsson
Thank you RongQing for reporting this. I will take a look at it and produce a patch. /Magnus On Thu, Jul 2, 2020 at 11:33 AM Li,Rongqing wrote: > > Hi: > > > > i40e_rx_buffer_flip to xsk copy mode can lead to data corruption, like the > following flow: > > > > 1. first skb is not for xsk, and f

Re: INFO: rcu detected stall in netlink_sendmsg (4)

2020-07-05 Thread syzbot
syzbot has found a reproducer for the following crash on: HEAD commit:9e50b94b Add linux-next specific files for 20200703 git tree: linux-next console output: https://syzkaller.appspot.com/x/log.txt?x=13e6ec3310 kernel config: https://syzkaller.appspot.com/x/.config?x=f99cc0faa1476e

Re: [PATCH net] net/sched: act_mirred: fix fragment the packet after defrag in act_ct

2020-07-05 Thread Cong Wang
On Sun, Jul 5, 2020 at 7:33 AM wenxu wrote: > Thanks, I also think It is ok do fragment in the mirred output. Please stop doing it. There is no way to make this acceptable. You must be smart enough to find solutions elsewhere, possibly not even in TC at all. It would be best if you can solve thi

Re: [PATCH net] net/sched: act_mirred: fix fragment the packet after defrag in act_ct

2020-07-05 Thread Cong Wang
On Thu, Jul 2, 2020 at 5:47 PM Marcelo Ricardo Leitner wrote: > > in this case a act_output_it_well could do it. ;-) Yeah, still much better than making "mirred" do "mirror, redirect, frag, defrag", can't we all agree it is too late to rename mirred? :) Please do not try to add any arbitrary fun

Re: [PATCH net-next 1/3] netfilter: nf_defrag_ipv4: Add nf_ct_frag_gather support

2020-07-05 Thread Cong Wang
On Sun, Jul 5, 2020 at 7:34 AM wrote: > +static int nf_ct_frag_reinit(struct ipq *qp) > +{ > + unsigned int sum_truesize = 0; > + > + if (!mod_timer(&qp->q.timer, jiffies + qp->q.fqdir->timeout)) { > + refcount_inc(&qp->q.refcnt); > + return -ETIMEDOUT; > +

Re: [PATCH iproute2-next v1 1/4] rdma: update uapi headers

2020-07-05 Thread Leon Romanovsky
On Sun, Jul 05, 2020 at 12:07:31PM -0600, David Ahern wrote: > On 7/5/20 12:04 PM, Leon Romanovsky wrote: > > RDMA_NLDEV_NUM_OPS is not a command, but enum item to help calculate array > > size, exactly like devlink_command in include/uapi/linux/devlink.h. > > ok. usually the last field is __FOO_MA

Re: [PATCH iproute2-next v1 0/4] RAW format dumps through RDMAtool

2020-07-05 Thread Leon Romanovsky
On Sun, Jul 05, 2020 at 12:14:38PM -0600, David Ahern wrote: > On 6/24/20 4:40 AM, Leon Romanovsky wrote: > > From: Leon Romanovsky > > > > Changelog: > > v1: > > * Kernel part was accepted, so this series has correct SHA for the > >kernel header update patch. > > * Aligned implementation to

RE: [EXT] Re: [PATCH v5 3/3] ARM: imx6plus: optionally enable internal routing of clk_enet_ref

2020-07-05 Thread Andy Duan
From: Sven Van Asbroeck Sent: Sunday, July 5, 2020 11:34 PM > > ext phy-| \ > | | > enet_ref-o--|M |pad--| \ >| |_/ | | >| |M |mac_gtx >| | | >

Darlehensangebot

2020-07-05 Thread Banca IMI S.P.A
-- Grüße Herr / Frau, Benötigen Sie finanzielle Unterstützung (Darlehen)? Sprechen Sie mit uns bei Banca IMI S.P.A, wir lösen Ihre finanziellen Probleme. Unser Zinssatz beträgt 1,3% Jahreszinssatz. Bitte bewerben Sie sich jetzt und geben Sie folgende Bewerbungsdetails ein: Vollständiger

[PATCH net-next v2 0/3] net: ethtool: Untangle PHYLIB dependency

2020-07-05 Thread Florian Fainelli
Hi all, This patch series untangles the ethtool netlink dependency with PHYLIB which exists because the cable test feature calls directly into PHY library functions. The approach taken here is to introduce ethtool_phy_ops function pointers which can be dynamically registered when PHYLIB loads. Fl

[PATCH net-next v2 3/3] net: ethtool: Remove PHYLIB direct dependency

2020-07-05 Thread Florian Fainelli
Now that we have introduced ethtool_phy_ops and the PHY library dynamically registers its operations with that function pointer, we can remove the direct PHYLIB dependency in favor of using dynamic operations. Signed-off-by: Florian Fainelli --- net/Kconfig | 1 - net/ethtool/cablet

[PATCH net-next v2 2/3] net: phy: Register ethtool PHY operations

2020-07-05 Thread Florian Fainelli
Utilize ethtool_set_ethtool_phy_ops to register a suitable set of PHY ethtool operations in a dynamic fashion such that ethtool will no longer directy reference PHY library symbols. Signed-off-by: Florian Fainelli --- drivers/net/phy/phy_device.c | 7 +++ 1 file changed, 7 insertions(+) dif

[PATCH net-next v2 1/3] net: ethtool: Introduce ethtool_phy_ops

2020-07-05 Thread Florian Fainelli
In order to decouple ethtool from its PHY library dependency, define an ethtool_phy_ops singleton which can be overriden by the PHY library when it loads with an appropriate set of function pointers. Signed-off-by: Florian Fainelli --- include/linux/ethtool.h | 25 + net/

Re: [PATCH net v3] sched: consistently handle layer3 header accesses in the presence of VLANs

2020-07-05 Thread Toshiaki Makita
On 2020/07/04 20:33, Toke Høiland-Jørgensen wrote: Toshiaki Makita writes: On 2020/07/04 5:26, Toke Høiland-Jørgensen wrote: ... +/* A getter for the SKB protocol field which will handle VLAN tags consistently + * whether VLAN acceleration is enabled or not. + */ +static inline __be16 skb_prot

Re: use-after-free in Bluetooth: 6lowpan (was Re: KASAN: use-after-free Write in refcount_warn_saturate)

2020-07-05 Thread Kees Cook
On Thu, Feb 27, 2020 at 11:50:11PM -0800, syzbot wrote: > Hello, > > syzbot found the following crash on: > > HEAD commit:f8788d86 Linux 5.6-rc3 > git tree: upstream > console output: https://syzkaller.appspot.com/x/log.txt?x=13005fd9e0 > kernel config: https://syzkaller.appspot.co

[PATCH -next] Documentation: networking: fix ethtool-netlink table formats

2020-07-05 Thread Randy Dunlap
From: Randy Dunlap Fix table formatting to eliminate warnings. Documentation/networking/ethtool-netlink.rst:509: WARNING: Malformed table. Documentation/networking/ethtool-netlink.rst:522: WARNING: Malformed table. Documentation/networking/ethtool-netlink.rst:543: WARNING: Malformed table. Docum

Re: linux-next: manual merge of the bpf-next tree with the bpf tree

2020-07-05 Thread Stephen Rothwell
Hi all, On Fri, 26 Jun 2020 10:05:27 +1000 Stephen Rothwell wrote: > > Today's linux-next merge of the bpf-next tree got a conflict in: > > tools/testing/selftests/bpf/progs/bpf_iter_netlink.c > > between commits: > > 9c82a63cf370 ("libbpf: Fix CO-RE relocs against .text section") > 647

[PATCH v2] drivers/net/wan/lapbether: Fixed the value of hard_header_len

2020-07-05 Thread Xie He
When this driver transmits data, first this driver will remove a pseudo header of 1 byte, then the lapb module will prepend the LAPB header of 2 or 3 bytes, then this driver will prepend a length field of 2 bytes, then the underlying Ethernet device will prepend its own header. So, the hea

Re: [PATCH net-next v2 0/3] ] TC datapath hash api

2020-07-05 Thread Cong Wang
On Sun, Jul 5, 2020 at 2:50 PM Jamal Hadi Salim wrote: > BTW, nothing in skbedit is against computing what the new metadata > should be. Yup. > > IMO: A good arguement to not make it part of skbedit is if it adds > unnecessary complexity to skbedit or policy definitions. > TCA_HASH_ALG_L4 liter

Re: [PATCH net-next v2 0/3] ] TC datapath hash api

2020-07-05 Thread Cong Wang
On Sun, Jul 5, 2020 at 10:26 AM Ariel Levkovich wrote: > However I believe that from a concept point of view, using it is wrong. > > In my honest opinion, the concept here is to perform some calculation on > the packet itself and its headers while the skb->hash field > > is the storage location of

Re: [PATCH ethtool v2 0/3] Add extended link state

2020-07-05 Thread Michal Kubecek
On Thu, Jul 02, 2020 at 04:11:08PM +0300, Amit Cohen wrote: > Currently, device drivers can only indicate to user space if the network > link is up or down, without additional information. > > This patch set expand link-state to allow these drivers to expose more > information to user space about

Re: [PATCH ethtool v4 0/6] ethtool(1) cable test support

2020-07-05 Thread Michal Kubecek
On Sun, Jul 05, 2020 at 08:25:33PM +0200, Andrew Lunn wrote: > > Hello Andrew, > > > > could you please test this update of netlink/desc-ethtool.c on top of > > your series? The userspace messages look as expected but I'm not sure if > > I have a device with cable test support available to test pr

Re: [PATCH ethtool v4 0/6] ethtool(1) cable test support

2020-07-05 Thread Michal Kubecek
On Sun, Jul 05, 2020 at 06:24:21PM +0200, Andrew Lunn wrote: > On Sun, Jul 05, 2020 at 02:44:47AM +0200, Michal Kubecek wrote: > > On Wed, Jul 01, 2020 at 03:07:37AM +0200, Andrew Lunn wrote: > > > Add the user space side of the ethtool cable test. > > > > > > The TDR output is most useful when fe

Re: [PATCH] dsa: rtl8366: Pass GENMASK() signed bits

2020-07-05 Thread Linus Walleij
On Sun, Jul 5, 2020 at 10:42 PM Andrew Lunn wrote: > Oddly, GENMASK() requires signed bit numbers, so that it can compare > them for < 0. If passed an unsigned type, we get warnings about the > test never being true. > > Signed-off-by: Andrew Lunn I just resent my RTL8366RB series and I picked

[net-next PATCH 4/5 v3] net: dsa: rtl8366: VLAN 0 as disable tagging

2020-07-05 Thread Linus Walleij
The code in net/8021q/vlan.c, vlan_device_event() sets VLAN 0 for a VLAN-capable ethernet device when it comes up. Since the RTL8366 DSA switches must have a VLAN and PVID set up for any packets to come through we have already set up default VLAN for each port as part of bringing the switch online

[net-next PATCH 5/5 v3] net: dsa: rtl8366: Use top VLANs for default

2020-07-05 Thread Linus Walleij
The RTL8366 DSA switches will not work unless we set up a default VLAN for each port. We are currently using e.g. VLAN 1..6 for a 5-port switch as default VLANs. This is not very helpful for users, move it to allocate the top VLANs for default instead, for example on RTL8366RB there are 16 VLANs s

[net-next PATCH 3/5 v3] net: dsa: rtl8366: Split out default VLAN config

2020-07-05 Thread Linus Walleij
We loop over the ports to initialize the default VLAN and PVID for each port. As we need to reuse the code to reinitialize a single port, break out the function rtl8366_set_default_vlan_and_pvid(). Cc: DENG Qingfang Cc: Mauri Sandberg Reviewed-by: Andrew Lunn Signed-off-by: Linus Walleij --- C

[net-next PATCH 1/5 v3] net: dsa: tag_rtl4_a: Implement Realtek 4 byte A tag

2020-07-05 Thread Linus Walleij
This implements the known parts of the Realtek 4 byte tag protocol version 0xA, as found in the RTL8366RB DSA switch. It is designated as protocol version 0xA as a different Realtek 4 byte tag format with protocol version 0x9 is known to exist in the Realtek RTL8306 chips. The tag and switch chip

[net-next PATCH 2/5 v3] net: dsa: rtl8366rb: Support the CPU DSA tag

2020-07-05 Thread Linus Walleij
This activates the support to use the CPU tag to properly direct ingress traffic to the right port. Bit 15 in register RTL8368RB_CPU_CTRL_REG can be set to 1 to disable the insertion of the CPU tag which is what the code currently does. The bit 15 define calls this setting RTL8368RB_CPU_INSTAG whi

[net-next PATCH 0/5 v3] RTL8366RB DSA tagging and fixes

2020-07-05 Thread Linus Walleij
This adds rudimentary DSA tagging and fixes up some VLAN issues in the RTL8366RB driver and in the RTL8366 core in general. Linus Walleij (5): net: dsa: tag_rtl4_a: Implement Realtek 4 byte A tag net: dsa: rtl8366rb: Support the CPU DSA tag net: dsa: rtl8366: Split out default VLAN config

Re: Crash/hang in 5.4.47 with nexthop objects

2020-07-05 Thread David Ahern
[ sorry for the delay; was on PTO for a couple weeks ] On 6/24/20 10:32 AM, Brian Rak wrote: > Hi, > > We're hitting an issue where the kernel with either hang indefinitely or > immediately crash when IPv6 nexthops are used along with the `rpfilter` > ip6tables module.  The following commands tri

Re: [net-next PATCH 4/5 v2] net: dsa: rtl8366: VLAN 0 as disable tagging

2020-07-05 Thread Linus Walleij
On Thu, Jun 18, 2020 at 5:24 AM Florian Fainelli wrote: > On 6/17/2020 1:31 AM, Linus Walleij wrote: > > Make sure that setting VLAN 0 has the same effect > > and does not try to actually tell the hardware to use > > VLAN 0 on the port because that will not work. > > Why, you are not really descr

Re: [PATCH ethtool v5 0/6] ethtool(1) cable test support

2020-07-05 Thread Michal Kubecek
On Sun, Jul 05, 2020 at 07:54:46PM +0200, Andrew Lunn wrote: > Add the user space side of the ethtool cable test. > > The TDR output is most useful when fed to some other tool which can > visualize the data. So add JSON support, by borrowing code from > iproute2. > > v2: > man page fixes. > > v3

Re: [PATCH] net: dsa: lan9303: fix variable 'res' set but not used

2020-07-05 Thread David Miller
From: Andrew Lunn Date: Sun, 5 Jul 2020 22:55:55 +0200 > Since lan9303_adjust_link() is a void function, there is no option to > return an error. So just remove the variable and lets any errors be > discarded. > > Cc: Egil Hjelmeland > Signed-off-by: Andrew Lunn Applied to net-next.

Re: [PATCH] net: dsa: vitesse-vsc73xx: Convert to plain comments to avoid kerneldoc warnings

2020-07-05 Thread David Miller
From: Andrew Lunn Date: Sun, 5 Jul 2020 23:05:08 +0200 > The comments before struct vsc73xx_platform and struct vsc73xx_spi use > kerneldoc format, but then fail to document the members of these > structures. All the structure members are self evident, and the driver > has not other kerneldoc co

Re: [PATCH] net: dsa: lan9303: fix variable 'res' set but not used

2020-07-05 Thread David Miller
From: Andrew Lunn Date: Sun, 5 Jul 2020 22:55:55 +0200 > Since lan9303_adjust_link() is a void function, there is no option to > return an error. So just remove the variable and lets any errors be > discarded. > > Cc: Egil Hjelmeland > Signed-off-by: Andrew Lunn Applied to net-next.

Re: [PATCH] dsa: rtl8366: Pass GENMASK() signed bits

2020-07-05 Thread David Miller
From: Florian Fainelli Date: Sun, 5 Jul 2020 13:49:10 -0700 > > > On 7/5/2020 1:42 PM, Andrew Lunn wrote: >> Oddly, GENMASK() requires signed bit numbers, so that it can compare >> them for < 0. If passed an unsigned type, we get warnings about the >> test never being true. >> >> Signed-off-by

Re: [PATCH net-next 0/3] dsa: b53/sf2

2020-07-05 Thread David Miller
From: Andrew Lunn Date: Sun, 5 Jul 2020 22:36:22 +0200 > Fixup most of the C=1 W=1 warnings in these drivers. Series applied with patch #1 and #2's subjects fixed.

Re: [PATCH net-next 0/4] net: dsa: mv88e6xxx: Fixup C=1 W=1 warnings

2020-07-05 Thread David Miller
From: Andrew Lunn Date: Sun, 5 Jul 2020 21:38:06 +0200 > Make the mv88e6xxx driver build cleanly with C=1 W=1. Series applied, thanks.

Re: [PATCH net-next 0/5] net: dsa: Fix C=1 W=1 warnings

2020-07-05 Thread David Miller
From: Andrew Lunn Date: Sun, 5 Jul 2020 21:30:03 +0200 > Mostly not using __be16 when decoding packet contents. Series applied with patch #1's subject fixed.

Re: [PATCH 0/5] RFC: connector: Add network namespace awareness

2020-07-05 Thread Matt Bennett
On Thu, 2020-07-02 at 21:10 +0200, Christian Brauner wrote: > On Thu, Jul 02, 2020 at 08:17:38AM -0500, Eric W. Biederman wrote: > > Matt Bennett writes: > > > > > Previously the connector functionality could only be used by processes > > > running in the > > > default network namespace. This me

Re: [PATCH 0/5] RFC: connector: Add network namespace awareness

2020-07-05 Thread Matt Bennett
On Thu, 2020-07-02 at 13:59 -0500, Eric W. Biederman wrote: > Matt Bennett writes: > > > Previously the connector functionality could only be used by processes > > running in the > > default network namespace. This meant that any process that uses the > > connector functionality > > could not o

Re: [PATCH v2 net-next 0/6] PHYLINK integration improvements for Felix DSA driver

2020-07-05 Thread David Miller
From: Vladimir Oltean Date: Sat, 4 Jul 2020 15:45:01 +0300 > From: Vladimir Oltean > > This is an overhaul of the Felix switch driver's PHYLINK operations. > > Patches 1, 3, 4 and 5 are cleanup, patch 2 is adding a new feature and > and patch 6 is adaptation to the new format of an existing p

[PATCH net-next v3 5/8] bnxt_en: Return correct RSS indirection table entries to ethtool -x.

2020-07-05 Thread Michael Chan
Now that we have the logical indirection table, we can return these proper logical indices directly to ethtool -x instead of the physical IDs. v3: Use ALIGN() to round up the RSS table size. Reported-by: Jakub Kicinski Signed-off-by: Michael Chan --- drivers/net/ethernet/broadcom/bnxt/bnxt_eth

[PATCH net-next v3 2/8] bnxt_en: Add logical RSS indirection table structure.

2020-07-05 Thread Michael Chan
The driver currently does not keep track of the logical RSS indirection table. The hardware RSS table is set up with standard default ring distribution when initializing the chip. This makes it difficult to support user sepcified indirection table entries. As a first step, add the logical table

[PATCH net-next v3 4/8] bnxt_en: Fill HW RSS table from the RSS logical indirection table.

2020-07-05 Thread Michael Chan
Now that we have the logical table, we can fill the HW RSS table using the logical table's entries and converting them to the HW specific format. Re-initialize the logical table to standard distribution if the number of RX rings changes during ring reservation. v2: Use ALIGN() to roundup the RSS

[PATCH net-next v3 7/8] bnxt_en: clean up VLAN feature bit handling

2020-07-05 Thread Michael Chan
From: Edwin Peer The hardware VLAN offload feature on our NIC does not have separate knobs for handling customer and service tags on RX. Either offloading of both must be enabled or both must be disabled. Introduce definitions for the combined feature set in order to clean up the code and make th

[PATCH net-next v3 6/8] bnxt_en: Implement ethtool -X to set indirection table.

2020-07-05 Thread Michael Chan
With the new infrastructure in place, we can now support the setting of the indirection table from ethtool. When changing channels, in a rare case that firmware cannot reserve the rings that were promised, the RSS map will revert to default. v3: Add warning messages when firmware cannot reserve t

[PATCH net-next v3 8/8] bnxt_en: allow firmware to disable VLAN offloads

2020-07-05 Thread Michael Chan
From: Edwin Peer Bare-metal use cases require giving firmware and the embedded application processor control over VLAN offloads. The driver should not attempt to override or utilize this feature in such scenarios since it will not work as expected. Signed-off-by: Edwin Peer Signed-off-by: Micha

[PATCH net-next v3 3/8] bnxt_en: Add helper function to return the number of RSS contexts.

2020-07-05 Thread Michael Chan
On some chips, this varies based on the number of RX rings. Add this helper function and refactor the existing code to use it. Signed-off-by: Michael Chan --- drivers/net/ethernet/broadcom/bnxt/bnxt.c | 13 +++-- drivers/net/ethernet/broadcom/bnxt/bnxt.h | 1 + 2 files changed, 12 inse

[PATCH net-next v3 1/8] bnxt_en: Set up the chip specific RSS table size.

2020-07-05 Thread Michael Chan
Currently, we allocate one page for the hardware DMA RSS indirection table. While the size is currently big enough for all chips, future chip variations may support bigger sizes, so it is better to calculate and store the chip specific size and allocate accordingly. Signed-off-by: Michael Chan -

[PATCH net-next v3 0/8] bnxt_en: Driver update for net-next.

2020-07-05 Thread Michael Chan
This patchset implements ethtool -X to setup user-defined RSS indirection table. The new infrastructure also allows the proper logical ring index to be used to populate the RSS indirection when queried by ethtool -x. Prior to these patches, we were incorrectly populating the output of ethtool -x w

Re: [PATCH net-next v2 0/3] ] TC datapath hash api

2020-07-05 Thread Jamal Hadi Salim
Hi Ariel, On 2020-07-05 1:26 p.m., Ariel Levkovich wrote: On 7/3/20 7:22 AM, Jamal Hadi Salim wrote: [..] Hi Jamal, I agree that using skbedit makes some sense and can provide the same functionality. However I believe that from a concept point of view, using it is wrong. In my honest opi

Re: [PATCH v3 net-next 4/6] net: dsa: felix: set proper pause frame timers based on link speed

2020-07-05 Thread Vladimir Oltean
Hi Florian, On Sun, Jul 05, 2020 at 02:09:30PM -0700, Florian Fainelli wrote: > > > On 7/5/2020 9:16 AM, Vladimir Oltean wrote: > > From: Vladimir Oltean > > > > state->speed holds a value of 10, 100, 1000 or 2500, but > > SYS_MAC_FC_CFG_FC_LINK_SPEED expects a value in the range 0, 1, 2 or 3.

Re: [PATCH v3 net-next 6/6] net: dsa: felix: use resolved link config in mac_link_up()

2020-07-05 Thread Florian Fainelli
On 7/5/2020 9:16 AM, Vladimir Oltean wrote: > From: Vladimir Oltean > > Phylink now requires that parameters established through > auto-negotiation be written into the MAC at the time of the > mac_link_up() callback. In the case of felix, that means taking the port > out of reset, setting the

Re: [PATCH v3 net-next 5/6] net: dsa: felix: delete .phylink_mac_an_restart code

2020-07-05 Thread Florian Fainelli
On 7/5/2020 9:16 AM, Vladimir Oltean wrote: > From: Vladimir Oltean > > Phylink uses the .mac_an_restart method to offer the user an > implementation of the "ethtool -r" behavior, when the media-side auto > negotiation can be restarted by the local MAC PCS. This is the case for > fiber modes 1

Re: [PATCH v3 net-next 1/6] net: dsa: felix: clarify the intention of writes to MII_BMCR

2020-07-05 Thread Florian Fainelli
On 7/5/2020 9:16 AM, Vladimir Oltean wrote: > From: Vladimir Oltean > > The driver appears to write to BMCR_SPEED and BMCR_DUPLEX, fields which > are read-only, since they are actually configured through the > vendor-specific IF_MODE (0x14) register. > > But the reason we're writing back the

Re: [PATCH v3 net-next 4/6] net: dsa: felix: set proper pause frame timers based on link speed

2020-07-05 Thread Florian Fainelli
On 7/5/2020 9:16 AM, Vladimir Oltean wrote: > From: Vladimir Oltean > > state->speed holds a value of 10, 100, 1000 or 2500, but > SYS_MAC_FC_CFG_FC_LINK_SPEED expects a value in the range 0, 1, 2 or 3. > > So set the correct speed encoding into this register. > > Signed-off-by: Vladimir Olt

Re: [PATCH v3 net-next 3/6] net: dsa: felix: unconditionally configure MAC speed to 1000Mbps

2020-07-05 Thread Florian Fainelli
On 7/5/2020 9:16 AM, Vladimir Oltean wrote: > From: Vladimir Oltean > > In VSC9959, the PCS is the one who performs rate adaptation (symbol > duplication) to the speed negotiated by the PHY. The MAC is unaware of > that and must remain configured for gigabit. If it is configured at > OCELOT_SP

Re: [PATCH] net: dsa: vitesse-vsc73xx: Convert to plain comments to avoid kerneldoc warnings

2020-07-05 Thread Florian Fainelli
On 7/5/2020 2:05 PM, Andrew Lunn wrote: > The comments before struct vsc73xx_platform and struct vsc73xx_spi use > kerneldoc format, but then fail to document the members of these > structures. All the structure members are self evident, and the driver > has not other kerneldoc comments, so chan

[PATCH] net: dsa: vitesse-vsc73xx: Convert to plain comments to avoid kerneldoc warnings

2020-07-05 Thread Andrew Lunn
The comments before struct vsc73xx_platform and struct vsc73xx_spi use kerneldoc format, but then fail to document the members of these structures. All the structure members are self evident, and the driver has not other kerneldoc comments, so change these to plain comments to avoid warnings. Sign

Re: [PATCH] net: dsa: lan9303: fix variable 'res' set but not used

2020-07-05 Thread Florian Fainelli
On 7/5/2020 1:55 PM, Andrew Lunn wrote: > Since lan9303_adjust_link() is a void function, there is no option to > return an error. So just remove the variable and lets any errors be > discarded. > > Cc: Egil Hjelmeland > Signed-off-by: Andrew Lunn Reviewed-by: Florian Fainelli -- Florian

[PATCH] net: dsa: lan9303: fix variable 'res' set but not used

2020-07-05 Thread Andrew Lunn
Since lan9303_adjust_link() is a void function, there is no option to return an error. So just remove the variable and lets any errors be discarded. Cc: Egil Hjelmeland Signed-off-by: Andrew Lunn --- drivers/net/dsa/lan9303-core.c | 7 +++ 1 file changed, 3 insertions(+), 4 deletions(-) di

Re: [PATCH net-next 7/7] net: phy: mdio-octeon: Cleanup module loading dependencies

2020-07-05 Thread Florian Fainelli
On 7/5/2020 11:29 AM, Andrew Lunn wrote: > To ensure that the octoen MDIO driver has been loaded, the Cavium s/octoen/octeon/ > ethernet drivers reference a dummy symbol in the MDIO driver. This > forces it to be loaded first. And this symbol has not been cleanly > implemented, resulting in wa

Re: [PATCH] dsa: rtl8366: Pass GENMASK() signed bits

2020-07-05 Thread Florian Fainelli
On 7/5/2020 1:42 PM, Andrew Lunn wrote: > Oddly, GENMASK() requires signed bit numbers, so that it can compare > them for < 0. If passed an unsigned type, we get warnings about the > test never being true. > > Signed-off-by: Andrew Lunn The subject should also be prefixed with "net: " similar

Re: [PATCH net-next 6/7] net: phy: cavium: Improve __iomem mess

2020-07-05 Thread Florian Fainelli
On 7/5/2020 11:29 AM, Andrew Lunn wrote: > The MIPS low level register access functions seem to be missing > __iomem annotation. This cases lots of sparse warnings, when code s/cases/causes/g > casts off the __iomem. Make the Cavium MDIO drivers cleaner by pushing > the casts lower down into t

Re: [PATCH net-next 5/7] net: phy: dp83640: Fixup cast to restricted __be16 warning

2020-07-05 Thread Florian Fainelli
On 7/5/2020 11:29 AM, Andrew Lunn wrote: > ntohs() expects to be passed a __be16. Correct the type of the > variable holding the sequence ID. > > Cc: Richard Cochran > Signed-off-by: Andrew Lunn Reviewed-by: Florian Fainelli -- Florian

Re: [PATCH net-next 4/7] net: phy: Make phy_10gbit_fec_features_array static

2020-07-05 Thread Florian Fainelli
On 7/5/2020 11:29 AM, Andrew Lunn wrote: > This array is not used outside of phy_device.c, so make it static. > > Signed-off-by: Andrew Lunn Reviewed-by: Florian Fainelli -- Florian

Re: [PATCH net-next 3/7] net: phy: Properly define genphy_c45_driver

2020-07-05 Thread Florian Fainelli
On 7/5/2020 11:29 AM, Andrew Lunn wrote: > Avoid the W=1 warning that symbol 'genphy_c45_driver' was not > declared. Should it be static? > > Declare it on the phy header file. > > Signed-off-by: Andrew Lunn Reviewed-by: Florian Fainelli -- Florian

Re: [PATCH net-next 3/5] net: dsa: tag_lan9303: Fix __be16 warnings

2020-07-05 Thread Florian Fainelli
On 7/5/2020 12:30 PM, Andrew Lunn wrote: > net/dsa/tag_lan9303.c:76:24: warning: incorrect type in assignment (different > base types) > net/dsa/tag_lan9303.c:76:24:expected unsigned short [usertype] > net/dsa/tag_lan9303.c:76:24:got restricted __be16 [usertype] > net/dsa/tag_lan9303.c:

Re: [PATCH net-next 2/7] net: phy: Fixup parameters in kerneldoc

2020-07-05 Thread Florian Fainelli
On 7/5/2020 11:29 AM, Andrew Lunn wrote: > Correct the kerneldoc for a few structure and function calls, > as reported by C=1 W=1. > > Cc: Alexandru Ardelean > Signed-off-by: Andrew Lunn Reviewed-by: Florian Fainelli -- Florian

Re: [PATCH net-next 5/5] net: dsa: tag_qca.c: Fix warning for __be16 vs u16

2020-07-05 Thread Florian Fainelli
On 7/5/2020 12:30 PM, Andrew Lunn wrote: > net/dsa/tag_qca.c:48:15: warning: incorrect type in assignment (different > base types) > net/dsa/tag_qca.c:48:15:expected unsigned short [usertype] > net/dsa/tag_qca.c:48:15:got restricted __be16 [usertype] > net/dsa/tag_qca.c:68:13: warning:

[PATCH] dsa: rtl8366: Pass GENMASK() signed bits

2020-07-05 Thread Andrew Lunn
Oddly, GENMASK() requires signed bit numbers, so that it can compare them for < 0. If passed an unsigned type, we get warnings about the test never being true. Signed-off-by: Andrew Lunn --- drivers/net/dsa/rtl8366.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net

Re: [PATCH net-next 4/5] net: dsa: tag_mtk: Fix warnings for __be16

2020-07-05 Thread Florian Fainelli
On 7/5/2020 12:30 PM, Andrew Lunn wrote: > net/dsa/tag_mtk.c:84:13: warning: incorrect type in assignment (different > base types) > net/dsa/tag_mtk.c:84:13:expected restricted __be16 [usertype] hdr > net/dsa/tag_mtk.c:84:13:got int > net/dsa/tag_mtk.c:94:17: warning: restricted __be16

Re: [PATCH net-next 2/5] net: dsa: tag_ksz: Fix __be16 warnings

2020-07-05 Thread Florian Fainelli
On 7/5/2020 12:30 PM, Andrew Lunn wrote: > cpu_to_be16 returns a __be16 value. So what it is assigned to needs to > have the same type to avoid warnings. > > Signed-off-by: Andrew Lunn Reviewed-by: Florian Fainelli -- Florian

Re: [PATCH net-next 1/5] net: dsa: Add __precpu property to prevent warnings

2020-07-05 Thread Florian Fainelli
On 7/5/2020 12:30 PM, Andrew Lunn wrote: > net/dsa/slave.c:505:13: warning: incorrect type in initializer (different > address spaces) > net/dsa/slave.c:505:13:expected void const [noderef] *__vpp_verify > net/dsa/slave.c:505:13:got struct pcpu_sw_netstats * > > Add the needed _percpu

Re: [PATCH net-next 3/3] dsa: bmc_sf2: Pass GENMASK() signed bits

2020-07-05 Thread Florian Fainelli
On 7/5/2020 1:36 PM, Andrew Lunn wrote: > Oddly, GENMASK() requires signed bit numbers, so that it can compare > them for < 0. If passed an unsigned type, we get warnings about the > test never being true. There is no danger of overflow here, udf is > always a u8, so there is plenty of space whe

Re: [PATCH net-next 1/3] net: dsa: b53: Fixup endianness warnings

2020-07-05 Thread Florian Fainelli
On 7/5/2020 1:36 PM, Andrew Lunn wrote: > leX_to_cpu() expects to be passed an __leX type. > > Signed-off-by: Andrew Lunn Reviewed-by: Florian Fainelli -- Florian

Re: [PATCH net-next 2/3] dsa: bcm_sf2: Initialize __be16 with a __be16 value

2020-07-05 Thread Florian Fainelli
On 7/5/2020 1:36 PM, Andrew Lunn wrote: > A __be16 variable should be initialised with a __be16 value. So add a > htons(). In this case it is pointless, given the value being assigned > is 0x, but it stops sparse from warnings. > > Signed-off-by: Andrew Lunn The subject should be: net:

[PATCH net-next 1/3] net: dsa: b53: Fixup endianness warnings

2020-07-05 Thread Andrew Lunn
leX_to_cpu() expects to be passed an __leX type. Signed-off-by: Andrew Lunn --- drivers/net/dsa/b53/b53_spi.c | 26 ++ 1 file changed, 18 insertions(+), 8 deletions(-) diff --git a/drivers/net/dsa/b53/b53_spi.c b/drivers/net/dsa/b53/b53_spi.c index f89f5308a99b..7abec8da

[PATCH net-next 0/3] dsa: b53/sf2

2020-07-05 Thread Andrew Lunn
Fixup most of the C=1 W=1 warnings in these drivers. Andrew Lunn (3): net: dsa: b53: Fixup endianness warnings dsa: bcm_sf2: Initialize __be16 with a __be16 value dsa: bmc_sf2: Pass GENMASK() signed bits drivers/net/dsa/b53/b53_spi.c | 26 ++ drivers/net/dsa/bcm_sf2

[PATCH net-next 3/3] dsa: bmc_sf2: Pass GENMASK() signed bits

2020-07-05 Thread Andrew Lunn
Oddly, GENMASK() requires signed bit numbers, so that it can compare them for < 0. If passed an unsigned type, we get warnings about the test never being true. There is no danger of overflow here, udf is always a u8, so there is plenty of space when expanding to an int. Signed-off-by: Andrew Lunn

[PATCH net-next 2/3] dsa: bcm_sf2: Initialize __be16 with a __be16 value

2020-07-05 Thread Andrew Lunn
A __be16 variable should be initialised with a __be16 value. So add a htons(). In this case it is pointless, given the value being assigned is 0x, but it stops sparse from warnings. Signed-off-by: Andrew Lunn --- drivers/net/dsa/bcm_sf2_cfp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 del

Re: [PATCH/RFC] net: ethernet: ravb: Try to wake subqueue instead of stop on timeout

2020-07-05 Thread Sergei Shtylyov
Hello! On 30.06.2020 8:22, Yoshihiro Shimoda wrote: From: Yoshihiro Shimoda, Sent: Tuesday, May 26, 2020 6:47 PM According to the report of [1], this driver is possible to cause the following error in ravb_tx_timeout_work(). ravb e680.ethernet ethernet: failed to switch device to config m

Re: [PATCH 4/5] kprobes: Do not expose probe addresses to non-CAP_SYSLOG

2020-07-05 Thread Kees Cook
On Sun, Jul 05, 2020 at 01:10:54PM -0700, Linus Torvalds wrote: > On Fri, Jul 3, 2020 at 8:50 AM Kees Cook wrote: > > > > With 67 kthreads on a booted system, this patch does not immediately > > blow up... > > Did you try making read/write inc/dec that thing too? Or does that > just blow up with

Re: [PATCH net] bridge: mcast: Fix MLD2 Report IPv6 payload length check

2020-07-05 Thread Nikolay Aleksandrov
On 7/5/20 10:49 PM, Linus Lüssing wrote: On Sun, Jul 05, 2020 at 10:11:39PM +0300, Nikolay Aleksandrov wrote: On 7/5/20 10:08 PM, Linus Lüssing wrote: On Sun, Jul 05, 2020 at 09:33:13PM +0300, Nikolay Aleksandrov wrote: On 05/07/2020 21:22, Linus Lüssing wrote: Commit e57f61858b7c ("net: brid

Re: [PATCH 4/5] kprobes: Do not expose probe addresses to non-CAP_SYSLOG

2020-07-05 Thread Linus Torvalds
On Fri, Jul 3, 2020 at 8:50 AM Kees Cook wrote: > > With 67 kthreads on a booted system, this patch does not immediately > blow up... Did you try making read/write inc/dec that thing too? Or does that just blow up with tons of warnings? Linus

[PATCH 1/3] Bluetooth: Add new quirk for broken local ext features max_page

2020-07-05 Thread Vasily Khoruzhick
Some adapters (e.g. RTL8723CS) advertise that they have more than 2 pages for local ext features, but they don't support any features declared in these pages. RTL8723CS reports max_page = 2 and declares support for sync train and secure connection, but it responds with either garbage or with error

[PATCH 3/3] arm64: allwinner: a64: enable Bluetooth On Pinebook

2020-07-05 Thread Vasily Khoruzhick
Pinebook has an RTL8723CS WiFi + BT chip, BT is connected to UART1 and uses PL5 as device wake GPIO, PL6 as host wake GPIO the I2C controlling signals are connected to R_I2C bus. Enable it in the device tree. Signed-off-by: Vasily Khoruzhick --- .../arm64/boot/dts/allwinner/sun50i-a64-pinebook.

[PATCH 0/3] arm64: allwinner: a64: add bluetooth support for Pinebook

2020-07-05 Thread Vasily Khoruzhick
Pinebook uses RTL8723CS for WiFi and bluetooth. Unfortunately RTL8723CS has broken BT-4.1 support, so it requires a quirk. Add a quirk, wire up 8723CS support in btrtl and enable bluetooth in Pinebook dts. Vasily Khoruzhick (3): Bluetooth: Add new quirk for broken local ext features max_page

[PATCH 2/3] Bluetooth: btrtl: add support for the RTL8723CS

2020-07-05 Thread Vasily Khoruzhick
The Realtek RTL8723CS is SDIO WiFi chip. It also contains a Bluetooth module which is connected via UART to the host. It shares lmp subversion with 8703B, so Realtek's userspace initialization tool (rtk_hciattach) differentiates varieties of RTL8723CS (CG, VF, XX) with RTL8703B using vendor's comm

Re: [PATCH net] bridge: mcast: Fix MLD2 Report IPv6 payload length check

2020-07-05 Thread Linus Lüssing
On Sun, Jul 05, 2020 at 10:11:39PM +0300, Nikolay Aleksandrov wrote: > On 7/5/20 10:08 PM, Linus Lüssing wrote: > > On Sun, Jul 05, 2020 at 09:33:13PM +0300, Nikolay Aleksandrov wrote: > > > On 05/07/2020 21:22, Linus Lüssing wrote: > > > > Commit e57f61858b7c ("net: bridge: mcast: fix stale nsrcs

  1   2   3   >