Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 45C24C34031 for ; Tue, 18 Feb 2020 05:48:42 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 223D120722 for ; Tue, 18 Feb 2020 05:48:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726109AbgBRFsl (ORCPT ); Tue, 18 Feb 2020 00:48:41 -0500 Received: from shards.monkeyblade.net ([23.128.96.9]:58490 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725939AbgBRFsl (ORCPT ); Tue, 18 Feb 2020 00:48:41 -0500 Received: from localhost (unknown [IPv6:2601:601:9f00:477::f0c]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) (Authenticated sender: davem-davemloft) by shards.monkeyblade.net (Postfix) with ESMTPSA id AEF9A15B47879; Mon, 17 Feb 2020 21:48:40 -0800 (PST) Date: Mon, 17 Feb 2020 21:48:40 -0800 (PST) Message-Id: <20200217.214840.486235315714211732.davem@davemloft.net> To: festevam@gmail.com Cc: fugang.duan@nxp.com, netdev@vger.kernel.org, andrew@lunn.ch Subject: Re: [PATCH net-next] net: fec: Use a proper ID allocation scheme From: David Miller In-Reply-To: <20200217223651.22688-1-festevam@gmail.com> References: <20200217223651.22688-1-festevam@gmail.com> X-Mailer: Mew version 6.8 on Emacs 26.3 Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.12 (shards.monkeyblade.net [149.20.54.216]); Mon, 17 Feb 2020 21:48:40 -0800 (PST) Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org From: Fabio Estevam Date: Mon, 17 Feb 2020 19:36:51 -0300 > Instead of using such poor mechanism for counting the network interfaces > IDs, use a proper allocation scheme, such as IDR. > > This fixes the network behavior after unbind/bind. What about: 1) unbind fec0 2) unbind fec1 3) bind fec0 It doesn't work even with the IDR scheme.