From: Jiri Pirko <jiri@resnulli.us>
To: "Lucero Palau, Alejandro" <alejandro.lucero-palau@amd.com>
Cc: "netdev@vger.kernel.org" <netdev@vger.kernel.org>
Subject: Re: devink dpipe implementation
Date: Mon, 6 Mar 2023 09:25:08 +0100 [thread overview]
Message-ID: <ZAWjZJ19I/I3N1jk@nanopsycho> (raw)
In-Reply-To: <DM6PR12MB42021C6149409933958BE777C1AF9@DM6PR12MB4202.namprd12.prod.outlook.com>
Mon, Feb 27, 2023 at 01:05:14PM CET, alejandro.lucero-palau@amd.com wrote:
>Hi,
>
>I'm looking at the devlink dpipe functionality for considering using it
>with AMD ef100.
What is your goal?
>
>There is just one driver using it, Mellanox spectrum switch, as a
>reference apart from the devlink core code.
>
>I wonder if due to this limited usage the implementation is not covering
>other needs or maybe I'm missing something.
>
>For example:
>
>enum devlink_dpipe_match_type {
> DEVLINK_DPIPE_MATCH_TYPE_FIELD_EXACT,
>};
>
>It seems obvious other matches should be supported, at least for
>supporting matching based on masks. Is this because spectrum switch does
>only have BCAMs?
dpipe exposes ASIC pipeline to the user to provide visibility. In case
of mlxsw, there are only some fragments exposed. There the exact match
is enough.
>
>
>Other examples:
>
>enum devlink_dpipe_field_ethernet_id {
> DEVLINK_DPIPE_FIELD_ETHERNET_DST_MAC,
>};
>
>enum devlink_dpipe_field_ipv4_id {
> DEVLINK_DPIPE_FIELD_IPV4_DST_IP,
>};
>
>Again, I guess other fields should be support.
>
>If this is because only that needed by the only driver using it was
>added, I guess using dpipe for ef100 would need to add more support to
>the devlink dpipe core.
Sure.
>
>Can someone clarify this to me?
>
>Thanks.
>
prev parent reply other threads:[~2023-03-06 8:25 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-02-27 12:05 devink dpipe implementation Lucero Palau, Alejandro
2023-03-06 8:25 ` Jiri Pirko [this message]
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=ZAWjZJ19I/I3N1jk@nanopsycho \
--to=jiri@resnulli.us \
--cc=alejandro.lucero-palau@amd.com \
--cc=netdev@vger.kernel.org \
/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