From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id E17E0A0093; Thu, 21 May 2020 11:21:38 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 7DEA91D657; Thu, 21 May 2020 11:21:38 +0200 (CEST) Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by dpdk.org (Postfix) with ESMTP id 5EAFC1D655; Thu, 21 May 2020 11:21:36 +0200 (CEST) IronPort-SDR: 4qD1EsI80ru8g4J0DERZhAab8o/+qa8qVZjKxzJzOkqZYy/Vg9hu22YH41FtOMdCHyESCvxFF/ 42ikpAtq3oiQ== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 May 2020 02:21:35 -0700 IronPort-SDR: oFJLh4XSaGWbzmHJjhxRs1/QeRHSH4mYNDrYzEreuJSa+tbf6tpR/ruqwXxQ8WHyxIh8y7R6sM uAnKBmAUHrPg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.73,417,1583222400"; d="scan'208";a="268572606" Received: from fmsmsx103.amr.corp.intel.com ([10.18.124.201]) by orsmga006.jf.intel.com with ESMTP; 21 May 2020 02:21:35 -0700 Received: from fmsmsx156.amr.corp.intel.com (10.18.116.74) by FMSMSX103.amr.corp.intel.com (10.18.124.201) with Microsoft SMTP Server (TLS) id 14.3.439.0; Thu, 21 May 2020 02:21:33 -0700 Received: from FMSEDG001.ED.cps.intel.com (10.1.192.133) by fmsmsx156.amr.corp.intel.com (10.18.116.74) with Microsoft SMTP Server (TLS) id 14.3.439.0; Thu, 21 May 2020 02:21:33 -0700 Received: from NAM11-DM6-obe.outbound.protection.outlook.com (104.47.57.172) by edgegateway.intel.com (192.55.55.68) with Microsoft SMTP Server (TLS) id 14.3.439.0; Thu, 21 May 2020 02:21:33 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=FXEq+89QsaHlgJD0eQYLXR230+RJG5pkPGRgd4P8cJcX230kTDUhIZBYkmEfCjeOhFhObQYkk7ObdzB2dOl9E8Plw7TRPoG8cAdsX1JdbVqcB1tMVt2ypYEW3V7URzYzui1wFjpFAebxDdDevO6wnCwahZQ34rujwRz7j6dtSeqicnhXASb80eBhQvZSPkFlFbezeHvm76Bd+gx5v+t3Id8NY1w8HzKz5qdVyRSwfubsjIzQb3Ea+fs3dI9CF981FI2nroHwgLzhKhqlZWmhBCxRTzB7Wa5txFkC8updAHQeZCp6UOu6lIiywbELugFGpBer56nDt5SiA0qU8UHTRg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Qybxz4CnueO9xj2YY0OTdkbFmoMiEIL3SDooLY13IOQ=; b=EXZY+KY0VW0fwtHI004lAbutqMqYD91ulqXhHye/Jc6KGDxYzY0pZ7MbcbohgMMI0HX3Mpqb4p2NgSej977FXDVa+PVbDNvilwLBeroOQT+t7eKzUsoL5yI/EyLJCsVTLyYc0QyEAdgB1HTkS9UsLH9Rx5k4X7e6Be8+LNJuQo46I83IP+k1rtcwVKoQlhaYAp7Xk36IT26OpwnB0i6VbzPpYM4oa71eFOr+Mrx77ZK2TloLg5jXlkBEiOghn7EkHNOGgQPlNIT3O7Rlu6S3nF2zjQFVZUPQI6kdyyjGjWUmh5elrDZlet3c63tYde02t9yVVx525B8y/LVN9+s54w== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel.onmicrosoft.com; s=selector2-intel-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Qybxz4CnueO9xj2YY0OTdkbFmoMiEIL3SDooLY13IOQ=; b=OwP0TKtttfNEfwxvB6vYBhh2j9md7Nv4X9rJ5SAVdBfjkY3qWqbzeyFlsV+z22mxBtvUfLXbif0tyjvcbK2GE3COStB6Zft6G4GHFPvaQTLMVSyCyPcEvfebLDZCAiq9gUTQhL7qPmIlKd0w86B7F3mFZdeorqet3bwwipEagfI= Received: from MWHPR1101MB2254.namprd11.prod.outlook.com (2603:10b6:301:58::11) by MWHPR1101MB2110.namprd11.prod.outlook.com (2603:10b6:301:4f::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3021.23; Thu, 21 May 2020 09:21:31 +0000 Received: from MWHPR1101MB2254.namprd11.prod.outlook.com ([fe80::f192:356f:89f:c71f]) by MWHPR1101MB2254.namprd11.prod.outlook.com ([fe80::f192:356f:89f:c71f%9]) with mapi id 15.20.3021.020; Thu, 21 May 2020 09:21:31 +0000 From: "Xiao, QimaiX" To: "Zhao1, Wei" , "dev@dpdk.org" CC: "stable@dpdk.org" , "Zhang, Qi Z" , "Ye, Xiaolong" , "Zhao1, Wei" Thread-Topic: [dpdk-dev] [PATCH] net/ice: fix switch action number check Thread-Index: AQHWL0WslnBDkDOMiUqZvrV8P6EWTqiyQ5XQ Date: Thu, 21 May 2020 09:21:30 +0000 Message-ID: References: <20200521073411.16778-1-wei.zhao1@intel.com> In-Reply-To: <20200521073411.16778-1-wei.zhao1@intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: intel.com; dkim=none (message not signed) header.d=none;intel.com; dmarc=none action=none header.from=intel.com; x-originating-ip: [192.55.46.36] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 2513ec5d-80ed-4b63-f2cf-08d7fd685964 x-ms-traffictypediagnostic: MWHPR1101MB2110: x-ld-processed: 46c98d88-e344-4ed4-8496-4ed7712e255d,ExtAddr x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:3383; x-forefront-prvs: 041032FF37 x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: dtTUCGkpAXbIBV8IBVN6YRbwamMZ/74CrxaoXz4cSJAIbddfSXV++LHqRrrsd5f9gaik5xJnxEJADlZ4rYNwZOM2J6/cErPHdf7wpiqyUOH0ESoH/l/9aen0L5JUpOA/nLAXyS1e8iGyEhHH6F5p5CpBcRAIh+f5cLAhqdX0c7WTPCNlE8r2PAJXu9N4cJGLpzRf7o2+3bg8FoAukYTrcAtZcDkPCZ/pDE+6U1f3+l6EhEkj6jPusMBk7al34uae6LMbaTcxw0RPrLhw3Gqk6EoNWJEQWnKmrvSJ7g8yPw3hLbtNs2dm7Ne42h28USLC x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:MWHPR1101MB2254.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFTY:; SFS:(136003)(396003)(366004)(39860400002)(346002)(376002)(5660300002)(478600001)(71200400001)(107886003)(33656002)(2906002)(8936002)(53546011)(6506007)(4326008)(8676002)(7696005)(52536014)(9686003)(66446008)(66946007)(64756008)(66476007)(54906003)(186003)(316002)(76116006)(66556008)(110136005)(55016002)(26005)(86362001)(450100002); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata: FEETJjSWMqyoXhmCzwl1nb9bCk823kYp8VC8KN1TwX17BOK07B0AYTtyzWkbWSQa9iUtSnYkA8ynoc9Yt8iz08a6BhKfH8T3P6BZuluhrE1sRql9455CXfwj6ggoOYnjXkRClJAwX3WFfvy8/kioYkkzcqJuiK/jHVva0N5p2Kkwagtg2x5aL06+zVi+a2ubER3JqVS7cU5sn6Lpg8uc0BeBU+S/NaVrflC22mEYvD9iA1wMT2OxRScQMi7dgNvhj/kV0+RdIZlzFblu++KAGzEQMCtCGJIiQ3q4N3pek5F2AcINvR0Wtd2PtbLbVLobFxJtRC0tNuHqnfPaJvKNSVwLuJ/JYURyxfLKOMN9T9yZp4OXY8P8vLdQ7RlJy8HjM1l5toL6jliEV1285nTlFPoGI3nlLtNQNGtIY2wLeygEywjnAkPYzXaxXm553bZI/WOnWYoRxFJFDpb6CQrsiUaDscKVJfCO8prQ7+OseWc= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-Network-Message-Id: 2513ec5d-80ed-4b63-f2cf-08d7fd685964 X-MS-Exchange-CrossTenant-originalarrivaltime: 21 May 2020 09:21:31.1809 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: 81QFFX4E+9DzXlajEBP3sHIiHvyRRe4vx6QU8nKh9tgsbsJ9fbKMQtpUT9BrI0AdT0kVCnpb4w24GrfedCWvlw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR1101MB2110 X-OriginatorOrg: intel.com Subject: Re: [dpdk-dev] [PATCH] net/ice: fix switch action number check X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Tested-by: Xiao, QimaiX Regards, Xiao Qimai > -----Original Message----- > From: dev On Behalf Of Wei Zhao > Sent: Thursday, May 21, 2020 3:34 PM > To: dev@dpdk.org > Cc: stable@dpdk.org; Zhang, Qi Z ; Ye, Xiaolong > ; Zhao1, Wei > Subject: [dpdk-dev] [PATCH] net/ice: fix switch action number check >=20 > The action number for switch filter should be 1, any other such as 0 or m= ore > than 1 is invalid. >=20 > Fixes: 3428c6b6ec1f ("net/ice: add action number check for switch") > Cc: stable@dpdk.org >=20 > Signed-off-by: Wei Zhao > --- > drivers/net/ice/ice_switch_filter.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) >=20 > diff --git a/drivers/net/ice/ice_switch_filter.c > b/drivers/net/ice/ice_switch_filter.c > index dd3f4847a..20e8187d3 100644 > --- a/drivers/net/ice/ice_switch_filter.c > +++ b/drivers/net/ice/ice_switch_filter.c > @@ -1388,7 +1388,7 @@ ice_switch_check_action(const struct > rte_flow_action *actions, > } > } >=20 > - if (actions_num > 1) { > + if (actions_num !=3D 1) { > rte_flow_error_set(error, > EINVAL, RTE_FLOW_ERROR_TYPE_ACTION, > actions, > -- > 2.19.1