Received: by 2002:a05:7412:251c:b0:e2:908c:2ebd with SMTP id w28csp1861609rda; Tue, 24 Oct 2023 05:51:00 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEzHMM455u+zLMybTHm+4VZaPyFRCb2li0E8vv5Tc8H3wErkMzxxaTIO1gp++DlY82hn9ls X-Received: by 2002:a17:90b:35c1:b0:27d:452a:8bb6 with SMTP id nb1-20020a17090b35c100b0027d452a8bb6mr16231944pjb.10.1698151859706; Tue, 24 Oct 2023 05:50:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698151859; cv=none; d=google.com; s=arc-20160816; b=Ty44z3aMCXuPHjY0BRkbQrCI0YTecICdHACa7egFzkmO2f4KymhtXsR1sWmodV/3SA gwXc7qaK3v882omEEq0T68ZfWAFJavhc0XKLQyokx+xCm85gs5mlsXPvlG0TQ1AUqlat +X+/GoJ/A0o96TdAkn1oIZ4PGqRtBXqqwcvJ+3xmTdyTkJnQzA77wBdooSm118mLeeX3 c8w5XURp2TTy0zxRM5TZmuRiAKndPeRoFjqnrJB2ytXlL4Ty6OjGYcNi5vYs0HQZHgKX gJcXAP5P+er+C5gOUeNUT8v23Mh6w+k29xvlbu605l1YkSpLxtjQlDfp8M54I6u/KFw4 MFzw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to :content-language:references:cc:to:from:subject:user-agent :mime-version:date:message-id:dkim-signature; bh=UVRePymm5LlGxEOZU5dUiW35O7/1kIgQIOIIucxo4g8=; fh=M+PX9+iJWgAcFwsqeQjxdhjfP9EjwnPuV3/CSKHEUU4=; b=IJt9H21U10rbHc6cYbs4RxQ1Mxxxp3FV3Lj46lDKww/Mwi97JXnOw/6OSRIG2aP8Wi qw5vkhmdgQNw0v2MyM8ivUzzz7Cg+mANmGyZNHtAvI9mj5kxuo62qoUjIqQdVzP93pvG EpFKdTM+kUhgqWnVgLfpiwqZYpHQBBgGY35ywVyLKFZATr61cPDiIxR19quqBoEdPwjU mhknHhFww7QztWuTFg9lqzwtHLjTOabrGO08CuPJSWCEmCUTvRVxOzGXQ2xSMpLCpMRf HdIyZ0ba1HcmCmc76bi6lEX1Ftex12uxPOsxLN1pYFo/TlKynH0aZA2WLkQTYGGyqshP dM0Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=YpJQScyO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id g21-20020a17090ace9500b002790c6760dbsi10518380pju.70.2023.10.24.05.50.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 24 Oct 2023 05:50:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=YpJQScyO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id D782A80613A3; Tue, 24 Oct 2023 05:50:48 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234459AbjJXMu1 (ORCPT + 99 others); Tue, 24 Oct 2023 08:50:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45064 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234414AbjJXMuU (ORCPT ); Tue, 24 Oct 2023 08:50:20 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 44AF590 for ; Tue, 24 Oct 2023 05:49:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1698151776; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=UVRePymm5LlGxEOZU5dUiW35O7/1kIgQIOIIucxo4g8=; b=YpJQScyOjO40HPEN+Rit4n0M2Gi72tk9I1FrlYpb6F6fg7mReeTwIkGo2Tkr9QpKlmQa5g mj4L8oOKmIaq0iW8ajHNvsTXDWCFnUMH9cTKlAY23qN1KNO1cxcsY8VoNtHIqdYkynOznF SRr5x5FWRlJC+BNOYo/w5YLz7qftYTM= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-99-vJLQkFovPimUQaMJtn9_zQ-1; Tue, 24 Oct 2023 08:49:22 -0400 X-MC-Unique: vJLQkFovPimUQaMJtn9_zQ-1 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.rdu2.redhat.com [10.11.54.6]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 23920185A790; Tue, 24 Oct 2023 12:49:22 +0000 (UTC) Received: from [10.43.2.183] (unknown [10.43.2.183]) by smtp.corp.redhat.com (Postfix) with ESMTP id C6D9B2166B26; Tue, 24 Oct 2023 12:49:20 +0000 (UTC) Message-ID: <349d8eb5-b499-45ea-8de5-2c3658d4c446@redhat.com> Date: Tue, 24 Oct 2023 14:49:20 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 1/2] i40e: Do not call devlink_port_type_clear() From: Ivan Vecera To: netdev@vger.kernel.org Cc: Jesse Brandeburg , Tony Nguyen , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , intel-wired-lan@lists.osuosl.org, linux-kernel@vger.kernel.org, Jacob Keller References: <20231024124245.837908-1-ivecera@redhat.com> Content-Language: en-US In-Reply-To: <20231024124245.837908-1-ivecera@redhat.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.6 X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Tue, 24 Oct 2023 05:50:49 -0700 (PDT) On 24. 10. 23 14:42, Ivan Vecera wrote: > Do not call devlink_port_type_clear() prior devlink port unregister > and let devlink core to take care about it. > > Reproducer: > [root@host ~]# rmmod i40e > [ 4539.964699] i40e 0000:02:00.0: devlink port type for port 0 cleared without a software interface reference, device type not supported by the kernel? > [ 4540.319811] i40e 0000:02:00.1: devlink port type for port 1 cleared without a software interface reference, device type not supported by the kernel? > > Fixes: 9e479d64dc58 ("i40e: Add initial devlink support") > Signed-off-by: Ivan Vecera > --- > drivers/net/ethernet/intel/i40e/i40e_devlink.c | 1 - > 1 file changed, 1 deletion(-) > > diff --git a/drivers/net/ethernet/intel/i40e/i40e_devlink.c b/drivers/net/ethernet/intel/i40e/i40e_devlink.c > index 74bc111b4849..cc4e9e2addb7 100644 > --- a/drivers/net/ethernet/intel/i40e/i40e_devlink.c > +++ b/drivers/net/ethernet/intel/i40e/i40e_devlink.c > @@ -231,6 +231,5 @@ int i40e_devlink_create_port(struct i40e_pf *pf) > **/ > void i40e_devlink_destroy_port(struct i40e_pf *pf) > { > - devlink_port_type_clear(&pf->devlink_port); > devlink_port_unregister(&pf->devlink_port); > } Please drop... there is missing net-next target. Will post v2. Ivan