mirror of
https://github.com/LibreQoE/LibreQoS.git
synced 2025-02-25 18:55:32 -06:00
Improve comments on metadata
This commit is contained in:
parent
f84798885b
commit
9de53853e7
@ -171,7 +171,10 @@ int xdp_prog(struct xdp_md *ctx)
|
|||||||
}
|
}
|
||||||
__u32 cpu_dest = *cpu_lookup;
|
__u32 cpu_dest = *cpu_lookup;
|
||||||
|
|
||||||
// Experimental: can we adjust the metadata?
|
// Can we adjust the metadata? We'll try to do so, and if we can store the
|
||||||
|
// needed info there. Not all drivers support this, so it has to remain
|
||||||
|
// optional. This call invalidates the ctx->data pointer, so it has to be
|
||||||
|
// done last.
|
||||||
int ret = bpf_xdp_adjust_meta(ctx, -round_up(ETH_ALEN, sizeof(struct metadata_pass_t)));
|
int ret = bpf_xdp_adjust_meta(ctx, -round_up(ETH_ALEN, sizeof(struct metadata_pass_t)));
|
||||||
if (ret < 0) {
|
if (ret < 0) {
|
||||||
#ifdef VERBOSE
|
#ifdef VERBOSE
|
||||||
|
Loading…
Reference in New Issue
Block a user