Received: by 2002:a05:7412:d1aa:b0:fc:a2b0:25d7 with SMTP id ba42csp1580571rdb; Wed, 31 Jan 2024 03:07:12 -0800 (PST) X-Google-Smtp-Source: AGHT+IELkwe2GKhkGjaYLHsvaB9mGo6UlLiiqjWX7fAp7tKxXSbJ93bnYA6EFSrV8X+I4QH+bxMI X-Received: by 2002:a17:902:b590:b0:1d8:ef97:229e with SMTP id a16-20020a170902b59000b001d8ef97229emr3470867pls.33.1706699232038; Wed, 31 Jan 2024 03:07:12 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706699232; cv=pass; d=google.com; s=arc-20160816; b=WdNiyUULs/M+Fuk27hBj9lNwd7h7LUHoq7wOL40WTGL5xwCD6u+lwhXjFFbOag7aeU hQgPnEbG25cIOXXICsz8x2aOJaLFDpSj0qJAUuMmjT35NXpBlY+KW+cC/p+pB9U83lVl Sd6w7lwH8jz+Zu8WjqnAvMnrRNca4nrGlfv2IQbsQN98x/CtlALAqfiVZKzD3+GSiAfD CxOrzLOStl3fpXh35TlSQrOAGWVkaid//aGdMiIkbx0t6ODQVjV+lBUKZ5v7W27w3lLt DuQZs70W2UZmFa3MRfMnIcl0FOLOTA9exCS6jpj13XeEu2VDp0ItQkEb5FkpO250e1jO rCWQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from; bh=rzbanewUQQj5wy+n5V1UkkEIPWprha4U/2Zbco09ODI=; fh=zhgvP2Bvcxpx6mnncPMSAlO2r8xva5wurSXimbz+8/U=; b=Q/gPz1V/wluNdu2EZaFGbPJULrAz900OcEzxZg+Emj+azeJnrj9ZNRJJzY9yCV5bXm AY/9GWZK5+ywhq/EmhHEcyt2Ph0eVJGmlL2DGEsk8iR4Fe7oC0gHrYGY3sa6Xcdhsj/9 4xDF3Fa10nHsxTASNq+6YOWKzAt9Fj0+i1W5IpSF4B6SfRJagCodX+Ia8oKzB/JMZ4k7 PdgH0zQ1lEm8nBvJUriLKcpvQeUJ6PAx9b+xbBcvApguD03k8GrjnCSdKMv9N2x7NvGZ G3ZLR9WUSMMGQTnrj6hzKtw1ozTu+++9ipwz9EWwSKuVazFKLSTvQ9FnO8Ip1pPCdVWe 7YSQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-46221-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-46221-linux.lists.archive=gmail.com@vger.kernel.org" X-Forwarded-Encrypted: i=1; AJvYcCWTUQAFp4b/e+cRbFQzKrekatRfqrwC+DZZLArgG/u32tq6YKVUgg+uxK1wSTWWhD1aEE2HxN/jp/8MEaxP6aG13ToNF1IN4CoqMDDrTg== Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id l5-20020a17090270c500b001d4931a0bfcsi9112756plt.638.2024.01.31.03.07.11 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 31 Jan 2024 03:07:12 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-46221-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-46221-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-46221-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id EB3E2B2C6A5 for ; Wed, 31 Jan 2024 10:25:58 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id F3FD774E04; Wed, 31 Jan 2024 10:22:02 +0000 (UTC) Received: from mail-ej1-f42.google.com (mail-ej1-f42.google.com [209.85.218.42]) (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 7F1BE69964; Wed, 31 Jan 2024 10:22:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.42 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706696522; cv=none; b=ct2e/JnpFWA6mRAzoD1PVLlmjK4ysIVuwLlbRURlNKMgzRxPsip/DnKWu5MNnQ02DlEMPWreL4VaoheHqzrlOfmoNGovz/vrOTi5BFurayjjuxVhtPKIh4YDAQxRq04Zo/xT+Mczy4SbyaDLqY76ikn2pwOxousx4aN+Ovmud2M= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706696522; c=relaxed/simple; bh=/JV1uEYHXrbnJa7WNg6DLHiDN+2ZhG/Pr0mBmoeU/90=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=skrpAw+OWTDeyQEg3IIodLxAeiMy0Z/l3dRWHkxxT5P3iV3KP4VVjngXoL8gd6ZQUcJceyjzdojddBUbiyneAMLT26E4Pa4Hj6XNzzwSWITCAqxHGY/beIjw7TmCCnCtD5ZcbH9SaPjtq0Mjk33hHiZNVfJivTka77iaPzTYZAs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=debian.org; spf=pass smtp.mailfrom=gmail.com; arc=none smtp.client-ip=209.85.218.42 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=debian.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-ej1-f42.google.com with SMTP id a640c23a62f3a-a271a28aeb4so634503266b.2; Wed, 31 Jan 2024 02:22:00 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706696519; x=1707301319; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=rzbanewUQQj5wy+n5V1UkkEIPWprha4U/2Zbco09ODI=; b=E6l8B4bO7IBH7s2QyLGlDOoDxhBOZDKmbAQvIoxI+fPLrBPHEUdduPqAGRy1R4p9YF gks22U/45Iv0fIOaP0/0pAGDMasb/pleQG5CG6fq/LqBiMcDnV240Gm24tTHX2ufvx46 qmNifaCZerH+Yngn/ziJhZz83nHoplpVtNzR7yl4+9oBigsGQCd1saeKiGBCKFJbvmtE HEc+j2C5sEPQUh6rasj6Qxs2n7H7qJeWGMyUY3EfTAjYZ+NrMqaOHcDRxOx77RDtPrgu nLwehrDIyCZfYf+BCNRs4MPosrwgDx0HcpswOHegn4P+KRnilWuzGzIpuaLFbar9v2KI l3Bw== X-Gm-Message-State: AOJu0YwWP8XRb6SfsbcMqCgnh291fFyiT9BDB4ePBvl/lYP9zNBgk4z9 gO/BTDl411oefohEUUxgR8jqY0pOVr320Ff8EH9Sq7+Iiav10LmMpP0bp8slF3NVrw== X-Received: by 2002:a17:906:78a:b0:a30:2597:83dd with SMTP id l10-20020a170906078a00b00a30259783ddmr868370ejc.43.1706696518457; Wed, 31 Jan 2024 02:21:58 -0800 (PST) Received: from localhost (fwdproxy-cln-005.fbsv.net. [2a03:2880:31ff:5::face:b00c]) by smtp.gmail.com with ESMTPSA id f14-20020a170906494e00b00a3681468567sm307427ejt.81.2024.01.31.02.21.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 31 Jan 2024 02:21:58 -0800 (PST) From: Breno Leitao To: davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH net v2 0/2] net: dqs: NIC stall detector Date: Wed, 31 Jan 2024 02:21:48 -0800 Message-Id: <20240131102150.728960-1-leitao@debian.org> X-Mailer: git-send-email 2.34.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit This is a patch that was sent by Jakub Kicinski six month ago, and I am reviving it. This is still mostly Jakub's code, with some small improvements, described in the changelog. Changelog: ---------- v1: * https://lore.kernel.org/netdev/202306172057.jx7YhLiu-lkp@intel.com/T/ v2: * Fix the documentation file in patch 0001, since patch 0002 will touch it later. * Fix the kernel test robot issues, marking functions as statics. * Use #include instead of . * Added some new comments around, mainly around barriers. * Format struct `netdev_queue_attribute` assignments to make checkpatch happy. * Updated and fixed the path in sysfs-class-net-queues documentation. Breno Leitao (1): net: sysfs: Fix /sys/class/net/ path Jakub Kicinski (1): net: dqs: add NIC stall detector based on BQL .../ABI/testing/sysfs-class-net-queues | 45 ++++++++++---- include/linux/dynamic_queue_limits.h | 35 +++++++++++ include/trace/events/napi.h | 33 ++++++++++ lib/dynamic_queue_limits.c | 58 +++++++++++++++++ net/core/net-sysfs.c | 62 +++++++++++++++++++ 5 files changed, 222 insertions(+), 11 deletions(-) -- 2.34.1