• Edward Cree's avatar
    sfc: release encap match in efx_tc_flow_free() · 28fa3ac4
    Edward Cree authored
    When force-freeing leftover entries from our match_action_ht, call
     efx_tc_delete_rule(), which releases all the rule's resources, rather
     than open-coding it.  The open-coded version was missing a call to
     release the rule's encap match (if any).
    It probably doesn't matter as everything's being torn down anyway, but
     it's cleaner this way and prevents further error messages potentially
     being logged by efx_tc_encap_match_free() later on.
    Move efx_tc_flow_free() further down the file to avoid introducing a
     forward declaration of efx_tc_delete_rule().
    
    Fixes: 17654d84 ("sfc: add offloading of 'foreign' TC (decap) rules")
    Signed-off-by: default avatarEdward Cree <ecree.xilinx@gmail.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    28fa3ac4
tc.c 44.9 KB