Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp38058imm; Wed, 25 Jul 2018 22:03:37 -0700 (PDT) X-Google-Smtp-Source: AAOMgpfsVt4QoERwB9NnNWW130UJNn89UGvOC/ckaEm2HXPs5OOtLZ5Lm5kX+V/PrUOQd7KT/wMP X-Received: by 2002:a62:2b4c:: with SMTP id r73-v6mr568438pfr.134.1532581417004; Wed, 25 Jul 2018 22:03:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532581416; cv=none; d=google.com; s=arc-20160816; b=J2u279yT9y0+x95IkuC8X2zWTdlJC0uehnStJOO/+RrA0VRtDiVgIPbIYTuV+OW0Ai EH8zPW9iDHDwAEkHEgdrxbzBKIgOIIUgS1OTueeOPr/l2/RHjEaUkm4TrFH3moHANA5Z LaKJB8EWS7YxCoRMFC130cvQENdncx2+rpIVBhIMlgOes1nErvqT/W8ZvIJpOL3hKPeY gAq/yk9/25/GnqcSTFVp7vBHIUNkoqX5aP0LknljODxrTEpWiEGej3IqO6cOiZTOnKr6 8oJo7aIDlEXMSm6SFM1MC4zALZdV5cp/VC8EWkblKs54vvBHNH8JhKACCdDxUvlZ/W93 Pfww== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:organization:from:references:cc:to:subject :dkim-signature:arc-authentication-results; bh=ecV5xDrBV8I7ZM/qGn8B0cprbMZROoQfZVzeyEgwm1o=; b=ZT4PkJuvVq1ZCrnW9MgfaPoz12aeYEOmtn0kJIhoFqINVvPB1A9ztPqWoJvf9/iFEi puhlZiWSSMEbEnfKSMehKyir+kWn/FjSm7GKVi9u+N0Ph+QTSfrj3B6gI/nLuTlyXc8r gTJmiwZMnoPMVsgwzRYs3h0Nct3Cdw7iignvEzSICHv3d4JmwRu5zi8+8SZNKjnGeF2W ySjzshdlwdKqsoLlCaLZ5vMNGgFcBDysgiJL0zy4bg57XfhEkBiSTCacZoY/D2lvpWsv IOQmmo4oMpH9mSjEQS+A4L7Vq3ot6zRBjWe459jpgvV4XUGPqqBOoHbe07tU5b3nYoPY Jq5g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2018-07-02 header.b=hyhZUEko; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 136-v6si329085pgb.587.2018.07.25.22.03.21; Wed, 25 Jul 2018 22:03:36 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2018-07-02 header.b=hyhZUEko; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728807AbeGZGR2 (ORCPT + 99 others); Thu, 26 Jul 2018 02:17:28 -0400 Received: from aserp2130.oracle.com ([141.146.126.79]:43082 "EHLO aserp2130.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725903AbeGZGR1 (ORCPT ); Thu, 26 Jul 2018 02:17:27 -0400 Received: from pps.filterd (aserp2130.oracle.com [127.0.0.1]) by aserp2130.oracle.com (8.16.0.22/8.16.0.22) with SMTP id w6Q4xUAo076744; Thu, 26 Jul 2018 05:02:24 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=subject : to : cc : references : from : message-id : date : mime-version : in-reply-to : content-type : content-transfer-encoding; s=corp-2018-07-02; bh=ecV5xDrBV8I7ZM/qGn8B0cprbMZROoQfZVzeyEgwm1o=; b=hyhZUEkoNHnf6qoVQZpiI4H9oFSk6lHi6aMplnfeZEgZbuuc8evoWudwLJSC1bO8ie4k q97UevA7D/NQh6SrYpXG7YA2C3Ynf2k0IzwgMCruV1FSjPFhsSLLTt50SqfcrY9YdaWO FWC7H5cmo/kckvL6etlZM1QuFOptdet7Un6RSAH1+L/It1qGCXiLJydZd5uKoRwXTsxH ll/GxRMZ54KkMNuoajLPFKJkSa5UnsuSauYOud8mtEINF52TwZjwfWlxTZsuKILDxxae oICKdbTOO5kHwv1yKJlcjIo4XIMPLQzE77VXOlz2zKo8N3xZVWa3TTh3YRm/LeTBqP6E gw== Received: from aserv0021.oracle.com (aserv0021.oracle.com [141.146.126.233]) by aserp2130.oracle.com with ESMTP id 2kbtbd1fff-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 26 Jul 2018 05:02:24 +0000 Received: from userv0121.oracle.com (userv0121.oracle.com [156.151.31.72]) by aserv0021.oracle.com (8.14.4/8.14.4) with ESMTP id w6Q52Nuc013555 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 26 Jul 2018 05:02:24 GMT Received: from abhmp0003.oracle.com (abhmp0003.oracle.com [141.146.116.9]) by userv0121.oracle.com (8.14.4/8.13.8) with ESMTP id w6Q52Ntm019167; Thu, 26 Jul 2018 05:02:23 GMT Received: from santoshs-mbp.lan (/69.181.241.203) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Wed, 25 Jul 2018 22:02:22 -0700 Subject: Re: [PATCH] net/rds/Kconfig: RDS should depend on IPV6 To: Ka-Cheong Poon , Anders Roxell Cc: davem@davemloft.net, netdev@vger.kernel.org, linux-rdma@vger.kernel.org, rds-devel@oss.oracle.com, linux-kernel@vger.kernel.org References: <20180725222008.32186-1-anders.roxell@linaro.org> <3e4b4c29-40f8-211b-62e3-c9411b2c0013@oracle.com> From: "santosh.shilimkar@oracle.com" Organization: Oracle Corporation Message-ID: <62dc735a-19ca-13ca-bd7e-3b591ffc132e@oracle.com> Date: Wed, 25 Jul 2018 22:02:16 -0700 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <3e4b4c29-40f8-211b-62e3-c9411b2c0013@oracle.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=8965 signatures=668706 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=998 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1806210000 definitions=main-1807260052 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 7/25/18 9:56 PM, Ka-Cheong Poon wrote: > On 07/26/2018 06:36 AM, Santosh Shilimkar wrote: >> On 7/25/2018 3:20 PM, Anders Roxell wrote: >>> Build error, implicit declaration of function __inet6_ehashfn shows up >>> When RDS is enabled but not IPV6. >>> net/rds/connection.c: In function ‘rds_conn_bucket’: >>> net/rds/connection.c:67:9: error: implicit declaration of function >>> ‘__inet6_ehashfn’; did you mean ‘__inet_ehashfn’? >>> [-Werror=implicit-function-declaration] >>>    hash = __inet6_ehashfn(lhash, 0, fhash, 0, rds_hash_secret); >>>           ^~~~~~~~~~~~~~~ >>>           __inet_ehashfn >>> >>> Current code adds IPV6 as a depends on in config RDS. >>> >>> Fixes: eee2fa6ab322 ("rds: Changing IP address internal >>> representation to struct in6_addr") >>> Signed-off-by: Anders Roxell >>> --- >>>   net/rds/Kconfig | 2 +- >>>   1 file changed, 1 insertion(+), 1 deletion(-) >>> >>> diff --git a/net/rds/Kconfig b/net/rds/Kconfig >>> index 41f75563b54b..607128f10bcd 100644 >>> --- a/net/rds/Kconfig >>> +++ b/net/rds/Kconfig >>> @@ -1,7 +1,7 @@ >>>   config RDS >>>       tristate "The RDS Protocol" >>> -    depends on INET >>> +    depends on INET && CONFIG_IPV6 >> This should build without CONFIG_IPV6 too. >> >> Hi Ka-cheong, >> Can you please loot at it ? I know you modified >> lookup function to take always in6_addr now, but >> probably hashing with '__inet_ehashfn' should >> work too for non IPV6 address(s). > > > I guess for now, let's add this dependency first.  I > will do a follow up patch to remove this dependency. > Sounds good to me. FWIW, Acked-by: Santosh Shilimkar