Received: by 2002:a05:6500:2018:b0:1fb:9675:f89d with SMTP id t24csp263581lqh; Thu, 30 May 2024 23:57:51 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUgwxfLAHF2m0PyLUndz39FS8p3n3LM1JLJoHq8ACl4Z0GxLzYK/MlXvT2i1i+CKLfZIY5XoAc7qf+HynHX/jOBNuZZAMxTNd4KXiSzew== X-Google-Smtp-Source: AGHT+IFaDdC5EXA16j2NMhdkx2u/XlR37oYLPqwP/IbRN8bZdRvrzNEkwKRA2FaS1GQ1TaTZ53AH X-Received: by 2002:a17:906:32c7:b0:a63:4e5a:a240 with SMTP id a640c23a62f3a-a681fe4bc5amr62490066b.6.1717138670877; Thu, 30 May 2024 23:57:50 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717138670; cv=pass; d=google.com; s=arc-20160816; b=pBJFOnVFTa1SSjzrM0ykyHLPus6PiUUrjCTr9zOAXg6qyOYPqIj9g9+cbhMww6P0bm +Lk7PZEnUG4yMGRPufJDCsKsX4pi0azDy9yq6c0QyucV4cPlaOzaBVTDVdoK/nAZPe2/ Vxhv3aQPimtyq59sAV7adrgzWdvuvDxsjdCG6LWSasCMQ/0MTs7iG8IYxsJSlpU7IDJk 7zjgHOsMjOpdE2jDSXq2P3XucNsz8hjMfadMxpn40s8jYshd1UPrjCipBr2Mgl7YQZyu cnnYwkuTm5SAyLndwN2GhKeE7cieBgb+bEFRLavx6+2WZwMug16lwq/juJ8rN93OW0N4 vmOw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=zLw2WCX7NzhXHaHBtGiNDa+0R1r9ENCFVNNCzI5O8YY=; fh=sh7cVoRRx7mh2AxpF6c+7/iimplrb8ho6McjMWrINp4=; b=u2Z9lumCPMIkSOmmhOf9fRl0+CBXfyahbMsgJgGcDrH3Yqyg5NUQ95D00NmUYhjUCY Wizfa1sj/bt3H75KpnNxMXeAtKsNEhDA9Ga/DWLbUitntJ4QcxiJAprbLWe54thqMGVy s6i42IEZ+6ycA7rJY+omh3DVOlXoSJqPcN8M/whyAxD6ROyliSkAt0C1Q6g6zHUROUiW p1DE5LhWsZ5T2YSztgJ5wVw+CfA8+r5PMWgrMBES1f+G66iQP0lKqW74NryiIZz+tiKl /x/OJxCvT3FO8Q2l8TOoS8lg+dLVUGv45OgyLmF8kNir+ZaSU+IJF4UJFr3yG7FF1j/I tYxQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@davidwei-uk.20230601.gappssmtp.com header.s=20230601 header.b=QL4+RqL0; arc=pass (i=1 dkim=pass dkdomain=davidwei-uk.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-196054-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-196054-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id a640c23a62f3a-a67e73f840bsi62694066b.240.2024.05.30.23.57.50 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 May 2024 23:57:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-196054-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@davidwei-uk.20230601.gappssmtp.com header.s=20230601 header.b=QL4+RqL0; arc=pass (i=1 dkim=pass dkdomain=davidwei-uk.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-196054-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-196054-linux.lists.archive=gmail.com@vger.kernel.org" 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 am.mirrors.kernel.org (Postfix) with ESMTPS id 96B2D1F27B68 for ; Thu, 30 May 2024 23:52:28 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9A66F190672; Thu, 30 May 2024 23:51:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=davidwei-uk.20230601.gappssmtp.com header.i=@davidwei-uk.20230601.gappssmtp.com header.b="QL4+RqL0" Received: from mail-pf1-f179.google.com (mail-pf1-f179.google.com [209.85.210.179]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2A9BC1862BC for ; Thu, 30 May 2024 23:51:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.179 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717113109; cv=none; b=CY5Ki04kvWZhNZspYl+Chpi7NiKblHhgF2DkCewoJuniq4LH0XsXU6Oq4ivhFrTo2c5gjYjxGqNI+qO7ZSAUV0KtHhokBUDlzzNbPevWgADoFoBISYdU2gmuekpltRSOUSu+TmLbhY4sx9l9Lzj5diM9zybFk2HizCZc/2xQg5I= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717113109; c=relaxed/simple; bh=W93FmhGSt5rN/d9ZkTtKHNbj8y2kiVp3BB6JpqBPjtM=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=qvQ1pXQ1Zz3oHPtIS1aZ/t4mBv0UHd+Gw51CdUzv9n5ioFVaSDbcEa4uCRsYOk1gw/wrIUyISbpNFNEmX95T7lcvfQEGJvdqbxDoXeP5sZ4lGFXO4IDgut95PkoDuXQJdHJl3t/2km1WcE4BJG8/yzEani+TtrTQDMVFtUzx8vY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=davidwei.uk; spf=none smtp.mailfrom=davidwei.uk; dkim=pass (2048-bit key) header.d=davidwei-uk.20230601.gappssmtp.com header.i=@davidwei-uk.20230601.gappssmtp.com header.b=QL4+RqL0; arc=none smtp.client-ip=209.85.210.179 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=davidwei.uk Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=davidwei.uk Received: by mail-pf1-f179.google.com with SMTP id d2e1a72fcca58-6f693306b7cso1343024b3a.1 for ; Thu, 30 May 2024 16:51:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=davidwei-uk.20230601.gappssmtp.com; s=20230601; t=1717113107; x=1717717907; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=zLw2WCX7NzhXHaHBtGiNDa+0R1r9ENCFVNNCzI5O8YY=; b=QL4+RqL090NmzqnmmaV35StPPgSYrm0/E5FYyEyBNDFbnjFYn4+7lynHidmbHWfEVL 1iBcOwtdX/+OmGH9OHA6Ly9dCXC0kAmMRNt7jsngsMzCorwTnvSYwsuvbd/30RasDM2J CgWFzSw7fo3h/P0Vna2SEUkG3BW1pwRp2ZYJmicLk3iur+HVCLaN4mTrgCpO4EGR65xr zvIJIWco9NeeSE1nTauAdHI2pE5kFmj0GGL6zKrRbn7msIZJ7JKuUeM9tM4Yd+OHVqGp tw2mwrdzVMXg0wyfG0apx+qaFVSep6SjKcJrNGom1L34fJ84bOjAqASDJTHdFqEXjqA6 2XTQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717113107; x=1717717907; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=zLw2WCX7NzhXHaHBtGiNDa+0R1r9ENCFVNNCzI5O8YY=; b=XoyeNWsqzpfP6XqoP/igHMqTC4MoStYiWlLUCVYYLo6ZNhPbt+m450smnR3O8tK7u2 dX40AhiqSyTCmmu1haT/y5w5W8g0LrUfdP1OrJpbDI1XsklRkU7USJ28C+Q7NETzzGRf JQliPSsbjMUBFhl4D08kvVWJskLhW0UpzXah1GAnGS84dtZvQZ2d8xc2jrlc1nqDZeDW xOtPlBs8AzVSvbQSlCuECKg9Quhbv5ljjRV5fYZNdZJKpAF2RP1CiWr5gRGH9/RJJOSo 5ulK0AJAXXTu3sRGQq+2GTeA7e67+d9IWt+nHGpuzMcMq0dSj9ymZw7dw1GQ+32VpsmL YDbQ== X-Forwarded-Encrypted: i=1; AJvYcCUdC47Pi6WnR3lUVdYSZ4TGilGkYA3cYumgObGrMQWrCz/ZLjeDO5X1qX7W5dXlQeA5CAu5hWuRrHGxhujpeI4ke/k/GKQn91w8TxPq X-Gm-Message-State: AOJu0YzkeqVFK/o4KrMkuwezsd8CG1NDTvky6xMSBmxt1m7e8H+kV61d 2DwdioLMfhq8V+ZpZx/rt/P04R9KAevag/k6hyGJO9Dts0LNhIXRSJ7nTREGkVM= X-Received: by 2002:a05:6a21:7807:b0:1af:f23c:804a with SMTP id adf61e73a8af0-1b26f245bedmr579669637.38.1717113107315; Thu, 30 May 2024 16:51:47 -0700 (PDT) Received: from ?IPV6:2a03:83e0:1156:1:1cbd:da2b:a9f2:881? ([2620:10d:c090:500::4:5439]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-702423c7b7esm298915b3a.13.2024.05.30.16.51.42 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 30 May 2024 16:51:46 -0700 (PDT) Message-ID: <49e4d52c-59f1-4321-9012-aabb1e8cc005@davidwei.uk> Date: Thu, 30 May 2024 16:51:41 -0700 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH net-next v10 01/14] netdev: add netdev_rx_queue_restart() Content-Language: en-GB To: Mina Almasry , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, linux-alpha@vger.kernel.org, linux-mips@vger.kernel.org, linux-parisc@vger.kernel.org, sparclinux@vger.kernel.org, linux-trace-kernel@vger.kernel.org, linux-arch@vger.kernel.org, bpf@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-media@vger.kernel.org, dri-devel@lists.freedesktop.org Cc: "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Donald Hunter , Jonathan Corbet , Richard Henderson , Ivan Kokshaysky , Matt Turner , Thomas Bogendoerfer , "James E.J. Bottomley" , Helge Deller , Andreas Larsson , Jesper Dangaard Brouer , Ilias Apalodimas , Steven Rostedt , Masami Hiramatsu , Mathieu Desnoyers , Arnd Bergmann , Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , Martin KaFai Lau , Eduard Zingerman , Song Liu , Yonghong Song , John Fastabend , KP Singh , Stanislav Fomichev , Hao Luo , Jiri Olsa , Steffen Klassert , Herbert Xu , David Ahern , Willem de Bruijn , Shuah Khan , Sumit Semwal , =?UTF-8?Q?Christian_K=C3=B6nig?= , Pavel Begunkov , Jason Gunthorpe , Yunsheng Lin , Shailend Chand , Harshitha Ramamurthy , Shakeel Butt , Jeroen de Borst , Praveen Kaligineedi References: <20240530201616.1316526-1-almasrymina@google.com> <20240530201616.1316526-2-almasrymina@google.com> From: David Wei In-Reply-To: <20240530201616.1316526-2-almasrymina@google.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 2024-05-30 13:16, Mina Almasry wrote: [...] > +err_start_queue: > + /* Restarting the queue with old_mem should be successful as we haven't > + * changed any of the queue configuration, and there is not much we can > + * do to recover from a failure here. > + * > + * WARN if the we fail to recover the old rx queue, and at least free > + * old_mem so we don't also leak that. > + */ > + if (dev->queue_mgmt_ops->ndo_queue_start(dev, old_mem, rxq_idx)) { > + WARN(1, > + "Failed to restart old queue in error path. RX queue %d may be unhealthy.", > + rxq_idx); > + dev->queue_mgmt_ops->ndo_queue_mem_free(dev, &old_mem); This should be ->ndo_queue_mem_free(dev, old_mem).