commit | 0c5f48599bed55c13d6f979ea824554bdebdf2ad | [log] [tgz] |
---|---|---|
author | Kal Conley <kal.conley@dectris.com> | Mon Apr 10 14:18:41 2023 +0200 |
committer | Daniel Borkmann <daniel@iogearbox.net> | Thu Apr 13 14:51:02 2023 +0200 |
tree | f0b8893de4e74e6439147e67bd9072aa75fe4a20 | |
parent | ee5059a64dbad4806a3c11babd0dbed5a5d04ead [diff] |
xsk: Simplify xp_aligned_validate_desc implementation Perform the chunk boundary check like the page boundary check in xp_desc_crosses_non_contig_pg(). This simplifies the implementation and reduces the number of branches. Signed-off-by: Kal Conley <kal.conley@dectris.com> Signed-off-by: Daniel Borkmann <daniel@iogearbox.net> Acked-by: Magnus Karlsson <magnus.karlsson@intel.com> Link: https://lore.kernel.org/bpf/20230410121841.643254-1-kal.conley@dectris.com