Re: [PATCH][next] mlxsw: spectrum_router: remove redundant initialization of variable force

2021-03-29 Thread Ido Schimmel
On Sat, Mar 27, 2021 at 10:33:34PM +, Colin King wrote: > From: Colin Ian King > > The variable force is being initialized with a value that is > never read and it is being updated later with a new value. The > initialization is redundant and can be removed. > > Addresses-Coverity: ("Unused

Re: [PATCH v3 1/5] thermal/drivers/core: Use a char pointer for the cooling device name

2021-03-14 Thread Ido Schimmel
gogogoch" > > A village on the island of Anglesey (Wales), known to have the longest > name in Europe. > > Signed-off-by: Daniel Lezcano > Reviewed-by: Lukasz Luba Tested-by: Ido Schimmel

Re: [PATCH v2 1/5] thermal/drivers/core: Use a char pointer for the cooling device name

2021-03-14 Thread Ido Schimmel
On Fri, Mar 12, 2021 at 06:03:12PM +0100, Daniel Lezcano wrote: > diff --git a/drivers/thermal/thermal_core.c b/drivers/thermal/thermal_core.c > index 996c038f83a4..9ef8090eb645 100644 > --- a/drivers/thermal/thermal_core.c > +++ b/drivers/thermal/thermal_core.c > @@ -960,10 +960,7 @@

Re: [PATCH] netdevsim: fib: Remove redundant code

2021-03-10 Thread Ido Schimmel
On Wed, Mar 10, 2021 at 10:35:27AM +0800, Jiapeng Chong wrote: > Fix the following coccicheck warnings: > > ./drivers/net/netdevsim/fib.c:874:5-8: Unneeded variable: "err". Return > "0" on line 889. > > Reported-by: Abaci Robot > Signed-off-by: Jiapeng Chong > --- >

Re: [syzbot] WARNING: ODEBUG bug in net_dm_cmd_trace

2021-03-08 Thread Ido Schimmel
On Sun, Mar 07, 2021 at 06:30:27PM -0800, syzbot wrote: > Hello, > > syzbot found the following issue on: > > HEAD commit:d310ec03 Merge tag 'perf-core-2021-02-17' of git://git.ker.. > git tree: net-next > console output: https://syzkaller.appspot.com/x/log.txt?x=108adb32d0 >

Re: [PATCH] net: mellanox: mlxsw: fix error return code of mlxsw_sp_router_nve_promote_decap()

2021-03-07 Thread Ido Schimmel
On Sat, Mar 06, 2021 at 03:32:39PM +0100, Heiner Kallweit wrote: > On 06.03.2021 15:07, Jia-Ju Bai wrote: > > When fib_entry is NULL, no error return code of > > mlxsw_sp_router_nve_promote_decap() is assigned. > > To fix this bug, err is assigned with -EINVAL in this case. > > > Again, are you

Re: [PATCH 10/11] pragma once: delete few backslashes

2021-03-01 Thread Ido Schimmel
to say I don't want to handle another case in my script, > so delete useless backslashes instead. > > Signed-off-by: Alexey Dobriyan For mlxsw: Reviewed-by: Ido Schimmel Tested-by: Ido Schimmel Thanks

Re: [PATCH v2] netdevsim: fib: remove unneeded semicolon

2021-02-23 Thread Ido Schimmel
On Tue, Feb 23, 2021 at 10:28:46AM +0800, Jiapeng Chong wrote: > Fix the following coccicheck warnings: > > ./drivers/net/netdevsim/fib.c:564:2-3: Unneeded semicolon. > > Reported-by: Abaci Robot > Signed-off-by: Jiapeng Chong Reviewed-by: Ido Schimmel

Re: [PATCH] netdevsim: fib: remove unneeded semicolon

2021-02-22 Thread Ido Schimmel
On Mon, Feb 22, 2021 at 05:47:04PM +0800, Jiapeng Chong wrote: > Fix the following coccicheck warnings: > > ./drivers/net/netdevsim/fib.c:564:2-3: Unneeded semicolon. > > Reported-by: Abaci Robot > Signed-off-by: Jiapeng Chong > --- > drivers/net/netdevsim/fib.c | 2 +- > 1 file changed, 1

Re: [PATCH v2 net-next 04/11] net: bridge: offload initial and final port flags through switchdev

2021-02-11 Thread Ido Schimmel
On Thu, Feb 11, 2021 at 11:35:27AM +0200, Vladimir Oltean wrote: > On Thu, Feb 11, 2021 at 09:44:43AM +0200, Ido Schimmel wrote: > > On Thu, Feb 11, 2021 at 01:23:52AM +0200, Vladimir Oltean wrote: > > > On Wed, Feb 10, 2021 at 12:59:49PM +0200, Ido Schimmel wrote: > > >

Re: [PATCH v2 net-next 04/11] net: bridge: offload initial and final port flags through switchdev

2021-02-11 Thread Ido Schimmel
On Thu, Feb 11, 2021 at 01:23:52AM +0200, Vladimir Oltean wrote: > On Wed, Feb 10, 2021 at 12:59:49PM +0200, Ido Schimmel wrote: > > > > The reverse, during unlinking, would be to refuse unlinking if the upper > > > > has uppers of its own. netdev_upper_

Re: [PATCH v3 net-next 00/11] Cleanup in brport flags switchdev offload for DSA

2021-02-10 Thread Ido Schimmel
On Wed, Feb 10, 2021 at 02:55:01PM +0200, Vladimir Oltean wrote: > On Wed, Feb 10, 2021 at 02:38:23PM +0200, Ido Schimmel wrote: > > On Wed, Feb 10, 2021 at 02:29:36PM +0200, Vladimir Oltean wrote: > > > On Wed, Feb 10, 2021 at 02:21:05PM +0200, Ido Schimmel wrote: > >

Re: [PATCH v3 net-next 00/11] Cleanup in brport flags switchdev offload for DSA

2021-02-10 Thread Ido Schimmel
On Wed, Feb 10, 2021 at 02:29:36PM +0200, Vladimir Oltean wrote: > On Wed, Feb 10, 2021 at 02:21:05PM +0200, Ido Schimmel wrote: > > On Wed, Feb 10, 2021 at 02:01:06PM +0200, Vladimir Oltean wrote: > > > On Wed, Feb 10, 2021 at 01:05:57PM +0200, Nikolay Aleksandrov wrote: > &

Re: [PATCH v3 net-next 00/11] Cleanup in brport flags switchdev offload for DSA

2021-02-10 Thread Ido Schimmel
On Wed, Feb 10, 2021 at 02:01:06PM +0200, Vladimir Oltean wrote: > On Wed, Feb 10, 2021 at 01:05:57PM +0200, Nikolay Aleksandrov wrote: > > On 10/02/2021 13:01, Vladimir Oltean wrote: > > > On Wed, Feb 10, 2021 at 12:52:33PM +0200, Nikolay Aleksandrov wrote: > > >> On 10/02/2021 12:45, Vladimir

Re: [PATCH v2 net-next 04/11] net: bridge: offload initial and final port flags through switchdev

2021-02-10 Thread Ido Schimmel
On Wed, Feb 10, 2021 at 12:51:53AM +0200, Vladimir Oltean wrote: > On Wed, Feb 10, 2021 at 12:01:24AM +0200, Ido Schimmel wrote: > > On Tue, Feb 09, 2021 at 10:20:45PM +0200, Vladimir Oltean wrote: > > > On Tue, Feb 09, 2021 at 08:51:00PM +0200, Ido Schimmel wrote: > >

Re: [PATCH v3 net-next 07/11] net: prep switchdev drivers for concurrent SWITCHDEV_ATTR_ID_PORT_BRIDGE_FLAGS

2021-02-10 Thread Ido Schimmel
On Wed, Feb 10, 2021 at 11:14:41AM +0200, Vladimir Oltean wrote: > From: Vladimir Oltean > > Because the bridge will start offloading SWITCHDEV_ATTR_ID_PORT_BRIDGE_FLAGS > while not serialized by any lock such as the br->lock spinlock, existing > drivers that treat that attribute and cache the

Re: [PATCH v2 net-next 04/11] net: bridge: offload initial and final port flags through switchdev

2021-02-09 Thread Ido Schimmel
On Tue, Feb 09, 2021 at 10:20:45PM +0200, Vladimir Oltean wrote: > On Tue, Feb 09, 2021 at 08:51:00PM +0200, Ido Schimmel wrote: > > On Tue, Feb 09, 2021 at 05:19:29PM +0200, Vladimir Oltean wrote: > > > So switchdev drivers operating in standalone mode should disable addr

Re: [PATCH v2 net-next 03/11] net: bridge: don't print in br_switchdev_set_port_flag

2021-02-09 Thread Ido Schimmel
On Tue, Feb 09, 2021 at 07:36:31PM +0200, Vladimir Oltean wrote: > On Tue, Feb 09, 2021 at 05:19:28PM +0200, Vladimir Oltean wrote: > > From: Vladimir Oltean > > > > Currently br_switchdev_set_port_flag has two options for error handling > > and neither is good: > > - The driver returns

Re: [PATCH v2 net-next 04/11] net: bridge: offload initial and final port flags through switchdev

2021-02-09 Thread Ido Schimmel
On Tue, Feb 09, 2021 at 05:19:29PM +0200, Vladimir Oltean wrote: > So switchdev drivers operating in standalone mode should disable address > learning. As a matter of practicality, we can reduce code duplication in > drivers by having the bridge notify through switchdev of the initial and > final

Re: [PATCH v2 net-next 01/11] net: switchdev: propagate extack to port attributes

2021-02-09 Thread Ido Schimmel
On Tue, Feb 09, 2021 at 05:19:26PM +0200, Vladimir Oltean wrote: > From: Vladimir Oltean > > When a struct switchdev_attr is notified through switchdev, there is no > way to report informational messages, unlike for struct switchdev_obj. > > Signed-off-by: Vladimir Oltean

Re: [RFC v5 net-next] net: core: devlink: add 'dropped' stats field for traps

2021-02-06 Thread Ido Schimmel
On Thu, Feb 04, 2021 at 01:41:22PM +0200, Oleksandr Mazur wrote: > Whenever query statistics is issued for trap, devlink subsystem > would also fill-in statistics 'dropped' field. This field indicates > the number of packets HW dropped and failed to report to the device driver, > and thus - to the

Re: [RFC v3 net-next] net: core: devlink: add 'dropped' stats field for DROP trap action

2021-02-01 Thread Ido Schimmel
I missed this patch. Please Cc me on future versions given I commented on previous versions. On Mon, Jan 25, 2021 at 02:38:56PM +0200, Oleksandr Mazur wrote: > Whenever query statistics is issued for trap with DROP action, > devlink subsystem would also fill-in statistics 'dropped' field. > In

Re: [PATCH net-next] net: core: devlink: add new trap action HARD_DROP

2021-01-25 Thread Ido Schimmel
On Mon, Jan 25, 2021 at 03:56:14PM +0100, Jiri Pirko wrote: > Mon, Jan 25, 2021 at 01:24:27PM CET, oleksandr.ma...@plvision.eu wrote: > >Thu, Jan 21, 2021 at 06:36:05PM CET, k...@kernel.org wrote: > >>On Thu, 21 Jan 2021 14:21:52 +0200 Ido Schimmel wrote: > >>> On T

Re: [PATCH net-next] net: core: devlink: add new trap action HARD_DROP

2021-01-24 Thread Ido Schimmel
On Sat, Jan 23, 2021 at 12:14:39PM -0800, Jakub Kicinski wrote: > On Sat, 23 Jan 2021 18:03:48 +0200 Ido Schimmel wrote: > > [DEVLINK_ATTR_STATS_RX_DROPPED] > > nit: maybe discarded? dropped sounds like may have been due to an > overflow or something Well, it's an existi

Re: [PATCH net-next] net: core: devlink: add new trap action HARD_DROP

2021-01-23 Thread Ido Schimmel
On Fri, Jan 22, 2021 at 08:36:01AM +, Oleksandr Mazur wrote: > On Thu, 21 Jan 2021 14:21:52 +0200 Ido Schimmel wrote: > > On Thu, Jan 21, 2021 at 01:29:37PM +0200, Oleksandr Mazur wrote: > > > Add new trap action HARD_DROP, which can be used by the > > > drivers to

Re: [PATCH iproute2-next] devlink: add support for HARD_DROP trap action

2021-01-21 Thread Ido Schimmel
On Thu, Jan 21, 2021 at 01:29:54PM +0200, Oleksandr Mazur wrote: > Add support for new HARD_DROP action, which is used for > trap hard drop statistics retrival. It's used whenever > device is unable to report trapped packet to the devlink > subsystem, and thus device could only state how many >

Re: [PATCH net-next] net: core: devlink: add new trap action HARD_DROP

2021-01-21 Thread Ido Schimmel
On Thu, Jan 21, 2021 at 01:29:37PM +0200, Oleksandr Mazur wrote: > Add new trap action HARD_DROP, which can be used by the > drivers to register traps, where it's impossible to get > packet reported to the devlink subsystem by the device > driver, because it's impossible to retrieve dropped packet

Re: [PATCH] mlxsw: pci: switch from 'pci_' to 'dma_' API

2021-01-14 Thread Ido Schimmel
'dma_set_mask/dma_set_coherent_mask' sequence > by a less verbose 'dma_set_mask_and_coherent() call. [...] > > Signed-off-by: Christophe JAILLET For net-next: Tested-by: Ido Schimmel Thanks

Re: [PATCH net-next] net/mlxfw: Use kzalloc for allocating only one thing

2020-12-30 Thread Ido Schimmel
...) > // > > Signed-off-by: Zheng Yongjun Reviewed-by: Ido Schimmel Thanks

Re: [PATCH v3 net-next 1/7] net: bridge: notify switchdev of disappearance of old FDB entry upon migration

2020-12-13 Thread Ido Schimmel
or the insertion. Then the switchdev > driver would not be required to monitor learn/forget events for its own > ports. It could just delete the rule towards the control interface upon > bridge entry migration. This would make hardware address learning be > possible again. Then it would take a few more packets until the hardware > and software FDB would be in sync again. > > Signed-off-by: Vladimir Oltean > Acked-by: Nikolay Aleksandrov Reviewed-by: Ido Schimmel

Re: [PATCH v5 2/3] net: add kcov handle to skb extensions

2020-11-30 Thread Ido Schimmel
On Mon, Nov 30, 2020 at 05:52:48PM -0800, Jakub Kicinski wrote: > On Sat, 21 Nov 2020 18:09:41 +0200 Ido Schimmel wrote: > > + Florian > > > > On Thu, Oct 29, 2020 at 05:36:19PM +, Aleksandr Nogikh wrote: > > > From: Aleksandr Nogikh > > > > &

Re: [PATCH net-next 2/3] mlxsw: spectrum_ptp: use PTP wide message type definitions

2020-11-22 Thread Ido Schimmel
On Sun, Nov 22, 2020 at 04:35:58PM +0200, Ido Schimmel wrote: > Anyway, I added all six patches to our regression as we have some PTP > tests. Will let you know tomorrow. Looks good

Re: [PATCH net-next 2/3] mlxsw: spectrum_ptp: use PTP wide message type definitions

2020-11-22 Thread Ido Schimmel
On Sun, Nov 22, 2020 at 08:29:22PM +0100, Christian Eggers wrote: > On Sunday, 22 November 2020, 15:35:55 CET, Ido Schimmel wrote: > > On Sun, Nov 22, 2020 at 09:26:35AM +0100, Christian Eggers wrote: > > > Use recently introduced PTP wide defines instead of a driver internal

Re: [PATCH net-next 2/3] mlxsw: spectrum_ptp: use PTP wide message type definitions

2020-11-22 Thread Ido Schimmel
On Sun, Nov 22, 2020 at 09:26:35AM +0100, Christian Eggers wrote: > Use recently introduced PTP wide defines instead of a driver internal > enumeration. > > Signed-off-by: Christian Eggers > Cc: Petr Machata > Cc: Jiri Pirko > Cc: Ido Schimmel Reviewed-by: Ido Schimmel

Re: [PATCH v5 2/3] net: add kcov handle to skb extensions

2020-11-21 Thread Ido Schimmel
+ Florian On Thu, Oct 29, 2020 at 05:36:19PM +, Aleksandr Nogikh wrote: > From: Aleksandr Nogikh > > Remote KCOV coverage collection enables coverage-guided fuzzing of the > code that is not reachable during normal system call execution. It is > especially helpful for fuzzing networking

Re: [PATCH -next] mlxsw: spectrum_acl_tcam: simplify the return expression of ishtp_cl_driver_register()

2020-09-21 Thread Ido Schimmel
On Mon, Sep 21, 2020 at 09:10:39PM +0800, Qinglang Miao wrote: > Simplify the return expression. > > Signed-off-by: Qinglang Miao > --- > drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_tcam.c | 8 +--- > 1 file changed, 1 insertion(+), 7 deletions(-) > > diff --git

Re: [PATCH -next] mlxsw: spectrum_router: simplify the return expression of __mlxsw_sp_router_init()

2020-09-21 Thread Ido Schimmel
On Mon, Sep 21, 2020 at 09:10:41PM +0800, Qinglang Miao wrote: > Simplify the return expression. > > Signed-off-by: Qinglang Miao Reviewed-by: Ido Schimmel

Re: [PATCH net-next RFC v4 04/15] devlink: Add reload actions stats to dev get

2020-09-15 Thread Ido Schimmel
On Mon, Sep 14, 2020 at 03:45:00PM +0200, Jiri Pirko wrote: > Mon, Sep 14, 2020 at 08:07:51AM CEST, mo...@mellanox.com wrote: > >Expose devlink reload actions stats to the user through devlink dev > >get command. > > > >Examples: > >$ devlink dev show > >pci/:82:00.0: > > reload_action_stats:

Re: [PATCH net-next RFC v1 3/4] devlink: Add hierarchy between traps in device level and port level

2020-09-06 Thread Ido Schimmel
On Wed, Sep 02, 2020 at 06:32:13PM +0300, Aya Levin wrote: > Managing large scale port's traps may be complicated. This patch > introduces a shortcut: when setting a trap on a device and this trap is > not registered on this device, the action will take place on all related > ports that did

Re: [PATCH net-next RFC v1 2/4] devlink: Add devlink traps under devlink_ports context

2020-09-06 Thread Ido Schimmel
On Wed, Sep 02, 2020 at 06:32:12PM +0300, Aya Levin wrote: > There are some cases where we would like to trap dropped packets only > for a single port on a device without affecting the others. For that > purpose trap_mngr was added to devlink_port and corresponding Trap API > with devlink_port

Re: [PATCH][next] mlxsw: spectrum_cnt: Use flex_array_size() helper in memcpy()

2020-07-30 Thread Ido Schimmel
t the same time makes it explicitly clear that > we are dealing witha flexible array member. > > Also, remove unnecessary pointer identifier sub_pool. > > Signed-off-by: Gustavo A. R. Silva Reviewed-by: Ido Schimmel Tested-by: Ido Schimmel Thanks

Re: [PATCH 19/26] net/ipv6: switch ipv6_flowlabel_opt to sockptr_t

2020-07-27 Thread Ido Schimmel
("net: add a new sockptr_t type") > Reported-by: Jason A. Donenfeld > Reported-by: Ido Schimmel > Signed-off-by: Christoph Hellwig Tested-by: Ido Schimmel Thanks!

Re: [PATCH 19/26] net/ipv6: switch ipv6_flowlabel_opt to sockptr_t

2020-07-27 Thread Ido Schimmel
On Mon, Jul 27, 2020 at 03:00:29PM +0200, Christoph Hellwig wrote: > On Mon, Jul 27, 2020 at 03:15:05PM +0300, Ido Schimmel wrote: > > I see a regression with IPv6 flowlabel that I bisected to this patch. > > When passing '-F 0' to 'ping' the flow label should be random, yet it

Re: [PATCH 19/26] net/ipv6: switch ipv6_flowlabel_opt to sockptr_t

2020-07-27 Thread Ido Schimmel
On Thu, Jul 23, 2020 at 08:09:01AM +0200, Christoph Hellwig wrote: > Pass a sockptr_t to prepare for set_fs-less handling of the kernel > pointer from bpf-cgroup. > > Note that the get case is pretty weird in that it actually copies data > back to userspace from setsockopt. > > Signed-off-by:

Re: KASAN: use-after-free Read in devlink_health_reporter_destroy

2020-07-14 Thread Ido Schimmel
On Mon, Jul 13, 2020 at 03:55:21PM -0700, syzbot wrote: > Hello, > > syzbot found the following crash on: > > HEAD commit:71930d61 Merge git://git.kernel.org/pub/scm/linux/kernel/g.. > git tree: net-next > console output: https://syzkaller.appspot.com/x/log.txt?x=10c8d15710 >

Re: [PATCH net-next v3 5/7] devlink: Add devlink health port reporters API

2020-07-13 Thread Ido Schimmel
On Mon, Jul 13, 2020 at 09:18:25AM -0400, Qian Cai wrote: > On Fri, Jul 10, 2020 at 03:25:11PM +0300, Moshe Shemesh wrote: > > From: Vladyslav Tarasiuk > > > > In order to use new devlink port health reporters infrastructure, add > > corresponding constructor and destructor functions. > > > >

Re: [PATCH net-next] mlxsw: spectrum_dcb: Fix a spelling typo in spectrum_dcb.c

2020-06-23 Thread Ido Schimmel
On Tue, Jun 23, 2020 at 11:13:01PM +0900, Masanari Iida wrote: > This patch fixes a spelling typo in spectrum_dcb.c > > Signed-off-by: Masanari Iida Reviewed-by: Ido Schimmel

Re: [v1,net-next 3/4] net: qos: police action add index for tc flower offloading

2020-06-23 Thread Ido Schimmel
On Tue, Jun 23, 2020 at 02:34:11PM +0800, Po Liu wrote: > From: Po Liu > > Hardware may own many entries for police flow. So that make one(or > multi) flow to be policed by one hardware entry. This patch add the > police action index provide to the driver side make it mapping the > driver

Re: [v1,net-next 1/4] net: qos: add tc police offloading action with max frame size limit

2020-06-23 Thread Ido Schimmel
On Tue, Jun 23, 2020 at 02:34:09PM +0800, Po Liu wrote: > From: Po Liu > > Current police offloading support the 'burst'' and 'rate_bytes_ps'. Some s/support/supports/ s/'burst''/'burst'/ > hardware own the capability to limit the frame size. If the frame size > larger than the setting, the

Re: [RFC,net-next 8/9] net: qos: police action add index for tc flower offloading

2020-06-21 Thread Ido Schimmel
On Fri, Mar 06, 2020 at 08:56:06PM +0800, Po Liu wrote: > Hardware may own many entries for police flow. So that make one(or > multi) flow to be policed by one hardware entry. This patch add the > police action index provide to the driver side make it mapping the > driver hardware entry index. >

Re: [net-next 1/6] net: marvell: prestera: Add driver for Prestera family ASIC devices

2020-06-21 Thread Ido Schimmel
On Sat, Jun 20, 2020 at 03:56:39PM +0300, Vadym Kochan wrote: > But it will look same as prestera_destroy_ports(), do you think > this is not a problem to have a same logic doubled ? No, error paths of init() usually share logic with fini(). The benefits of being consistent, always having init()

Re: mlxsw: spectrum: Adjust headroom buffers for 8x ports

2020-06-17 Thread Ido Schimmel
On Wed, Jun 17, 2020 at 06:15:35PM +0100, Colin Ian King wrote: > Hi > > Static analysis with Coverity has detected an issue that relies on the > machine endianness to work. The commit in question is: > > commit 60833d54d56c21e7538296eb2e00e104768fd047 > Author: Ido Schimm

Re: [PATCH AUTOSEL 5.7 264/274] vxlan: Avoid infinite loop when suppressing NS messages with invalid options

2020-06-17 Thread Ido Schimmel
On Wed, Jun 17, 2020 at 12:28:23PM -0400, Sasha Levin wrote: > On Tue, Jun 09, 2020 at 09:55:48AM +0300, Ido Schimmel wrote: > > On Mon, Jun 08, 2020 at 07:05:57PM -0400, Sasha Levin wrote: > > > From: Ido Schimmel > > > > > > [ Upstream commit 8066

Re: linux-next test error: BUG: using smp_processor_id() in preemptible [ADDR] code: syz-fuzzer/6792

2020-06-12 Thread Ido Schimmel
On Fri, Jun 12, 2020 at 07:09:04PM +0530, Ritesh Harjani wrote: > I see Ted has already taken v2 of this patch in his dev repo. > Should be able to see in linux tree soon. > > https://git.kernel.org/pub/scm/linux/kernel/git/tytso/ext4.git/commit/?h=dev=811985365378df01386c3cfb7ff716e74ca376d5

Re: linux-next test error: BUG: using smp_processor_id() in preemptible [ADDR] code: syz-fuzzer/6792

2020-06-12 Thread Ido Schimmel
On Tue, Jun 02, 2020 at 06:11:29PM +0530, Ritesh Harjani wrote: > #syz test: > https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git > 0e21d4620dd047da7952f44a2e1ac777ded2d57e > >From cc1cf67d99d5fa61db0651c89c288df31bad6b8e Mon Sep 17 00:00:00 2001 > From: Ritesh Harjani > Date:

Re: [PATCH AUTOSEL 5.7 264/274] vxlan: Avoid infinite loop when suppressing NS messages with invalid options

2020-06-09 Thread Ido Schimmel
On Mon, Jun 08, 2020 at 07:05:57PM -0400, Sasha Levin wrote: > From: Ido Schimmel > > [ Upstream commit 8066e6b449e050675df48e7c4b16c29f00507ff0 ] Hi, In the same patch set I also included a similar fix for the bridge module: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/

Re: [net-next 3/6] net: marvell: prestera: Add basic devlink support

2020-06-03 Thread Ido Schimmel
On Thu, May 28, 2020 at 06:12:42PM +0300, Vadym Kochan wrote: > Add very basic support for devlink interface: > > - driver name > - fw version > - devlink ports I suggest adding support for reload while the driver is still simple. I use it all the time because I run with modules

Re: [net-next 2/6] net: marvell: prestera: Add PCI interface support

2020-06-03 Thread Ido Schimmel
On Thu, May 28, 2020 at 06:12:41PM +0300, Vadym Kochan wrote: > drivers/net/ethernet/marvell/prestera/Kconfig | 11 + > .../net/ethernet/marvell/prestera/Makefile| 2 + > .../ethernet/marvell/prestera/prestera_pci.c | 825 ++ > 3 files changed, 838 insertions(+) > create

Re: [net-next 1/6] net: marvell: prestera: Add driver for Prestera family ASIC devices

2020-06-03 Thread Ido Schimmel
On Mon, Jun 01, 2020 at 01:50:13PM +0300, Vadym Kochan wrote: > Hi Ido, > > On Sat, May 30, 2020 at 06:48:01PM +0300, Ido Schimmel wrote: > > On Thu, May 28, 2020 at 06:12:40PM +0300, Vadym Kochan wrote: > > > > [...] > > > Nit: "From&

Re: [net-next 0/6] net: marvell: prestera: Add Switchdev driver for Prestera family ASIC device 98DX326x (AC3x)

2020-05-30 Thread Ido Schimmel
On Sat, May 30, 2020 at 05:52:31PM +0300, Vadym Kochan wrote: > Hi Ido, > > On Sat, May 30, 2020 at 05:29:28PM +0300, Ido Schimmel wrote: > > On Thu, May 28, 2020 at 06:12:39PM +0300, Vadym Kochan wrote: > > > Marvell Prestera 98DX326x integrates up to 24 ports of 1GbE wit

Re: [net-next 1/6] net: marvell: prestera: Add driver for Prestera family ASIC devices

2020-05-30 Thread Ido Schimmel
On Thu, May 28, 2020 at 06:12:40PM +0300, Vadym Kochan wrote: > Marvell Prestera 98DX326x integrates up to 24 ports of 1GbE with 8 > ports of 10GbE uplinks or 2 ports of 40Gbps stacking for a largely > wireless SMB deployment. > > The current implementation supports only boards designed for the

Re: [net-next 0/6] net: marvell: prestera: Add Switchdev driver for Prestera family ASIC device 98DX326x (AC3x)

2020-05-30 Thread Ido Schimmel
On Thu, May 28, 2020 at 06:12:39PM +0300, Vadym Kochan wrote: > Marvell Prestera 98DX326x integrates up to 24 ports of 1GbE with 8 > ports of 10GbE uplinks or 2 ports of 40Gbps stacking for a largely > wireless SMB deployment. > > Prestera Switchdev is a firmware based driver that operates via

Re: [PATCH][V2][net-next] mlxsw: spectrum_router: remove redundant initialization of pointer br_dev

2020-05-27 Thread Ido Schimmel
es-Coverity: ("Unused value") > Signed-off-by: Colin Ian King Reviewed-by: Ido Schimmel Thanks

Re: [PATCH] mlxsw: spectrum_router: remove redundant initialization of pointer br_dev

2020-05-26 Thread Ido Schimmel
On Tue, May 26, 2020 at 11:56:49PM +0100, Colin King wrote: > From: Colin Ian King > diff --git a/drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c > b/drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c > index 71aee4914619..8f485f9a07a7 100644 > ---

Re: [PATCH] vlan: fix the bug that cannot create vlan4095

2020-05-18 Thread Ido Schimmel
On Mon, May 18, 2020 at 01:27:55PM +0800, Huang Qijun wrote: > According to the 8021q standard, the VLAN id range is 1 to 4095. No, on IEEE8021VlanIndex the standard says: "A value used to index per-VLAN tables: values of 0 and 4095 are not permitted. If the value is between 1 and 4094

Re: [PATCH 2/3] net/scm: cleanup scm_detach_fds

2020-05-13 Thread Ido Schimmel
On Wed, May 13, 2020 at 12:17:51PM +0200, Christoph Hellwig wrote: > On Wed, May 13, 2020 at 12:10:37PM +0200, Christoph Hellwig wrote: > > Ok. I'll see what went wrong for real and will hopefully have a > > different patch for you in a bit. > > Can you try this patch instead of the previous

Re: [PATCH 2/3] net/scm: cleanup scm_detach_fds

2020-05-13 Thread Ido Schimmel
On Wed, May 13, 2020 at 11:49:08AM +0200, Christoph Hellwig wrote: > On Wed, May 13, 2020 at 12:29:18PM +0300, Ido Schimmel wrote: > > On Mon, May 11, 2020 at 01:59:12PM +0200, Christoph Hellwig wrote: > > > Factor out two helpes to keep the code tidy. > > > > > &

Re: [PATCH 2/3] net/scm: cleanup scm_detach_fds

2020-05-13 Thread Ido Schimmel
On Mon, May 11, 2020 at 01:59:12PM +0200, Christoph Hellwig wrote: > Factor out two helpes to keep the code tidy. > > Signed-off-by: Christoph Hellwig Christoph, After installing net-next (fb9f2e92864f) on a Fedora 32 machine I cannot ssh to it. Bisected it to this commit [1]. When trying to

Re: [ipv6] d5382fef70: kernel_selftests.net.fib_tests.sh.fail

2019-09-11 Thread Ido Schimmel
On Wed, Sep 11, 2019 at 05:51:21PM +0800, kernel test robot wrote: > FYI, we noticed the following commit (built with gcc-7): > > commit: d5382fef70ce273608d6fc652c24f075de3737ef ("ipv6: Stop sending > in-kernel notifications for each nexthop") >

Re: [PATCH] lib/Kconfig: fix OBJAGG in lib/ menu structure

2019-09-10 Thread Ido Schimmel
416d0a ("lib: introduce initial implementation of object > aggregation manager") > Signed-off-by: Randy Dunlap > Cc: Jiri Pirko > Cc: Ido Schimmel > Cc: David S. Miller Tested-by: Ido Schimmel Thanks!

Re: [PATCH v3 1/2] net: core: Notify on changes to dev->promiscuity.

2019-09-08 Thread Ido Schimmel
On Tue, Sep 03, 2019 at 10:14:12AM +0200, Allan W. Nielsen wrote: > The 09/03/2019 09:13, Ido Schimmel wrote: > > On Mon, Sep 02, 2019 at 07:42:31PM +0200, Allan W. Nielsen wrote: > > With these patches applied I assume I will see the following traffic > > when r

Re: [PATCH v3 1/2] net: core: Notify on changes to dev->promiscuity.

2019-09-03 Thread Ido Schimmel
On Mon, Sep 02, 2019 at 07:42:31PM +0200, Allan W. Nielsen wrote: > I have been reading through this thread several times and I still do not get > it. Allan, I kept thinking about this and I want to make sure that I correctly understand the end result. With these patches applied I assume I

Re: [PATCH v3 1/2] net: core: Notify on changes to dev->promiscuity.

2019-08-31 Thread Ido Schimmel
On Sat, Aug 31, 2019 at 09:35:56PM +0200, Andrew Lunn wrote: > > Also, what happens when I'm running these application without putting > > the interface in promisc mode? On an offloaded interface I would not be > > able to even capture packets addressed to my interface's MAC address. > > Sorry

Re: [PATCH v3 1/2] net: core: Notify on changes to dev->promiscuity.

2019-08-30 Thread Ido Schimmel
On Thu, Aug 29, 2019 at 03:12:01PM -0700, David Miller wrote: > From: Ido Schimmel > Date: Thu, 29 Aug 2019 22:36:13 +0300 > > > I fully agree that we should make it easy for users to capture offloaded > > traffic, which is why I suggested patching libpcap. Add a flag t

Re: [PATCH v3 1/2] net: core: Notify on changes to dev->promiscuity.

2019-08-29 Thread Ido Schimmel
On Thu, Aug 29, 2019 at 08:29:57PM +0200, Andrew Lunn wrote: > > Hi Andrew, > > > > What happens when you run tcpdump on a routed interface without putting > > it in promiscuous mode ('-p')? If it is a pure software switch, then you > > see all unicast packets addressed to your interface's MAC

Re: [PATCH v3 1/2] net: core: Notify on changes to dev->promiscuity.

2019-08-29 Thread Ido Schimmel
On Thu, Aug 29, 2019 at 04:37:32PM +0200, Andrew Lunn wrote: > > Wait, I believe there has been some misundestanding. Promisc mode is NOT > > about getting packets to the cpu. It's about setting hw filters in a way > > that no rx packet is dropped. > > > > If you want to get packets from the hw

Re: [net] devlink: Add method for time-stamp on reporter's dump

2019-08-22 Thread Ido Schimmel
On Thu, Aug 22, 2019 at 04:06:35PM +0200, Andrew Lunn wrote: > On Thu, Aug 22, 2019 at 11:17:51AM +0300, Aya Levin wrote: > > When setting the dump's time-stamp, use ktime_get_real in addition to > > jiffies. This simplifies the user space implementation and bypasses > > some inconsistent behavior

Re: linux-next: Tree for Aug 19 (drivers/net/netdevsim/dev.o)

2019-08-20 Thread Ido Schimmel
On Mon, Aug 19, 2019 at 09:16:13PM -0700, Randy Dunlap wrote: > On 8/19/19 2:18 AM, Stephen Rothwell wrote: > > Hi all, > > > > Changes since 20190816: > > > > on x86_64: > # CONFIG_INET is not set > > ld: drivers/net/netdevsim/dev.o: in function `nsim_dev_trap_report_work': >

Re: [PATCH v2 net-next] netdevsim: Fix build error without CONFIG_INET

2019-08-20 Thread Ido Schimmel
end_check to avoid > dependencies on CONFIG_INET. > > Reported-by: Hulk Robot > Fixes: da58f90f11f5 ("netdevsim: Add devlink-trap support") > Signed-off-by: YueHaibing Reviewed-by: Ido Schimmel Tested-by: Ido Schimmel Thanks for fixing this in my stead!

Re: linux-next: Tree for Aug 19 (drivers/net/netdevsim/dev.o)

2019-08-20 Thread Ido Schimmel
On Mon, Aug 19, 2019 at 09:16:13PM -0700, Randy Dunlap wrote: > On 8/19/19 2:18 AM, Stephen Rothwell wrote: > > Hi all, > > > > Changes since 20190816: > > > > on x86_64: > # CONFIG_INET is not set > > ld: drivers/net/netdevsim/dev.o: in function `nsim_dev_trap_report_work': >

Re: [PATCH net-next] netdevsim: Fix build error without CONFIG_INET

2019-08-20 Thread Ido Schimmel
On Mon, Aug 19, 2019 at 02:59:00PM -0700, Jakub Kicinski wrote: > On Mon, 19 Aug 2019 20:08:25 +0800, YueHaibing wrote: > > If CONFIG_INET is not set, building fails: > > > > drivers/net/netdevsim/dev.o: In function `nsim_dev_trap_report_work': > > dev.c:(.text+0x67b): undefined reference to

Re: [PATCH net-next] netdevsim: Fix build error without CONFIG_INET

2019-08-19 Thread Ido Schimmel
dependency to fix this. > > Reported-by: Hulk Robot > Fixes: da58f90f11f5 ("netdevsim: Add devlink-trap support") > Signed-off-by: YueHaibing Reviewed-by: Ido Schimmel Thanks for the patch. > --- > drivers/net/Kconfig | 2 +- > 1 file changed, 1 insertion(+), 1 de

Re: [PATCH net-next] selftests: mlxsw: Fix typo in qos_mc_aware.sh

2019-07-24 Thread Ido Schimmel
On Thu, Jul 25, 2019 at 12:29:51AM +0900, Masanari Iida wrote: > This patch fix some spelling typo in qos_mc_aware.sh > > Signed-off-by: Masanari Iida > Acked-by: Randy Dunlap Reviewed-by: Ido Schimmel

Re: [PATCH] selftests: mlxsw: Fix typo in qos_mc_aware.sh

2019-07-24 Thread Ido Schimmel
On Wed, Jul 24, 2019 at 11:15:54PM +0900, Masanari Iida wrote: > This patch fixes some spelling typo in qos_mc_aware.sh > > Signed-off-by: Masanari Iida Thanks for the patch, but it should go through the networking tree. Please resubmit to net...@vger.kernel.org and make sure subject prefix is

Re: general protection fault in call_fib6_multipath_entry_notifiers

2019-06-19 Thread Ido Schimmel
z?x=120c9e11a0 > C reproducer: https://syzkaller.appspot.com/x/repro.c?x=120c3d21a0 > > The bug was bisected to: > > commit ebee3cad835f7fe7250213225cf6d62c7cf3b2ca > Author: Ido Schimmel > Date: Tue Jun 18 15:12:48 2019 + > > ipv6: Add IPv6 multipat

Re: [PATCH] mlxsw: spectrum_ptp: fix 32-bit build

2019-06-19 Thread Ido Schimmel
On Wed, Jun 19, 2019 at 03:31:20PM +0200, Arnd Bergmann wrote: > On 32-bit architectures, we cannot easily device 64-bit numbers: > > ERROR: "__aeabi_uldivmod" > [drivers/net/ethernet/mellanox/mlxsw/mlxsw_spectrum.ko] undefined! > > Use do_div() to annotate the fact that we know this is an >

Re: [PATCH 2/2] PM / arch: x86: MSR_IA32_ENERGY_PERF_BIAS sysfs interface

2019-05-09 Thread Ido Schimmel
On Thu, May 09, 2019 at 07:18:28PM +0200, Rafael J. Wysocki wrote: > So does the patch below fix it for you? Yes. Thanks for the fix. Feel free to add my tag: Tested-by: Ido Schimmel

Re: [PATCH 2/2] PM / arch: x86: MSR_IA32_ENERGY_PERF_BIAS sysfs interface

2019-05-09 Thread Ido Schimmel
On Thu, Mar 21, 2019 at 11:20:17PM +0100, Rafael J. Wysocki wrote: > +static struct attribute *intel_epb_attrs[] = { > + _attr_energy_perf_bias.attr, > + NULL > +}; > + > +static const struct attribute_group intel_epb_attr_group = { > + .name = power_group_name, > + .attrs =

Re: [PATCH] bitops.h: sanitize rotate primitives

2019-04-11 Thread Ido Schimmel
fects > the small minority of users that don't pass constants. > > Due to integer promotions, ro[lr]8 were already well-defined for > shifts in [0, 8], and ro[lr]16 were mostly well-defined for shifts in > [0, 16] (only mostly - u16 gets promoted to _signed_ int, so if bit 15 > is

Re: [PATCH net-next v3 0/8] net: Remove switchdev_ops

2019-02-27 Thread Ido Schimmel
On Wed, Feb 27, 2019 at 11:44:24AM -0800, Florian Fainelli wrote: > Hi all, > > This patch series completes the removal of the switchdev_ops by > converting switchdev_port_attr_set() to use either the blocking > (process) or non-blocking (atomic) notifier since we typically need to > deal with

Re: [PATCH net-next v3 8/8] net: Remove switchdev_ops

2019-02-27 Thread Ido Schimmel
ce structure. > > Signed-off-by: Florian Fainelli Reviewed-by: Ido Schimmel

Re: [PATCH net-next v3 7/8] net: switchdev: Replace port attr set SDO with a notification

2019-02-27 Thread Ido Schimmel
ting from atomic context, we deal with that one > specifically. > > Drop __switchdev_port_attr_set() and update switchdev_port_attr_set() > likewise. > > Signed-off-by: Florian Fainelli Reviewed-by: Ido Schimmel One small nit that you can address in a follow-up: > @@

Re: [PATCH net-next v2 8/8] net: Remove switchdev_ops

2019-02-27 Thread Ido Schimmel
On Tue, Feb 26, 2019 at 05:14:27PM -0800, Florian Fainelli wrote: > diff --git a/drivers/net/ethernet/mellanox/mlxsw/spectrum.c > b/drivers/net/ethernet/mellanox/mlxsw/spectrum.c > index b00f6f74f91a..995426ea9a43 100644 > --- a/drivers/net/ethernet/mellanox/mlxsw/spectrum.c > +++

Re: [PATCH net-next 7/8] net: switchdev: Replace port attr set SDO with a notification

2019-02-27 Thread Ido Schimmel
On Mon, Feb 25, 2019 at 11:47:12AM -0800, Florian Fainelli wrote: > On 2/25/19 1:49 AM, Ido Schimmel wrote: > > On Sun, Feb 24, 2019 at 08:47:27AM -0800, Florian Fainelli wrote: > >> Le 2/23/19 à 2:32 AM, Ido Schimmel a écrit : > >>> On Fri, Feb 22, 2019 at 03:59:25PM

Re: [PATCH net-next v2 8/8] net: Remove switchdev_ops

2019-02-27 Thread Ido Schimmel
ce structure. > > Signed-off-by: Florian Fainelli Reviewed-by: Ido Schimmel

Re: [PATCH net-next v2 4/8] mlxsw: spectrum_switchdev: Handle SWITCHDEV_PORT_ATTR_SET

2019-02-27 Thread Ido Schimmel
SET and utilize the switchdev_handle_port_attr_set() > to handle stacking of devices. > > Signed-off-by: Florian Fainelli Reviewed-by: Ido Schimmel

Re: [PATCH net-next v2 1/8] switchdev: Add SWITCHDEV_PORT_ATTR_SET

2019-02-27 Thread Ido Schimmel
On Tue, Feb 26, 2019 at 05:14:20PM -0800, Florian Fainelli wrote: > In preparation for allowing switchdev enabled drivers to veto specific > attribute settings from within the context of the caller, introduce a > new switchdev notifier type for port attributes. > > Suggested-b

Re: [PATCH net-next v2 7/8] net: switchdev: Replace port attr set SDO with a notification

2019-02-27 Thread Ido Schimmel
On Tue, Feb 26, 2019 at 05:14:26PM -0800, Florian Fainelli wrote: > diff --git a/net/bridge/br_switchdev.c b/net/bridge/br_switchdev.c > index af57c4a2b78a..b7988d49d708 100644 > --- a/net/bridge/br_switchdev.c > +++ b/net/bridge/br_switchdev.c > @@ -67,12 +67,17 @@ int

Re: [PATCH net-next] mlxsw: spectrum: acl: Use struct_size() in kzalloc()

2019-02-25 Thread Ido Schimmel
uct_size() helper: > > instance = kzalloc(struct_size(instance, entry, count), GFP_KERNEL) > > Notice that, in this case, variable alloc_size is not necessary, hence > it is removed. > > This code was detected with the help of Coccinelle. > > Signed-off-by: Gustavo A. R. Silva Reviewed-by: Ido Schimmel Thanks

Re: [PATCH net-next] mlxsw: spectrum: remove set but not used variable 'autoneg_status'

2019-02-25 Thread Ido Schimmel
ng: > variable 'autoneg_status' set but not used [-Wunused-but-set-variable] > > It's not used since commit 475b33cb66c9 ("mlxsw: spectrum: Remove unsupported > eth_proto_lp_advertise field in PTYS") > > Signed-off-by: YueHaibing Reviewed-by: Ido Schimmel Thanks!

  1   2   >