[PATCH v3 2/2] iproute2: add support for cpu set
Daniel Golle
daniel at makrotopia.org
Mon Feb 21 04:53:20 PST 2022
On Mon, Feb 21, 2022 at 03:27:19PM +0300, Arınç ÜNAL wrote:
> On 21/02/2022 05:30, Daniel Golle wrote:
> > On Mon, Feb 21, 2022 at 01:37:10AM +0100, Ansuel Smith wrote:
> > > >
> > > > On Thu, Feb 03, 2022 at 01:44:12AM +0100, Ansuel Smith wrote:
> > > > > Add support for cpu set useful to set CPU port for dsa devices.
> > > >
> > > > Please also document the newly added 'cpu' parameter in the command-
> > > > line output -- the manpage isn't even installed/available for OpenWrt
> > > > users.
> > > >
> > >
> > > Should I wait for other review or should I send v3?
> >
> > Give it a test-run and make sure
> > ip link XXX set cpu YYY
> > actually works -- when I tried it gave me
> > RTNETLINK answers: Not supported
> > eventhough the DSA driver does set the .port_change_cpu_port
> > function. If it works for you with whatever DSA driver you are trying
> > with, I will figure why it didn't work on MT7530...
>
> MT7530 DSA driver does not support port 5 as the CPU port if that's what you
> tried.
> https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/devicetree/bindings/net/dsa/mt7530.txt#n63
There is a patch by @LGA1150 adding that:
https://github.com/frank-w/BPI-R2-4.14/commit/47499f9ef4dc6a0888329412347c539ef1d4a514
I works quite nicely with their tree, I also got it running before when
using the device-tree default-cpu hack we now dropped:
https://github.com/frank-w/BPI-R2-4.14/commit/a740207fdbc4cc4c29e74d0735a180d58197f252
More information about the openwrt-devel
mailing list