From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stephen Hemminger Subject: Re: [PATCH iproute2-next 3/3] Improve batch times by caching link lookups Date: Mon, 7 Jan 2019 16:05:08 -0800 Message-ID: <20190107160508.4d1dcb81@hermes.lan> References: <20190107225552.8441-1-dsahern@kernel.org> <20190107225552.8441-4-dsahern@kernel.org> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: netdev@vger.kernel.org, David Ahern To: David Ahern Return-path: Received: from mail-pg1-f196.google.com ([209.85.215.196]:34422 "EHLO mail-pg1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726689AbfAHAFL (ORCPT ); Mon, 7 Jan 2019 19:05:11 -0500 Received: by mail-pg1-f196.google.com with SMTP id j10so877767pga.1 for ; Mon, 07 Jan 2019 16:05:11 -0800 (PST) In-Reply-To: <20190107225552.8441-4-dsahern@kernel.org> Sender: netdev-owner@vger.kernel.org List-ID: On Mon, 7 Jan 2019 14:55:52 -0800 David Ahern wrote: > + idx = ll_link_get(name); > + if (idx == 0) > + idx = if_nametoindex(name); What is advantage of using netlink, other than not having to open a socket.