mirror of
https://github.com/opnsense/src.git
synced 2026-06-08 16:22:46 -04: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
1 changed files with 1 additions and 2 deletions
|
|
@ -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