netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [RFC PATCH iproute2] Add ability to specify eBPF pin path
@ 2023-05-03 17:33 Max Tottenham
  2023-05-03 17:33 ` Max Tottenham
  2023-05-26 15:09 ` [RFC PATCH v2 iproute2 0/1] Add ability to specify eBPF map " Max Tottenham
  0 siblings, 2 replies; 6+ messages in thread
From: Max Tottenham @ 2023-05-03 17:33 UTC (permalink / raw)
  To: netdev; +Cc: johunt


We have a use case where we have several different applications composed of
sets of eBPF programs (programs that may be attached at the TC/XDP layers),
that need to share maps and not conflict with each other.

For XDP based programs, we are using the xdp-loader from the xdp-tools
project[1], it exposes an option to set the 'pin-path' for a given program.
However, programs loaded via tc don't appear to have that ability, all I have
found is the use of LIBBPF_PIN_BY_NAME or the older
PIN_OBJECT_NS/PIN_GLOBAL_NS, but those don't let the user specify the path.

I've whipped up a quick patch to be able to pass along a 'pin_path'  similar to
the xdp-loader. I don't know if this is the *right* approach so I'm more than
happy to be pointed in the right direction.


Thanks

Max

[1] https://github.com/xdp-project/xdp-tools/tree/master/xdp-loader
 



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2023-05-26 15:10 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-05-03 17:33 [RFC PATCH iproute2] Add ability to specify eBPF pin path Max Tottenham
2023-05-03 17:33 ` Max Tottenham
2023-05-03 18:50   ` Stephen Hemminger
2023-05-03 18:51   ` Stephen Hemminger
2023-05-26 15:09 ` [RFC PATCH v2 iproute2 0/1] Add ability to specify eBPF map " Max Tottenham
2023-05-26 15:09   ` [RFC PATCH v2 iproute2 1/1] tc/f_bpf.c: " Max Tottenham

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).