On 10/28/21 1:50 AM, Kristof Provost wrote:
The branch main has been updated by kp:
URL:
https://cgit.FreeBSD.org/src/commit/?id=62d2dcafb7f33fe8f47e9d5dd519d665f7af140e
commit 62d2dcafb7f33fe8f47e9d5dd519d665f7af140e
Author: Kristof Provost <k...@freebsd.org>
AuthorDate: 2021-10-26 07:57:56 +0000
Commit: Kristof Provost <k...@freebsd.org>
CommitDate: 2021-10-28 08:41:16 +0000
if_epair: delete mbuf tags
Remove all (non-persistent) tags when we transmit a packet. Real network
interfaces do not carry any tags either, and leaving tags attached can
produce unexpected results.
Reviewed by: bz, glebius
MFC after: 3 weeks
Sponsored by: Rubicon Communications, LLC ("Netgate")
Differential Revision: https://reviews.freebsd.org/D32663
Wireguard has similar functionality FWIW, so it might be worth exposing a
generic
"mb_free_tags". Wireguard also tries to reset some other state like the status
of checksum offload since it is moving mbufs between an ifnet and a socket. Not
sure if epair also needs to clear all the same things?
--
John Baldwin