@@ -5519,11 +5519,12 @@ union bpf_attr {
55195519 *		**-EOPNOTSUPP** if the hash calculation failed or **-EINVAL** if 
55205520 *		invalid arguments are passed. 
55215521 * 
5522-  * void *bpf_kptr_xchg(void *map_value , void *ptr) 
5522+  * void *bpf_kptr_xchg(void *dst , void *ptr) 
55235523 *	Description 
5524-  *		Exchange kptr at pointer *map_value* with *ptr*, and return the 
5525-  *		old value. *ptr* can be NULL, otherwise it must be a referenced 
5526-  *		pointer which will be released when this helper is called. 
5524+  *		Exchange kptr at pointer *dst* with *ptr*, and return the old value. 
5525+  *		*dst* can be map value or local kptr. *ptr* can be NULL, otherwise 
5526+  *		it must be a referenced pointer which will be released when this helper 
5527+  *		is called. 
55275528 *	Return 
55285529 *		The old value of kptr (which can be NULL). The returned pointer 
55295530 *		if not NULL, is a reference which must be released using its 
@@ -6046,11 +6047,6 @@ enum {
60466047	BPF_F_MARK_ENFORCE 		=  (1ULL  << 6 ),
60476048};
60486049
6049- /* BPF_FUNC_clone_redirect and BPF_FUNC_redirect flags. */ 
6050- enum  {
6051- 	BPF_F_INGRESS 			=  (1ULL  << 0 ),
6052- };
6053- 
60546050/* BPF_FUNC_skb_set_tunnel_key and BPF_FUNC_skb_get_tunnel_key flags. */ 
60556051enum  {
60566052	BPF_F_TUNINFO_IPV6 		=  (1ULL  << 0 ),
@@ -6197,10 +6193,12 @@ enum {
61976193	BPF_F_BPRM_SECUREEXEC 	=  (1ULL  << 0 ),
61986194};
61996195
6200- /* Flags for bpf_redirect_map helper  */ 
6196+ /* Flags for bpf_redirect and  bpf_redirect_map helpers  */ 
62016197enum  {
6202- 	BPF_F_BROADCAST 		=  (1ULL  << 3 ),
6203- 	BPF_F_EXCLUDE_INGRESS 	=  (1ULL  << 4 ),
6198+ 	BPF_F_INGRESS 		=  (1ULL  << 0 ), /* used for skb path */ 
6199+ 	BPF_F_BROADCAST 		=  (1ULL  << 3 ), /* used for XDP path */ 
6200+ 	BPF_F_EXCLUDE_INGRESS 	=  (1ULL  << 4 ), /* used for XDP path */ 
6201+ #define  BPF_F_REDIRECT_FLAGS (BPF_F_INGRESS | BPF_F_BROADCAST | BPF_F_EXCLUDE_INGRESS)
62046202};
62056203
62066204#define  __bpf_md_ptr (type , name )	\
0 commit comments