diff options
| author | Timo Völker <timo.voelker@fh-muenster.de> | 2026-06-29 20:03:46 +0000 |
|---|---|---|
| committer | Michael Tuexen <tuexen@FreeBSD.org> | 2026-08-06 09:04:24 +0000 |
| commit | a2d2f7a97074fe72c165e792d0590afcac64d7f3 (patch) | |
| tree | 983c9511b213beafa26cd2dcab01ee9146949dac | |
| parent | a5423ccd1c26e8558ee9af47086b57189875a066 (diff) | |
loopback: use new names for checksum offloading flags
No functional change intended.
Reviewed by: tuexen
Differential Revision: https://reviews.freebsd.org/D57945
(cherry picked from commit bcf4e3c001f5ec9cc206b0d81f0954559d1424d8)
| -rw-r--r-- | sys/net/if_loop.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/sys/net/if_loop.c b/sys/net/if_loop.c index 1951720a6ae8..b86ad22a98a1 100644 --- a/sys/net/if_loop.c +++ b/sys/net/if_loop.c @@ -81,12 +81,11 @@ #define LOMTU 16384 #endif -#define LO_CSUM_FEATURES (CSUM_IP | CSUM_TCP | CSUM_UDP | CSUM_SCTP) -#define LO_CSUM_FEATURES6 (CSUM_TCP_IPV6 | CSUM_UDP_IPV6 | CSUM_SCTP_IPV6) -#define LO_CSUM_SET (CSUM_DATA_VALID | CSUM_DATA_VALID_IPV6 | \ - CSUM_PSEUDO_HDR | \ - CSUM_IP_CHECKED | CSUM_IP_VALID | \ - CSUM_SCTP_VALID) +#define LO_CSUM_FEATURES (CSUM_IP | CSUM_IP_TCP | CSUM_IP_UDP | \ + CSUM_IP_SCTP) +#define LO_CSUM_FEATURES6 (CSUM_IP6_TCP | CSUM_IP6_UDP | CSUM_IP6_SCTP) +#define LO_CSUM_SET (CSUM_L3_CALC | CSUM_L3_VALID | \ + CSUM_L4_CALC | CSUM_L4_VALID) static int loioctl(struct ifnet *, u_long, caddr_t); static int looutput(struct ifnet *ifp, struct mbuf *m, |
