Patch "nfp: flower: fix ingress police using matchall filter" has been added to the 5.19-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    nfp: flower: fix ingress police using matchall filter

to the 5.19-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     nfp-flower-fix-ingress-police-using-matchall-filter.patch
and it can be found in the queue-5.19 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit 75448971929345be70297d426835b997db7200e7
Author: Tianyu Yuan <tianyu.yuan@xxxxxxxxxxxx>
Date:   Thu Aug 25 10:08:45 2022 +0200

    nfp: flower: fix ingress police using matchall filter
    
    [ Upstream commit ebe5555c2f34505cdb1ae5c3de8b24e33740b3e0 ]
    
    Referenced commit introduced nfp_policer_validate in the progress
    installing rate limiter. This validate check the action id and will
    reject police with CONTINUE, which is required to support ingress
    police offload.
    
    Fix this issue by allowing FLOW_ACTION_CONTINUE as notexceed action
    id in nfp_policer_validate
    
    Fixes: d97b4b105ce7 ("flow_offload: reject offload for all drivers with invalid police parameters")
    Signed-off-by: Tianyu Yuan <tianyu.yuan@xxxxxxxxxxxx>
    Reviewed-by: Baowen Zheng <baowen.zheng@xxxxxxxxxxxx>
    Reviewed-by: Louis Peens <louis.peens@xxxxxxxxxxxx>
    Signed-off-by: Simon Horman <simon.horman@xxxxxxxxxxxx>
    Link: https://lore.kernel.org/r/20220825080845.507534-1-simon.horman@xxxxxxxxxxxx
    Signed-off-by: Jakub Kicinski <kuba@xxxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/drivers/net/ethernet/netronome/nfp/flower/qos_conf.c b/drivers/net/ethernet/netronome/nfp/flower/qos_conf.c
index 3206ba83b1aaa..de2ef5bf8c694 100644
--- a/drivers/net/ethernet/netronome/nfp/flower/qos_conf.c
+++ b/drivers/net/ethernet/netronome/nfp/flower/qos_conf.c
@@ -127,10 +127,11 @@ static int nfp_policer_validate(const struct flow_action *action,
 		return -EOPNOTSUPP;
 	}
 
-	if (act->police.notexceed.act_id != FLOW_ACTION_PIPE &&
+	if (act->police.notexceed.act_id != FLOW_ACTION_CONTINUE &&
+	    act->police.notexceed.act_id != FLOW_ACTION_PIPE &&
 	    act->police.notexceed.act_id != FLOW_ACTION_ACCEPT) {
 		NL_SET_ERR_MSG_MOD(extack,
-				   "Offload not supported when conform action is not pipe or ok");
+				   "Offload not supported when conform action is not continue, pipe or ok");
 		return -EOPNOTSUPP;
 	}
 



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux