Logo
Explore Help
Sign In
mirror/xdp-project-bpf-examples
1
0
Fork 0
You've already forked xdp-project-bpf-examples
mirror of https://github.com/xdp-project/bpf-examples.git synced 2024-05-06 15:54:53 +00:00
Code Issues Projects Releases Wiki Activity
Files
5343ed3377471c7b7ef2237526c8bdc0f00a0cef
xdp-project-bpf-examples/preserve-dscp/Makefile

9 lines
172 B
Makefile
Raw Normal View History

Add preserve-dscp example for preserving a DSCP mark over encapsulation This is a fun example showing how to use BPF to preserve DSCP values across an encapsulating interface, such as Wireguard. It relies on the encapsulation layer preserving the skb->hash value across the encapsulation, which is commonly the case on kernel encapsulation protocols (including Wireguard), and uses a pair of TC BPF programs and a map to re-match the packets after encapsulation and add back the DSCP value. Signed-off-by: Toke Høiland-Jørgensen <toke@redhat.com>
2021-06-17 17:02:08 +02:00
# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
USER_TARGETS += preserve-dscp
BPF_TARGETS += preserve_dscp_kern
LIB_DIR = ../lib
include $(LIB_DIR)/common.mk
Reference in New Issue Copy Permalink
Powered by Gitea Page: 1798ms Template: 1ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API