DragonFly commits List (threaded) for 2009-02
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
[
Date Index][
Thread Index]
DragonFly-2.3.0.213.gafe44 master sys/net route.c route.h rtsock.c sys/netinet if_atm.c if_ether.c sys/netinet6 nd6.c
commit afe44b681b9eb91ba2e8309b001770dd5a686a48
Author: Sepherosa Ziehau <sephe@dragonflybsd.org>
Date: Mon Feb 2 17:56:48 2009 +0800
route: Suppress duplicated rtmsgs generated by rtlookup() in rt_setgate()
Add 'generate_report' parameter to rt_setgate(). In rt_setgate(), instead
of passing RTL_REPORTMSG to rtlookup(), we pass 'generated_report' to
rtlookup().
For rtrequset1(RTM_ADD) and rtredirect(), which always go through all CPUs,
we only need to generate rtmsg on CPU0. For {arp,atm,nd6}_rtrequest(),
there is no need to generated rtmsg.
Summary of changes:
sys/net/route.c | 26 ++++++++++++++++++++++----
sys/net/route.h | 2 +-
sys/net/rtsock.c | 3 ++-
sys/netinet/if_atm.c | 3 ++-
sys/netinet/if_ether.c | 3 ++-
sys/netinet6/nd6.c | 3 ++-
6 files changed, 31 insertions(+), 9 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/afe44b681b9eb91ba2e8309b001770dd5a686a48
--
DragonFly BSD source repository
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
[
Date Index][
Thread Index]