Message ID | 20170110191554.17359-7-bart.vanassche@sandisk.com (mailing list archive) |
---|---|
State | Accepted |
Headers | show
Return-Path: <linux-rdma-owner@kernel.org> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 8041360231 for <patchwork-linux-rdma@patchwork.kernel.org>; Tue, 10 Jan 2017 19:17:42 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1F2841FF13 for <patchwork-linux-rdma@patchwork.kernel.org>; Tue, 10 Jan 2017 19:17:42 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 13B5D2859B; Tue, 10 Jan 2017 19:17:42 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A6C6628599 for <patchwork-linux-rdma@patchwork.kernel.org>; Tue, 10 Jan 2017 19:17:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S940646AbdAJTRa (ORCPT <rfc822;patchwork-linux-rdma@patchwork.kernel.org>); Tue, 10 Jan 2017 14:17:30 -0500 Received: from mail-co1nam03on0077.outbound.protection.outlook.com ([104.47.40.77]:45259 "EHLO NAM03-CO1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S940700AbdAJTQD (ORCPT <rfc822;linux-rdma@vger.kernel.org>); Tue, 10 Jan 2017 14:16:03 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sandiskcorp.onmicrosoft.com; s=selector1-sandisk-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=W0J/UIkh4w3Bz96g6VdxOGz8XKnuaNOvye1opunOA68=; b=pXwldLRRcaCnSMF9kzl/2kmN46Tl1eXXWxC0qEfdR22cVEA4pzz+uCAEFgTniAY+kNTuSiTpfUNCHZiBMCw5zVlMEFoG+qLCdEXiss9M1Z3uSeypt58Bkj3svdrhMG3sov8Ecz6RTcX9lyER97K1H3cw+fGCIGFp/HVbsExEHkU= Received: from BY2PR02CA0051.namprd02.prod.outlook.com (10.141.216.41) by BY2PR02MB1409.namprd02.prod.outlook.com (10.162.80.15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.817.10; Tue, 10 Jan 2017 19:15:59 +0000 Received: from BL2FFO11OLC014.protection.gbl (2a01:111:f400:7c09::191) by BY2PR02CA0051.outlook.office365.com (2a01:111:e400:2c40::41) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.829.7 via Frontend Transport; Tue, 10 Jan 2017 19:15:59 +0000 Authentication-Results: spf=pass (sender IP is 63.163.107.21) smtp.mailfrom=sandisk.com; mellanox.com; dkim=none (message not signed) header.d=none;mellanox.com; dmarc=bestguesspass action=none header.from=sandisk.com; mellanox.com; dkim=none (message not signed) header.d=none; Received-SPF: Pass (protection.outlook.com: domain of sandisk.com designates 63.163.107.21 as permitted sender) receiver=protection.outlook.com; client-ip=63.163.107.21; helo=milsmgep15.sandisk.com; Received: from milsmgep15.sandisk.com (63.163.107.21) by BL2FFO11OLC014.mail.protection.outlook.com (10.173.160.144) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.803.8 via Frontend Transport; Tue, 10 Jan 2017 19:15:58 +0000 Received: from MILHUBIP04.sdcorp.global.sandisk.com (Unknown_Domain [10.201.67.162]) (using TLS with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by (Symantec Messaging Gateway) with SMTP id EF.A9.65426.84035785; Tue, 10 Jan 2017 11:04:40 -0800 (PST) Received: from milsmgip11.sandisk.com (10.177.8.100) by MILHUBIP04.sdcorp.global.sandisk.com (10.177.9.97) with Microsoft SMTP Server id 14.3.319.2; Tue, 10 Jan 2017 11:15:55 -0800 X-AuditID: 0ac94369-7f3ff7000001ff92-38-587530487b47 Received: from exp-402881.sdcorp.global.sandisk.com ( [10.177.9.6]) by (Symantec Messaging Gateway) with SMTP id 1D.48.16817.AE235785; Tue, 10 Jan 2017 11:15:54 -0800 (PST) From: Bart Van Assche <bart.vanassche@sandisk.com> To: Doug Ledford <dledford@redhat.com> CC: <linux-rdma@vger.kernel.org>, Moni Shoua <monis@mellanox.com> Subject: [PATCH v2 06/15] IB/rxe: Enable type checking on SKB_TO_PKT() and PKT_TO_SKB() arguments Date: Tue, 10 Jan 2017 11:15:45 -0800 Message-ID: <20170110191554.17359-7-bart.vanassche@sandisk.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170110191554.17359-1-bart.vanassche@sandisk.com> References: <20170110191554.17359-1-bart.vanassche@sandisk.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrDLMWRmVeSWpSXmKPExsXCddJ5ka6HQWmEwYtfMhYvz39gtXh2qJfF YsP7NewOzB7Pph9m8ni/7yqbx+dNcgHMUVw2Kak5mWWpRfp2CVwZM9pmMxcc56x4cGM1ewPj ZI4uRk4OCQETiU8fnzJ2MXJxCAksZZJ4d/4IC4Szg1FiyZF5rDBVHe0n2SESGxklTv88ywaS YBMwkvj2fiYLiC0ioCax6dUidhCbWcBR4tK0T0wgtrBAosSRJ1PA6lkEVCWWvOoFG8orYC9x e/ZFZogF8hK72i6CxTkFHCQ+LLgP1MsBtMxeYsoqY5C9EgL3WSTm7PnLDtErKHFy5hMWiF0S EgdfvACbIySgLnFyyXymCYxCs5CUzUJStoCRaRWjWG5mTnFuemqBoalecWJeSmZxtl5yfu4m RkgYZ+5gvPvE+xCjAAejEg/vgxclEUKsiWXFlbmHGCU4mJVEeFP1SiOEeFMSK6tSi/Lji0pz UosPMUpzsCiJ87rd+xImJJCeWJKanZpakFoEk2Xi4JRqYNys1H0u4rJT7nI56RLRt14dE5m3 ckxkvf5Flv/Bs3vVx5cc2slptGDvrDO+tlsYb0ybNW/RstrWtXWKdz+1TgmR/KW8jpk//07p g0aza8kmW79n+LTbcyzrOrE5sfPWM9kXS+buf3W1+nhk7+WlYczlwlbHlpXfS+TI8JwuPZ/7 bkL7x7T8yVOUWIozEg21mIuKEwFYPbNPXwIAAA== X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFuplkuLIzCtJLcpLzFFi42Lh2sjJpvvKqDTC4O0aZYuX5z+wWjw71Mti seH9GnYHZo9n0w8zebzfd5XN4/MmuQDmKC6blNSczLLUIn27BK6MGW2zmQuOc1Y8uLGavYFx MkcXIyeHhICJREf7SfYuRg4OIYH1jBLrDEHCbAJGEt/ez2QBsUUE1CQ2vVoEVsIs4Chx+3wI SFhYIFHiyJMpbCA2i4CqxJJXvawgJbwC9hJXTgdDDJeX2NV2kRXE5hRwkPiw4D4TxCJ7iSmr jCcwci9gZFjFKJabmVOcm55ZYGioV5yYl5JZnK2XnJ+7iRHi4cgdjE8nmh9iZOLglGpgZOCe 735674ZTFx/3ya/YWJbJXbL/ZOzuUK8H+ksuX+ewXLrm3UXxneFbDr9KbeavlYjkYM8JOlhW +tpqfW5L7SLWIgkpzdvbrFzVr7Gxf5SVsme1YxeWFcqx3vd875Xt8gUn9is07Are/1eK54vS 2VAOkzMTl0yO7xXzSAzyLbt4frew3LN9SizFGYmGWsxFxYkApTnnPaABAAA= MIME-Version: 1.0 Content-Type: text/plain X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-HT: Tenant X-Forefront-Antispam-Report: CIP:63.163.107.21; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(7916002)(39410400002)(39450400003)(39850400002)(39840400002)(39860400002)(2980300002)(438002)(199003)(189002)(50466002)(77096006)(48376002)(2270400002)(81166006)(81156014)(106466001)(305945005)(356003)(86362001)(8676002)(38730400001)(92566002)(54906002)(33646002)(110136003)(6666003)(36756003)(2950100002)(6916009)(5003940100001)(4326007)(50986999)(76176999)(5660300001)(47776003)(626004)(1076002)(68736007)(97736004)(2906002)(50226002)(8936002)(69596002)(189998001); DIR:OUT; SFP:1101; SCL:1; SRVR:BY2PR02MB1409; H:milsmgep15.sandisk.com; FPR:; SPF:Pass; PTR:InfoDomainNonexistent; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BL2FFO11OLC014; 1:zWqV/6U77ngY1HDptxc98S6e9eI5oXg09dRfgLLJ7g5TsbnEPq0xIAbNYgpV/QYzoyqFF/DhXzfufqa7cL6ygUXGgnVq/ep1WogsN6a/K5j68356dLRVDuUsfdNsYUaWiJMD5bbUvQFjBeaCVsrGJQ6ERodTiTVwWwmh7c9SA29GgrHGMBp0ff7jMkbU6mFAnB3pxmKW/IPIA+UhGqgI55FNHiVJxr8YKACFgYaFhEfLvoQ7GxNIV6uYaqL/52+33RLvjUUtiZ2J6gU6hMXXXlG7G0MLqBdwb4wtJqUeEmqUno8A8O8D9psfl4DgIYOMNJm+AX3YjKjdNVKLl1N7xtSDC3BdiUNxJFnGVCYcocv01jdif5EnMTECbvEi/J629G5NTIikvNIKmX7rs8JR1WTsTMzbqei3YPJ57tSg8F79MX0zd8vYwmZJ23d6d0JilNIihusQn/jeQE5zI11vYMld1oIvIy0tPBngxczLeaIQhtqGEVdhazlJffUv6NA8l/D3RONfG/PN0SQEfyFPZA== X-MS-Office365-Filtering-Correlation-Id: 0aa88504-1047-40f4-bca1-08d4398d1c00 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(8251501002); SRVR:BY2PR02MB1409; X-Microsoft-Exchange-Diagnostics: 1; BY2PR02MB1409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KqONcd1LphWwRTXiSFEqnsAQWIMW7I0Q25j0KFgelMXB5sIm8dUZtSdKpwLleXkbMGSIezoXSsQdBVfmEiT/NlNoDTGsfP+ILutowKypv/GbwsbY8j2KZuPdCZb1to41MeyokXF9fOPjBWIiCpKpQEF0sQ=; 20:CmnlPrlTpbJQBrkH4rFbLbQMcZOZUYXRl8JY97qrDwnIKezI/dMIxCjjWSy1zQezvtCOZQPJ6Bm7C+gOWEtoPP6aATSImqN1jM2UzRLSUX/xQirOMRCu/tVmlR3JHoFCD36hsS6A2SbAGb/8SubZUzKuzeJC2K5YoIEp9AvdQnEyXiYFh3u48I/mMMW7I3vnmQfUjYImhXc9kKkA1bxiphsVPdL996Cf4v2YRk9F8kGN8zITVusulSi1xSTVMqxVNYUJ3RcZIzCkVsmhw2gL5nwQiJXEDhmF7ph9OPnMoeG3CYMH44eIJYQn92goqxDzfWXPj9oAizOTjl2elBFTlTdWhva4jYuCRXISajRSdXS3lC7+HuOmDGH979p+xWQT6E9tFY9C8QMOk26ZzZsFWv5k6d10fAopAJdsIsigNbne77NWH11KaJd1331VMeimAUjmVPOyOZPE94p9QIK8LiZm3oNOpl37bBlC6CDvPxz12x73LzTMk6D3F5MX++/0 X-Microsoft-Antispam-PRVS: <BY2PR02MB140938736B134F595055073281670@BY2PR02MB1409.namprd02.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:(56004941905204)(42932892334569); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040375)(601004)(2401047)(13016025)(13018025)(5005006)(8121501046)(3002001)(10201501046)(6055026)(6041248)(20161123562025)(20161123555025)(20161123564025)(20161123560025)(6072148); SRVR:BY2PR02MB1409; BCL:0; PCL:0; RULEID:; SRVR:BY2PR02MB1409; X-Microsoft-Exchange-Diagnostics: 1; BY2PR02MB1409; 4:RPKl4+Kev7f3+QqUGJwnWlZvnMvBiENdPWDW0zexl/4qOwJsQnkxhtYAxhgX3yVT6lY2j7/caYmysJohv+hGgFLGh1E3ryS6BCj/XcosvNk8wEZSkti7MG0muYjHu8wJFfOiDsYY0zFDITzntHgFxIINgO+3DzRBvmUoil2fFo/LBFyep+6zcBE92GPZQvSwpee0c6GPS+jptpdWTQ39Seyao0Onp1O9D8j3VIubm/EDwg5t0MivIXaULczFLttuEIjcF5EiVMrwxZ6gDzs6I9f7ZMO/O0Gno4KUbfyUKrR06+z39sOt8+rPGEit5IUnvfwtolNfXILWX54FKR0QbmZrhjUjGRguNrxAvoqoLHYb5spiXKfpiYP0bBSLFEL+aUB6lurpTBglpVijjoYT4ZmFy1z7fdHd0CbnMg6UyZst51PZpfjuiV082jSicFa+CUp7nnZLdCaDmBaIFQay+6pCDh2/CIQ4aGo6NddCAyFn+jzM/cy9kOEnmDEby3897V7So8HwgwG5otvu2SnskHXjC9F77aeKryWZV6eKNsfoWL6M7EMqxYZB9Q0PuHla7Cw+D6bbQqxZ3V0oCfY2MGm8T05SgzD+HGcrCjT4TFWhtbWLgob8VII4sM7eKqobEy26C09C6AlsBWXcfv+MvQbPn6pIG33+Zy+MySr8jVXrLBDxWw7unodCliPgSqVAr3A93DKmHtyKa/j1soqMZA== X-Forefront-PRVS: 01834E39B7 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BY2PR02MB1409; 23:ouHBcsjHVgdCj1BjdZvvkML+i+l8wkDAbTOen3xYP?= =?us-ascii?Q?pJdilZ33Mug0N/pcVyywx8xXiQD6HCu/j3mR0eN6XDVKceE2QJGitwS4tv0k?= =?us-ascii?Q?xdlm+8DT3Cfnb3De4ckl8Bx0LtawWKp8oi6p1rv5EsvNQ9r8wQ0JXLtfpEM0?= =?us-ascii?Q?RsgZA0ahYES4RzciDG7iHTxMwuzZEnQ8ixLBt+tsQnhCgQcFqg/GeAn349w8?= =?us-ascii?Q?sF2HM/+U2i4yr+d4clgqpAwKdIQ8BD/+hPrZ7IVh+EsIlfDnKhsZV+d6ZRbF?= =?us-ascii?Q?gNnNB30z3hl4RXcdao5igkypXVDDD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+kGew7x2TX8jQ3B2aOgT8YHHucw5gEO4ERZGC+QXwmX3cMEpKx8GfuYB/zlhmVGcCnyk3qpHwEG9jKy++jJKdsz4O3jbgO7kd3npYXyHraIBDgVS4G3Vz8/mQpOfiCTactZZYUoxM6hcwqCY10pR+6zU1Gr0J6deTH6xsOHcib/yR3G7GP4EagCEnBvkV88HRE3oJctVl4pNFM7FsAose4uaSO74Eb3+Wgro88LB1fXKKQsFF6Vusa5cS+0mBWNxHA== X-OriginatorOrg: sandisk.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Jan 2017 19:15:58.3760 (UTC) X-MS-Exchange-CrossTenant-Id: fcd9ea9c-ae8c-460c-ab3c-3db42d7ac64d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=fcd9ea9c-ae8c-460c-ab3c-3db42d7ac64d; Ip=[63.163.107.21]; Helo=[milsmgep15.sandisk.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY2PR02MB1409 Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: <linux-rdma.vger.kernel.org> X-Mailing-List: linux-rdma@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/drivers/infiniband/sw/rxe/rxe_hdr.h b/drivers/infiniband/sw/rxe/rxe_hdr.h index d57b5e956ceb..6cb18406f5b8 100644 --- a/drivers/infiniband/sw/rxe/rxe_hdr.h +++ b/drivers/infiniband/sw/rxe/rxe_hdr.h @@ -53,8 +53,16 @@ struct rxe_pkt_info { }; /* Macros should be used only for received skb */ -#define SKB_TO_PKT(skb) ((struct rxe_pkt_info *)(skb)->cb) -#define PKT_TO_SKB(pkt) container_of((void *)(pkt), struct sk_buff, cb) +static inline struct rxe_pkt_info *SKB_TO_PKT(struct sk_buff *skb) +{ + BUILD_BUG_ON(sizeof(struct rxe_pkt_info) > sizeof(skb->cb)); + return (void *)skb->cb; +} + +static inline struct sk_buff *PKT_TO_SKB(struct rxe_pkt_info *pkt) +{ + return container_of((void *)pkt, struct sk_buff, cb); +} /* * IBA header types and methods