[PATCH nf-next 0/2] netfilter: nf_flow_table: remove duplicate code in nf_flow_table_core.c

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



In this patch series, duplicate code in nf_flow_table_core.c are removed.

First patch makes nf_flow_table_iterate() static because
that is local function.

Second patch makes nf_flow_offfload_gc_step() simplier.
Both nf_flow_offload_gc_step() and nf_flow_table_iterate()
have same rhashtable lookup routine.
So that duplicate code in nf_flow_offload_gc_step() can be removed.

Taehee Yoo (2):
  netfilter: nf_flow_table: make nf_flow_table_iterate() static
  netfilter: nf_flow_table: simplify nf_flow_offload_gc_step()

 include/net/netfilter/nf_flow_table.h |  4 ---
 net/netfilter/nf_flow_table_core.c    | 42 +++++++--------------------
 2 files changed, 11 insertions(+), 35 deletions(-)

-- 
2.17.1




[Index of Archives]     [Netfitler Users]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux