• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/net/bridge/netfilter/

Lines Matching refs:counters

44  * Each cpu has its own set of counters, so there is no need for write_lock in
46 * For reading or updating the counters, the user context needs to
50 /* The size of each set of counters is altered to get cache alignment */
161 cb_base = COUNTER_BASE(private->counters, private->nentries,
898 struct ebt_counter *counters, unsigned int nentries)
903 /* counters of cpu 0 */
904 memcpy(counters, oldcounters,
907 /* add other counters to those of cpu 0 */
913 counters[i].pcnt += counter_base[i].pcnt;
914 counters[i].bcnt += counter_base[i].bcnt;
955 memset(newinfo->counters, 0, countersize);
969 /* the user wants counters back
1003 BUGPRINT("Wrong nr. of counters requested\n");
1016 /* we need an atomic snapshot of the counters */
1019 get_counters(t->private->counters, counterstmp,
1030 copy_to_user(tmp.counters, counterstmp,
1032 BUGPRINT("Couldn't copy counters to userspace\n");
1164 repl->counters || table->private) {
1186 memset(newinfo->counters, 0, countersize);
1264 /* userspace just supplied us with counters */
1290 BUGPRINT("Wrong nr of counters\n");
1295 if ( copy_from_user(tmp, hlp.counters,
1302 /* we want an atomic add of the counters */
1305 /* we add to the counters of the first cpu */
1307 t->private->counters[i].pcnt += tmp[i].pcnt;
1308 t->private->counters[i].bcnt += tmp[i].bcnt;
1374 oldcounters = t->private->counters;
1379 oldcounters = t->table->counters;
1403 /* userspace might not need the counters */
1411 MEMPRINT("Couldn't copy counters, out of memory\n");
1418 if (copy_to_user(tmp.counters, counterstmp,
1420 BUGPRINT("Couldn't copy counters to userspace\n");