Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp3299517ybb; Tue, 31 Mar 2020 02:23:56 -0700 (PDT) X-Google-Smtp-Source: ADFU+vsocWlK+ySZ1iJNzxgeJROn0O3OwKgXG7iw5CSa3FEpz16o2mbyLteyTYOdxXgLHWJJYgxi X-Received: by 2002:a9d:2aca:: with SMTP id e68mr12579370otb.324.1585646636519; Tue, 31 Mar 2020 02:23:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585646636; cv=none; d=google.com; s=arc-20160816; b=C7rgyf3h8a+UNchNVzXG6k5wTB4WD6BeBc3MrWxNK56slAF7U+utS+5l74t27KT7Dg xacsSrBGXBGAJaTYvAuYuMuNMEGYOmTmg309uPUAEwqOZoE/37K7XbK+XsivydNyFU+5 3mes53FmK+YtUwyslGcC8Qxq8mK0Rmttmo4lbFa8WZNXqVhmnm+Iv/PfLns/RKLyrvR+ 4sCDcOsPf1tJbSoy4iDNkREqtuiPpFwYL9kjEhnxJDF+1djhi6C77b53mOK29iR1Aawm bqvam0Ttc4gA/frfVVSBUxUAD3hfDyPoxS8sGr855TQcBhFk+8mjvnhlE2CCKMHoEtVF Jthw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=HOsXdB3G3Xtt7LrJwSb3AtheEDhkdMLMFT0n1ZFdo3s=; b=qLIZZhOnBhCJDo34mGLtnLy8KUW/dmZ8DvUMyWr0zCUL/AZuBa8TWZzN08V84/vzIO m/dQpT3ujYFh2TsGNIvUGc2NSBr+Zwrm3e04RY5ezQ/hFFAUraMiQTNNRVcNgom2OYCb xZ5hU29jwib78yo30+ObOxG5snvhk2FXMeiKNRoNBTIDni913jhbdnNYLz6T361PoGxS 6+03k0T99rbidrRB01TqG5tbFD6CTyOKL+vpgLYUjMThPrSC9D1P013rEUEhBDdmzsnx 5e+FKS9taoaDeG5/BCIeiu3FaLOWbqc8GOJTLS/7UX+PzOYDnZ+NEjsKcC3fEsrD7LUw N0CA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=ylkQgcd9; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k39si6243123otk.255.2020.03.31.02.23.44; Tue, 31 Mar 2020 02:23:56 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=ylkQgcd9; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731129AbgCaJWR (ORCPT + 99 others); Tue, 31 Mar 2020 05:22:17 -0400 Received: from mail.kernel.org ([198.145.29.99]:49394 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731155AbgCaJHe (ORCPT ); Tue, 31 Mar 2020 05:07:34 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id A3EC720B80; Tue, 31 Mar 2020 09:07:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1585645654; bh=sQsKAGMwDmKlXneFcDernatCFdyacNP8NlyojPzSbOg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ylkQgcd9ZcHN3/d45ph1kfa2iPd6roQu7eImLw+NQs+913blsqaVdJLPCokSu5b27 PRwnYmIezLc50fcatmcP9qn9D6J9xuDL9HNWZLCUSWX4nbekt/QYda+arOHEcPfEGx ZJV3ajV+Bz4PNVXHW7r0op/V4olHlaSut1ob45pA= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Raed Salem , Boris Pismenny , Saeed Mahameed , Steffen Klassert Subject: [PATCH 5.5 122/170] xfrm: handle NETDEV_UNREGISTER for xfrm device Date: Tue, 31 Mar 2020 10:58:56 +0200 Message-Id: <20200331085436.978428749@linuxfoundation.org> X-Mailer: git-send-email 2.26.0 In-Reply-To: <20200331085423.990189598@linuxfoundation.org> References: <20200331085423.990189598@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Raed Salem commit 03891f820c2117b19e80b370281eb924a09cf79f upstream. This patch to handle the asynchronous unregister device event so the device IPsec offload resources could be cleanly released. Fixes: e4db5b61c572 ("xfrm: policy: remove pcpu policy cache") Signed-off-by: Raed Salem Reviewed-by: Boris Pismenny Reviewed-by: Saeed Mahameed Signed-off-by: Steffen Klassert Signed-off-by: Greg Kroah-Hartman --- net/xfrm/xfrm_device.c | 1 + 1 file changed, 1 insertion(+) --- a/net/xfrm/xfrm_device.c +++ b/net/xfrm/xfrm_device.c @@ -390,6 +390,7 @@ static int xfrm_dev_event(struct notifie return xfrm_dev_feat_change(dev); case NETDEV_DOWN: + case NETDEV_UNREGISTER: return xfrm_dev_down(dev); } return NOTIFY_DONE;