From patchwork Wed Jun 19 15:16:10 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Doug Ledford X-Patchwork-Id: 11004487 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 9159776 for ; Wed, 19 Jun 2019 15:16:21 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 75A1128B97 for ; Wed, 19 Jun 2019 15:16:21 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6A03828B8C; Wed, 19 Jun 2019 15:16:21 +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=-7.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI 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 EDF3328B9F for ; Wed, 19 Jun 2019 15:16:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726091AbfFSPQT (ORCPT ); Wed, 19 Jun 2019 11:16:19 -0400 Received: from mx1.redhat.com ([209.132.183.28]:42858 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726009AbfFSPQT (ORCPT ); Wed, 19 Jun 2019 11:16:19 -0400 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 5F7523082263; Wed, 19 Jun 2019 15:16:19 +0000 (UTC) Received: from linux-ws.nc.xsintricity.com.com (ovpn-112-50.rdu2.redhat.com [10.10.112.50]) by smtp.corp.redhat.com (Postfix) with ESMTP id 8EA765C221; Wed, 19 Jun 2019 15:16:18 +0000 (UTC) From: Doug Ledford To: linux-rdma@vger.kernel.org Cc: Doug Ledford , jgg@ziepe.ca, leon@kernel.org Subject: [PATCH v1 0/2] RDMA/netlink: cleanups Date: Wed, 19 Jun 2019 11:16:10 -0400 Message-Id: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.45]); Wed, 19 Jun 2019 15:16:19 +0000 (UTC) Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP In order to make it easier to add new netlink attributes into the policy array in the future while avoiding duplication, sort the array on the attribute name. While at it, audit the policy settings for strings and make a few cleanups. v0->v1: The first patch didn't contain the whitespace fixes, which made the second patch much noisier than it should be. Move all of the whitespace and sorting changes to patch 1 with no functional changes, and make patch 2 only have functional changes. Doug Ledford (2): RDMA/netlink: Resort policy array RDMA/netlink: Audit policy settings for netlink attributes drivers/infiniband/core/nldev.c | 159 ++++++++++++++++--------------- include/uapi/rdma/rdma_netlink.h | 1 + 2 files changed, 81 insertions(+), 79 deletions(-)