From patchwork Wed Feb 23 02:42:49 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zhu Yanjun X-Patchwork-Id: 12754781 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 05423C433EF for ; Tue, 22 Feb 2022 10:22:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230483AbiBVKWy (ORCPT ); Tue, 22 Feb 2022 05:22:54 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48554 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230526AbiBVKWt (ORCPT ); Tue, 22 Feb 2022 05:22:49 -0500 Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8393F8BF0B for ; Tue, 22 Feb 2022 02:22:21 -0800 (PST) X-IronPort-AV: E=McAfee;i="6200,9189,10265"; a="251423883" X-IronPort-AV: E=Sophos;i="5.88,387,1635231600"; d="scan'208";a="251423883" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Feb 2022 02:22:21 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.88,387,1635231600"; d="scan'208";a="532171952" Received: from intel-obmc.bj.intel.com (HELO intel-71.bj.intel.com) ([10.238.154.71]) by orsmga007.jf.intel.com with ESMTP; 22 Feb 2022 02:22:19 -0800 From: yanjun.zhu@linux.dev To: mustafa.ismail@intel.com, shiraz.saleem@intel.com, jgg@ziepe.ca, linux-rdma@vger.kernel.org, yanjun.zhu@linux.dev, leon@kernel.org Subject: [PATCHv2 0/3] Use net_type to check network type Date: Tue, 22 Feb 2022 21:42:49 -0500 Message-Id: <20220223024252.3873736-1-yanjun.zhu@linux.dev> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org From: Zhu Yanjun The member variable net_type already exists. Now it is used to check network type. As such, the variable saddr is redundant. So it is removed. The union irdma_sockaddr is used in several functions. So it is moved into header file. Zhu Yanjun (3): RDMA/irdma: Use net_type to check network type RDMA/irdma: Remove the unnecessary variable saddr RDMA/irdma: Move union irdma_sockaddr to header file drivers/infiniband/hw/irdma/verbs.c | 26 ++++++-------------------- drivers/infiniband/hw/irdma/verbs.h | 12 +++++++----- 2 files changed, 13 insertions(+), 25 deletions(-) Acked-by: Shiraz Saleem --- V1-->V2: Modify the commit log.