Patch "flow_offload: return EOPNOTSUPP for the unsupported mpls action type" has been added to the 5.4-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

    flow_offload: return EOPNOTSUPP for the unsupported mpls action type

to the 5.4-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:
     flow_offload-return-eopnotsupp-for-the-unsupported-m.patch
and it can be found in the queue-5.4 subdirectory.

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



commit 5717b1edd0f865b6c6b08c4be968b1c393e3026b
Author: Baowen Zheng <baowen.zheng@xxxxxxxxxxxx>
Date:   Mon Dec 13 15:46:04 2021 +0100

    flow_offload: return EOPNOTSUPP for the unsupported mpls action type
    
    [ Upstream commit 166b6a46b78bf8b9559a6620c3032f9fe492e082 ]
    
    We need to return EOPNOTSUPP for the unsupported mpls action type when
    setup the flow action.
    
    In the original implement, we will return 0 for the unsupported mpls
    action type, actually we do not setup it and the following actions
    to the flow action entry.
    
    Fixes: 9838b20a7fb2 ("net: sched: take rtnl lock in tc_setup_flow_action()")
    Signed-off-by: Baowen Zheng <baowen.zheng@xxxxxxxxxxxx>
    Signed-off-by: Simon Horman <simon.horman@xxxxxxxxxxxx>
    Acked-by: Jamal Hadi Salim <jhs@xxxxxxxxxxxx>
    Signed-off-by: David S. Miller <davem@xxxxxxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/net/sched/cls_api.c b/net/sched/cls_api.c
index 61aa63cc170b4..a4c61205462ac 100644
--- a/net/sched/cls_api.c
+++ b/net/sched/cls_api.c
@@ -3562,6 +3562,7 @@ int tc_setup_flow_action(struct flow_action *flow_action,
 				entry->mpls_mangle.ttl = tcf_mpls_ttl(act);
 				break;
 			default:
+				err = -EOPNOTSUPP;
 				goto err_out_locked;
 			}
 		} else if (is_tcf_skbedit_ptype(act)) {



[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