DragonFly BSD
DragonFly commits List (threaded) for 2012-12
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

git: ip_forward: Optimize out the mbuf allocation for ICMP messages


From: Sepherosa Ziehau <sephe@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Thu, 20 Dec 2012 21:03:19 -0800 (PST)

commit 564c310c1aaeb9e91022fb228dac12d11cbf0e56
Author: Sepherosa Ziehau <sephe@dragonflybsd.org>
Date:   Fri Dec 21 13:00:12 2012 +0800

    ip_forward: Optimize out the mbuf allocation for ICMP messages
    
    A per-netisr mbuf template is used to save the necessary information
    for later ICMP messages; this avoids unnecessary mbuf allocation
    on forwarding path.  The mbufs for ICMP messages are allocated only
    when ICMP messages do need to be sent.
    
    Inspired-by: OpenBSD ip_forward

Summary of changes:
 sys/netinet/ip_input.c |  128 ++++++++++++++++++++++++++----------------------
 1 files changed, 70 insertions(+), 58 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/564c310c1aaeb9e91022fb228dac12d11cbf0e56


-- 
DragonFly BSD source repository



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