Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp337960pxb; Thu, 21 Jan 2021 08:17:04 -0800 (PST) X-Google-Smtp-Source: ABdhPJyHXGt6yuZBQPAJhhfEjFUjarXuDwJlGp3lM6q1uKsm1a/+WbTHqX52Cq636efm9CrzUCx/ X-Received: by 2002:a05:6402:8cd:: with SMTP id d13mr8553754edz.335.1611245824151; Thu, 21 Jan 2021 08:17:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611245824; cv=none; d=google.com; s=arc-20160816; b=wdwc8jrKf6DiYV+U3vn6k0FysjFy9YXptWMnZleFqa2T6yswdtm+m+XcrGmzloLCR0 uKE6vCI9GW3NOfcISZYu5ZyvKX8Un84o9FObivBE0bnzFeAT3daccnusaKb5jz/iWV3q oCu53gfvbDosv6S+v0/DPqDqaqg3jefseo1C2LLbt8EHZ+9eGP3DQ86mBY3w/b0ExBMU dxeC8CZflWywG74baKm6Jgj+8u1GL+J1l+nequMyaO7V1jLE5cEw+f6Q54xqbQ6/6Hsi 8sgbE/q93azVic720SXwL0DiNXE9V6A77HvyWkf6uXi63wkbxZIazqDvz+gGBTT7Wktp ZjNg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=3fk+Ltd/WJun2rMhD/0B1TRdBjEBWKb5kM3nBcZ4ddo=; b=ir3Cj5mf9iqX6EEQV/F/37+smvaOXwSZfG44UxOh+4QioQEhailSDYgczLL2MyrGJG 90Gs0cMgMYpQUnK78/DCwrpn65626ap2jI2baRkO1jylcEm6LhFfuddcM4qQshcT2nmS Rsk3eNhaIU+tP64HntDjzL4pCLEuHGjOH2U7P5WCMrytI0excpw8PXhfqvF1CLts4Wpr WFHGk19wRpW0go5YLOykq7hUKCICf65vCSDDBkiTAf7BopA8R/fFjYNFg8XksY2I/fOG W5dyNl+run1rU+CxMenTO7OB5w/wyLtcele3rNfTFLZ768eBtIw/KvZTzLWbdo+ESrJn DG8w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=lyedh99C; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i23si837873eds.490.2021.01.21.08.16.39; Thu, 21 Jan 2021 08:17:04 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=lyedh99C; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387727AbhAUQLx (ORCPT + 99 others); Thu, 21 Jan 2021 11:11:53 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46550 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732884AbhAUQLo (ORCPT ); Thu, 21 Jan 2021 11:11:44 -0500 Received: from mail-wr1-x429.google.com (mail-wr1-x429.google.com [IPv6:2a00:1450:4864:20::429]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2C226C0613D6; Thu, 21 Jan 2021 08:11:02 -0800 (PST) Received: by mail-wr1-x429.google.com with SMTP id c12so2286648wrc.7; Thu, 21 Jan 2021 08:11:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=3fk+Ltd/WJun2rMhD/0B1TRdBjEBWKb5kM3nBcZ4ddo=; b=lyedh99Ckt5+2Zdw9xnwKh8S2EIazsc1QHLioysl5Nmgf3VlQMG6C2iQvkJNY3dUEl HbFNskw5fruTXnGPHku1SiUDsF6z//OJm7Md/VHA0yHH/Ekg1BsW6vht0s9BnVMWoua8 edBAKsQ6uCWONCPOC4WkD/ErQT+PPieYPxfygLD/ldPTPDl1kZwss7spmq6yqARmcdO+ pf/i9xli3pq8s77/9PP8cYd4wpS72CnHfexqcQtgXpedr5BhfWBe4J/bOt3HWZTjg6h/ JFNISt2uaW8vdEjwbC5G5IfmVFs03oMvInAJXC1+kqtBqfFFSMFT4nLp0zcPUhcyt/Od IfRA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=3fk+Ltd/WJun2rMhD/0B1TRdBjEBWKb5kM3nBcZ4ddo=; b=skCiQl9vDCfCj0TCzuR2XihopG58CXZYqDt2AnDwwQZjm8v8RcXq5DfAuoOG1Abhmu hhrittQPSvzul11DtZngfd9W8pPd200fKpOxLKDbv2E2VWFnYaYikAGTQBiuOS4v7tlk fzJIwsv7T/4pv3qOfgU3IVhxPOG08yRC8oarghnCPGbYDHTozma3ManeIBhaozZfTyLF egpOkdtgrHROv829lXtHd3srhYIIDoZofsgMmxAlxEL0D39vHaYb10RJTap+v/prk1TX OKneXY1ZBj3Z0O11XQq5WxQ1WAxjm7jC0maClQqlX8U8+WAkafi2Y9EqE2AJsaipacsO u5UQ== X-Gm-Message-State: AOAM532lbvRg6abG3BFBzm7UGoxTMNd0JmcGO5asKZ3UrMaKf9C0Tl+r R2qzhvhdfPfu4A2CeJq29aU= X-Received: by 2002:a5d:4d4f:: with SMTP id a15mr148527wru.315.1611245461008; Thu, 21 Jan 2021 08:11:01 -0800 (PST) Received: from [192.168.1.122] (cpc159425-cmbg20-2-0-cust403.5-4.cable.virginm.net. [86.7.189.148]) by smtp.gmail.com with ESMTPSA id g194sm8582133wme.39.2021.01.21.08.10.59 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 21 Jan 2021 08:11:00 -0800 (PST) Subject: Re: [PATCH net-next] sfc: reduce the number of requested xdp ev queues To: Ivan Babrou , netdev@vger.kernel.org Cc: linux-kernel@vger.kernel.org, bpf@vger.kernel.org, kernel-team@cloudflare.com, Martin Habets , "David S. Miller" , Jakub Kicinski , Alexei Starovoitov , Daniel Borkmann , Jesper Dangaard Brouer , John Fastabend References: <20210120212759.81548-1-ivan@cloudflare.com> From: Edward Cree Message-ID: <201b4e33-eec5-efcd-808b-1f15a979d998@gmail.com> Date: Thu, 21 Jan 2021 16:10:59 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.5.0 MIME-Version: 1.0 In-Reply-To: <20210120212759.81548-1-ivan@cloudflare.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 20/01/2021 21:27, Ivan Babrou wrote: > Without this change the driver tries to allocate too many queues, > breaching the number of available msi-x interrupts on machines > with many logical cpus and default adapter settings: > > Insufficient resources for 12 XDP event queues (24 other channels, max 32) > > Which in turn triggers EINVAL on XDP processing: > > sfc 0000:86:00.0 ext0: XDP TX failed (-22) > > Signed-off-by: Ivan Babrou Acked-by: Edward Cree