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 BB575A04B3; Mon, 27 Jan 2020 22:42:53 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 722B11BFEC; Mon, 27 Jan 2020 22:42:53 +0100 (CET) Received: from mx0a-00103a01.pphosted.com (mx0a-00103a01.pphosted.com [67.231.144.234]) by dpdk.org (Postfix) with ESMTP id 8026B1BFD1 for ; Mon, 27 Jan 2020 22:42:52 +0100 (CET) Received: from pps.filterd (m0174892.ppops.net [127.0.0.1]) by mx0a-00103a01.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 00RLZ0dv001262 for ; Mon, 27 Jan 2020 16:42:51 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ciena.com; h=from : to : subject : date : message-id : content-type : mime-version; s=06252019; bh=Bda9hTjiJ3VUIzvm5/NoDZX4hXPbcQRyQS0Jd1XN928=; b=RubK3eqIveHZS5caOYE/44LyAH7hlDDNyH4dq0d6XO8IeyVuM+5OTW5cPNGCvs9iJJPA 9DLkIFaJ2ighkIVMfaCcXv7JHKL+F/jWIa5VX4prqEt9QKOlYVJL2RHtnRP96pde9xkD aHrpg9+t/g6qjPF2GJzL63vWuUMgvIYUrzSKZke+1zBCppH6yxg3eWhY/BagBwPqN6TC Jr12uKC4vwZTOoXWVe8T+Rcy9Crt3n4AI+Z8NXJiYrC93ngcPqJ1HGTx79BPn+V+JA5r PFJhhs6QC1qIW2h4rr8T+Qf+DnWz5VsE94yPWvqj9nq8H3sWA5fDqzSLVehe+ddn2pAf eA== Received: from nam12-mw2-obe.outbound.protection.outlook.com (mail-mw2nam12lp2042.outbound.protection.outlook.com [104.47.66.42]) by mx0a-00103a01.pphosted.com with ESMTP id 2xrka8hb5t-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Mon, 27 Jan 2020 16:42:51 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=lgEx1KxmMZaSPMdRp1ylyMXEzqE78D0R4xEs720tYkQJAnyanSlGtacrgA3ikZl27is3olgsjoSnt5tJecIavbE3c/qm+cXKlii6NtUhHGAYuWvxur8vVMksvdGRmMO/4Ir/ZS0U4/u2amfKeK31vAKw2zwmoRh2KgFnDyIhUqxT7M4gcS6AN51Yg3Pk5PAfH6fSlpSC/MEPRHoEXlFOpRvSviVlnf0fy+aP4bp3mlfJf7l9jxTEQt6L4JIt98ZpvYPrkaovt/QqWz6A7q2sZ16ft43EI3A8J7DBWiDufWS/HuPI9QCcAssgecN9YfykCq6IleR5GZRKjB6LWcm2tg== 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=Bda9hTjiJ3VUIzvm5/NoDZX4hXPbcQRyQS0Jd1XN928=; b=aNThGyu2kaQLKe4cy/6NbpytjjIyHv7t+OmAHpL2D/agd1BSRO/efUXvx8pYIbw+zlx/pNIzRXrzOE+goCd7Y3bsG3bpjd/aExhOwqThbKWn5D/a56yfjpSqb3KnvZazRg78SRZTrtaHb1UdeNkxWWbjUz3aCrzDcJqPctISYy3f1S6DGgcP6PeNgNLXqmmEl1MWmGLxkchtCLfLEwCCWb8/+M14ScibUeZX+DK2BRC4STGxR81ImJ17m6GwWm7tMQg2BZEUewhpGCxeE3RE8S4LIiQgjFGAbW+Ku4PJZulxs8rAWZ49gFn4v7y7WPejTWspQcxG/SgWM8J0zwniSA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=ciena.com; dmarc=pass action=none header.from=ciena.com; dkim=pass header.d=ciena.com; arc=none Received: from MWHPR04MB0592.namprd04.prod.outlook.com (10.173.49.145) by MWHPR04MB0256.namprd04.prod.outlook.com (10.169.201.10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2665.23; Mon, 27 Jan 2020 21:42:49 +0000 Received: from MWHPR04MB0592.namprd04.prod.outlook.com ([fe80::c72:50ec:9049:df0d]) by MWHPR04MB0592.namprd04.prod.outlook.com ([fe80::c72:50ec:9049:df0d%3]) with mapi id 15.20.2665.026; Mon, 27 Jan 2020 21:42:49 +0000 From: "Bly, Mike" To: "dev@dpdk.org" Thread-Topic: ACL priority field Thread-Index: AdXVWK18NJsY+xsUSBaSgfX6ktWjMA== Date: Mon, 27 Jan 2020 21:42:49 +0000 Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [165.225.50.165] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: fa6c1fec-f77b-4d08-68f9-08d7a371db0c x-ms-traffictypediagnostic: MWHPR04MB0256: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:9508; x-forefront-prvs: 02951C14DC x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(4636009)(136003)(376002)(396003)(346002)(39860400002)(366004)(199004)(189003)(186003)(81156014)(71200400001)(86362001)(6916009)(8936002)(9326002)(3480700007)(33656002)(55236004)(55016002)(26005)(9686003)(7116003)(6506007)(66476007)(66556008)(66446008)(64756008)(76116006)(66946007)(52536014)(2906002)(316002)(478600001)(7696005)(966005)(8676002)(81166006)(21615005)(5660300002); DIR:OUT; SFP:1101; SCL:1; SRVR:MWHPR04MB0256; H:MWHPR04MB0592.namprd04.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; received-spf: None (protection.outlook.com: ciena.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: Gfrp56iF5TH2WCjxFUf7lpWL8TqW5gzk4i0OhxUU3xllfaQ9Oxlmxgy/pmNkjuPUMpO4VxnihWkUodBviuOxchbE47t4q+AewOYNMdsdADqQlr2Xuz77XCBPCdirLNA6aixlbV3XtozvSbrBNL8r0fAvB7zjknkD0pl/dY7cx3I0VBrP2ORXkTBP2E9+ef34hfKieLlS1yo0jlSs/HEvPEJQLSfoO7ZRpTw0Gh/i/2qL35sm+xUrwxJfKc1kUa6nRe/OP0dM9mBI8fCz/MWuwoGlPt3Aa7/9ajq0ePA8jR7KDlDd8Lo6TOW7wUNY+FwxTJipsCgEyXZ1Kz/+8ke3XTO2GwGmo8Sf4Tim1+Q8Miwn5vaKaYVsk4fwUEiK18mZPLduFfHYnLBYhegVt6bvC2hngtMDcBoD0+k45fiG9f285lhQDKo+CxyFO7/YMLXeNO78qLn4QMR5QA7+93/6o4p92oHL4N5xFDOYfdYvuM+ZyR0GS4xt5pZUybCgM6PvBPI4I96upYILXCfEa9Na1A== x-ms-exchange-antispam-messagedata: vG54TsFovCedV6Vh/XHthrm/DxtOPMVq8OKXVHtr7dKj9/+gpACIRFQ4uyqIUk+VF4DjtitToiTbaX3DXbbrKeh3BW3lbGva1j/+Tukc+uSSv+vnxBlPtlwEMM1vAPy6zridGMNmDKcQ6qH2CfJLxQ== x-ms-exchange-transport-forked: True MIME-Version: 1.0 X-OriginatorOrg: ciena.com X-MS-Exchange-CrossTenant-Network-Message-Id: fa6c1fec-f77b-4d08-68f9-08d7a371db0c X-MS-Exchange-CrossTenant-originalarrivaltime: 27 Jan 2020 21:42:49.7270 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 457a2b01-0019-42ba-a449-45f99e96b60a X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: 9brmLLyEQUvQwBF+e7WhDcsaMwnOGE1kqZ8dkGFQYvK11BvX5H6O1gtvmU6jXYc7 X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR04MB0256 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.138, 18.0.572 definitions=2020-01-27_07:2020-01-24, 2020-01-27 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 adultscore=0 priorityscore=1501 mlxscore=0 mlxlogscore=943 bulkscore=0 lowpriorityscore=0 phishscore=0 clxscore=1011 suspectscore=0 spamscore=0 malwarescore=0 impostorscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-1911200001 definitions=main-2001270169 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: [dpdk-dev] ACL priority field 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" Hello, Can someone clarify what I am interpreting as a documentation conflict reg= arding the "priority" field for rte_table_acl_rule_add_params? Below docume= ntation says "highest priority wins", but the header file comment says 0 is= highest priority. Based on my testing with conflicting entries, I would li= ke ask if we can/should update the documentation/descriptions to state "the= lowest non-negative integer priority value will be selected". Highest prio= rity implies select X, when X > Y >=3D 0. However, based on my testing, tha= t is not the case. Instead, Y is selected. From: https://doc.dpdk.org/guides/prog_guide/packet_classif_access_ctrl.htm= l When creating a set of rules, for each rule, additional information must be= supplied also: * priority: A weight to measure the priority of the rules (higher i= s better)... If the input tuple matches more than one rule, then the rule w= ith the higher priority is returned. Note that if the input tuple matches m= ore than one rule and these rules have equal priority, it is undefined whic= h rule is returned as a match. It is recommended to assign a unique priorit= y for each rule. From: http://doc.dpdk.org/api/structrte__table__acl__rule__add__params.html int32_t priority ACL rule priority, with 0 as the highest priority Regards, Mike