• Edward Cree's avatar
    sfc: check recirc_id match caps before MAE offload · f0b59ad1
    Edward Cree authored
    Offloaded TC rules always match on recirc_id in the MAE, so we should
     check that the MAE reported support for this match before attempting
     to insert the rule.
    These checks allow us to fail early, avoiding the PCIe round-trip to
     firmware for an MC_CMD_MAE_ACTION_RULE_INSERT that will only fail,
     and more importantly providing a more informative error message that
     identifies which match field is unsupported.
    Signed-off-by: default avatarEdward Cree <ecree.xilinx@gmail.com>
    Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
    f0b59ad1
mae.c 16.2 KB