All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Add skb_store_bytes() for BPF_PROG_TYPE_CGROUP_SKB
@ 2021-12-22  2:27 Tyler Wear
  2021-12-22  3:43 ` Yonghong Song
  0 siblings, 1 reply; 10+ messages in thread
From: Tyler Wear @ 2021-12-22  2:27 UTC (permalink / raw)
  To: netdev, bpf; +Cc: kafai, maze, yhs, Tyler Wear

Need to modify the ds field to support upcoming
Wifi QoS Alliance spec. Instead of adding generic
function for just modifying the ds field, add
skb_store_bytes for BPF_PROG_TYPE_CGROUP_SKB. This
allows other fields in the network and transport header
to be modified in the future.

Signed-off-by: Tyler Wear <quic_twear@quicinc.com>
---
 net/core/filter.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/net/core/filter.c b/net/core/filter.c
index 6102f093d59a..0c25aa2212a2 100644
--- a/net/core/filter.c
+++ b/net/core/filter.c
@@ -7289,6 +7289,8 @@ static const struct bpf_func_proto *
 cg_skb_func_proto(enum bpf_func_id func_id, const struct bpf_prog *prog)
 {
 	switch (func_id) {
+	case BPF_FUNC_skb_store_bytes:
+		return &bpf_skb_store_bytes_proto;
 	case BPF_FUNC_get_local_storage:
 		return &bpf_get_local_storage_proto;
 	case BPF_FUNC_sk_fullsock:
-- 
2.17.1


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

end of thread, other threads:[~2022-01-06 22:36 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-12-22  2:27 [PATCH] Add skb_store_bytes() for BPF_PROG_TYPE_CGROUP_SKB Tyler Wear
2021-12-22  3:43 ` Yonghong Song
2021-12-22 22:49   ` Tyler Wear
2021-12-22 23:50     ` Martin KaFai Lau
2021-12-29 18:29       ` Tyler Wear
2021-12-29 21:05         ` Martin KaFai Lau
2022-01-05  0:27           ` Tyler Wear (QUIC)
2022-01-06  7:50             ` Yonghong Song
2022-01-06 17:18               ` Tyler Wear (QUIC)
2022-01-06 22:35                 ` Yonghong Song

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.