• Jijie Shao's avatar
    net: hns3: fix invalid mutex between tc qdisc and dcb ets command issue · fa556494
    Jijie Shao authored
    We hope that tc qdisc and dcb ets commands can not be used crosswise.
    If we want to use any of the commands to configure tc,
    We must use the other command to clear the existing configuration.
    
    However, when we configure a single tc with tc qdisc,
    we can still configure it with dcb ets.
    Because we use mqprio_active as the tag of tc qdisc configuration,
    but with dcb ets, we do not check mqprio_active.
    
    This patch fix this issue by check mqprio_active before
    executing the dcb ets command. and add dcb_ets_active to
    replace HCLGE_FLAG_DCB_ENABLE and HCLGE_FLAG_MQPRIO_ENABLE
    at the hclge layer,
    
    Fixes: cacde272 ("net: hns3: Add hclge_dcb module for the support of DCB feature")
    Signed-off-by: default avatarJijie Shao <shaojijie@huawei.com>
    Signed-off-by: default avatarPaolo Abeni <pabeni@redhat.com>
    fa556494
hnae3.h 29.8 KB