Skip to content

Commit 9603aa6

Browse files
LorenzoBianconikernel-patches-bot
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]>
1 parent 0e816d0 commit 9603aa6

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)