Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: src/sys/net



Module Name:    src
Committed By:   thorpej
Date:           Fri Sep  2 05:50:36 UTC 2022

Modified Files:
        src/sys/net: if.c pktqueue.c pktqueue.h

Log Message:
Re-factor how pktq_barrier() is issued by if_detach().

Rather than excplicitly referencing ip_pktq and ip6_pktq in if_detach(),
instead add all pktqueues to a global list.  This list is then used in
the new pktq_ifdetach() function to issue a barrier on all pktqueues.

Note that the performance of this list is not critical; it will seldom
be accessed (then pktqueues are created/destroyed and when network
interfaces are detached), and so a simple synchronization strategy using
a rwlock is sufficient.


To generate a diff of this commit:
cvs rdiff -u -r1.522 -r1.523 src/sys/net/if.c
cvs rdiff -u -r1.19 -r1.20 src/sys/net/pktqueue.c
cvs rdiff -u -r1.7 -r1.8 src/sys/net/pktqueue.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.




Home | Main Index | Thread Index | Old Index