• Guojia Liao's avatar
    net: hns3: add support for extended promiscuous command · c43abe1a
    Guojia Liao authored
    For DEVICE_VERSION_V2, the hardware supports enable tx and rx
    promiscuous separately. But tx or rx promiscuous is active for
    unicast, multicast and broadcast promiscuous simultaneously.
    To support traffics between functions belong to the same port,
    we always enable tx promiscuous for broadcast promiscuous, so
    tx promiscuous for unicast and multicast promiscuous is also
    enabled.
    
    For DEVICE_VERSION_V3, the hardware decouples the above
    relationship. Tx unicast promiscuous, rx unicast promiscuous,
    tx multicast promiscuous, rx multicast promiscuous, tx broadcast
    promiscuous and rx broadcast promiscuous can be enabled separately.
    
    So add support for the new promiscuous command.
    Signed-off-by: default avatarGuojia Liao <liaoguojia@huawei.com>
    Signed-off-by: default avatarHuazhong Tan <tanhuazhong@huawei.com>
    Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
    c43abe1a
hclge_main.c 302 KB