From mboxrd@z Thu Jan 1 00:00:00 1970 From: Paolo Abeni Subject: [PATCH net v2 0/2] net_sched: reject unknown tcfa_action values Date: Wed, 29 Aug 2018 10:22:32 +0200 Message-ID: Cc: Jamal Hadi Salim , Cong Wang , Jiri Pirko , "David S . Miller" , Davide Caratti , Lucas Bates To: netdev@vger.kernel.org Return-path: Received: from mx3-rdu2.redhat.com ([66.187.233.73]:55210 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727190AbeH2MSW (ORCPT ); Wed, 29 Aug 2018 08:18:22 -0400 Sender: netdev-owner@vger.kernel.org List-ID: As agreed some time ago, this changeset reject unknown tcfa_action values, instead of changing such values under the hood. A tdc test is included to verify the new behavior. v1 -> v2: - helper is now static and renamed according to act_* convention - updated extack message, according to the new behavior Paolo Abeni (2): net_sched: reject unknown tcfa_action values tc-testing: add test-cases for numeric and invalid control action net/sched/act_api.c | 16 +++++-- .../tc-testing/tc-tests/actions/police.json | 48 +++++++++++++++++++ 2 files changed, 59 insertions(+), 5 deletions(-) -- 2.17.1