Received: by 2002:a89:48b:0:b0:1f5:f2ab:c469 with SMTP id a11csp481256lqd; Wed, 24 Apr 2024 08:06:00 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVz77zv4Zrgs7CmsUqHfCZKyOVwtCCSE6qZ0T8FnG+vbwV2AMarSnMAanWljIhNOkHAPMQYEHdSajp7KK0uAUbfiwX+MtqQEUpTHf+OeA== X-Google-Smtp-Source: AGHT+IFFsGfvFk0qSPBJ+CfFNR101aF2ewPrTUzL/+8+S/DqdnXo4x0HIBYhoQCVvyPweQ03Ek2c X-Received: by 2002:ad4:452b:0:b0:6a0:9496:8412 with SMTP id l11-20020ad4452b000000b006a094968412mr3292176qvu.0.1713971159849; Wed, 24 Apr 2024 08:05:59 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713971158; cv=pass; d=google.com; s=arc-20160816; b=ljwh9AKgNRn2B+04yoYISKh1C4aoSEfSkcpjpV+O9CxrOu4/CxNN1JEBnmep/aJ9uw q0gD1IUT/9wxR3R52AtlJUmAjuGC/gX7LPS5n12ptKS5BG1mcvgQUupwGKTY9EhFIwCO b9l4Ni/UWzLoRfEqa43IJaegt5v/e8o0zr5S1oJXu1PcxYOflJ6v/jYTUAqE6kHI4tpq vaifht8u8Kwq3EeJ3F3phnN7rPp9BtkjIfzNnStfjpVVgWnYdlbdH8SN08R68PU785T9 W9YyKCoCYYhjP5INXxfgvD20jDlwkkG4ElQV4kks03+RrmDKMSGmqVlh2RUqmKv7QtqE qUlA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :user-agent:message-id:date:references:in-reply-to:subject:cc:to :from:dkim-signature; bh=9j2EapAwJRHxx0WCQBfTgCjkDcE9PpTZGoewBtZLYs8=; fh=qJd/bIpwmnkvKgsHdaicu68DvgimhMFaC84BxyMk97I=; b=X7hY9agbvnoU8qvdWc3IGTKsblywx94KSLsxZbosHHqtSo/0OsUNW/LFZck5Btm5D0 iXm92cunYBuK/5IZgj9TxcFNNL7ku4o9sWPd4ustVfcSq8OLzOiiKEbUVAh8JSRjvDDL +AYDHo5W+vYZ82paoUR5fcdqb543k+cWUwADkiiTz7NYkjhuKUP8vb2nY1zVIrjBckWg PpVYviN6Pwa0cypCtISTGu8FrQJQuppg78da3lwDf14SqESC2l2/jFPC/46Td6+iQHnv ucJz8QQYhq4b4JKPMtKvLPor35Ld8OmA2KIF9s8gHcM+m6IxM1euwSIQ4Gq0v/RJsI4x PcCA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=GB7xbFkr; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-157156-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-157156-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id 12-20020a0562140dcc00b006a082754ca1si6646932qvt.517.2024.04.24.08.05.58 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Apr 2024 08:05:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-157156-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=GB7xbFkr; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-157156-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-157156-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 770111C24DE4 for ; Wed, 24 Apr 2024 15:05:58 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9DCDC15F3E9; Wed, 24 Apr 2024 15:05:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="GB7xbFkr" Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E0AC715EFD6 for ; Wed, 24 Apr 2024 15:05:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.129.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713971152; cv=none; b=IjEW2zy4Y4OYx6lXDEThWJKelhN8EoZMWkKN6a+TmZeJVnZOYnz68cXFkpa6piDbSjPxKwreVVFa3rq17TaSQEJr9flctpC66yvHds1UkauQoDjP0M9MDJWlpyIcGG9xPwpFc1dUfezb9RP6lTL95Eezhr8Ew0cQxnv2RTJjhk0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713971152; c=relaxed/simple; bh=9j2EapAwJRHxx0WCQBfTgCjkDcE9PpTZGoewBtZLYs8=; h=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID: MIME-Version:Content-Type; b=knx5/SCzFna4HVeupuhSlCDVd4Xd9SGwjiUaQB+0wGntTOraVnH1y9baYQjmDgH2mDU0Sm/fGO3XTUN+DQl1yWVPzW8Ib1TMX7ObGUIvxJ0EZkE1REajL/I/jckKRGE5obuSzv/Kg2pnahbmtCs7oN2FBTkzp7+GKgK8Q3Em3Ow= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=GB7xbFkr; arc=none smtp.client-ip=170.10.129.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1713971148; 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: in-reply-to:in-reply-to:references:references; bh=9j2EapAwJRHxx0WCQBfTgCjkDcE9PpTZGoewBtZLYs8=; b=GB7xbFkr5+W/5sijWmQxDFHpTdFsSivHzE/XNX8OfIpUa7iv8wKpMMz0lwiuLtdeV5oH5z 3LRo0V3XR7Zfb4t4B/Kbhee/6MqSVzfv2l8b5cJn2XUtdIcLEqYRF6GcUKi+BcdY2/ql12 o0e+7BejVCqZN4rcC1KjcDG7yM76PBA= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-275-CZvzBCBZPQCaoVvysukxuQ-1; Wed, 24 Apr 2024 11:05:41 -0400 X-MC-Unique: CZvzBCBZPQCaoVvysukxuQ-1 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.rdu2.redhat.com [10.11.54.8]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 2849E104B502; Wed, 24 Apr 2024 15:05:40 +0000 (UTC) Received: from RHTRH0061144 (dhcp-17-72.bos.redhat.com [10.18.17.72]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 9D5E6C13FA3; Wed, 24 Apr 2024 15:05:39 +0000 (UTC) From: Aaron Conole To: Jun Gu Cc: pshelar@ovn.org, dev@openvswitch.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [ovs-dev] [PATCH net-next] net: openvswitch: Release reference to netdev In-Reply-To: <20240423073751.52706-1-jun.gu@easystack.cn> (Jun Gu's message of "Tue, 23 Apr 2024 15:37:51 +0800") References: <20240423073751.52706-1-jun.gu@easystack.cn> Date: Wed, 24 Apr 2024 11:05:39 -0400 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.8 Jun Gu writes: > dev_get_by_name will provide a reference on the netdev. So ensure that > the reference of netdev is released after completed. > > Fixes: 2540088b836f ("net: openvswitch: Check vport netdev name") > Signed-off-by: Jun Gu > --- Thanks! Reviewed-by: Aaron Conole