Skip to content

Commit

Permalink
packet02: Explain that it is now possible to grow packets at the tail
Browse files Browse the repository at this point in the history
Fixes xdp-project#216

Signed-off-by: Toke Høiland-Jørgensen <[email protected]>
  • Loading branch information
tohojo committed May 4, 2021
1 parent d419031 commit 059c813
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packet02-rewriting/README.org
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,9 @@ There are a few things to be aware of when using this helper:
data and data_end pointers* after adjusting the packet size.

There is also a =bpf_xdp_adjust_tail()= which can be used to move the end of
the packet data, but this only supports shrinking the packet, not extending it;
but otherwise it functions identically to =bpf_xdp_adjust_head()=.
the packet data. From kernel v5.8 it functions identically to
=bpf_xdp_adjust_head()=, before that it was only possible to shrink the
packet at the tail, not grow it.

* Assignments

Expand Down

0 comments on commit 059c813

Please sign in to comment.