From patchwork Mon Jan 29 06:04:29 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?b?VG9tIEdlbmco6IC/6Iqz5b+gKQ==?= X-Patchwork-Id: 10189353 X-Patchwork-Delegate: christophe.varoqui@free.fr 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 66F7360375 for ; Mon, 29 Jan 2018 06:06:13 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 531B1287E2 for ; Mon, 29 Jan 2018 06:06:13 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 45999287ED; Mon, 29 Jan 2018 06:06:13 +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.9 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, T_FUZZY_SPRM autolearn=ham version=3.3.1 Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 6F5D3287E2 for ; Mon, 29 Jan 2018 06:06:11 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id E4FBA4DD7C; Mon, 29 Jan 2018 06:06:08 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 735457D51F; Mon, 29 Jan 2018 06:06:07 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id 0A22E4ED34; Mon, 29 Jan 2018 06:06:04 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id w0T64qtP015370 for ; Mon, 29 Jan 2018 01:04:52 -0500 Received: by smtp.corp.redhat.com (Postfix) id A022E60BF1; Mon, 29 Jan 2018 06:04:52 +0000 (UTC) Delivered-To: dm-devel@redhat.com Received: from mx1.redhat.com (ext-mx04.extmail.prod.ext.phx2.redhat.com [10.5.110.28]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 9590F60BE7 for ; Mon, 29 Jan 2018 06:04:49 +0000 (UTC) Received: from unicom145.biz-email.net (unicom145.biz-email.net [210.51.26.145]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id F13837EA84 for ; Mon, 29 Jan 2018 06:04:42 +0000 (UTC) Received: from ([218.57.135.44]) by unicom145.biz-email.net (Antispam) with ASMTP (SSL) id THH07441; Mon, 29 Jan 2018 14:04:41 +0800 Received: from JTJNCAS09.home.langchao.com (172.30.26.39) by jtjncas06.home.langchao.com (172.30.26.25) with Microsoft SMTP Server (TLS) id 14.2.247.3; Mon, 29 Jan 2018 14:04:39 +0800 Received: from jtjnmailbox06.home.langchao.com ([fe80::e4de:81f:6d38:34d9]) by JTJNCAS09.home.langchao.com ([::1]) with mapi id 14.02.0247.003; Mon, 29 Jan 2018 14:04:30 +0800 From: =?utf-8?B?VG9tIEdlbmco6IC/6Iqz5b+gKQ==?= To: "xose.vazquez@gmail.com" Thread-Topic: [dm-devel] multipath-tools: add INSPUR/MCS to hardware table Thread-Index: AdOYxmSJ7eCaFiXGS7O9mUpmmxOpmw== Date: Mon, 29 Jan 2018 06:04:29 +0000 Message-ID: <6FA0216CBF61AE4AA9DA6744243E7853DB5C4578@jtjnmailbox06.home.langchao.com> Accept-Language: zh-CN, en-US Content-Language: zh-CN X-MS-Has-Attach: yes X-MS-TNEF-Correlator: x-originating-ip: [172.30.26.1] MIME-Version: 1.0 X-Greylist: Sender passed SPF test, Sender IP whitelisted by DNSRBL, ACL 207 matched, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.28]); Mon, 29 Jan 2018 06:04:47 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.28]); Mon, 29 Jan 2018 06:04:47 +0000 (UTC) for IP:'210.51.26.145' DOMAIN:'unicom145.biz-email.net' HELO:'unicom145.biz-email.net' FROM:'gengfangzhong@inspur.com' RCPT:'' X-RedHat-Spam-Score: -0.691 (RCVD_IN_DNSWL_LOW, SPF_PASS, T_FUZZY_SPRM) 210.51.26.145 unicom145.biz-email.net 210.51.26.145 unicom145.biz-email.net X-Scanned-By: MIMEDefang 2.78 on 10.5.110.28 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 X-loop: dm-devel@redhat.com Cc: "dm-devel@redhat.com" Subject: Re: [dm-devel] multipath-tools: add INSPUR/MCS to hardware table X-BeenThere: dm-devel@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: device-mapper development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dm-devel-bounces@redhat.com Errors-To: dm-devel-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.38]); Mon, 29 Jan 2018 06:06:10 +0000 (UTC) X-Virus-Scanned: ClamAV using ClamSMTP Hi, Xose, I sent the patch to dm-devel last week, but forgot to CC you. Please help to review and have chance to submit to the mainline. Thank you a lot. >From 091bae5fec22c61f0c3e6f9ab848fecae5203122 Mon Sep 17 00:00:00 2001 From: Tom Geng Date: Tue, 23 Jan 2018 15:33:09 +0800 Subject: [PATCH] multipath-tools: add INSPUR/MCS to hardware table Reviewed-by: Xose Vazquez Perez --- libmultipath/hwtable.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/libmultipath/hwtable.c b/libmultipath/hwtable.c index 448effe3..93d67df0 100644 --- a/libmultipath/hwtable.c +++ b/libmultipath/hwtable.c @@ -1181,6 +1181,17 @@ static struct hwentry default_hw[] = { .pgpolicy = MULTIBUS, .no_path_retry = 30, }, + /* + * INSPUR + */ + { + /* AS5300/AS5500 G2 */ + .vendor = "INSPUR", + .product = "MCS", + .pgpolicy = GROUP_BY_PRIO, + .pgfailback = -FAILBACK_IMMEDIATE, + .prio_name = PRIO_ALUA, + }, /* * EOL */