From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stephen Hemminger Subject: Re: [PATCH iproute2 2/3] utils: ll_map: Update name and type for existing entry Date: Thu, 28 Dec 2017 09:46:45 -0800 Message-ID: <20171228094645.19549fcc@xeon-e3> References: <1513755451-9800-1-git-send-email-serhe.popovych@gmail.com> <1513755451-9800-3-git-send-email-serhe.popovych@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: netdev@vger.kernel.org To: Serhey Popovych Return-path: Received: from mail-pf0-f196.google.com ([209.85.192.196]:44480 "EHLO mail-pf0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932424AbdL1SUH (ORCPT ); Thu, 28 Dec 2017 13:20:07 -0500 Received: by mail-pf0-f196.google.com with SMTP id m26so21212833pfj.11 for ; Thu, 28 Dec 2017 10:20:07 -0800 (PST) In-Reply-To: <1513755451-9800-3-git-send-email-serhe.popovych@gmail.com> Sender: netdev-owner@vger.kernel.org List-ID: On Wed, 20 Dec 2017 09:37:30 +0200 Serhey Popovych wrote: > In case of we update existing entry we need not only rehash > but also update name in existing entry. > > Need to update device type too since cached interface might > be deleted and new with same index, but different type > added (e.g. eth0 and ppp0). > > Reuse new entry initialization path to avoid duplications. > > Signed-off-by: Serhey Popovych Can you provide an example where this is an observed bug? I suspect that unless you use a batch mode command the reload of the cache on next invocation is solving this.