diff options
author | Daniel Borkmann <daniel@iogearbox.net> | 2017-07-02 02:13:26 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-07-03 02:22:52 -0700 |
commit | 2be7e212d5419a400d051c84ca9fdd083e5aacac (patch) | |
tree | 5787a57531550094941e58800517df911788562e /usr | |
parent | 0daf4349406074fc03e4889ba5e97e6fb5311bab (diff) | |
download | linux-2be7e212d5419a400d051c84ca9fdd083e5aacac.tar.bz2 |
bpf: add bpf_skb_adjust_room helper
This work adds a helper that can be used to adjust net room of an
skb. The helper is generic and can be further extended in future.
Main use case is for having a programmatic way to add/remove room to
v4/v6 header options along with cls_bpf on egress and ingress hook
of the data path. It reuses most of the infrastructure that we added
for the bpf_skb_change_type() helper which can be used in nat64
translations. Similarly, the helper only takes care of adjusting the
room so that related data is populated and csum adapted out of the
BPF program using it.
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: John Fastabend <john.fastabend@gmail.com>
Acked-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'usr')
0 files changed, 0 insertions, 0 deletions