From: Andrew Lunn <andrew@lunn.ch>
To: Chris Packham <chris.packham@alliedtelesis.co.nz>
Cc: "Luiz Angelo Daros de Luca" <luizluca@gmail.com>,
"Linus Walleij" <linus.walleij@linaro.org>,
"alsi@bang-olufsen.dk" <alsi@bang-olufsen.dk>,
"Florian Fainelli" <f.fainelli@gmail.com>,
"olteanv@gmail.com" <olteanv@gmail.com>,
"Marek Behún" <kabel@kernel.org>,
"ericwouds@gmail.com" <ericwouds@gmail.com>,
"David Miller" <davem@davemloft.net>,
"Eric Dumazet" <edumazet@google.com>,
"kuba@kernel.org" <kuba@kernel.org>,
"Paolo Abeni" <pabeni@redhat.com>,
"justinstitt@google.com" <justinstitt@google.com>,
"rmk+kernel@armlinux.org.uk" <rmk+kernel@armlinux.org.uk>,
netdev <netdev@vger.kernel.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
"sander@svanheule.net" <sander@svanheule.net>
Subject: Re: net: dsa: Realtek switch drivers
Date: Tue, 2 Jul 2024 04:50:44 +0200 [thread overview]
Message-ID: <c19eb8d0-f89b-4909-bf14-dfffcdc7c1a6@lunn.ch> (raw)
In-Reply-To: <b15b15ce-ae24-4e04-83ab-87017226f558@alliedtelesis.co.nz>
> 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
next prev parent reply other threads:[~2024-07-02 2:51 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-06-14 1:49 Chris Packham
2024-06-14 6:48 ` Linus Walleij
2024-06-14 21:36 ` Luiz Angelo Daros de Luca
2024-06-16 21:14 ` Chris Packham
2024-07-02 2:09 ` Chris Packham
2024-07-02 2:50 ` Andrew Lunn [this message]
2024-07-03 2:39 ` Chris Packham
2024-07-03 3:39 ` Andrew Lunn
2024-07-08 14:14 ` Vladimir Oltean
2024-07-03 7:59 ` Linus Walleij
2024-07-03 20:31 ` Luiz Angelo Daros de Luca
2024-07-08 14:23 ` Vladimir Oltean
2024-07-08 20:42 ` Chris Packham
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=c19eb8d0-f89b-4909-bf14-dfffcdc7c1a6@lunn.ch \
--to=andrew@lunn.ch \
--cc=alsi@bang-olufsen.dk \
--cc=chris.packham@alliedtelesis.co.nz \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=ericwouds@gmail.com \
--cc=f.fainelli@gmail.com \
--cc=justinstitt@google.com \
--cc=kabel@kernel.org \
--cc=kuba@kernel.org \
--cc=linus.walleij@linaro.org \
--cc=linux-kernel@vger.kernel.org \
--cc=luizluca@gmail.com \
--cc=netdev@vger.kernel.org \
--cc=olteanv@gmail.com \
--cc=pabeni@redhat.com \
--cc=rmk+kernel@armlinux.org.uk \
--cc=sander@svanheule.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®