aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/intel/igc/igc_main.c
diff options
context:
space:
mode:
authorTonghao Zhang <[email protected]>2020-08-12 09:56:39 +0000
committerDavid S. Miller <[email protected]>2020-08-13 22:53:30 +0000
commit1f3a090b9033f69de380c03db3ea1a1015c850cf (patch)
tree0643c4fad96851def0045117bee2dc4fe89ff94a /drivers/net/ethernet/intel/igc/igc_main.c
parentaf_packet: TPACKET_V3: fix fill status rwlock imbalance (diff)
downloadkernel-1f3a090b9033f69de380c03db3ea1a1015c850cf.tar.gz
kernel-1f3a090b9033f69de380c03db3ea1a1015c850cf.zip
net: openvswitch: introduce common code for flushing flows
To avoid some issues, for example RCU usage warning and double free, we should flush the flows under ovs_lock. This patch refactors table_instance_destroy and introduces table_instance_flow_flush which can be invoked by __dp_destroy or ovs_flow_tbl_flush. Fixes: 50b0e61b32ee ("net: openvswitch: fix possible memleak on destroy flow-table") Reported-by: Johan Knöös <[email protected]> Reported-at: https://mail.openvswitch.org/pipermail/ovs-discuss/2020-August/050489.html Signed-off-by: Tonghao Zhang <[email protected]> Reviewed-by: Cong Wang <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'drivers/net/ethernet/intel/igc/igc_main.c')
0 files changed, 0 insertions, 0 deletions