Lines Matching refs:skb
185 struct sk_buff *skb, *tmp; in cpu_map_bpf_prog_run_skb() local
190 list_for_each_entry_safe(skb, tmp, listp, list) { in cpu_map_bpf_prog_run_skb()
191 act = bpf_prog_run_generic_xdp(skb, &xdp, rcpu->prog); in cpu_map_bpf_prog_run_skb()
196 skb_list_del_init(skb); in cpu_map_bpf_prog_run_skb()
197 err = xdp_do_generic_redirect(skb->dev, skb, &xdp, in cpu_map_bpf_prog_run_skb()
200 kfree_skb(skb); in cpu_map_bpf_prog_run_skb()
210 trace_xdp_exception(skb->dev, rcpu->prog, act); in cpu_map_bpf_prog_run_skb()
213 skb_list_del_init(skb); in cpu_map_bpf_prog_run_skb()
214 kfree_skb(skb); in cpu_map_bpf_prog_run_skb()
353 struct sk_buff *skb = f; in cpu_map_kthread_run() local
355 __ptr_clear_bit(0, &skb); in cpu_map_kthread_run()
356 list_add_tail(&skb->list, &list); in cpu_map_kthread_run()
384 struct sk_buff *skb = skbs[i]; in cpu_map_kthread_run() local
386 skb = __xdp_build_skb_from_frame(xdpf, skb, in cpu_map_kthread_run()
388 if (!skb) { in cpu_map_kthread_run()
393 list_add_tail(&skb->list, &list); in cpu_map_kthread_run()
777 struct sk_buff *skb) in cpu_map_generic_redirect() argument
781 __skb_pull(skb, skb->mac_len); in cpu_map_generic_redirect()
782 skb_set_redirected(skb, false); in cpu_map_generic_redirect()
783 __ptr_set_bit(0, &skb); in cpu_map_generic_redirect()
785 ret = ptr_ring_produce(rcpu->queue, skb); in cpu_map_generic_redirect()