From patchwork Fri Aug 19 09:50:07 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jitendra Bhivare X-Patchwork-Id: 9289919 Return-Path: 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 E1CFE607FF for ; Fri, 19 Aug 2016 09:51:20 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D31B3292FF for ; Fri, 19 Aug 2016 09:51:20 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C7F0929333; Fri, 19 Aug 2016 09:51:20 +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 76286292FF for ; Fri, 19 Aug 2016 09:51:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754140AbcHSJvT (ORCPT ); Fri, 19 Aug 2016 05:51:19 -0400 Received: from mail-wm0-f42.google.com ([74.125.82.42]:38281 "EHLO mail-wm0-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753571AbcHSJvQ (ORCPT ); Fri, 19 Aug 2016 05:51:16 -0400 Received: by mail-wm0-f42.google.com with SMTP id o80so32599378wme.1 for ; Fri, 19 Aug 2016 02:51:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=fh6lGe/79WTzEMHrLlr3d2uqQeUorue9kfihTb8sx6g=; b=b3gypOJ8qLFDbrgasNzH6pw8YPQHPVtjQUobVxBGvmMAZWfP23hhFZohm6YBROBVin Sf8ti4dXFQe66IeZZTNIWsB8V3r7q2wrXA8hL6r2nNxZJuVKrtCshdKbFsjWHer5SF4n zeBncTWWBAoMgZdwsemb2lpu009Hx6PCpRLA4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=fh6lGe/79WTzEMHrLlr3d2uqQeUorue9kfihTb8sx6g=; b=jwtDdoUji+VRxRXJzyY0i5Tv0c6Rtj5eDmsqpjjrWt2Q+aM+f+684anYTLNXox9Nat 1wWFap4hF/3H9rMePHtyAq/pHSOZ3Yjb13LLmgEufJGu88rifEkokAdWT4x3gCts352A S+f5TNOoSmRLCQ+k34luKZ9IMoitN66J2O7Ky+qX+YCakZNheF4AMQNGi3OtNwprzYoZ xzPiZ+91OXpHQ/8jze40BScUBcXeODnayJ9zCs++isYPm6tqU5/oAOXOCJFUjLxl7Wxy P87h996ZEHhsM67rDc1/jE6B23J0Z7ZTRrAvwxHdinGH0MLzpPPsFZtIqbNT616Vsx+K jUnw== X-Gm-Message-State: AEkoouuFIPbwhq4iOo5sfbvzxaNElPGgVs2BnVpLyKDnRKifdEZKosgD6lXPsXJ+xfjb/WEr X-Received: by 10.194.134.234 with SMTP id pn10mr5518025wjb.35.1471600274785; Fri, 19 Aug 2016 02:51:14 -0700 (PDT) Received: from android.dhcp.avagotech.net ([192.19.239.250]) by smtp.gmail.com with ESMTPSA id n131sm3650096wmd.3.2016.08.19.02.51.12 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 19 Aug 2016 02:51:14 -0700 (PDT) From: Jitendra Bhivare To: linux-scsi@vger.kernel.org Cc: mchristi@redhat.com, Jitendra Bhivare Subject: [PATCH v2 10/29] be2iscsi: Handle only NET_PARAM in iface_get_param Date: Fri, 19 Aug 2016 15:20:07 +0530 Message-Id: <1471600226-22055-11-git-send-email-jitendra.bhivare@broadcom.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1471600226-22055-1-git-send-email-jitendra.bhivare@broadcom.com> References: <1471600226-22055-1-git-send-email-jitendra.bhivare@broadcom.com> Sender: linux-scsi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Wrong settings displayed for iface: iface.header_digest = 192.168.197.22 iface.data_digest = 255.255.255.0 iface.immediate_data = 192.168.197.1 Process ISCSI_NET_PARAM only in beiscsi_iface_get_param. Signed-off-by: Jitendra Bhivare Reviewed-by: Hannes Reinecke --- drivers/scsi/be2iscsi/be_iscsi.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/scsi/be2iscsi/be_iscsi.c b/drivers/scsi/be2iscsi/be_iscsi.c index 1fe273d..fa415c4 100644 --- a/drivers/scsi/be2iscsi/be_iscsi.c +++ b/drivers/scsi/be2iscsi/be_iscsi.c @@ -574,6 +574,8 @@ int beiscsi_iface_get_param(struct iscsi_iface *iface, struct be_cmd_get_def_gateway_resp gateway; int len = -EPERM; + if (param_type != ISCSI_NET_PARAM) + return 0; if (phba->state & BE_ADAPTER_PCI_ERR) { beiscsi_log(phba, KERN_ERR, BEISCSI_LOG_CONFIG, "BS_%d : In PCI_ERROR Recovery\n");