@@ -322,7 +322,7 @@ struct napi_struct {
322322 int poll_owner ;
323323#endif
324324 struct net_device * dev ;
325- struct sk_buff * gro_list ;
325+ struct list_head gro_list ;
326326 struct sk_buff * skb ;
327327 struct hrtimer timer ;
328328 struct list_head dev_list ;
@@ -2255,10 +2255,10 @@ static inline int gro_recursion_inc_test(struct sk_buff *skb)
22552255 return ++ NAPI_GRO_CB (skb )-> recursion_counter == GRO_RECURSION_LIMIT ;
22562256}
22572257
2258- typedef struct sk_buff * * (* gro_receive_t )(struct sk_buff * * , struct sk_buff * );
2259- static inline struct sk_buff * * call_gro_receive (gro_receive_t cb ,
2260- struct sk_buff * * head ,
2261- struct sk_buff * skb )
2258+ typedef struct sk_buff * (* gro_receive_t )(struct list_head * , struct sk_buff * );
2259+ static inline struct sk_buff * call_gro_receive (gro_receive_t cb ,
2260+ struct list_head * head ,
2261+ struct sk_buff * skb )
22622262{
22632263 if (unlikely (gro_recursion_inc_test (skb ))) {
22642264 NAPI_GRO_CB (skb )-> flush |= 1 ;
@@ -2268,12 +2268,12 @@ static inline struct sk_buff **call_gro_receive(gro_receive_t cb,
22682268 return cb (head , skb );
22692269}
22702270
2271- typedef struct sk_buff * * (* gro_receive_sk_t )(struct sock * , struct sk_buff * * ,
2272- struct sk_buff * );
2273- static inline struct sk_buff * * call_gro_receive_sk (gro_receive_sk_t cb ,
2274- struct sock * sk ,
2275- struct sk_buff * * head ,
2276- struct sk_buff * skb )
2271+ typedef struct sk_buff * (* gro_receive_sk_t )(struct sock * , struct list_head * ,
2272+ struct sk_buff * );
2273+ static inline struct sk_buff * call_gro_receive_sk (gro_receive_sk_t cb ,
2274+ struct sock * sk ,
2275+ struct list_head * head ,
2276+ struct sk_buff * skb )
22772277{
22782278 if (unlikely (gro_recursion_inc_test (skb ))) {
22792279 NAPI_GRO_CB (skb )-> flush |= 1 ;
@@ -2299,8 +2299,8 @@ struct packet_type {
22992299struct offload_callbacks {
23002300 struct sk_buff * (* gso_segment )(struct sk_buff * skb ,
23012301 netdev_features_t features );
2302- struct sk_buff * * (* gro_receive )(struct sk_buff * * head ,
2303- struct sk_buff * skb );
2302+ struct sk_buff * (* gro_receive )(struct list_head * head ,
2303+ struct sk_buff * skb );
23042304 int (* gro_complete )(struct sk_buff * skb , int nhoff );
23052305};
23062306
@@ -2568,7 +2568,7 @@ struct net_device *dev_get_by_index_rcu(struct net *net, int ifindex);
25682568struct net_device * dev_get_by_napi_id (unsigned int napi_id );
25692569int netdev_get_name (struct net * net , char * name , int ifindex );
25702570int dev_restart (struct net_device * dev );
2571- int skb_gro_receive (struct sk_buff * * head , struct sk_buff * skb );
2571+ int skb_gro_receive (struct sk_buff * p , struct sk_buff * skb );
25722572
25732573static inline unsigned int skb_gro_offset (const struct sk_buff * skb )
25742574{
@@ -2784,13 +2784,13 @@ static inline void skb_gro_remcsum_cleanup(struct sk_buff *skb,
27842784}
27852785
27862786#ifdef CONFIG_XFRM_OFFLOAD
2787- static inline void skb_gro_flush_final (struct sk_buff * skb , struct sk_buff * * pp , int flush )
2787+ static inline void skb_gro_flush_final (struct sk_buff * skb , struct sk_buff * pp , int flush )
27882788{
27892789 if (PTR_ERR (pp ) != - EINPROGRESS )
27902790 NAPI_GRO_CB (skb )-> flush |= flush ;
27912791}
27922792#else
2793- static inline void skb_gro_flush_final (struct sk_buff * skb , struct sk_buff * * pp , int flush )
2793+ static inline void skb_gro_flush_final (struct sk_buff * skb , struct sk_buff * pp , int flush )
27942794{
27952795 NAPI_GRO_CB (skb )-> flush |= flush ;
27962796}
0 commit comments