git: if_gre: Reimplement output loop detection using mbuf 'loop_cnt'
Aaron LI
aly at crater.dragonflybsd.org
Thu Jan 25 17:03:08 PST 2024
commit 2e73b7f5b028712037c6cb2ffccd04f4a1c1a16a
Author: Aaron LI <aly at aaronly.me>
Date: Thu Jan 25 22:22:43 2024 +0800
if_gre: Reimplement output loop detection using mbuf 'loop_cnt'
The original method made use the 'called' member inside the interface
softc struct, which was quite rudimentary and not MP-safe.
Reimplement the loop detection using the newly added mbuf(9)
'm_pkthdr.loop_cnt' field. In addition, change the errno of this case
from EIO to ELOOP.
Summary of changes:
sys/net/gre/if_gre.c | 10 ++++------
sys/net/gre/if_gre.h | 2 --
2 files changed, 4 insertions(+), 8 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/2e73b7f5b028712037c6cb2ffccd04f4a1c1a16a
--
DragonFly BSD source repository
More information about the Commits
mailing list