git: wg: Add RXCSUM support to avoid unnecessary checksum validation
Aaron LI
aly at crater.dragonflybsd.org
Thu Feb 15 00:28:05 PST 2024
commit 6716a06c7dd4a84c60fad28428446a80590387ed
Author: Aaron LI <aly at aaronly.me>
Date: Thu Feb 8 17:41:16 2024 +0800
wg: Add RXCSUM support to avoid unnecessary checksum validation
The packet that is about to be delivered in is authentic as ensured by
the AEAD tag, so we can tell the networking stack that this packet has
valid checksums and thus is unnecessary to check again.
Therefore, implement RXCSUM support for the wg interface, and update the
ioctl() to support to enable/disable this feature.
Meanwhile, move the mbuf flags clearance code just before the delivery,
i.e., netisr_queue() and wg_send().
Summary of changes:
sys/net/wg/if_wg.c | 36 +++++++++++++++++++++++++++---------
1 file changed, 27 insertions(+), 9 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/6716a06c7dd4a84c60fad28428446a80590387ed
--
DragonFly BSD source repository
More information about the Commits
mailing list