projects
/
cascardo
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
sock: support per-packet fwmark
[cascardo/linux.git]
/
net
/
ethernet
/
eth.c
diff --git
a/net/ethernet/eth.c
b/net/ethernet/eth.c
index
d850fdc
..
9e63f25
100644
(file)
--- a/
net/ethernet/eth.c
+++ b/
net/ethernet/eth.c
@@
-127,7
+127,7
@@
u32 eth_get_headlen(void *data, unsigned int len)
struct flow_keys keys;
/* this should never happen, but better safe than sorry */
- if (
len < sizeof(*eth
))
+ if (
unlikely(len < sizeof(*eth)
))
return len;
/* parse any remaining L2/L3 headers, check for L4 */