diff options
author | Kevin Bowling <kbowling@FreeBSD.org> | 2023-07-23 00:03:26 +0000 |
---|---|---|
committer | Kevin Bowling <kbowling@FreeBSD.org> | 2023-08-04 01:22:14 +0000 |
commit | 41e440c38147dc37188b49cfdb051c33f056e6eb (patch) | |
tree | fdb7b5d6221219b7caee2fccfc740de03f917f88 /sys/dev/e1000 | |
parent | 17b587e0ba8ed4d1092537232b969b755b7a92f1 (diff) |
e1000: add missing parens in csum setup
Reported by: rscheff
Fixes: 4f9a44a215f8 e1000: Fix/enable IPv6 transmit checksum offload
(cherry picked from commit 92fd2f39e5b1fd588fdc49a07d626273eb8f7539)
Diffstat (limited to 'sys/dev/e1000')
-rw-r--r-- | sys/dev/e1000/em_txrx.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/e1000/em_txrx.c b/sys/dev/e1000/em_txrx.c index 1192286d1c9c..8b1d2817490f 100644 --- a/sys/dev/e1000/em_txrx.c +++ b/sys/dev/e1000/em_txrx.c @@ -291,7 +291,7 @@ em_transmit_checksum_setup(struct e1000_softc *sc, if_pkt_info_t pi, *txd_upper |= E1000_TXD_POPTS_TXSM << 8; *txd_lower = E1000_TXD_CMD_DEXT | E1000_TXD_DTYP_D; - if (csum_flags & CSUM_TCP | CSUM_IP6_TCP) { + if (csum_flags & (CSUM_TCP | CSUM_IP6_TCP)) { tucso = hdr_len + offsetof(struct tcphdr, th_sum); cmd |= E1000_TXD_CMD_TCP; } else |