aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimo Völker <timo.voelker@fh-muenster.de>2026-06-29 20:03:46 +0000
committerMichael Tuexen <tuexen@FreeBSD.org>2026-06-29 20:03:46 +0000
commitbcf4e3c001f5ec9cc206b0d81f0954559d1424d8 (patch)
tree485cfb2725e6c1e48e5b2e117a1f56f8c3407850
parentacf6518a2d6f33fb56c861861cbad0c0cb56817e (diff)
loopback: use new names for checksum offloading flags
No functional change intended. Reviewed by: tuexen MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D57945
-rw-r--r--sys/net/if_loop.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/sys/net/if_loop.c b/sys/net/if_loop.c
index 69108e9f332a..647dbe79e229 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,