]> git.baikalelectronics.ru Git - kernel.git/commit
Merge branch 'bpf-sk-msg-size-member'
authorDaniel Borkmann <daniel@iogearbox.net>
Tue, 18 Dec 2018 23:27:24 +0000 (00:27 +0100)
committerDaniel Borkmann <daniel@iogearbox.net>
Tue, 18 Dec 2018 23:30:05 +0000 (00:30 +0100)
commitc87f38ead19ef468190a78f5b75c3c40349d2c09
tree70590ac2bacf2a40aec88e06aca9e924e48695ef
parentb77bc8bec71242bf747672bc29c7944e712eb8a4
parentbe237c89bfebd298173bda141ad1b987011debfb
Merge branch 'bpf-sk-msg-size-member'

John Fastabend says:

====================
This adds a size field to the sk_msg_md data structure used by SK_MSG
programs. Without this in the zerocopy case and in the copy case
where multiple iovs are in use its difficult to know how much data
can be pulled in. The normal method of reading data and data_end
only give the current contiguous buffer. BPF programs can attempt to
pull in extra data but have to guess if it exists. This can result
in multiple "guesses" its much better if we know upfront the size
of the sk_msg.
====================

Acked-by: Martin KaFai Lau <kafai@fb.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>