mirror of
https://github.com/opnsense/src.git
synced 2026-06-03 22:02:58 -04:00
e1000: add missing parens in csum setup
Reported by: rscheff
Fixes: 4f9a44a215 e1000: Fix/enable IPv6 transmit checksum offload
MFC after: 2 weeks
This commit is contained in:
parent
4f9a44a215
commit
92fd2f39e5
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue