aboutsummaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorKevin Bowling <kbowling@FreeBSD.org>2021-07-20 07:21:21 +0000
committerKevin Bowling <kbowling@FreeBSD.org>2021-07-20 07:21:21 +0000
commit9fd0cda92d3346e1daa30eb48e185e2077ac0566 (patch)
tree948076daf516f0f0a5c2e9e1ef091cba8f4b573a /sys
parent41f02257146d128cdd4aa2bdcfdab7f9e08a4314 (diff)
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/e1000/igb_txrx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/e1000/igb_txrx.c b/sys/dev/e1000/igb_txrx.c
index ac768f84f810..75c5c160bf3e 100644
--- a/sys/dev/e1000/igb_txrx.c
+++ b/sys/dev/e1000/igb_txrx.c
@@ -527,7 +527,7 @@ igb_rx_checksum(uint32_t staterr, if_rxd_info_t ri, uint32_t ptype)
return;
/* If there is a layer 3 or 4 error we are done */
- if (errors & (E1000_RXD_ERR_IPE | E1000_RXD_ERR_TCPE))
+ if (__predict_false(errors & (E1000_RXD_ERR_IPE | E1000_RXD_ERR_TCPE)))
return;
/* IP Checksum Good */