Linux RDMA and InfiniBand development
 help / color / mirror / Atom feed
From: "D. Wythe" <alibuda@linux.alibaba.com    >
To: Gerd Bayer <gbayer@linux.ibm.com>
Cc: dust.li@linux.alibaba.com, "D. Wythe" <alibuda@linux.alibaba.com>,
	kgraul@linux.ibm.com, wenjia@linux.ibm.com, jaka@linux.ibm.com,
	ast@kernel.org, daniel@iogearbox.net, andrii@kernel.org,
	martin.lau@linux.dev, pabeni@redhat.com, song@kernel.org,
	sdf@google.com, haoluo@google.com, yhs@fb.com,
	edumazet@google.com, john.fastabend@gmail.com,
	kpsingh@kernel.org, jolsa@kernel.org, guwen@linux.alibaba.com,
	kuba@kernel.org, davem@davemloft.net, netdev@vger.kernel.org,
	linux-s390@vger.kernel.org, linux-rdma@vger.kernel.org,
	bpf@vger.kernel.org
Subject: Re: [PATCH bpf-next v7 3/6] net/smc: Introduce generic hook smc_ops
Date: Wed, 5 Feb 2025 16:02:28 +0800	[thread overview]
Message-ID: <20250205080228.GA57822@j66a10360.sqa.eu95> (raw)
In-Reply-To: <6685f9266702dcf0a3123f9be7c1c0200a5f4032.camel@linux.ibm.com>

On Thu, Jan 23, 2025 at 11:15:21AM +0100, Gerd Bayer wrote:
> On Thu, 2025-01-23 at 15:30 +0800, Dust Li wrote:
> > On 2025-01-23 09:59:39, D. Wythe wrote:
> > > The introduction of IPPROTO_SMC enables eBPF programs to determine
> > > whether to use SMC based on the context of socket creation, such as
> > > network namespaces, PID and comm name, etc.
> > > 
> > 
> > I'm still not completely satisfied with the name smc_ops. Since this
> > will be the API for our users, we need to be carefull on the name.
> 
> If I may jump in with a suggestion here:
> On my first glance, I'd expect SMC_OPS to offer OPS as a general API.
> The description however suggest that this adds "contol points" or hooks
> in the SMC code, that eBPF programs can use to tweak the protocol's
> behavior. Exclusively eBPF programs, it seems.
> 
> So how about naming this SMC_EBPF_HOOKS or SMC_EBPF_SUPPORT?
> 
> Just my 2ct,
> Gerd

Hi all,

Thanks for all the suggestion.It seems that the naming of this ops has indeed
sparked some controversy. However, I still oppose explicitly linking the name
to BPF. As I mentioned earlier, this ops is not strongly tied to BPF
implementations, kernel modules can also implement them.

I used ChatGPT to generate some potential names, including:
smc_ops / smc_hook / smc_aug / smc_ext / smc_alert / smc_support

Perhaps these can be used as references.

However, in any case, these changes need to be acked by the SMC
maintainer, but for what I can tell, the maintainer of SMC is currently on
leave, so this discussion may still take some time.

Best wishes,
D. Wythe

> 
> > 
> > It seems like you're aiming to define a common set of operations, but
> > the implementation appears to be intertwined with BPF. If this is
> > intended to be a common interface, and if we are using another operation,
> > there shouldn’t be a need to hold a BPF reference.
> > 
> > As your 'help' sugguest, What about smc_hook ?
> > 
> > Best regards,
> > Dust
> > 
> > 

  reply	other threads:[~2025-02-05  8:02 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-01-23  1:59 [PATCH bpf-next v7 0/6] net/smc: Introduce smc_ops D. Wythe
2025-01-23  1:59 ` [PATCH bpf-next v7 1/6] bpf: export necessary sympols for modules with struct_ops D. Wythe
2025-01-23  1:59 ` [PATCH bpf-next v7 2/6] net/smc: fix UAF on smcsk after smc_listen_out() D. Wythe
2025-01-23  2:21   ` Guangguan Wang
2025-01-23  1:59 ` [PATCH bpf-next v7 3/6] net/smc: Introduce generic hook smc_ops D. Wythe
2025-01-23  7:30   ` Dust Li
2025-01-23 10:15     ` Gerd Bayer
2025-02-05  8:02       ` D. Wythe [this message]
2025-01-23  1:59 ` [PATCH bpf-next v7 4/6] net/smc: bpf: register smc_ops info struct_ops D. Wythe
2025-01-23  1:59 ` [PATCH bpf-next v7 5/6] libbpf: fix error when st-prefix_ops and ops from differ btf D. Wythe
2025-01-23  1:59 ` [PATCH bpf-next v7 6/6] bpf/selftests: add selftest for bpf_smc_ops D. Wythe
2025-01-26  9:48   ` Zhu Yanjun
2025-01-23  7:33 ` [PATCH bpf-next v7 0/6] net/smc: Introduce smc_ops Dust Li
2025-02-14  9:22 ` D. Wythe
2025-02-14 11:37   ` Wenjia Zhang
2025-02-17  5:44     ` D. Wythe

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=20250205080228.GA57822@j66a10360.sqa.eu95 \
    --to=alibuda@linux.alibaba.com \
    --cc=andrii@kernel.org \
    --cc=ast@kernel.org \
    --cc=bpf@vger.kernel.org \
    --cc=daniel@iogearbox.net \
    --cc=davem@davemloft.net \
    --cc=dust.li@linux.alibaba.com \
    --cc=edumazet@google.com \
    --cc=gbayer@linux.ibm.com \
    --cc=guwen@linux.alibaba.com \
    --cc=haoluo@google.com \
    --cc=jaka@linux.ibm.com \
    --cc=john.fastabend@gmail.com \
    --cc=jolsa@kernel.org \
    --cc=kgraul@linux.ibm.com \
    --cc=kpsingh@kernel.org \
    --cc=kuba@kernel.org \
    --cc=linux-rdma@vger.kernel.org \
    --cc=linux-s390@vger.kernel.org \
    --cc=martin.lau@linux.dev \
    --cc=netdev@vger.kernel.org \
    --cc=pabeni@redhat.com \
    --cc=sdf@google.com \
    --cc=song@kernel.org \
    --cc=wenjia@linux.ibm.com \
    --cc=yhs@fb.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