From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR04-VI1-obe.outbound.protection.outlook.com (mail-eopbgr80044.outbound.protection.outlook.com [40.107.8.44]) by dpdk.org (Postfix) with ESMTP id 5891F3256 for ; Mon, 12 Nov 2018 21:01:40 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Mellanox.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Sc31vaqii61U/OID75MPZngm3b1752BvFc9ttvU6Tyo=; b=opnlxbC1IBlPXsajU6/58yNXuPnOrSi554PSI7MwQjC3zPr1hyXZ8q8q1cMVjmW4tSqTAgDFRgRhUTEFnf+sEQ7Ap9fTMHtBlXUewDBrwdoE4ML4AgaMO79fc5WVG6ECjVA2SWfibWBWAe4oGsYGhw8zkhIvJqi1H8iq8F8p8g0= Received: from AM4PR05MB3265.eurprd05.prod.outlook.com (10.171.186.150) by AM4PR05MB3377.eurprd05.prod.outlook.com (10.171.187.139) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1294.26; Mon, 12 Nov 2018 20:01:39 +0000 Received: from AM4PR05MB3265.eurprd05.prod.outlook.com ([fe80::544b:a68d:e6a5:ba6e]) by AM4PR05MB3265.eurprd05.prod.outlook.com ([fe80::544b:a68d:e6a5:ba6e%2]) with mapi id 15.20.1294.044; Mon, 12 Nov 2018 20:01:39 +0000 From: Slava Ovsiienko To: Shahaf Shuler , Yongseok Koh CC: "dev@dpdk.org" , Slava Ovsiienko Thread-Topic: [PATCH 0/4] net/mlx5: prepare to add E-switch rule flags check Thread-Index: AQHUesKFEqEx78yDtU6HG7LSrpgQCA== Date: Mon, 12 Nov 2018 20:01:39 +0000 Message-ID: <1542052877-41512-1-git-send-email-viacheslavo@mellanox.com> References: <1541225876-8817-2-git-send-email-viacheslavo@mellanox.com> In-Reply-To: <1541225876-8817-2-git-send-email-viacheslavo@mellanox.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: LO2P265CA0161.GBRP265.PROD.OUTLOOK.COM (2603:10a6:600:9::29) To AM4PR05MB3265.eurprd05.prod.outlook.com (2603:10a6:205:4::22) authentication-results: spf=none (sender IP is ) smtp.mailfrom=viacheslavo@mellanox.com; x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [37.142.13.130] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1; AM4PR05MB3377; 6:wwDCwsmcG0kcv3NfJvBLXTBiSWSoch8W+wpOeAvgo4J8D50+xbD1g+No1oHTzvsImrzf0oUhtIUUD3EujIBFgbokOh1i2LK3eSjDmworyM/X5k83hciK3yORUM+esd0pXUW3fsF8ZdWR80MabANiae501gFvkQWXdQ+FR8BsQSQp21JR4uf3ZAjdX96fZAYy5210BQGBTnKjMdTs+3UCxOyu3EDpADYwFDK7cOqHieCr+jQid/Yi1GagqFn+uGyzmTw1Xtm1OjaqIBOrmHnQv1Qs06BrWOCLTz+Yagd13fI/gMOLUG4iwFtM2py2fJJWF3VNAAypPEo1Ppp6jov4zFlkjns4CqB2m8rIKG9jOYJQ0vNa/2T7k1o8BVfSO8ElJbM/yX2R/5ZfXc8rF+0d/+8RKMmXuIBOOtLWsGPY9V9CgN2Uyyyu9HfscGNA1UmzWI1Jc/GoHDeUKjymeepqSQ==; 5:xGAUFbeWTUXfbJYc2kWphB/46vSgsmZjcslDXnQquyLryCjhS/NDwguGciNx5oIuhF3Tyv84a1ZUWNKPfhhcyd9IU9TUZjvsIqQOUrTkwT4Hdw/a2UkwoGeRMWOrrm+VKzl4PAt3HxNW740gCfppTj2V7a4TOgHQA8wl6Mche/I=; 7:YRLPsJDCOvqQ0nfvMi86KXYy2NFMUCvKrqq2MZTu8ln5G8PS+RfuWT5hqnkXK/+PxgoEKAqU2kPnBp+wUNf9AkaDpPmN2uimGwkLx3t2N2c+e6bs0yXJMnKXkJlKpwpF5SVFdMDSU6RA1xZI9UDfNQ== x-ms-office365-filtering-correlation-id: 2b3eb518-09ec-42ca-e054-08d648d9a817 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390040)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600074)(711020)(4618075)(2017052603328)(7153060)(7193020); SRVR:AM4PR05MB3377; x-ms-traffictypediagnostic: AM4PR05MB3377: x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:; x-ms-exchange-senderadcheck: 1 x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(10201501046)(3231382)(944501410)(52105112)(3002001)(93006095)(93001095)(6055026)(148016)(149066)(150057)(6041310)(20161123558120)(20161123562045)(20161123564045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(201708071742011)(7699051)(76991095); SRVR:AM4PR05MB3377; BCL:0; PCL:0; RULEID:; SRVR:AM4PR05MB3377; x-forefront-prvs: 0854128AF0 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(366004)(346002)(136003)(376002)(396003)(39860400002)(189003)(199004)(71200400001)(86362001)(71190400001)(97736004)(6486002)(446003)(478600001)(256004)(6636002)(14444005)(486006)(36756003)(2616005)(110136005)(54906003)(105586002)(68736007)(85306007)(316002)(25786009)(99286004)(2906002)(14454004)(106356001)(8676002)(102836004)(81166006)(107886003)(81156014)(2900100001)(6116002)(3846002)(66066001)(305945005)(7736002)(386003)(186003)(6436002)(53936002)(76176011)(6512007)(8936002)(4326008)(11346002)(5660300001)(6506007)(52116002)(476003)(26005); DIR:OUT; SFP:1101; SCL:1; SRVR:AM4PR05MB3377; H:AM4PR05MB3265.eurprd05.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; received-spf: None (protection.outlook.com: mellanox.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: b40Ovmubiie6HLXIlEE9UWY87Zn7BEVw4YRFevCf42TGowpD81ek2daZedvGPOOuZbDTRz8i/9NjiUI/yONegy2e7Q5mQ4F2CYypWD27F8rjy3GMTt44v7z+wtX7uu6Jt0EdsLIl86g/KmfrFn6e1TfUf6cqUYzuaSmDEoG04v1chgWKoKjnkdZbpzsj9s1vR49eOchkGOYK7Qk97t7bRBB/6Dpj5WNpd3S+5n5QqwR6QMYinUu023JO7T3pwJ3GOqkyEtxKFDASyiPrtVRZPR/dK/hBSfhVnZNfM1+XsWk9Il4JipIKx2QMmm+JCYKN6kJ3Iv9nVRQ5zE8rUa67iKEEHkUu7LfDlQ3gYau8xIw= spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-Network-Message-Id: 2b3eb518-09ec-42ca-e054-08d648d9a817 X-MS-Exchange-CrossTenant-originalarrivaltime: 12 Nov 2018 20:01:39.1008 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM4PR05MB3377 Subject: [dpdk-dev] [PATCH 0/4] net/mlx5: prepare to add E-switch rule flags 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: , X-List-Received-Date: Mon, 12 Nov 2018 20:01:40 -0000 The tc flower filter rules are used to control E-switch from the application side. In order to gain garanteed rule hardware offload the skip_sw flag should be specified while applying the rule. Some tc rules is rejected by kernel if skip_sw flag is set by design. Currently this regards VXLAN tunneling rules only, which are applied to special VXLAN virtual devices. Albeit these rules should be applied with no skip_sw flag set the kernel tries to perform hardware offload. If kernel succeeded the in_hw flag is set in rule properties and application may check this flag to get know whether the applied rule is actually hardware offloaded. Signed-off-by: Viacheslav Ovsiienko Viacheslav Ovsiienko (4): net/mlx5: prepare Netlink communication routine to fix net/mlx5: fix Netlink communication routine net/mlx5: prepare to add E-switch rule flags check net/mlx5: add E-switch rule hardware offload flag check drivers/net/mlx5/mlx5_flow.h | 1 + drivers/net/mlx5/mlx5_flow_tcf.c | 316 +++++++++++++++++++++++++++++------= ---- 2 files changed, 236 insertions(+), 81 deletions(-) --=20 1.8.3.1