From: Stephen Hemminger Date: Wed, 21 Sep 2016 23:28:56 +0000 (-0700) Subject: update bpf.h X-Git-Tag: v4.9.0~81 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=16c2a51dc403d82b0987f2e2e45075e4339afebd;p=thirdparty%2Fiproute2.git update bpf.h --- diff --git a/include/linux/bpf.h b/include/linux/bpf.h index 65baf0c62..b8486d142 100644 --- a/include/linux/bpf.h +++ b/include/linux/bpf.h @@ -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, };