Thread (13 messages) 13 messages, 5 authors, 2024-07-08

Re: net: dsa: Realtek switch drivers

From: Andrew Lunn <andrew@lunn.ch>
Date: 2024-07-02 02:51:06
Also in: lkml

What would I be loosing if I don't use the DSA infrastructure? I got kind of
hung up at the point where it really wanted a CPU port and I just couldn't
provide a nice discrete NIC.
 
DSA gives you a wrapper which handles some common stuff, which you
will end up implementing if you do a pure switchdev driver. Mostly
translating netdev to port index. The tagging part of DSA does not
apply if you have DMA per user port, so you don't loose anything
there.  I guess you cannot cascade multiple switches, so the D in DSA
also does not apply. You do lose out on tcpdump support, since you
don't have a conduit interface which all traffic goes through.

But you should not try to impose DSA if it does not fit. There are
'simple' pure switchdev drivers, you don't need to try to understand
the mellanox code. Look at the microchip drivers for something to
copy.

	Andrew
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help