Received: by 2002:ab2:69cc:0:b0:1fd:c486:4f03 with SMTP id n12csp12610lqp; Mon, 10 Jun 2024 16:12:25 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU5QmXnOLciFK1w0E9Lhi5Gzn4JxlamyVQ3E6TjmJXs2HrqzYtdABnymtoxzdPa3urLebcxoQmJWJ4IQ560LySqQJEyM2Z2jQhoFQJRZQ== X-Google-Smtp-Source: AGHT+IFZFh8aRCwda+o3IYQ1D3Hjwx2X06m6Eg4ZN3M+RkDJ/RCZ6mojMoURNrmFd+4Na8VIuPcM X-Received: by 2002:a17:906:348a:b0:a65:2b64:f84a with SMTP id a640c23a62f3a-a6f34d9795emr66238966b.25.1718061145842; Mon, 10 Jun 2024 16:12:25 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718061145; cv=pass; d=google.com; s=arc-20160816; b=Q83TuFHDb202UCWJEqvfTBtwrOmTi7xxkFZXNJwsOR+r6m5zMSRcRhpnFdLI2QY10e pP18FauwFmu6UToD5sI/VEghUadGxtZxwvfgv2RylhBuF8SvvGuFl9YVwh30xbPVkF+n nqntjSmyM5PmvZeNp85h3jW+0kVWPyy3k6MQZLTELMdfpA8uIDAgswQK2PReS7KN7YAC RjS25NDeSw9dczH8UQXu24BPZNRWo5w6vxpfR9i2cQTdDL96OJXpEwbpncIn7C1qEpYY F7vBCj+7eIn69ZgcegMcVLTwkpj06AntlQX28BhY4YtLfoheUyBDFEmRcb1j5uOSbo9k zICA== 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:dkim-signature; bh=FDA59kZrpAKz7084CN5HZMkmVitgKCZsjBBJnQ6cgj8=; fh=jrU4vZmEFHceitD8I7xdlE5Lwuy1nA15SaxY0r4gSC4=; b=SA3lt7hrwY/TTOglMhcvH0SMk0hTlY4PWBDoECSOjOkDIeujo9/KnhDQrKTTEZzjTs ny+lywdR75rKeRtCKdWwISDmbbPa/g41raHSfDQ1t3cZnkzhBZsSzRwwjlg1Uvyc0f2F cTuQcaY8Sx3SMUD7CSVJWgmGfCzL07t5l266wjHsZwQ/hmyTSV37fgnGvtnDOPRTPRof 4UAolIjHXMcL7XQbKU8WJntFvY7srAyDjqMtc+7u+Z1DqKOO1qKf5xFiKo/HdBPUCgf8 EvUnNg7TZaxcqjVJZ4BeAnhVcRlEgRBaia+tgfw1LAyX12+kZmGAeovcKkPKvYGHffFc PhsQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=wK7AYb5s; arc=pass (i=1 spf=pass spfdomain=linux.dev dkim=pass dkdomain=linux.dev dmarc=pass fromdomain=linux.dev); spf=pass (google.com: domain of linux-kernel+bounces-209046-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-209046-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id 4fb4d7f45d1cf-57aae383a78si5341559a12.677.2024.06.10.16.12.25 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 10 Jun 2024 16:12:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-209046-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=@linux.dev header.s=key1 header.b=wK7AYb5s; arc=pass (i=1 spf=pass spfdomain=linux.dev dkim=pass dkdomain=linux.dev dmarc=pass fromdomain=linux.dev); spf=pass (google.com: domain of linux-kernel+bounces-209046-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-209046-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev 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 8EF121F231DE for ; Mon, 10 Jun 2024 23:12:25 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6EB4015253D; Mon, 10 Jun 2024 23:10:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="wK7AYb5s" Received: from out-178.mta0.migadu.com (out-178.mta0.migadu.com [91.218.175.178]) (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 8C34C152176 for ; Mon, 10 Jun 2024 23:10:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.218.175.178 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718061033; cv=none; b=RRtx93pl+YVsOLItE2fSFmdI1X9MWPxHvDHf+CfR2bGNw3KSRwGfMt24CgcB0f9vyIy97xg1fiQTOkr0nM35ZpOFe7dWryqhnlxTcVzLTS5rW9v+N/GgyeKaKOUOhJZvEIS8EtGoFm/XKGyCdRd0rO8AEp4O9BGoX9Cbv/hhlwQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718061033; c=relaxed/simple; bh=Hqo2lJ+wvCjfGXotn9bKfuEGO6SE4V/OkBviYTEcT44=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=ZfYmpT4g2QfsfOJllZjU041nM+1dPcnud+9HtTSEfVhoewc8gJMBF7vNFVH04LJGjrllSZb8T02eeronY4CMN+huuci98IBboJUJuNMOlEHqbfVrlqRudNl0WdHJ1F3Pyd5kS7QmC1CgCXGSqQt/ZcNcQGUKVfZo5AFotqzJeTk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b=wK7AYb5s; arc=none smtp.client-ip=91.218.175.178 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev X-Envelope-To: radhey.shyam.pandey@amd.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1718061029; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=FDA59kZrpAKz7084CN5HZMkmVitgKCZsjBBJnQ6cgj8=; b=wK7AYb5srn+BvhVJWYZhr8hTCWe3vVWq74rQqoFySP/cYlCN4f0qC6yBS0J1klT+Hli3uV uJub072MBWc0IZyDo/0Kx24/hxdW6lja6SaaZCTUHGJstbK+UawMY0E44Yx/v/++8Cpnxb mFtfwBDa3f9rL9pQkudw07cPj087Wjk= X-Envelope-To: netdev@vger.kernel.org X-Envelope-To: linux-arm-kernel@lists.infradead.org X-Envelope-To: michal.simek@amd.com X-Envelope-To: kuba@kernel.org X-Envelope-To: linux@armlinux.org.uk X-Envelope-To: pabeni@redhat.com X-Envelope-To: edumazet@google.com X-Envelope-To: linux-kernel@vger.kernel.org X-Envelope-To: davem@davemloft.net X-Envelope-To: sean.anderson@linux.dev X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Sean Anderson To: Radhey Shyam Pandey , netdev@vger.kernel.org Cc: linux-arm-kernel@lists.infradead.org, Michal Simek , Jakub Kicinski , Russell King , Paolo Abeni , Eric Dumazet , linux-kernel@vger.kernel.org, "David S . Miller" , Sean Anderson Subject: [PATCH net-next 0/3] net: xilinx: axienet: Add statistics support Date: Mon, 10 Jun 2024 19:10:19 -0400 Message-Id: <20240610231022.2460953-1-sean.anderson@linux.dev> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Migadu-Flow: FLOW_OUT Add support for hardware statistics counters (if they are enabled) in the AXI Ethernet driver. Unfortunately, the implementation is complicated a bit since the hardware might only support 32-bit counters. In the future, we could add a simpler alternate implementation for 64-bit counters enabled with a device-tree property, but for now I've gone with a unified implementation. Sean Anderson (3): net: xilinx: axienet: Use NL_SET_ERR_MSG instead of netdev_err net: xilinx: axienet: Report RxRject as rx_dropped net: xilinx: axienet: Add statistics support drivers/net/ethernet/xilinx/xilinx_axienet.h | 81 ++++++ .../net/ethernet/xilinx/xilinx_axienet_main.c | 275 +++++++++++++++++- 2 files changed, 349 insertions(+), 7 deletions(-) -- 2.35.1.1320.gc452695387.dirty