Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp4103145pxb; Tue, 17 Nov 2020 11:19:32 -0800 (PST) X-Google-Smtp-Source: ABdhPJysJdMmZXkPG/EyCwqCtLq5G9LoFpxyEh8v59zEXtz9H43DIFgpd/sZVvkIPknDCsV/MHps X-Received: by 2002:a17:906:b791:: with SMTP id dt17mr3871511ejb.438.1605640772201; Tue, 17 Nov 2020 11:19:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605640772; cv=none; d=google.com; s=arc-20160816; b=wWcZjIHJr1OVAwGMSVXZkVyDp87E9KUbfOeNHsLQ6qD9drgMknQXvFmxsLuF0MjVSJ 2RT1+eOkr3rtI8ZI0UT1R3/lAbhwQeGgvwCZE7BA2j/XZpD6RxKCfWAE/EWP+TL9vOBu WVoyELSSulnudWmQ5QmiFirEx5iiZKe4Sp1hzkh9UfyFHNqOzlmkGWCSTFsdFpFbyETy WH0OoIvzN19c5+Uk7hUPpiqnbHl9XiwpRAJmzifxIZye/TmxeOTJ1ChZPCRGwdT/q98k 3/fAEo17ZJpOKNUoCUSZhhsfpXlW0NxDVWeqC6vLMxFofr6WxSA5lEDeEnWZl6yN1KCR JjYg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=68UWPbczHo5LE3ccLdpl1ez6+EdUva+mYmdnX0HIkU0=; b=k5ItPtAswOEGsLfsgMa1SsGok/3iLkpRCSgFtD802B2kcakPSgEuWNGW0j258iSxUP it1g9pvaKrgPKU7b9FdFUu1pQOigB2FObNv1DjccPTZMJxMRoB7EAqEtkJwXeIXNb/pG 19K23ABOibZmAvpU/vrEXPN0d0iFUfwJuefodQu+OmtTjQDma+Sk1vMBNN8Zaybld0PB CwU7KSDNZls4cbv3k9PTqoQmHd1k+nkjbYA3M4x/hsuvfS4V58ZvbfVYtJC5QQ5abqSX zoNUERr0i38gSnJZcN+vst+e8hFDQGGUcGcztaRDqujyWa0MR8dVwF13RTdh8vDvmGlI VrVw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=tSyq2xlc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h7si6537749edn.270.2020.11.17.11.19.08; Tue, 17 Nov 2020 11:19:32 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=tSyq2xlc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728594AbgKQTQ7 (ORCPT + 99 others); Tue, 17 Nov 2020 14:16:59 -0500 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:39732 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728273AbgKQTQv (ORCPT ); Tue, 17 Nov 2020 14:16:51 -0500 Received: from pps.filterd (m0098419.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 0AHJ2qkl002040; Tue, 17 Nov 2020 14:16:44 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-transfer-encoding; s=pp1; bh=68UWPbczHo5LE3ccLdpl1ez6+EdUva+mYmdnX0HIkU0=; b=tSyq2xlcTvVnJXRgID8gfY119kkeFpwvYee8rCX2EBmBRrFIu7bqF4D5en8EZtfOFq0J muCbZbeeqlIH1KrZeGqrxqtMzNdbu9wqFS2WM8EfHndjROhvcq2jehfe/ar1SCD2lGpe n+6yanD5kWir0t3xmz9sTPZhxoaSM0WGHv9IK13XQzrLBYXJQxj6IbS5U2+hVogbXOSj DdLx8GNhZlTumTym/zzmXX9cd68LHPc2kNChkJ+uxUX52m0HZRI9NDWiGGvgy/6ySoX5 0Acjl5qQBFNLowR8DcBYJDuuacHJr1ONfO5AhKg5reKwr5PJDcTfpkO5QmBonZHpjKEa lw== Received: from ppma01dal.us.ibm.com (83.d6.3fa9.ip4.static.sl-reverse.com [169.63.214.131]) by mx0b-001b2d01.pphosted.com with ESMTP id 34vd4q7n0r-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 17 Nov 2020 14:16:44 -0500 Received: from pps.filterd (ppma01dal.us.ibm.com [127.0.0.1]) by ppma01dal.us.ibm.com (8.16.0.42/8.16.0.42) with SMTP id 0AHJGfJl030297; Tue, 17 Nov 2020 19:16:44 GMT Received: from b03cxnp07029.gho.boulder.ibm.com (b03cxnp07029.gho.boulder.ibm.com [9.17.130.16]) by ppma01dal.us.ibm.com with ESMTP id 34uttrbpyx-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 17 Nov 2020 19:16:43 +0000 Received: from b03ledav006.gho.boulder.ibm.com (b03ledav006.gho.boulder.ibm.com [9.17.130.237]) by b03cxnp07029.gho.boulder.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 0AHJGgsE8913482 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 17 Nov 2020 19:16:42 GMT Received: from b03ledav006.gho.boulder.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 13816C6057; Tue, 17 Nov 2020 19:16:42 +0000 (GMT) Received: from b03ledav006.gho.boulder.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 9ADABC605B; Tue, 17 Nov 2020 19:16:41 +0000 (GMT) Received: from vios4361.aus.stglabs.ibm.com (unknown [9.3.43.61]) by b03ledav006.gho.boulder.ibm.com (Postfix) with ESMTP; Tue, 17 Nov 2020 19:16:41 +0000 (GMT) From: Tyrel Datwyler To: james.bottomley@hansenpartnership.com Cc: martin.petersen@oracle.com, linux-scsi@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org, brking@linux.ibm.com, Tyrel Datwyler Subject: [PATCH v2 6/6] ibmvfc: advertise client support for targetWWPN using v2 commands Date: Tue, 17 Nov 2020 13:16:36 -0600 Message-Id: <20201117191636.131127-7-tyreld@linux.ibm.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20201117191636.131127-1-tyreld@linux.ibm.com> References: <20201117191636.131127-1-tyreld@linux.ibm.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-TM-AS-GCONF: 00 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.312,18.0.737 definitions=2020-11-17_07:2020-11-17,2020-11-17 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 adultscore=0 clxscore=1015 phishscore=0 mlxlogscore=999 priorityscore=1501 mlxscore=0 lowpriorityscore=0 malwarescore=0 impostorscore=0 bulkscore=0 suspectscore=1 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2009150000 definitions=main-2011170133 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The previous patch added support for the targetWWPN field in version 2 MADs and vfcFrame structures. Set the IBMVFC_CAN_SEND_VF_WWPN bit in our capabailites flag during NPIV Login to inform the VIOS that this client supports this feature. Signed-off-by: Tyrel Datwyler --- drivers/scsi/ibmvscsi/ibmvfc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/ibmvscsi/ibmvfc.c b/drivers/scsi/ibmvscsi/ibmvfc.c index 9efc39b60cf7..a150b433f7b1 100644 --- a/drivers/scsi/ibmvscsi/ibmvfc.c +++ b/drivers/scsi/ibmvscsi/ibmvfc.c @@ -1255,7 +1255,7 @@ static void ibmvfc_set_login_info(struct ibmvfc_host *vhost) login_info->flags |= cpu_to_be16(IBMVFC_CLIENT_MIGRATED); login_info->max_cmds = cpu_to_be32(max_requests + IBMVFC_NUM_INTERNAL_REQ); - login_info->capabilities = cpu_to_be64(IBMVFC_CAN_MIGRATE); + login_info->capabilities = cpu_to_be64(IBMVFC_CAN_MIGRATE | IBMVFC_CAN_SEND_VF_WWPN); login_info->async.va = cpu_to_be64(vhost->async_crq.msg_token); login_info->async.len = cpu_to_be32(vhost->async_crq.size * sizeof(*vhost->async_crq.msgs)); strncpy(login_info->partition_name, vhost->partition_name, IBMVFC_MAX_NAME); -- 2.27.0