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:   ozaki-r
Date:           Wed Sep 30 07:12:32 UTC 2015

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

Log Message:
Make GATEWAY (fastforward) work again

With GATEWAY (fastforward), the whole forwarding processing runs in
hardware interrupt context. So we cannot use rwlock for lltable and
llentry in that case.

This change replaces rwlock with mutex(IPL_NET) for lltable and llentry
when GATEWAY is enabled. We need to tweak locking only around rtree
in lltable_free. Other than that, what we need to do is to change macros
for locks.

I hope fastforward runs in softint some day in the future...


To generate a diff of this commit:
cvs rdiff -u -r1.191 -r1.192 src/sys/net/if.h
cvs rdiff -u -r1.5 -r1.6 src/sys/net/if_llatbl.c
cvs rdiff -u -r1.2 -r1.3 src/sys/net/if_llatbl.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