Re: [PATCH v2 2/2] backports: add skb_list_del_init

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 8/14/20 4:29 PM, Felix Fietkau wrote:
> It is needed for mac80211
> 
> Signed-off-by: Felix Fietkau <nbd@xxxxxxxx>
> ---
>  backport/backport-include/linux/skbuff.h | 6 ++++++
>  1 file changed, 6 insertions(+)
> 
> diff --git a/backport/backport-include/linux/skbuff.h b/backport/backport-include/linux/skbuff.h
> index 3ed990d0d2ef..7b825630d391 100644
> --- a/backport/backport-include/linux/skbuff.h
> +++ b/backport/backport-include/linux/skbuff.h
> @@ -384,6 +384,12 @@ static inline void skb_mark_not_on_list(struct sk_buff *skb)
>  {
>  	skb->next = NULL;
>  }
> +
> +static inline void skb_list_del_init(struct sk_buff *skb)
> +{
> +	__list_del_entry(&skb->list);
> +	skb_mark_not_on_list(skb);
> +}
>  #endif /* 4.19.10 <= x < 4.20 */
>  #endif
>  
> 

Hi Felix,

These two backports are not working.

The list member was only added in kernel 4.19 to the sk_buff structure,
see here:
https://git.kernel.org/linus/d4546c2509b1e9cd082e3682dcec98472e37ee5a

Hauke
--
To unsubscribe from this list: send the line "unsubscribe backports" in



[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux