git: inet: Migrate to CPU0 to perform in_pcblist_global() for rawip and divert

Sepherosa Ziehau sephe at crater.dragonflybsd.org
Fri Jun 13 07:21:11 PDT 2014


commit d394c21260b27f8330a9d109de546dc535d9e647
Author: Sepherosa Ziehau <sephe at dragonflybsd.org>
Date:   Fri Jun 13 22:19:38 2014 +0800

    inet: Migrate to CPU0 to perform in_pcblist_global() for rawip and divert
    
    It is safe to access their pcb list on CPU0, but not on other CPUs.

Summary of changes:
 sys/netinet/in_pcb.c    | 19 +++++++++++++++++++
 sys/netinet/in_pcb.h    |  1 +
 sys/netinet/ip_divert.c |  2 +-
 sys/netinet/raw_ip.c    |  2 +-
 4 files changed, 22 insertions(+), 2 deletions(-)

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


-- 
DragonFly BSD source repository



More information about the Commits mailing list