Skip to content

Commit efa90b5

Browse files
LorenzoBianconiborkmann
authored andcommitted
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: Lorenzo Bianconi <[email protected]> Signed-off-by: Daniel Borkmann <[email protected]> Link: https://lore.kernel.org/bpf/33cb9b7dc447de3ea6fd6ce713ac41bca8794423.1601292015.git.lorenzo@kernel.org
1 parent 09d8ad1 commit efa90b5

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

kernel/bpf/cpumap.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -155,8 +155,7 @@ static void cpu_map_kthread_stop(struct work_struct *work)
155155
kthread_stop(rcpu->kthread);
156156
}
157157

158-
static struct sk_buff *cpu_map_build_skb(struct bpf_cpu_map_entry *rcpu,
159-
struct xdp_frame *xdpf,
158+
static struct sk_buff *cpu_map_build_skb(struct xdp_frame *xdpf,
160159
struct sk_buff *skb)
161160
{
162161
unsigned int hard_start_headroom;
@@ -365,7 +364,7 @@ static int cpu_map_kthread_run(void *data)
365364
struct sk_buff *skb = skbs[i];
366365
int ret;
367366

368-
skb = cpu_map_build_skb(rcpu, xdpf, skb);
367+
skb = cpu_map_build_skb(xdpf, skb);
369368
if (!skb) {
370369
xdp_return_frame(xdpf);
371370
continue;

0 commit comments

Comments
 (0)