Re: [PATCH 5/5] netfilter: convert x_tables to use RCU
From: Eric Dumazet <hidden>
Date: 2009-01-30 07:05:15
From: Eric Dumazet <hidden>
Date: 2009-01-30 07:05:15
Eric Dumazet a écrit :
Hum, I just checked and indeed there is a problem...
#define SUM_COUNTER(s,c) do { (s).bcnt += (c).bcnt; (s).pcnt += (c).pcnt; } while(0)
need to be changed to use
#define SUM_COUNTER(s, c) do { xt_incr_counter(s, (c).cnt, (c).pcnt);} while (0)Oops #define SUM_COUNTER(s, c) xt_incr_counter(s, (c).bcnt, (c).pcnt)