git: kernel - Fix PF tables (SMP work)

Matthew Dillon dillon at crater.dragonflybsd.org
Tue Jul 1 16:35:03 PDT 2014


commit d66d8bc0d51a10502c5139f53f803f7c684f7231
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Tue Jul 1 16:28:47 2014 -0700

    kernel - Fix PF tables (SMP work)
    
    * SMP work broke pf_table.c to some degree due to the use of globals
      to store temporary data.  The concurrency could cause table lookups
      to return an incorrect match or mismatch.
    
    * Change pfr_sin, pfr_sin6, and pfr_mask to local variables.

Summary of changes:
 sys/net/pf/pf_table.c | 26 +++++++++++++++++---------
 1 file changed, 17 insertions(+), 9 deletions(-)

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


-- 
DragonFly BSD source repository


More information about the Commits mailing list