Thread (7 messages) 7 messages, 3 authors, 2023-11-28

Re: [PATCH bpf-next v3 0/2] Allow data_meta size > 32

From: Larysa Zaremba <hidden>
Date: 2023-11-28 10:33:47
Also in: bpf

On Tue, Nov 28, 2023 at 11:26:59AM +0100, Jesper Dangaard Brouer wrote:

On 11/27/23 19:32, Larysa Zaremba wrote:
quoted
Currently, there is no reason for data_meta to be limited to 32 bytes.
Loosen this limitation and make maximum meta size 252.
First I though you made a type here with 252 bytes, but then I remembered
the 4 byte alignment.
I think commit message should elaborate on why 252 bytes.
You are right, will do.
 
quoted
Also, modify the selftest, so test_xdp_context_error does not complain
about the unexpected success.

v2->v3:
* Fix main patch author
* Add selftests path

v1->v2:
* replace 'typeof(metalen)' with the actual type

Aleksander Lobakin (1):
   net, xdp: allow metadata > 32

Larysa Zaremba (1):
   selftests/bpf: increase invalid metadata size

  include/linux/skbuff.h                              | 13 ++++++++-----
  include/net/xdp.h                                   |  7 ++++++-
  .../selftests/bpf/prog_tests/xdp_context_test_run.c |  4 ++--
  3 files changed, 16 insertions(+), 8 deletions(-)
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help