bpf: devmap prepare xdp frames for bulking
authorJesper Dangaard Brouer <brouer@redhat.com>
Thu, 24 May 2018 14:45:51 +0000 (16:45 +0200)
committerAlexei Starovoitov <ast@kernel.org>
Fri, 25 May 2018 01:36:14 +0000 (18:36 -0700)
commit5d053f9da4311a86bc58be8588bb5660fb3f0724
tree3164d6cdff447d206bc5246cfc9c24a32ce93e3f
parent67f29e07e131ffa13ea158c259a513f474c7df27
bpf: devmap prepare xdp frames for bulking

Like cpumap create queue for xdp frames that will be bulked.  For now,
this patch simply invoke ndo_xdp_xmit foreach frame.  This happens,
either when the map flush operation is envoked, or when the limit
DEV_MAP_BULK_SIZE is reached.

V5: Avoid memleak on error path in dev_map_update_elem()

Signed-off-by: Jesper Dangaard Brouer <brouer@redhat.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
kernel/bpf/devmap.c