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] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAK8P3a0hLcNvR0Td1fpu6N0r1Hb7uSq0HPKkF30uCANuDg-SrQ@mail.gmail.com>
Date:   Mon, 2 Aug 2021 22:44:04 +0200
From:   Arnd Bergmann <arnd@...nel.org>
To:     Vladimir Oltean <vladimir.oltean@....com>
Cc:     Simon Horman <simon.horman@...igine.com>,
        "David S. Miller" <davem@...emloft.net>,
        Jakub Kicinski <kuba@...nel.org>,
        Arnd Bergmann <arnd@...db.de>,
        Saeed Mahameed <saeedm@...dia.com>,
        Leon Romanovsky <leon@...nel.org>,
        Jiri Pirko <jiri@...dia.com>, Ido Schimmel <idosch@...dia.com>,
        Ivan Vecera <ivecera@...hat.com>,
        Parav Pandit <parav@...dia.com>,
        Networking <netdev@...r.kernel.org>,
        linux-rdma <linux-rdma@...r.kernel.org>,
        Linux Kernel Mailing List <linux-kernel@...r.kernel.org>,
        "oss-drivers@...igine.com" <oss-drivers@...igine.com>
Subject: Re: [PATCH] switchdev: add Kconfig dependencies for bridge

On Mon, Aug 2, 2021 at 10:21 PM Vladimir Oltean <vladimir.oltean@....com> wrote:
>
> On Mon, Aug 02, 2021 at 09:55:20PM +0200, Arnd Bergmann wrote:
> > On Mon, Aug 2, 2021 at 9:05 PM Vladimir Oltean <vladimir.oltean@....com> wrote:
> > >
> > > On Mon, Aug 02, 2021 at 08:29:25PM +0200, Arnd Bergmann wrote:
> > > > If this looks correct to you, I can submit it as a standalone patch.
> > >
> > > I think it's easiest I just ask you to provide a .config that triggers
> > > actual build failures and we can go from there.
> >
> > This one is with an arm64 allmodconfig, plus
> >
> > CONFIG_PTP_1588_CLOCK=y
> > CONFIG_TI_K3_AM65_CPTS=y
> > CONFIG_TI_K3_AM65_CPSW_NUSS=y
>
> Yeah, ok, I remember now, I saw that TI_CPSW_SWITCHDEV is tristate, and
> incorrectly thought that TI_K3_AM65_CPSW_SWITCHDEV (which is mostly a
> copy-paste job of the main cpsw anyway, makes you cringe that they wrote
> a separate driver for it) is tristate too.

Right.

> The options are either to make TI_K3_AM65_CPSW_SWITCHDEV tristate like
> TI_CPSW_SWITCHDEV is, and to edit the Makefile accordingly to make
> am65-cpsw-switchdev.o part of obj-$(CONFIG_TI_K3_AM65_CPSW_SWITCHDEV),

This probably won't work as this is currently part of the ti-am65-cpsw-nuss.ko
module, so I would assume that it's not easy to separate from the main module.

> or to extend the BRIDGE || BRIDGE=n dependency to TI_K3_AM65_CPSW_NUSS
> which is the direct tristate dependency of CONFIG_TI_K3_AM65_CPSW_SWITCHDEV,

That would work, but it's slightly more heavy-handed than my proposal, as this
prevents TI_K3_AM65_CPSW_NUSS from being built-in when BRIDGE is a module,
even when switchdev support is completely disabled.

> and to make CONFIG_TI_K3_AM65_CPSW_SWITCHDEV simply depend on BRIDGE.

This would not be needed then I think.

       Arnd

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ