On 12/12/24 12:09, Ales Musil wrote:
> Add helper to truncate the buffer to certain size which might be
> useful if some earlier part of the buffer can be reused multiple
> times without copying the whole buffer.
> 
> Signed-off-by: Ales Musil <[email protected]>
> ---
> v3: Rebase on top of current main.
>     Change the semantics from "truncate by" to "truncate to".
>     Use it in "ofpacts_parse()" function.
> v2: Rebase on top of current main.
>     Add comment what the function does and test case.
>     Fix the wrong move of data pointer.
> ---
>  include/openvswitch/ofpbuf.h |  7 +++++++
>  lib/ofp-actions.c            |  2 +-
>  tests/test-ofpbuf.c          | 10 ++++++++++
>  3 files changed, 18 insertions(+), 1 deletion(-)

Thanks!  Applied.

Best regards, Ilya Maximets.
_______________________________________________
dev mailing list
[email protected]
https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Reply via email to