Commit efa90b50 authored by Lorenzo Bianconi's avatar Lorenzo Bianconi Committed by Daniel Borkmann

bpf, cpumap: Remove rcpu pointer from cpu_map_build_skb signature

Get rid of bpf_cpu_map_entry pointer in cpu_map_build_skb routine
signature since it is no longer needed.
Signed-off-by: default avatarLorenzo Bianconi <lorenzo@kernel.org>
Signed-off-by: default avatarDaniel Borkmann <daniel@iogearbox.net>
Link: https://lore.kernel.org/bpf/33cb9b7dc447de3ea6fd6ce713ac41bca8794423.1601292015.git.lorenzo@kernel.org
parent 09d8ad16
...@@ -155,8 +155,7 @@ static void cpu_map_kthread_stop(struct work_struct *work) ...@@ -155,8 +155,7 @@ static void cpu_map_kthread_stop(struct work_struct *work)
kthread_stop(rcpu->kthread); kthread_stop(rcpu->kthread);
} }
static struct sk_buff *cpu_map_build_skb(struct bpf_cpu_map_entry *rcpu, static struct sk_buff *cpu_map_build_skb(struct xdp_frame *xdpf,
struct xdp_frame *xdpf,
struct sk_buff *skb) struct sk_buff *skb)
{ {
unsigned int hard_start_headroom; unsigned int hard_start_headroom;
...@@ -365,7 +364,7 @@ static int cpu_map_kthread_run(void *data) ...@@ -365,7 +364,7 @@ static int cpu_map_kthread_run(void *data)
struct sk_buff *skb = skbs[i]; struct sk_buff *skb = skbs[i];
int ret; int ret;
skb = cpu_map_build_skb(rcpu, xdpf, skb); skb = cpu_map_build_skb(xdpf, skb);
if (!skb) { if (!skb) {
xdp_return_frame(xdpf); xdp_return_frame(xdpf);
continue; continue;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment