[From nobody Thu Jun 25 05:55:49 2020
Received: from mail-ed1-x52f.google.com ([2a00:1450:4864:20::52f])
 by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux))
 id 1jMqY2-0003xW-3E
 for openwrt-devel@lists.openwrt.org; Fri, 10 Apr 2020 10:06:07 +0000
Received: by mail-ed1-x52f.google.com with SMTP id p6so1819201edu.10
 for &lt;openwrt-devel@lists.openwrt.org&gt;; Fri, 10 Apr 2020 03:06:02 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=googlemail.com; s=20161025;
 h=mime-version:references:in-reply-to:from:date:message-id:subject:to
 :cc:content-transfer-encoding;
 bh=QVc09CCZwf/+AYovOkuXS0Fumzki5qJa5B7LCbekfIE=;
 b=pzNn2CNCI1B0j+4ycPH+woMadP0uhZaQRC1V6I97r2+9DDMxZ5urkpTh8OXLnyIc91
 Ny9TxLlXA5uxAWedW8WqfbsMyLu0X8Pk8yyFrvQc/cYgPal2YZ2EQ0292ZLABfu3aVND
 tFDPqhSO8rFBUCJVuAdLOYiDC+4ciiIvlxA33cUICh9j/tzY1tMnuCdtbDWb6vVGv6IM
 Zcn5qhj1QUD2GFg5huPQtvRDbgIenhjxmIXVXVOupKQOCac2wCMJEJ2qB7y+/xTWwNxz
 UOpPs19m/puI76EIGQjL/YsBCge/9A1PAkCvt1G6Y6WG0yAJVtj8M21lHxHNuF77qo3P
 QYBw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:mime-version:references:in-reply-to:from:date
 :message-id:subject:to:cc:content-transfer-encoding;
 bh=QVc09CCZwf/+AYovOkuXS0Fumzki5qJa5B7LCbekfIE=;
 b=DpVjIl2jtpy2T/607gLykyKgQvIru55XCDvuzAxdgpwRzGnkuPbdv0c4FbZfPbifCY
 SjEbB77TdAKYPythF2MGCuVzkown4v+cQHlpig/nEwDXodMDGuvHGkOsw8UcOOqC3xMq
 l0VxVMoqeXGDIZVVhggQulomuvfnhQyRQObVjhn9pP+97M7JPdW3JKyN3goM5FCFhUKB
 Ki1GAOOLQtHn75iIzeGg2NbhvrjKUTD74e4v7SiYCpB9L/ISyeEBm9GKLRg5xIgrBn/j
 uk5I1kwwdgH0aBcGzZUa65ydyBhzyw3csoL2IeX8rASd728LWaHa8vbFnW39ljIZFFtH
 CgqQ==
X-Gm-Message-State: AGi0Pua1dOWxYkVrhYiza5SnKS3cHqt0qeeZOgS/hVxIz3IJtFT29H5c
 +aUZDJX1JS4/U3RP4gVpJIsPT+aLjWuV9sN81pgJOYRaZ+o=
X-Google-Smtp-Source: APiQypISrcxie4xrK4Isu++DKfxz7Hr4aiD+Jtqmb3DG3vzn5e9Rrn7pmBpq6O2dJHf9U2wlBcFaNqKJD0JuyrYf8aM=
X-Received: by 2002:a50:fe05:: with SMTP id f5mr1587713edt.338.1586513161248; 
 Fri, 10 Apr 2020 03:06:01 -0700 (PDT)
MIME-Version: 1.0
References: &lt;f2b0d5ae-ddfb-e9d5-897c-8ff4dbfb2d8c@aboehler.at&gt;
In-Reply-To: &lt;f2b0d5ae-ddfb-e9d5-897c-8ff4dbfb2d8c@aboehler.at&gt;
From: Martin Blumenstingl &lt;martin.blumenstingl@googlemail.com&gt;
Date: Fri, 10 Apr 2020 12:05:50 +0200
Message-ID: &lt;CAFBinCDN8zDr5_0qdmp_6-0yuv2XexppEz0AsMySfULw2c+iqw@mail.gmail.com&gt;
Subject: Re: [OpenWrt-Devel] [RFC][lantiq] Custom PHY and ethernet/switch
 driver
To: =?UTF-8?Q?Andreas_B=C3=B6hler?= &lt;dev@aboehler.at&gt;
Cc: openwrt-devel@lists.openwrt.org
Content-Type: text/plain; charset=&quot;UTF-8&quot;
Content-Transfer-Encoding: quoted-printable
X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 
X-CRM114-CacheID: sfid-20200410_030606_141117_A494F8CB 
X-CRM114-Status: GOOD (  14.70  )
X-Spam-Score: -0.2 (/)
X-Spam-Report: SpamAssassin version 3.4.4 on bombadil.infradead.org summary:
 Content analysis details:   (-0.2 points)
 pts rule name              description
 ---- ---------------------- --------------------------------------------------
 -0.0 RCVD_IN_DNSWL_NONE     RBL: Sender listed at https://www.dnswl.org/,
 no trust [2a00:1450:4864:20:0:0:0:52f listed in]
 [list.dnswl.org]
 -0.0 SPF_PASS               SPF: sender matches SPF record
 0.0 FREEMAIL_FROM          Sender email is commonly abused enduser mail
 provider [martin.blumenstingl[at]googlemail.com]
 0.0 SPF_HELO_NONE          SPF: HELO does not publish an SPF Record
 0.1 DKIM_SIGNED            Message has a DKIM or DK signature, not necessarily
 valid
 -0.1 DKIM_VALID_AU          Message has a valid DKIM or DK signature from
 author's domain
 -0.1 DKIM_VALID_EF          Message has a valid DKIM or DK signature from
 envelope-from domain
 -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature

Hi Andreas,

On Sat, Mar 28, 2020 at 11:27 AM Andreas B=C3=B6hler &lt;dev@aboehler.at&gt; wrot=
e:
[...]
&gt; What is the current state in switching to the upstream DSA switch driver?
&gt; Can both drivers be handled, i.e. DSA for newly added devices and the
&gt; legacy driver for older devices?
&gt; Which driver should I target first, the legacy xrx200 or the DSA driver?
personally I would like to switch to the upstream DSA driver as soon
as possible.
this reduced the maintenance overhead when updating kernel versions

there's also some people (see recent mails) working on ARX300 support.
I fear that they may need to change the Ethernet driver and having an
out-of-tree driver just means that the work has to be done twice.

on IRC I asked about the DSA migration as well (that was some weeks ago).
here's the relevant conversation:
&lt;xdarklight&gt; Hauke: how about switching to the DSA driver for 5.4? I
don't want to mess with the GPHY loader and the out-of-tree Ethernet
driver
&lt;Hauke&gt; xdarklight: I would like to swithc to the DSA driver
&lt;Hauke&gt; but we probably need some migration path
&lt;xdarklight&gt; Hauke: maybe we can share a TODO-list somewhere so we can
write down everything that comes to our mind and then work on it
one-by-one
&lt;jow&gt; Hauke: I think it makes sense to switch to dsa without migration
&lt;pkgadd&gt; the wish for migration scripts exists for at least two years
(on mvebu and ipq806x) - and it's a good idea in principle, but
/etc/config/network is complex - and may be very complex at times (and
lantiq with the VLAN tagging necessary for multiple xDSL ISPs is not
an exception to that rule), so making migration support a requirement
probably ends up in a self-fullfilling prophecy to never switch to
&lt;pkgadd&gt; DSA (just because writing these scripts in a way that makes
them remotely safe to use is somewhere between very hard and close to
impossible)
&lt;KanjiMonster&gt; we do need to some enhance the existing for defining
vlan membership, pvids etc with vlan_aware bridges
&lt;jow&gt; yes
&lt;jow&gt; and this time we should define how the config should look like,
then implement it
&lt;jow&gt; to avoid inconsistencies and poor config layout like with
swconfig in the past
&lt;mangix&gt; Hauke: I suggest switching to DSA without migration as well.
The biggest problem is the one CPU port issue. Needs a patch.

so to me it seems that the swconfig to DSA migration is needed by
Lantiq and multiple other targets as well (mvebu and ipq806x are
listed above, but I think also ath79 is affected due to some qca8k
switches for which OpenWrt is using an out-of-tree driver)
unfortunately I have zero experience in that area and no insight into
the requirements needed for this migration (for me personally
resetting the network config to defaults when upgrading to a DSA based
OpenWrt version would work perfectly fine)


Martin

]