From: Jakub Kicinski <kuba@kernel.org>
To: "Maciej Żenczykowski" <maze@google.com>
Cc: Florian Fainelli <f.fainelli@gmail.com>,
Linux Network Development Mailing List <netdev@vger.kernel.org>,
"David S . Miller" <davem@davemloft.net>,
Eric Dumazet <edumazet@google.com>,
Paolo Abeni <pabeni@redhat.com>,
"Kory Maincent (Dent Project)" <kory.maincent@bootlin.com>,
Ahmed Zaki <ahmed.zaki@intel.com>,
Edward Cree <ecree.xilinx@gmail.com>,
Yuyang Huang <yuyanghuang@google.com>,
Lorenzo Colitti <lorenzo@google.com>
Subject: Re: [PATCH net-next] ethtool: add tunable api to disable various firmware offloads
Date: Fri, 16 Aug 2024 10:51:26 -0700 [thread overview]
Message-ID: <20240816105126.080acb51@kernel.org> (raw)
In-Reply-To: <CANP3RGdMEYrbHWMEb-gTUgNRwje66FTihccVgrg6s4z0c0a+Kw@mail.gmail.com>
On Thu, 15 Aug 2024 17:49:42 -0700 Maciej Żenczykowski wrote:
> I am of course in a very hard position here, as I don't own any
> drivers/firmware - AFAIK even Pixel's wifi/cell drivers aren't Google
> owned/maintained, but rather Broadcom/Synaptics/Qualcomm/Mediatek/etc
> as appropriate...
>
> I do know there is a need for an api of this sort (not necessarily
> exactly this patch though), and if we merge something (sane :-) ) into
> Linux, we can then backport that (either to LTS or just to ACK), and
> then we (as in Google) can require implementations (for new
> hardware/drivers) in future versions of Android...
That's why I'm suggesting the LLDP in the Intel Ethernet driver.
Others may disagree but for me it's close enough to merge a "enable
L2 protocol agent" sort of an API. We don't need to have upstream users
for each proto. Bigger cause of sadness is that the API IIUC is a part
of a deprecation path, IOW once APF comes, it will become dead weight.
Luckily it's not a lot of code.
> Presumably that would result in implementations in many drivers,
> though not necessarily any in-tree ones (I have no idea what the
> current state of in-vs-out-of-tree drivers is wrt. Android wifi/cell
> hardware)
>
> This is very much a chicken-and-egg problem though. As long as there
> is no 'public' API, the default approach is for per-vendor or even
> per-chip / per-driver custom apis, hidden behind Android HALs. For
> example we have such an Android HAL api for disabling ND offload on at
> least one of our devices. Of course the HAL itself is backed by
> calling into the driver - just over some driver specific netlink...
I wonder if there's anything we can share between APF style offloads
and Jamal's P4 work, if it materializes.
next prev parent reply other threads:[~2024-08-16 17:51 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-08-13 22:33 [PATCH net-next] ethtool: add tunable api to disable various firmware offloads Maciej Żenczykowski
2024-08-15 0:32 ` Jakub Kicinski
2024-08-15 3:08 ` Florian Fainelli
2024-08-15 15:45 ` Jakub Kicinski
2024-08-15 16:38 ` Florian Fainelli
2024-08-16 0:49 ` Maciej Żenczykowski
2024-08-16 17:51 ` Jakub Kicinski [this message]
2024-08-15 16:13 ` Nelson, Shannon
2024-08-16 0:55 ` Maciej Żenczykowski
2024-08-16 1:03 ` Nelson, Shannon
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=20240816105126.080acb51@kernel.org \
--to=kuba@kernel.org \
--cc=ahmed.zaki@intel.com \
--cc=davem@davemloft.net \
--cc=ecree.xilinx@gmail.com \
--cc=edumazet@google.com \
--cc=f.fainelli@gmail.com \
--cc=kory.maincent@bootlin.com \
--cc=lorenzo@google.com \
--cc=maze@google.com \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=yuyanghuang@google.com \
/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;
as well as URLs for NNTP newsgroup(s).