LinuxKPI: skbuff: remove assumption about mac_header

It seems the mac_header can be set to offset 0 for frames received.
Remove the warning splattering messages to the console for each packet.

Sponsored by:	The FreeBSD Foundation
MFC after:	3 days
This commit is contained in:
Bjoern A. Zeeb 2023-09-08 12:47:03 +00:00
parent 530c13c540
commit f0e59b6903

View file

@ -935,10 +935,9 @@ static inline uint8_t *
skb_mac_header(const struct sk_buff *skb)
{
SKB_TRACE(skb);
/* Make sure the mac_header was set as otherwise we return garbage. */
WARN_ON(skb->mac_header == 0);
return (skb->head + skb->mac_header);
}
static inline void
skb_reset_mac_header(struct sk_buff *skb)
{