mirror of
https://github.com/freebsd/freebsd-src
synced 2024-07-22 10:48:02 +00:00
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:
parent
530c13c540
commit
f0e59b6903
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue