git: if: Optimize ifnet_serialize_array_ function a little bit

Sepherosa Ziehau sephe at crater.dragonflybsd.org
Sun Jan 13 04:11:37 PST 2013


commit fa75bf744ddb5984269faceb91b1733da7a48a15
Author: Sepherosa Ziehau <sephe at dragonflybsd.org>
Date:   Sun Jan 13 20:03:42 2013 +0800

    if: Optimize ifnet_serialize_array_ function a little bit
    
    IFNET_SERIALIZE_ALL is only used on init, stop and configuration path,
    which is much less often then IFNET_SERIALIZE_TX; use __predict_false
    for IFNET_SERIALIZE_ALL.

Summary of changes:
 sys/net/if_var.h | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/fa75bf744ddb5984269faceb91b1733da7a48a15


-- 
DragonFly BSD source repository



More information about the Commits mailing list