Searched hist:df68d64ee3f54556aca1d50607e57b3129949a42 (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/net/openvswitch/ |
H A D | flow_table.c | diff df68d64ee3f54556aca1d50607e57b3129949a42 Tue Sep 01 07:26:13 CDT 2020 Tonghao Zhang <xiangxia.m.yue@gmail.com> net: openvswitch: refactor flow free function
Decrease table->count and ufid_count unconditionally, because we only don't use count or ufid_count to count when flushing the flows. To simplify the codes, we remove the "count" argument of table_instance_flow_free.
To avoid a bug when deleting flows in the future, add WARN_ON in flush flows function.
Cc: Pravin B Shelar <pshelar@ovn.org> Signed-off-by: Tonghao Zhang <xiangxia.m.yue@gmail.com> Acked-by: Pravin B Shelar <pshelar@ovn.org> Signed-off-by: David S. Miller <davem@davemloft.net>
|