]> git.ipfire.org Git - thirdparty/iproute2.git/commitdiff
update bpf.h
authorStephen Hemminger <stephen@networkplumber.org>
Wed, 21 Sep 2016 23:28:56 +0000 (16:28 -0700)
committerStephen Hemminger <stephen@networkplumber.org>
Wed, 21 Sep 2016 23:28:56 +0000 (16:28 -0700)
include/linux/bpf.h

index 65baf0c623bfcc029fb068de1dd387978866e866..b8486d142e722117c55cfc13f57a15f6a5be5fe7 100644 (file)
@@ -398,6 +398,27 @@ enum bpf_func_id {
         */
        BPF_FUNC_skb_change_tail,
 
+       /**
+        * bpf_skb_pull_data(skb, len)
+        * The helper will pull in non-linear data in case the
+        * skb is non-linear and not all of len are part of the
+        * linear section. Only needed for read/write with direct
+        * packet access.
+        * @skb: pointer to skb
+        * @len: len to make read/writeable
+        * Return: 0 on success or negative error
+        */
+       BPF_FUNC_skb_pull_data,
+
+       /**
+        * bpf_csum_update(skb, csum)
+        * Adds csum into skb->csum in case of CHECKSUM_COMPLETE.
+        * @skb: pointer to skb
+        * @csum: csum to add
+        * Return: csum on success or negative error
+        */
+       BPF_FUNC_csum_update,
+
        __BPF_FUNC_MAX_ID,
 };