• wenxu's avatar
    net: flow_offload: fix flow_indr_dev_unregister path · a1db2178
    wenxu authored
    If the representor is removed, then identify the indirect flow_blocks
    that need to be removed by the release callback and the port representor
    structure. To identify the port representor structure, a new
    indr.cb_priv field needs to be introduced. The flow_block also needs to
    be removed from the driver list from the cleanup path.
    
    Fixes: 1fac52da ("net: flow_offload: consolidate indirect flow_block infrastructure")
    Signed-off-by: default avatarwenxu <wenxu@ucloud.cn>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    a1db2178
main.h 15.8 KB