]> git.baikalelectronics.ru Git - kernel.git/commit
xdp: Introduce xdp_convert_frame_to_buff utility routine
authorLorenzo Bianconi <lorenzo@kernel.org>
Thu, 28 May 2020 20:47:28 +0000 (22:47 +0200)
committerAlexei Starovoitov <ast@kernel.org>
Mon, 1 Jun 2020 22:02:53 +0000 (15:02 -0700)
commit5e5e4043d41259eb7ee38bf3b7f7b53886bbd1c9
tree0db2d17cad54922b10d061997f7d1d7db7cf6f02
parentbb58b4adcaf8e48a71bf4faaf638beb9e24a466a
xdp: Introduce xdp_convert_frame_to_buff utility routine

Introduce xdp_convert_frame_to_buff utility routine to initialize xdp_buff
fields from xdp_frames ones. Rely on xdp_convert_frame_to_buff in veth xdp
code.

Suggested-by: Jesper Dangaard Brouer <brouer@redhat.com>
Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: Jesper Dangaard Brouer <brouer@redhat.com>
Link: https://lore.kernel.org/bpf/87acf133073c4b2d4cbb8097e8c2480c0a0fac32.1590698295.git.lorenzo@kernel.org
drivers/net/veth.c
include/net/xdp.h