@@ -230,8 +230,8 @@ static struct sk_buff *fou_gro_receive(struct sock *sk,
230
230
struct list_head * head ,
231
231
struct sk_buff * skb )
232
232
{
233
+ const struct net_offload __rcu * * offloads ;
233
234
u8 proto = fou_from_sock (sk )-> protocol ;
234
- const struct net_offload * * offloads ;
235
235
const struct net_offload * ops ;
236
236
struct sk_buff * pp = NULL ;
237
237
@@ -263,10 +263,10 @@ static struct sk_buff *fou_gro_receive(struct sock *sk,
263
263
static int fou_gro_complete (struct sock * sk , struct sk_buff * skb ,
264
264
int nhoff )
265
265
{
266
- const struct net_offload * ops ;
266
+ const struct net_offload __rcu * * offloads ;
267
267
u8 proto = fou_from_sock (sk )-> protocol ;
268
+ const struct net_offload * ops ;
268
269
int err = - ENOSYS ;
269
- const struct net_offload * * offloads ;
270
270
271
271
rcu_read_lock ();
272
272
offloads = NAPI_GRO_CB (skb )-> is_ipv6 ? inet6_offloads : inet_offloads ;
@@ -311,7 +311,7 @@ static struct sk_buff *gue_gro_receive(struct sock *sk,
311
311
struct list_head * head ,
312
312
struct sk_buff * skb )
313
313
{
314
- const struct net_offload * * offloads ;
314
+ const struct net_offload __rcu * * offloads ;
315
315
const struct net_offload * ops ;
316
316
struct sk_buff * pp = NULL ;
317
317
struct sk_buff * p ;
@@ -457,8 +457,8 @@ static struct sk_buff *gue_gro_receive(struct sock *sk,
457
457
458
458
static int gue_gro_complete (struct sock * sk , struct sk_buff * skb , int nhoff )
459
459
{
460
- const struct net_offload * * offloads ;
461
460
struct guehdr * guehdr = (struct guehdr * )(skb -> data + nhoff );
461
+ const struct net_offload __rcu * * offloads ;
462
462
const struct net_offload * ops ;
463
463
unsigned int guehlen = 0 ;
464
464
u8 proto ;
0 commit comments