Message ID | 1488100203-31976-14-git-send-email-talatb@mellanox.com |
---|---|
State | New |
Headers | show
Return-Path: <kernel-team-bounces@lists.ubuntu.com> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from huckleberry.canonical.com (huckleberry.canonical.com [91.189.94.19]) by ozlabs.org (Postfix) with ESMTP id 3vYDpZ0nlPz9sNt; Wed, 1 Mar 2017 23:12:22 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=Mellanox.com header.i=@Mellanox.com header.b="FYgq9woi"; dkim-atps=neutral Received: from localhost ([127.0.0.1] helo=huckleberry.canonical.com) by huckleberry.canonical.com with esmtp (Exim 4.76) (envelope-from <kernel-team-bounces@lists.ubuntu.com>) id 1cj37B-0005Zg-I4; Wed, 01 Mar 2017 12:12:17 +0000 Received: from mail-db5eur01on0080.outbound.protection.outlook.com ([104.47.2.80] helo=EUR01-DB5-obe.outbound.protection.outlook.com) by huckleberry.canonical.com with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.76) (envelope-from <talatb@mellanox.com>) id 1chuqa-0007qn-Un for kernel-team@lists.canonical.com; Sun, 26 Feb 2017 09:10:29 +0000 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; bh=uW5+F16ryxmGNEs0lRJUHNNrrXKqWaME0qmNUONBbi4=; b=FYgq9woi6lzKr5jP6G+OWQM1mAyYdgGbVDgRj4TXeFd6YUo1T/aQnNl3GGE1esMDnvFxD5sDkrLRfICFe/S2d7xaumwCXiZDuxZ6eOVnGBsOUuIp7diBiY792PYy4T+OIH9my44KGNYkt77+1tvW+rT9aRydWhEsTcX3IihRE6s= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=talatb@mellanox.com; Received: from dev-h-vrt-005.mth.labs.mlnx (193.47.165.251) by HE1PR05MB1306.eurprd05.prod.outlook.com (10.162.250.151) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.919.13; Sun, 26 Feb 2017 09:10:26 +0000 From: Talat Batheesh <talatb@mellanox.com> To: <kernel-team@lists.canonical.com> Subject: [PATCH 14/18] net/sched: Reflect HW offload status Date: Sun, 26 Feb 2017 11:09:59 +0200 Message-ID: <1488100203-31976-14-git-send-email-talatb@mellanox.com> X-Mailer: git-send-email 2.5.0 In-Reply-To: <1488100203-31976-1-git-send-email-talatb@mellanox.com> References: <1488100203-31976-1-git-send-email-talatb@mellanox.com> MIME-Version: 1.0 X-Originating-IP: [193.47.165.251] X-ClientProxiedBy: AM4PR02CA0026.eurprd02.prod.outlook.com (10.165.239.164) To HE1PR05MB1306.eurprd05.prod.outlook.com (10.162.250.151) X-MS-Office365-Filtering-Correlation-Id: 22130c08-8bdd-48f2-2db5-08d45e274df2 X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(48565401081); SRVR:HE1PR05MB1306; X-Microsoft-Exchange-Diagnostics: 1; HE1PR05MB1306; 3:T6MGlyBE13Yna2wGcx+BNn1d7XctzQP7EMWtdKm0hgpSnbO/M1mrDhhrBk0lThbLAjY4A7FloZqBE2bnj3SUUPgd0V3lio79yqSyut2kEWQXXPv94zLAT+Jrwy7UH9adtGlJI0spFiqWB+WyljU2UJfSCZHBaXlM2OqMURE9Xz2tv1ggRwsjpgMi0QCdeHPnYBKSvx5fcwfvpDPH5PtvNWqyJCpo1PHhjSi20LS6UX6aCxdvYVYe8iD4WO1VFdS3zPvGrQsv2KVXFS91UlCKbFTl1AzNDnha5fioC9bLxjs=; 25:uxfTXYFvZxnzIAicyV76Wa3pxWmROWlUPo4zR5XgQo26yXrMilPorC0+w5ZeHQU9ExlWtDm8Qp7pmn1kpXSn0Y7b6sMDcyyDAetvf76mCizLiRjwrJiY8DpUem0hd6zw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xXfT5waegXZjJeXKPiyUpV8b+xnqS7BM4CFjO0iIYGBNMkQ1rYJ19JGp5FlDAoQ/VCCVTV1NsxM4cY7zxdC1x3 X-Microsoft-Antispam-PRVS: <HE1PR05MB1306A79D317A8D7C42B65B29AB540@HE1PR05MB1306.eurprd05.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:(211254476889703)(24339691489775); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040375)(601004)(2401047)(8121501046)(5005006)(3002001)(10201501046)(6055026)(6041248)(20161123558025)(20161123562025)(20161123555025)(20161123560025)(20161123564025)(6072148); SRVR:HE1PR05MB1306; BCL:0; PCL:0; RULEID:; SRVR:HE1PR05MB1306; X-Microsoft-Exchange-Diagnostics: 1; HE1PR05MB1306; 4:LiAjSsu9UTga6EhU27FzfjCRbrU23ara3RvUCGhuko6S6MnRNZiij7ewl6hzTW3e6AJzRk+uBUsxK9NlrJk73zj9dzrv/lvOkdW3E1zkp6FW8EY4xCgAI4k2nIO64KLnTmpl3mB2iSMF3WdpXveN6nPzjs2TH1aKWu6hF4wBtDGDtMMK1YVftq15I/mip7kRVGlz2wqPN3q3l13TIWqBS6sN5xlFRnuh8givDQsJYXy62UBflH1I0VvMb33Vn3ZJtpba223xa1cgL1QoBoYukwkbbUCfMD9xGHxnu/oi7F/eat+tgPuFOliaCJ+7fd+plJof0SGVoZeTW4E+fzUtqiQT+PDvcTwIlpGS2/t+dtBuz9yCaU2aoQmdwRi4y905EQIfH/CPwDwUz8JDpoZimJLjzFhqZ30p5ir9Bm8ZZQPxezEPOvaYbZPo9+mAllQj78OvUNH9MJYOm0XFjjPnN8Sdowx+NkE4vmkfo7dGCUbqEe7l33Bfk/UftSXRoWDBulTEhl0/GiJ56V8tjNqs88qasoPFv32YLMCJit0RaDXCur9woEODZRF+/y9ijfAkOOBwOw2h6zYo1ntLSOXw2vsLrjAhjt/nI025WOCnCsjWQPEcNARUdoF78GtnjkE6q/g10mPC/CnIdxHOfMgxd+PW+pvR+1zvZFZbNuiuT/7heetwz4UskCTgs0IUfNEiwsH4DuE08vG3sbfyLefvGw== X-Forefront-PRVS: 0230B09AC4 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(6009001)(7916002)(39410400002)(39450400003)(39850400002)(39840400002)(199003)(189002)(68736007)(81166006)(8676002)(6512007)(81156014)(50226002)(3846002)(6116002)(50466002)(6506006)(48376002)(66066001)(6306002)(25786008)(47776003)(6666003)(2950100002)(5003940100001)(6916009)(6486002)(36756003)(5660300001)(101416001)(189998001)(92566002)(7736002)(107886003)(110136004)(33646002)(97736004)(105586002)(38730400002)(106356001)(2351001)(305945005)(76176999)(50986999)(4326007)(53936002)(2906002)(86362001)(575784001)(42186005)(450100001); DIR:OUT; SFP:1101; SCL:1; SRVR:HE1PR05MB1306; H:dev-h-vrt-005.mth.labs.mlnx; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX:1; LANG:en; Received-SPF: None (protection.outlook.com: mellanox.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; HE1PR05MB1306; 23:BbszgNp8apY1aLQh1ybCT9AFO3HO8X4fDGkFp/lXN?= =?us-ascii?Q?MspjWu0nHvThJuCQTRU1n748WNodLXAhIz4DWYiOLXoRJTnBojr08ywrZ7gX?= =?us-ascii?Q?vifaxYMjD5cxNuC8U5jxCXpVGfx92MBWi8NLopt0JlJZsE1F4x2oTSPM7ElG?= =?us-ascii?Q?uJZnjZTH9xdI9sZ/FdpET9XRi84+NIFUtjl17HrpdIaFTr2Ja1PpKCZOPC0d?= =?us-ascii?Q?E8rQyNO+TH68+uN8YNn4yA9r9jVpn4kNgEmwpcSTLg03B2o7LBgW27PTrjq1?= =?us-ascii?Q?SDUG1ySpKL7SPwldxdPS1hB0vp1sx1LkZgvRFv532Mx4FYsuQPtGOkOIy4O2?= =?us-ascii?Q?TTQy4LouZijahC73uW34yCE/BORH/dvNy9DNSVrRxmk770ajpYBUD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9X0P1YzFZ4cP9sqKvTRdQkaydf9qpgze8Egce?= =?us-ascii?B?dz09?= X-Microsoft-Exchange-Diagnostics: 1; HE1PR05MB1306; 6:v0vAleDM26s7KcdkoyR+zrHu0/QsQ1jarxsHTe/XL2CZtrbphxO1l5shXb6VOacOt48BV7mCd2zEM3D29tTUNEMDaUw/DywhZRqLqghFKFE/Lzk7D3ilKRWSLMfbHzukewJ0Ke9sfFDiOB0jmWc80X00FurMzhENxkgtkXYM4tQde9kmRkonmmx1y2qJLuNu64/VhcVZmCehayx6QH091a7XaFB3Dzj+QsymYMIxxr9h9hDQ6301tDqqY1B5Ne8n28t9ypfEvOwNnCSPJHMLuWh2KbjE6++igZK7iKdP+NdSoQw1KyaSk07s4/Os/khH8el4jTG5JQ7smktKuiQuRLFUjYYQ2FD83RfR7XZn1ZILiUMGqMSZQDdSlADGdaB5hjWg8IFG5GX3od1B6yd4AZvlUnWDnxeMOY1/oAMmu9E=; 5:R6KKFOgr/8NMquWFWmZh9RWUy6NtXnWo7z/b3JGfEGuxSoxfGMXmCJqxnezpNXja8v5b5eN3BfKxsY/BVnjhZv1miWJNk00XhJDBz0gC2HrFrH6ocYNBPnEtBJuERaaV5Ny+NZycTj7ysM65ov/hVO0smKW9ecQORfVkmqCslXw=; 24:4ZJMXCNMit6ur0FcMhU+RmX2BJLQrGF1ksc+RWWg9yurrXUrhoIxHzEDRA8I/4wxpRvZL9F8pdjVfFRNTC5LQ6nGhfdArDySjAPt5QCNyLI= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; HE1PR05MB1306; 7:MsUdX6PFlW10Eu1f8E76lU/td8A+n1jfhbbI86KG+niZUFPSmhzIFgJ1KbxTqlqogbXVdPyrUfDWMJLN0W4TL+5cOTJ3XS/LOZUyawr8Nbj4EBsEKex29n4Sr5//lSUdeO8K44YITXLOWiAHpF0IjXFG++ouxDU4OKRY1h7ZjrzOQePKtVfpANind3bpqDaVBtty3/hJ8gownSUbERIyOL09YW4f+D5Ue3vY/4l2/K43FF7N9LtVIn+8lbUTso1IYRw6qerywGEcrlXDkSrHlrMpz7aJYFEaX8sqoc4qbn/QXI9j3Q1sQ2K2IpAmBbk7IIqfty14P+HcuXY+agwPWg== X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Feb 2017 09:10:26.5520 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1PR05MB1306 X-Mailman-Approved-At: Wed, 01 Mar 2017 12:12:14 +0000 Cc: talatb@mellanox.com X-BeenThere: kernel-team@lists.ubuntu.com X-Mailman-Version: 2.1.14 Precedence: list List-Id: Kernel team discussions <kernel-team.lists.ubuntu.com> List-Unsubscribe: <https://lists.ubuntu.com/mailman/options/kernel-team>, <mailto:kernel-team-request@lists.ubuntu.com?subject=unsubscribe> List-Archive: <https://lists.ubuntu.com/archives/kernel-team> List-Post: <mailto:kernel-team@lists.ubuntu.com> List-Help: <mailto:kernel-team-request@lists.ubuntu.com?subject=help> List-Subscribe: <https://lists.ubuntu.com/mailman/listinfo/kernel-team>, <mailto:kernel-team-request@lists.ubuntu.com?subject=subscribe> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: kernel-team-bounces@lists.ubuntu.com Sender: kernel-team-bounces@lists.ubuntu.com |
diff --git a/include/net/pkt_cls.h b/include/net/pkt_cls.h index f0a0514..e424e45 100644 --- a/include/net/pkt_cls.h +++ b/include/net/pkt_cls.h @@ -473,6 +473,11 @@ static inline bool tc_flags_valid(u32 flags) return true; } +static inline bool tc_in_hw(u32 flags) +{ + return (flags & TCA_CLS_FLAGS_IN_HW) ? true : false; +} + enum tc_fl_command { TC_CLSFLOWER_REPLACE, TC_CLSFLOWER_DESTROY, diff --git a/include/uapi/linux/pkt_cls.h b/include/uapi/linux/pkt_cls.h index a4dcd88..4255387 100644 --- a/include/uapi/linux/pkt_cls.h +++ b/include/uapi/linux/pkt_cls.h @@ -155,8 +155,10 @@ enum { #define TCA_POLICE_MAX (__TCA_POLICE_MAX - 1) /* tca flags definitions */ -#define TCA_CLS_FLAGS_SKIP_HW (1 << 0) -#define TCA_CLS_FLAGS_SKIP_SW (1 << 1) +#define TCA_CLS_FLAGS_SKIP_HW (1 << 0) /* don't offload filter to HW */ +#define TCA_CLS_FLAGS_SKIP_SW (1 << 1) /* don't use filter in SW */ +#define TCA_CLS_FLAGS_IN_HW (1 << 2) /* filter is offloaded to HW */ +#define TCA_CLS_FLAGS_NOT_IN_HW (1 << 3) /* filter isn't offloaded to HW */ /* U32 filters */