mirror of
https://github.com/opnsense/src.git
synced 2026-06-04 06:15:33 -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
(cherry picked from commit f0e59b6903)
This commit is contained in:
parent
6104a9f9c5
commit
46e5d2b0c6
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