git: mbuf(9): Add 'm_pkthdr.loop_cnt' for loop detection

Aaron LI aly at crater.dragonflybsd.org
Thu Jan 25 05:53:08 PST 2024


commit 1d7290e50a52be0a389708aea7c2dcd7cd2e4406
Author: Aaron LI <aly at aaronly.me>
Date:   Sat Jan 13 21:36:13 2024 +0800

    mbuf(9): Add 'm_pkthdr.loop_cnt' for loop detection
    
    Extend the 'm_pkthdr' struct to provide the 'loop_cnt' member by using
    currently unused space.  Therefore, drivers (e.g., gif, gre, wg) can
    make use of this new member to easily implement loop detection.
    
    Bump __DragonFly_version.
    
    Discussed-with: dillon
    Referred-to: OpenBSD

Summary of changes:
 sys/kern/uipc_mbuf.c | 1 +
 sys/sys/mbuf.h       | 5 +++--
 sys/sys/param.h      | 3 ++-
 3 files changed, 6 insertions(+), 3 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/1d7290e50a52be0a389708aea7c2dcd7cd2e4406


-- 
DragonFly BSD source repository


More information about the Commits mailing list