We update this, and assert on it, but never actually iterate the list or use it
to look anything up.
Sponsored by: Rubicon Communications, LLC ("Netgate")
Differential D53070
pf: remove unused variable allrulelist kp on Mon, Oct 13, 2:12 PM. Authored by Tags None Referenced Files
Details
Diff Detail
Event TimelineComment Actions In pf_krule we got remaining: #ifdef PF_WANT_32_TO_64_COUNTER LIST_ENTRY(pf_krule) allrulelist; bool allrulelinked; #endif This gives a hint when was it used. Shouldn't this be removed from krule as well? Comment Actions This *is* used by pf_rule_counter_u64_periodic. The goal is to sum up the 32 bit values frequently enough(tm) that they don't overflow. Comment Actions Thanks for catching that. I'm not sure how I missed it, but I'm glad I remembered you wrote it and would be a good person to copy on a review. I do still want to murder this code, but we'll wait until armv7 finally dies, or dies enough. Comment Actions but this is a list of all rules one can consider reverting this to a state prior to introduction of per-cpu counters. that is, just have a var updated directly. this loses updates, but maybe it's good enough for armv7? Comment Actions We don't need to do anything about it right now. |