]> 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)
commit763034ca93283db1a10b7e6af0c167e209955a69
tree0db2d17cad54922b10d061997f7d1d7db7cf6f02
parent76405a9d02d3f6f53928161656e022920e207d01
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