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

Sepherosa Ziehau sephe at crater.dragonflybsd.org
Tue Feb 17 03:33:52 PST 2009


commit afe44b681b9eb91ba2e8309b001770dd5a686a48
Author: Sepherosa Ziehau <sephe at 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





More information about the Commits mailing list