From: David Laight <david.laight.linux@gmail.com>
To: Xin Long <lucien.xin@gmail.com>
Cc: Benjamin Poirier <benjamin.poirier@gmail.com>,
Christoph Hellwig <hch@lst.de>,
marcelo.leitner@gmail.com, davem@davemloft.net,
edumazet@google.com, kuba@kernel.org, pabeni@redhat.com,
horms@kernel.org, linux-sctp@vger.kernel.org,
netdev@vger.kernel.org
Subject: Re: [PATCH] sctp: mark sctp_do_peeloff static
Date: Wed, 28 May 2025 13:04:45 +0100 [thread overview]
Message-ID: <20250528130445.391f90ca@pumpkin> (raw)
In-Reply-To: <CADvbK_d_3YQh0s_aOts3YiyHu_uxUxO4okCZDdi=+F4xbVnmKg@mail.gmail.com>
On Tue, 27 May 2025 10:23:37 -0400
Xin Long <lucien.xin@gmail.com> wrote:
> On Mon, May 26, 2025 at 3:38 PM Benjamin Poirier
> <benjamin.poirier@gmail.com> wrote:
> >
> > On 2025-05-26 14:25 -0400, Xin Long wrote:
> > > On Mon, May 26, 2025 at 1:47 AM Christoph Hellwig <hch@lst.de> wrote:
> > > >
> > > > sctp_do_peeloff is only used inside of net/sctp/socket.c,
> > > > so mark it static.
...
> > I don't see a problem with marking sctp_do_peeloff() static again.
> >
> > > While there’s no known in-tree usage beyond SCTP itself, we can’t be
> > > sure whether this function has been used by out-of-tree kernel modules.
> >
> > The mainline kernel does not need to cater to out-of-tree users.
> Thank you for chiming in.
>
> I didn't know it was exported for the in-tree kernel dlm, and this
> patch should be applied to net-next.
The most likely module use would be bpf or io_uring.
But they'd probably end up using the sockopt interface (the same
as applications).
Mind you 'peeloff' is all a strange idea that seems (to me) solving
a problem that has nothing at all to do with sctp (as a protocol).
The entire 'many-to-one' seems to be there to avoid the overhead
of a lot of sockets when the data data is low.
I'm sure epoll() solves the actual problem.
David
next prev parent reply other threads:[~2025-05-28 12:04 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-05-26 5:47 [PATCH] sctp: mark sctp_do_peeloff static Christoph Hellwig
2025-05-26 18:25 ` Xin Long
2025-05-26 19:38 ` Benjamin Poirier
2025-05-27 14:23 ` Xin Long
2025-05-28 12:04 ` David Laight [this message]
2025-05-28 1:40 ` patchwork-bot+netdevbpf
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=20250528130445.391f90ca@pumpkin \
--to=david.laight.linux@gmail.com \
--cc=benjamin.poirier@gmail.com \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=hch@lst.de \
--cc=horms@kernel.org \
--cc=kuba@kernel.org \
--cc=linux-sctp@vger.kernel.org \
--cc=lucien.xin@gmail.com \
--cc=marcelo.leitner@gmail.com \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.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).