mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-30 10:49:28 +00:00
bpf: skmsg, replace comments with BUILD bug
Enforce comment on structure layout dependency with a BUILD_BUG_ON to ensure the condition is maintained. Suggested-by: Daniel Borkmann <daniel@iogearbox.net> Signed-off-by: John Fastabend <john.fastabend@gmail.com> Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
This commit is contained in:
parent
bc1b4f013b
commit
7a69c0f250
2 changed files with 4 additions and 3 deletions
|
@ -36,9 +36,7 @@ struct sk_msg_sg {
|
|||
struct scatterlist data[MAX_MSG_FRAGS + 1];
|
||||
};
|
||||
|
||||
/* UAPI in filter.c depends on struct sk_msg_sg being first element. If
|
||||
* this is moved filter.c also must be updated.
|
||||
*/
|
||||
/* UAPI in filter.c depends on struct sk_msg_sg being first element. */
|
||||
struct sk_msg {
|
||||
struct sk_msg_sg sg;
|
||||
void *data;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue