[PATCH net] udp: fix the proto value passed to ip_protocol_deliver_rcu for the segments

2020-12-06 Thread Xin Long
Guillaume noticed that: for segments udp_queue_rcv_one_skb() returns the proto, and it should pass "ret" unmodified to ip_protocol_deliver_rcu(). Otherwize, with a negtive value passed, it will underflow inet_protos. This can be reproduced with IPIP FOU: # ip fou add port ipproto 4 # eth

Re: [PATCH net] net: hns3: remove a misused pragma packed

2020-12-06 Thread David Miller
From: Huazhong Tan Date: Mon, 7 Dec 2020 15:20:25 +0800 > hclge_dbg_reg_info[] is defined as an array of packed structure > accidentally. However, this array contains pointers, which are > no longer aligned naturally, and cannot be relocated on PPC64. > Hence, when compile-testing this driver on

[PATCH net] net: hns3: remove a misused pragma packed

2020-12-06 Thread Huazhong Tan
hclge_dbg_reg_info[] is defined as an array of packed structure accidentally. However, this array contains pointers, which are no longer aligned naturally, and cannot be relocated on PPC64. Hence, when compile-testing this driver on PPC64 with CONFIG_RELOCATABLE=y (e.g. PowerPC allyesconfig), there

Re: [net-next V2 08/15] net/mlx5e: Add TX PTP port object support

2020-12-06 Thread Saeed Mahameed
On Sat, 2020-12-05 at 00:55 +, Vladimir Oltean wrote: > Hi Jakub, > > On Fri, Dec 04, 2020 at 02:52:40PM -0800, Jakub Kicinski wrote: > > On Fri, 04 Dec 2020 13:57:49 -0800 Saeed Mahameed wrote: > > > > Why not use the PTP classification helpers we already have? > > > > > > do you mean ptp_pa

[PATCH 1/1] ice: fix array overflow on receiving too many fragments for a packet

2020-12-06 Thread Xiaohui Zhang
From: Zhang Xiaohui If the hardware receives an oversized packet with too many rx fragments, skb_shinfo(skb)->frags can overflow and corrupt memory of adjacent pages. This becomes especially visible if it corrupts the freelist pointer of a slab page. Signed-off-by: Zhang Xiaohui --- drivers/ne

Re: GRO: can't force packet up stack immediately?

2020-12-06 Thread John Ousterhout
On Fri, Dec 4, 2020 at 3:20 AM Edward Cree wrote: > > On 03/12/2020 19:52, John Ousterhout wrote: > > Homa uses GRO to collect batches of packets for protocol processing, > > but there are times when it wants to push a batch of packet up through > > the stack immediately (it doesn't want any more

Re: [net-next V2 08/15] net/mlx5e: Add TX PTP port object support

2020-12-06 Thread Saeed Mahameed
On Sat, 2020-12-05 at 03:49 +0200, Vladimir Oltean wrote: > On Fri, Dec 04, 2020 at 12:26:13PM -0800, Jakub Kicinski wrote: > > On Fri, 04 Dec 2020 11:33:26 -0800 Saeed Mahameed wrote: > > > On Thu, 2020-12-03 at 18:29 -0800, Jakub Kicinski wrote: > > > > On Wed, 2 Dec 2020 20:21:01 -0800 Saeed Mah

[PATCH iproute2-net v2 1/3] devlink: Add devlink reload action and limit options

2020-12-06 Thread Moshe Shemesh
Add reload action and reload limit to devlink reload command to enable the user to select the reload action required and constrains limits on these actions that he may want to ensure. The following reload actions are supported: driver_reinit: driver entities re-initialization, applying

[PATCH iproute2-net v2 3/3] devlink: Add reload stats to dev show

2020-12-06 Thread Moshe Shemesh
Show reload statistics through devlink dev show using devlink stats flag. The reload statistics show the history per reload action type and limit. Add remote reload statistics to show the history of actions performed due devlink reload commands initiated by remote host. Output examples: $ devlink

[PATCH iproute2-net v2 2/3] devlink: Add pr_out_dev() helper function

2020-12-06 Thread Moshe Shemesh
Add pr_out_dev() helper function and use it both by cmd_dev_show_cb() and by cmd_mon_show_cb(). Dev stats will be added on the next patch to dev context, so cmd_mon_show_cb() should print the whole dev context and not just dev handle. Signed-off-by: Moshe Shemesh Reviewed-by: Jiri Pirko --- de

[PATCH iproute2-net v2 0/3] devlink: Add devlink reload action limit and stats

2020-12-06 Thread Moshe Shemesh
Introduce new options on devlink reload API to enable the user to select the reload action required and constrains limits on these actions that he may want to ensure. Add reload stats to show the history per reload action per limit. Patch 1 adds the new API reload action and reload limit options

[pull request][for-next V2] mlx5-next auxbus support

2020-12-06 Thread saeed
Hi Jakub, Jason v1->v2: Fix compilation warning when compiling with W=1 in the mlx5 patches. This pull request is targeting net-next and rdma-next branches. This series provides mlx5 support for auxiliary bus devices. It starts with a merge commit of tag 'auxbus-5.11-rc1' from gregkh/driver-cor

[PATCH bpf] tools/bpftool: Add/Fix support for modules btf dump

2020-12-06 Thread saeed
From: Saeed Mahameed While playing with BTF for modules, i noticed that executing the command: $ bpftool btf dump id Fails due to lack of information in the BTF data. Maybe I am missing a step but actually adding the support for this is very simple. To completely parse modules BTF data, we ne

Re: [PATCH] vhost scsi: fix error return code in vhost_scsi_set_endpoint()

2020-12-06 Thread Jason Wang
On 2020/12/4 下午4:43, Zhang Changzhong wrote: Fix to return a negative error code from the error handling case instead of 0, as done elsewhere in this function. Fixes: 25b98b64e284 ("vhost scsi: alloc cmds per vq instead of session") Reported-by: Hulk Robot Signed-off-by: Zhang Changzhong ---

RE: [PATCH net-next 07/13] net/mlx5: SF, Add auxiliary device support

2020-12-06 Thread Parav Pandit
> From: David Ahern > Sent: Monday, December 7, 2020 8:19 AM > > On 11/12/20 12:24 PM, Parav Pandit wrote: > > diff --git a/drivers/net/ethernet/mellanox/mlx5/core/Kconfig > > b/drivers/net/ethernet/mellanox/mlx5/core/Kconfig > > index 485478979b1a..10dfaf671c90 100644 > > --- a/drivers/net/eth

RE: [PATCH net-next v4] devlink: Add devlink port documentation

2020-12-06 Thread Parav Pandit
> From: Jakub Kicinski > Sent: Sunday, December 6, 2020 1:57 AM > > On Thu, 3 Dec 2020 20:02:55 +0200 Parav Pandit wrote: > > Added documentation for devlink port and port function related commands. > > > > Signed-off-by: Parav Pandit > > Reviewed-by: Jiri Pirko > > Reviewed-by: Jacob Keller

Re: [PATCH net-next] tun: fix ubuf refcount incorrectly on error path

2020-12-06 Thread Jason Wang
On 2020/12/4 下午6:22, wangyunjian wrote: -Original Message- From: Jason Wang [mailto:jasow...@redhat.com] Sent: Friday, December 4, 2020 2:11 PM To: wangyunjian ; m...@redhat.com Cc: virtualizat...@lists.linux-foundation.org; netdev@vger.kernel.org; Lilijun (Jerry) ; xudingke Subject: R

Re: [PATCH v2 bpf-next 0/3] bpf: support module BTF in BTF display helpers

2020-12-06 Thread Yonghong Song
On 12/5/20 4:43 PM, Alan Maguire wrote: On Sat, 5 Dec 2020, Yonghong Song wrote: __builtin_btf_type_id() is really only supported in llvm12 and 64bit return value support is pushed to llvm12 trunk a while back. The builtin is introduced in llvm11 but has a corner bug, so llvm12 is recomme

Re: [PATCH 1/1] ionic: fix array overflow on receiving too many fragments for a packet

2020-12-06 Thread Shannon Nelson
On 12/6/20 5:51 PM, Jesse Brandeburg wrote: Xiaohui Zhang wrote: From: Zhang Xiaohui If the hardware receives an oversized packet with too many rx fragments, skb_shinfo(skb)->frags can overflow and corrupt memory of adjacent pages. This becomes especially visible if it corrupts the freelist p

Re: LRO: creating vlan subports affects parent port's LRO settings

2020-12-06 Thread Limin Wang
I might be wrong. One potential issue I found in netdev_sync_upper_features() is that it depends on the wanted_feature of upper_dev if (!(upper->wanted_features & feature) && (features & feature)) { netdev_dbg(lower, "Dropping feature %pNF, upper dev %s has it off.\n", &feature, upper->name);

linux-next: build failure after merge of the block tree

2020-12-06 Thread Stephen Rothwell
Hi all, After merging the block tree, today's linux-next build (powerpc ppc64_defconfig) failed like this: fs/io_uring.c: In function 'io_shutdown': fs/io_uring.c:3782:9: error: too many arguments to function 'sock_from_file' 3782 | sock = sock_from_file(req->file, &ret); | ^~

Re: LRO: creating vlan subports affects parent port's LRO settings

2020-12-06 Thread Limin Wang
Thanks to Jakub, Michal and Jarod for the time and consideration. I have been caught up with other stuff, and not spent much time on this since. I am not that familiar with the upper/lower sync logic and implications. But I agree with Michal, it may not be necessary to have a blanket exclusion of

Re: [PATCH net-next 07/13] net/mlx5: SF, Add auxiliary device support

2020-12-06 Thread David Ahern
On 11/12/20 12:24 PM, Parav Pandit wrote: > diff --git a/drivers/net/ethernet/mellanox/mlx5/core/Kconfig > b/drivers/net/ethernet/mellanox/mlx5/core/Kconfig > index 485478979b1a..10dfaf671c90 100644 > --- a/drivers/net/ethernet/mellanox/mlx5/core/Kconfig > +++ b/drivers/net/ethernet/mellanox/mlx5/

[PATCH net] net: flow_offload: Fix memory leak for indirect flow block

2020-12-06 Thread Chris Mi
The offending commit introduces a cleanup callback that is invoked when the driver module is removed to clean up the tunnel device flow block. But it returns on the first iteration of the for loop. The remaining indirect flow blocks will never be freed. Fixes: 1fac52da5942 ("net: flow_offload: con

Re: [PATCH 1/1] ice: fix array overflow on receiving too many fragments for a packet

2020-12-06 Thread Jesse Brandeburg
Xiaohui Zhang wrote: > From: Zhang Xiaohui > > If the hardware receives an oversized packet with too many rx fragments, > skb_shinfo(skb)->frags can overflow and corrupt memory of adjacent pages. > This becomes especially visible if it corrupts the freelist pointer of > a slab page. As I replie

Re: [PATCH 1/1] ionic: fix array overflow on receiving too many fragments for a packet

2020-12-06 Thread Jesse Brandeburg
Xiaohui Zhang wrote: > From: Zhang Xiaohui > > If the hardware receives an oversized packet with too many rx fragments, > skb_shinfo(skb)->frags can overflow and corrupt memory of adjacent pages. > This becomes especially visible if it corrupts the freelist pointer of > a slab page. > > Signed-

Re: [RFC PATCH net-next 05/13] net: bonding: hold the netdev lists lock when retrieving device statistics

2020-12-06 Thread Vladimir Oltean
On Mon, Dec 07, 2020 at 01:59:11AM +0200, Vladimir Oltean wrote: > In the effort of making .ndo_get_stats64 be able to sleep, we need to > ensure the callers of dev_get_stats do not use atomic context. > > The bonding driver uses an RCU read-side critical section to ensure the > integrity of the li

[RFC PATCH net-next 12/13] net: mark ndo_get_stats64 as being able to sleep

2020-12-06 Thread Vladimir Oltean
Now that all callers have been converted to not use atomic context when calling dev_get_stats, it is time to update the documentation and put a notice in the function that it expects process context. Signed-off-by: Vladimir Oltean --- Documentation/networking/netdevices.rst | 4 ++-- Documentati

[RFC PATCH net-next 11/13] net: sysfs: don't hold dev_base_lock while retrieving device statistics

2020-12-06 Thread Vladimir Oltean
In the effort of making .ndo_get_stats64 be able to sleep, we need to ensure the callers of dev_get_stats do not use atomic context. I need to preface this by saying that I have no idea why netstat_show takes the dev_base_lock rwlock. Two things can be observed: (a) it does not appear to be due to

[RFC PATCH net-next 01/13] RDMA/mlx4: remove bogus dev_base_lock usage

2020-12-06 Thread Vladimir Oltean
The dev_base_lock does not protect dev->dev_addr, so it serves no purpose here. Cc: Leon Romanovsky Signed-off-by: Vladimir Oltean --- drivers/infiniband/hw/mlx4/main.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/infiniband/hw/mlx4/main.c b/drivers/infiniband/hw/mlx4/main.c i

[RFC PATCH net-next 10/13] net: procfs: hold the netdev lists lock when retrieving device statistics

2020-12-06 Thread Vladimir Oltean
In the effort of making .ndo_get_stats64 be able to sleep, we need to ensure the callers of dev_get_stats do not use atomic context. The /proc/net/dev file uses an RCU read-side critical section to ensure the integrity of the list of network interfaces, because it iterates through all net devices

[RFC PATCH net-next 09/13] parisc/led: hold the netdev lists lock when retrieving device statistics

2020-12-06 Thread Vladimir Oltean
In the effort of making .ndo_get_stats64 be able to sleep, we need to ensure the callers of dev_get_stats do not use atomic context. The LED driver for HP-PARISC workstations uses a workqueue to periodically check for updates in network interface statistics, and flicker when those have changed (i.

[RFC PATCH net-next 06/13] net_failover: hold the netdev lists lock when retrieving device statistics

2020-12-06 Thread Vladimir Oltean
In the effort of making .ndo_get_stats64 be able to sleep, we need to ensure the callers of dev_get_stats do not use atomic context. The net_failover driver makes copious abuse of RCU protection for the slave interfaces, which is probably unnecessary given the fact that it already calls dev_hold o

[RFC PATCH net-next 08/13] parisc/led: reindent the code that gathers device statistics

2020-12-06 Thread Vladimir Oltean
The standard in the Linux kernel is to use one tab character per indentation level. Cc: "James E.J. Bottomley" Cc: Helge Deller Cc: linux-par...@vger.kernel.org Signed-off-by: Vladimir Oltean --- drivers/parisc/led.c | 23 +-- 1 file changed, 13 insertions(+), 10 deletions(

[RFC PATCH net-next 07/13] parisc/led: remove trailing whitespaces

2020-12-06 Thread Vladimir Oltean
This file looks bad in text editors. Cc: "James E.J. Bottomley" Cc: Helge Deller Cc: linux-par...@vger.kernel.org Signed-off-by: Vladimir Oltean --- drivers/parisc/led.c | 128 +-- 1 file changed, 64 insertions(+), 64 deletions(-) diff --git a/drivers/p

[RFC PATCH net-next 03/13] net: introduce a mutex for the netns interface lists

2020-12-06 Thread Vladimir Oltean
Currently, any writer that wants to alter the lists of network interfaces (either the plain list net->dev_base_head, or the hash tables net->dev_index_head and net->dev_name_head) can keep other writers at bay using the RTNL mutex. However, the RTNL mutex has become a very contended resource over

[RFC PATCH net-next 05/13] net: bonding: hold the netdev lists lock when retrieving device statistics

2020-12-06 Thread Vladimir Oltean
In the effort of making .ndo_get_stats64 be able to sleep, we need to ensure the callers of dev_get_stats do not use atomic context. The bonding driver uses an RCU read-side critical section to ensure the integrity of the list of network interfaces, because the driver iterates through all net devi

[RFC PATCH net-next 04/13] s390/appldata_net_sum: hold the netdev lists lock when retrieving device statistics

2020-12-06 Thread Vladimir Oltean
In the effort of making .ndo_get_stats64 be able to sleep, we need to ensure the callers of dev_get_stats do not use atomic context. In the case of the appldata driver, an RCU read-side critical section is used to ensure the integrity of the list of network interfaces, because the driver iterates

[RFC PATCH net-next 02/13] net: mark dev_base_lock for deprecation

2020-12-06 Thread Vladimir Oltean
There is a movement to eliminate the usage of dev_base_lock, which exists since as far as I could track the kernel history down (the "7a2deb329241 Import changeset" commit from the bitkeeper branch). The dev_base_lock approach has multiple issues: - It is global and not per netns. - Its meaning ha

[RFC PATCH net-next 00/13] Make .ndo_get_stats64 sleepable

2020-12-06 Thread Vladimir Oltean
This series converts all callers of dev_get_stats() to be in sleepable context, so that we can do more work in the .ndo_get_stats64 method. The situation today is that if we have hardware that needs to be accessed through a slow bus like SPI, or through a firmware, we cannot do that directly in .n

[RFC PATCH net-next 13/13] net: remove obsolete comments about ndo_get_stats64 context from eth drivers

2020-12-06 Thread Vladimir Oltean
Now that we have a good summary in Documentation/networking/netdevices.rst, these comments serve no purpose and are actually distracting/confusing. Signed-off-by: Vladimir Oltean --- drivers/net/ethernet/cisco/enic/enic_main.c | 1 - drivers/net/ethernet/nvidia/forcedeth.c | 2 -- drivers/ne

Re: LRO: creating vlan subports affects parent port's LRO settings

2020-12-06 Thread Jarod Wilson
On Sun, Dec 6, 2020 at 11:49 AM Michal Kubecek wrote: > > On Sat, Dec 05, 2020 at 07:04:06PM -0500, Jarod Wilson wrote: > > On Mon, Nov 23, 2020 at 7:27 PM Jakub Kicinski wrote: > > > > > > On Thu, 19 Nov 2020 20:37:27 -0500 Limin Wang wrote: > > > > Under relatively recent kernels (v4.4+), creat

RE: [PATCH v2] Drivers: hv: vmbus: Copy packets sent by Hyper-V out of the ring buffer

2020-12-06 Thread Michael Kelley
From: Andrea Parri (Microsoft) Sent: Monday, November 9, 2020 2:07 AM > > From: Andres Beltran > > Pointers to ring-buffer packets sent by Hyper-V are used within the > guest VM. Hyper-V can send packets with erroneous values or modify > packet fields after they are processed by the guest. To

Re:Re: linux-next: ERROR: build error for arm64

2020-12-06 Thread 苏辉
At 2020-12-06 16:25:19, "Björn Töpel" wrote: Ok, thanks.

Re: [PATCH V4 net-next 9/9] net: ena: introduce ndo_xdp_xmit() function for XDP_REDIRECT

2020-12-06 Thread Maciej Fijalkowski
On Fri, Dec 04, 2020 at 02:11:15PM +0200, akiy...@amazon.com wrote: > From: Arthur Kiyanovski > > This patch implements the ndo_xdp_xmit() net_device function which is > called when a packet is redirected to this driver using an > XDP_REDIRECT directive. > > The function receives an array of xdp

Re: [PATCH V4 net-next 6/9] net: ena: use xdp_frame in XDP TX flow

2020-12-06 Thread Maciej Fijalkowski
On Fri, Dec 04, 2020 at 02:11:12PM +0200, akiy...@amazon.com wrote: > From: Arthur Kiyanovski > > Rename the ena_xdp_xmit_buff() function to ena_xdp_xmit_frame() and pass > it an xdp_frame struct instead of xdp_buff. > This change lays the ground for XDP redirect implementation which uses > xdp_f

[PATCH] drivers: broadcom: save return value of pci_find_capability() in u8

2020-12-06 Thread Puranjay Mohan
Callers of pci_find_capability() should save the return value in u8. change the type of pcix_cap from int to u8, to match the specification. Signed-off-by: Puranjay Mohan --- drivers/net/ethernet/broadcom/tg3.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ether

Re: vlan_filtering=1 breaks all traffic

2020-12-06 Thread Vladimir Oltean
On Sat, Dec 05, 2020 at 09:13:37PM +0100, Rasmus Villemoes wrote: > Yup, that corresponds pretty much to what I do. Just for good measure, I > tried doing exactly the above (with only a change in IP address), and... > it worked. So, first thought was "perhaps it's because you bring up br0 > before

Re: [PATCH v2 1/2] net: dsa: lantiq: allow to use all GPHYs on xRX300 and xRX330

2020-12-06 Thread Vladimir Oltean
On Sun, Dec 06, 2020 at 02:27:12PM +0100, Aleksander Jan Bajkowski wrote: > This patch allows to use all PHYs on GRX300 and GRX330. The ARX300 has 3 > and the GRX330 has 4 integrated PHYs connected to different ports compared > to VRX200. > > Port configurations: > > xRX200: > GMAC0: RGMII/MII/RE

Re: [PATCH ethtool v2] Improve error message when SFP module is missing

2020-12-06 Thread Michal Kubecek
On Wed, Dec 02, 2020 at 07:22:14PM +0200, Baruch Siach wrote: > ETHTOOL_GMODULEINFO request success indicates that SFP cage is present. > Failure of ETHTOOL_GMODULEEEPROM is most likely because SFP module is > not plugged in. Add an indication to the user as to what might be the > reason for the fa

Re: [PATCH v3 0/7] Improve s0ix flows for systems i219LM

2020-12-06 Thread Alexander Duyck
On Sat, Dec 5, 2020 at 3:49 PM Jakub Kicinski wrote: > > On Fri, 4 Dec 2020 14:38:03 -0800 Alexander Duyck wrote: > > > > The patches look good to me. Just need to address the minor issue that > > > > seems to have been present prior to the introduction of this patch > > > > set. > > > > > > > > R

Re: [net-next V2 08/15] net/mlx5e: Add TX PTP port object support

2020-12-06 Thread Richard Cochran
On Sun, Dec 06, 2020 at 03:37:47PM +0200, Eran Ben Elisha wrote: > Adding new enum to the ioctl means we have add > (HWTSTAMP_TX_ON_TIME_CRITICAL_ONLY for example) all the way - drivers, > kernel ptp, user space ptp, ethtool. > > My concerns are: > 1. Timestamp applications (like ptp4l or similar)

Re: LRO: creating vlan subports affects parent port's LRO settings

2020-12-06 Thread Michal Kubecek
On Sat, Dec 05, 2020 at 07:04:06PM -0500, Jarod Wilson wrote: > On Mon, Nov 23, 2020 at 7:27 PM Jakub Kicinski wrote: > > > > On Thu, 19 Nov 2020 20:37:27 -0500 Limin Wang wrote: > > > Under relatively recent kernels (v4.4+), creating a vlan subport on a > > > LRO supported parent NIC may turn LRO

Re: WARNING in __cfg80211_ibss_joined (2)

2020-12-06 Thread syzbot
syzbot has found a reproducer for the following issue on: HEAD commit:7059c2c0 Merge branch 'for-linus' of git://git.kernel.org/.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=11a1199b50 kernel config: https://syzkaller.appspot.com/x/.config?x=e49433c

[PATCH] dpaa2-mac: Add a missing of_node_put after of_device_is_available

2020-12-06 Thread Christophe JAILLET
Add an 'of_node_put()' call when a tested device node is not available. Fixes:94ae899b2096 ("dpaa2-mac: add PCS support through the Lynx module") Signed-off-by: Christophe JAILLET --- drivers/net/ethernet/freescale/dpaa2/dpaa2-mac.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net

[PATCH v2] can-isotp: add SF_BROADCAST support for functional addressing

2020-12-06 Thread Oliver Hartkopp
When CAN_ISOTP_SF_BROADCAST is set in the CAN_ISOTP_OPTS flags the CAN_ISOTP socket is switched into functional addressing mode, where only single frame (SF) protocol data units can be send on the specified CAN interface and the given tp.tx_id after bind(). In opposite to normal and extended addre

[PATCH 1/1] ionic: fix array overflow on receiving too many fragments for a packet

2020-12-06 Thread Xiaohui Zhang
From: Zhang Xiaohui If the hardware receives an oversized packet with too many rx fragments, skb_shinfo(skb)->frags can overflow and corrupt memory of adjacent pages. This becomes especially visible if it corrupts the freelist pointer of a slab page. Signed-off-by: Zhang Xiaohui --- drivers/ne

Re: [net-next V2 08/15] net/mlx5e: Add TX PTP port object support

2020-12-06 Thread Eran Ben Elisha
On 12/5/2020 2:24 AM, Jakub Kicinski wrote: On Fri, 04 Dec 2020 15:57:36 -0800 Saeed Mahameed wrote: On Fri, 2020-12-04 at 15:17 -0800, Jakub Kicinski wrote: On Fri, 04 Dec 2020 13:57:49 -0800 Saeed Mahameed wrote: option 2) route PTP traffic to a special SQs per ring, this SQ will be PTP p

Re: [net-next V2 08/15] net/mlx5e: Add TX PTP port object support

2020-12-06 Thread Eran Ben Elisha
On 12/5/2020 1:17 AM, Jakub Kicinski wrote: We only forward ptp traffic to the new special queue but we create more than one to avoid internal locking as we will utilize the tx softirq percpu. In other words to make the driver implementation simpler we'll have a pretty basic feature hidden be

Re: [net-next V2 08/15] net/mlx5e: Add TX PTP port object support

2020-12-06 Thread Eran Ben Elisha
On 12/4/2020 11:57 PM, Saeed Mahameed wrote: We only forward ptp traffic to the new special queue but we create more than one to avoid internal locking as we will utilize the tx softirq percpu. After double checking the code it seems Eran and Tariq have decided to forward all UDP traffic, let

[PATCH v2 2/2] dt-bindings: net: dsa: lantiq, lantiq-gswip: add example for xRX330

2020-12-06 Thread Aleksander Jan Bajkowski
Add compatible string and example for xRX300 and xRX330. Signed-off-by: Aleksander Jan Bajkowski --- .../bindings/net/dsa/lantiq-gswip.txt | 110 +- 1 file changed, 109 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/net/dsa/lantiq-gswip.txt

[PATCH v2 1/2] net: dsa: lantiq: allow to use all GPHYs on xRX300 and xRX330

2020-12-06 Thread Aleksander Jan Bajkowski
This patch allows to use all PHYs on GRX300 and GRX330. The ARX300 has 3 and the GRX330 has 4 integrated PHYs connected to different ports compared to VRX200. Port configurations: xRX200: GMAC0: RGMII/MII/REVMII/RMII port GMAC1: RGMII/MII/REVMII/RMII port GMAC2: GPHY0 (GMII) GMAC3: GPHY0 (MII) GM

[PATCH v2 0/2] net: dsa: lantiq: add support for xRX300 and xRX330

2020-12-06 Thread Aleksander Jan Bajkowski
From: Aleksander Jan Bajkowski Changed since v1: * gswip_mii_mask_cfg() can now change port 3 on xRX330 * changed alowed modes on port 0 and 5 for xRX300 and xRX330 * moved common part of phylink validation into gswip_phylink_set_capab() * verify the compatible str

[PATCH 1/1] mwifiex: Fix possible buffer overflows in mwifiex_cmd_802_11_ad_hoc_start

2020-12-06 Thread Xiaohui Zhang
From: Zhang Xiaohui mwifiex_cmd_802_11_ad_hoc_start() calls memcpy() without checking the destination size may trigger a buffer overflower, which a local user could use to cause denial of service or the execution of arbitrary code. Fix it by putting the length check before calling memcpy(). Sign

macb: should we revert 0a4e9ce17ba7 ("macb: support the two tx descriptors on at91rm9200") ?

2020-12-06 Thread Willy Tarreau
Hi Jakub, Two months ago I implemented a small change in the macb driver to support the two Tx descriptors that AT91RM9200 supports. I implemented this using the only compatible device I had which is the MSC313E-based Breadbee board. Since then I've met situations where the chip would stop sending

[PATCH net-next] net/mlx4: Remove unused #define MAX_MSIX_P_PORT

2020-12-06 Thread Tariq Toukan
From: Tariq Toukan All usages of the definition MAX_MSIX_P_PORT were removed. It's not in use anymore. Remove it. Signed-off-by: Tariq Toukan Reviewed-by: Moshe Shemesh --- include/linux/mlx4/device.h | 1 - 1 file changed, 1 deletion(-) diff --git a/include/linux/mlx4/device.h b/include/lin

Re: [PATCH v13 0/4] userspace MHI client interface driver

2020-12-06 Thread Leon Romanovsky
On Tue, Dec 01, 2020 at 09:59:53PM -0700, Jeffrey Hugo wrote: > On 12/1/2020 7:55 PM, Jakub Kicinski wrote: > > On Tue, 1 Dec 2020 13:48:36 -0700 Jeffrey Hugo wrote: > > > On 12/1/2020 1:03 PM, Jakub Kicinski wrote: > > > > On Tue, 1 Dec 2020 12:40:50 -0700 Jeffrey Hugo wrote: > > > > > On 12/1/202

Re: linux-next: ERROR: build error for arm64

2020-12-06 Thread Björn Töpel
On 2020-12-06 08:32, Hui Su wrote: hi, all: The error came out like this when i build the linux-next kernel with ARCH=arm64, with the arm64_defconfig: CC drivers/net/ethernet/freescale/dpaa/dpaa_eth.o ../drivers/net/ethernet/freescale/dpaa/dpaa_eth.c: In function ‘dpaa_fq_init’: ../driv

[PATCH net-next 5/7] mlxsw: core_acl: Use an array instead of a struct with a zero-length array

2020-12-06 Thread Ido Schimmel
From: Ido Schimmel Suppresses the following coccinelle warning: drivers/net/ethernet/mellanox/mlxsw/core_acl_flex_keys.c:139:3-7: WARNING use flexible-array member instead Signed-off-by: Ido Schimmel Reviewed-by: Jiri Pirko --- .../mellanox/mlxsw/core_acl_flex_keys.c | 26 -

[PATCH net-next 7/7] mlxsw: spectrum_router: Reduce mlxsw_sp_ipip_fib_entry_op_gre4()

2020-12-06 Thread Ido Schimmel
From: Jiri Pirko Turned out that mlxsw_sp_ipip_fib_entry_op_gre4() does not need to figure out the IP address and virtual router id. Those are exactly the same as in the fib_entry it is called for. So just use that and reduce mlxsw_sp_ipip_fib_entry_op_gre4() function to only call mlxsw_sp_ipip_f

[PATCH net-next 6/7] mlxsw: spectrum: Bump minimum FW version to xx.2008.2018

2020-12-06 Thread Ido Schimmel
From: Petr Machata The indicated version fixes an issue whereby the MOMTE register would by default enable mirroring of ECN-marked traffic from all traffic classes, once the ECN mirroring was configured. This fix is necessary for offload of RED "ecn_mark" qevent. Signed-off-by: Petr Machata Sig

[PATCH net-next 0/7] mlxsw: Misc updates

2020-12-06 Thread Ido Schimmel
From: Ido Schimmel This patch set contains various updates for mlxsw in various areas. Patch #1 fixes a corner case in router interface (RIF) configuration. Targeted at net-next since this is not a regression. Patch #2 adds a test case. Patch #3 enables tracing of EMAD events via 'devlink:devli

[PATCH net-next 3/7] mlxsw: core: Trace EMAD events

2020-12-06 Thread Ido Schimmel
From: Ido Schimmel Currently, mlxsw triggers the 'devlink:devlink_hwmsg' tracepoint whenever a request is sent to the device and whenever a response is received from it. However, the tracepoint is not triggered when an event (e.g., port up / down) is received from the device. Also trace EMAD eve

[PATCH net-next 1/7] mlxsw: spectrum: Apply RIF configuration when joining a LAG

2020-12-06 Thread Ido Schimmel
From: Ido Schimmel In case a router interface (RIF) is configured for a LAG, make sure its configuration is applied on the new LAG member. Signed-off-by: Ido Schimmel Reviewed-by: Jiri Pirko --- .../net/ethernet/mellanox/mlxsw/spectrum.c| 17 -- .../net/ethernet/mellanox/mlxsw/spe

[PATCH net-next 4/7] mlxsw: spectrum_mr: Use flexible-array member instead of zero-length array

2020-12-06 Thread Ido Schimmel
From: Ido Schimmel Suppresses the following coccinelle warning: drivers/net/ethernet/mellanox/mlxsw/spectrum_mr.c:18:15-19: WARNING use flexible-array member instead Signed-off-by: Ido Schimmel --- drivers/net/ethernet/mellanox/mlxsw/spectrum_mr.c | 2 +- 1 file changed, 1 insertion(+), 1 de

[PATCH net-next 2/7] selftests: mlxsw: Test RIF's reference count when joining a LAG

2020-12-06 Thread Ido Schimmel
From: Ido Schimmel Test that the reference count of a router interface (RIF) configured for a LAG is incremented / decremented when ports join / leave the LAG. Use the offload indication on routes configured on the RIF to understand if it was created / destroyed. The test fails without the previ