mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2025-02-17 07:57:43 +07:00
net: Use bool in skbuff.h helper functions.
In particular do this for skb_is_nonlinear(), skb_is_gso(), and skb_is_gso_v6(). Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
6a91395f20
commit
bdcc0924c8
@ -1173,7 +1173,7 @@ static inline struct sk_buff *__skb_dequeue_tail(struct sk_buff_head *list)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
static inline int skb_is_nonlinear(const struct sk_buff *skb)
|
static inline bool skb_is_nonlinear(const struct sk_buff *skb)
|
||||||
{
|
{
|
||||||
return skb->data_len;
|
return skb->data_len;
|
||||||
}
|
}
|
||||||
@ -2469,12 +2469,12 @@ static inline struct sec_path *skb_sec_path(struct sk_buff *skb)
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
static inline int skb_is_gso(const struct sk_buff *skb)
|
static inline bool skb_is_gso(const struct sk_buff *skb)
|
||||||
{
|
{
|
||||||
return skb_shinfo(skb)->gso_size;
|
return skb_shinfo(skb)->gso_size;
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline int skb_is_gso_v6(const struct sk_buff *skb)
|
static inline bool skb_is_gso_v6(const struct sk_buff *skb)
|
||||||
{
|
{
|
||||||
return skb_shinfo(skb)->gso_type & SKB_GSO_TCPV6;
|
return skb_shinfo(skb)->gso_type & SKB_GSO_TCPV6;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user