lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date:   Tue, 28 Jul 2020 19:40:24 +0000
From:   Saeed Mahameed <saeedm@...lanox.com>
To:     "gerlitz.or@...il.com" <gerlitz.or@...il.com>,
        Ron Diskin <rondi@...lanox.com>
CC:     Roi Dayan <roid@...lanox.com>,
        "davem@...emloft.net" <davem@...emloft.net>,
        "kuba@...nel.org" <kuba@...nel.org>,
        Moshe Shemesh <moshe@...lanox.com>,
        "netdev@...r.kernel.org" <netdev@...r.kernel.org>
Subject: Re: [net 11/12] net/mlx5e: Modify uplink state on interface up/down

On Tue, 2020-07-28 at 13:24 +0300, Or Gerlitz wrote:
> On Tue, Jul 28, 2020 at 12:16 PM Saeed Mahameed <saeedm@...lanox.com>
> wrote:
> > From: Ron Diskin <rondi@...lanox.com>
> > 
> > When setting the PF interface up/down, notify the firmware to
> > update
> > uplink state via MODIFY_VPORT_STATE
> 
> How this relates to e-switching? the patch touches the e-switch code
> but I don't see mentioning of that in the change-log..
> 

see below "uplink port" and "VF" these terms are only used in with e-
switching..

> > This behavior will prevent sending traffic out on uplink port when
> > PF is
> > down, such as sending traffic from a VF interface which is still
> > up.
> > Currently when calling mlx5e_open/close(), the driver only sends
> > PAOS
> > command to notify the firmware to set the physical port state to
> > up/down, however, it is not sufficient. When VF is in "auto" state,
> > it
> 
> "auto" is nasty concept that applies only to legacy mode. However,
> the patch
> touches the switchdev mode (representors) code, please explain...
> 

"AUTO" is also mlx5 concept which is default by FW.

Prior to this patch the uplink state was never touched by driver so now
as it can be overwritten by the PF driver on legacy/single nic mode,
when switching to switchdev mode we need to bring back the FW default
value "AUTO".

Will add this to the commit message.

> > follows the uplink state, which was not updated on
> > mlx5e_open/close()
> > before this patch.
> > 
> > Fixes: 63bfd399de55 ("net/mlx5e: Send PAOS command on interface
> > up/down")
> > Signed-off-by: Ron Diskin <rondi@...lanox.com>
> > Reviewed-by: Roi Dayan <roid@...lanox.com>
> > Reviewed-by: Moshe Shemesh <moshe@...lanox.com>

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ