From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 26339A052E; Mon, 9 Mar 2020 16:52:48 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 6FA6F1C0B4; Mon, 9 Mar 2020 16:52:47 +0100 (CET) Received: from mail-pf1-f196.google.com (mail-pf1-f196.google.com [209.85.210.196]) by dpdk.org (Postfix) with ESMTP id B25941C07E for ; Mon, 9 Mar 2020 16:52:45 +0100 (CET) Received: by mail-pf1-f196.google.com with SMTP id n7so5001627pfn.0 for ; Mon, 09 Mar 2020 08:52:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=GhOB2SiMwGvEaew4k5gcg3mAtMYwWGp/t8e5hatO8v0=; b=g1sODq/C7f5CM+IPl6enolc765/VNjDI/QOHXcDtOkTZUpbFfB5meArS/THbFq20MD mwlPq6AAAMXwD5hR7wZOqdHHeLk0aDfaMsHRDqXnzFamrOn/FzV5EzdKDG9hmgx8adY/ Kos5UTyFiTyIIxd2nMQvR+zkMahlMXbKcSZCTIh+a/f77Us6+/EVbdenMOs6s7o30Lvp pf2vCQtgKXBZ+sKs0hYdSXt6LUPkoedEm0DGXKMUO8MwDvbBO0XVb396OtI3Lte5Z/0v syyI/3gCIywAeMUYOkZfs3Gs05JbxEHYHJ/jkda5V0rIONnYyISD65lo6CAHsW4qihlH dnBw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=GhOB2SiMwGvEaew4k5gcg3mAtMYwWGp/t8e5hatO8v0=; b=aXp7+y3WEfZaNcmgbD71FlmPqNfpYqDQoabBK3TrMWmPijcaLc0EZ5ZeT8elO2T0BB CMO64fQzMxKWmHdu3bKwYzm84tqKKk9C+qogsRi7Wf6gTLaq0kg2b+RRR8dpVAv6N/o2 aRATNHTA0PmZNcMDbftMHHXZHNVZUkVsL5vK+nPljMP9g5it1NC5h25eAjLQXT1WImt0 I+MU1Vkx2pxzwlzcLnGLbLHFb+NrAMx61etNgePDBYWbe1hGm1uI2Ou2gchwW625j1td qwMyAGtDVBb3q9QqhfCYHHDvXvsIXlY9gdfYcVDaBpzbHxqQ4WovT9ug4zDT/bO04Nlr TIEA== X-Gm-Message-State: ANhLgQ2Lsq+A6nZznnroPHCizUMx+M8JyRoMCb2yvcif6dQDUiGWxPN4 Uy+XG9wCeIL+gp7eRteBPUwyfQ== X-Google-Smtp-Source: ADFU+vsAXAzSFv3No2KMy8nhAKfnXoewc/gePUWeGMZ7G1HnAhoHQZ+SNX0dRFslMESD5yYlqRo1Ww== X-Received: by 2002:a63:1862:: with SMTP id 34mr13985673pgy.191.1583769164821; Mon, 09 Mar 2020 08:52:44 -0700 (PDT) Received: from hermes.lan (204-195-22-127.wavecable.com. [204.195.22.127]) by smtp.gmail.com with ESMTPSA id a71sm6497324pfa.162.2020.03.09.08.52.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Mar 2020 08:52:44 -0700 (PDT) Date: Mon, 9 Mar 2020 08:52:36 -0700 From: Stephen Hemminger To: "Medvedkin, Vladimir" Cc: Andrzej Ostruszka , dev@dpdk.org, Bruce Richardson Message-ID: <20200309085236.4938969b@hermes.lan> In-Reply-To: <2d22e4b0-6b3c-08c0-e687-b7b420c53150@intel.com> References: <20200303125345.26317-1-aostruszka@marvell.com> <2d22e4b0-6b3c-08c0-e687-b7b420c53150@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [dpdk-dev] [PATCH] lpm6: make IPv6 addresses immutable X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On Mon, 9 Mar 2020 13:38:53 +0000 "Medvedkin, Vladimir" wrote: > Hi Andrze, > > Adding const qualifier for bulk lookup leads to compilation problems > (see http://c-faq.com/ansi/constmismatch.html) > Also I don't think it would be good for usability to make users > explicitly cast to (const uint8_t **) when passing 'ips' argument. I'd > suggest leaving lookup_bulk as is. Please give a more concrete example. There is no need for explicit cast in current C.