🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #479

[PATCH net-next v18 08/13] ax88179_178a: Add AX179A/AX279 multicast configuration

#479
From: Birger Koblitz
Date: Thu, 08 Oct 2026 03:51
49 lines
8850 bytes
Add support for conditionally setting the ip_alignement flag
AX_RX_CTL_IPE in AX_RX_CTL and make sure that AX_RX_CTL_DROPCRCERR
is also set to be consistent with the initial configuration in
ax88179_reset()

Signed-off-by: Birger Koblitz <mail@birger-koblitz.de>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
---
 drivers/net/usb/ax88179_lib.c      | 8 ++++++--
 drivers/net/usb/ax88179a_devices.c | 1 +
 2 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/drivers/net/usb/ax88179_lib.c b/drivers/net/usb/ax88179_lib.c
index 0efc2eb95e4b319fe8b39c23f4b4d8e14d5e9bce..ea19700c8230f7b51bd1f6edf44133c31b7298a1 100644
--- a/drivers/net/usb/ax88179_lib.c
+++ b/drivers/net/usb/ax88179_lib.c
@@ -321,10 +321,14 @@ int ax88179_set_eeprom(struct net_device *net, struct ethtool_eeprom *eeprom, u8
 void ax88179_set_multicast(struct net_device *net)
 {
 	struct usbnet *dev = netdev_priv(net);
-	struct ax88179_data *data = dev->driver_priv;
 	u8 *m_filter = ((u8 *)dev->data);
+	struct ax88179_data *data;
+
+	data = dev->driver_priv;
 
-	data->rxctl = (AX_RX_CTL_START | AX_RX_CTL_AB | AX_RX_CTL_IPE);
+	data->rxctl = (AX_RX_CTL_START | AX_RX_CTL_AB | AX_RX_CTL_DROPCRCERR);
+	if (data->ip_align)
+		data->rxctl |= AX_RX_CTL_IPE;
 
 	if (net->flags & IFF_PROMISC) {
 		data->rxctl |= AX_RX_CTL_PRO;
diff --git a/drivers/net/usb/ax88179a_devices.c b/drivers/net/usb/ax88179a_devices.c
index bdc67cbc17287e2969b36430c672887ee63d18ec..e86cbe3e4400fa2c8e1a6a864fc8e1d328f13724 100644
--- a/drivers/net/usb/ax88179a_devices.c
+++ b/drivers/net/usb/ax88179a_devices.c
@@ -672,6 +672,7 @@ static const struct net_device_ops ax88179a_netdev_ops = {
 	.ndo_set_mac_address	= ax88179_set_mac_addr,
 	.ndo_validate_addr	= eth_validate_addr,
 	.ndo_eth_ioctl		= ax88179a_mii_ioctl,
+	.ndo_set_rx_mode	= ax88179_set_multicast,
 	.ndo_set_features	= ax88179a_set_features,
 	.ndo_vlan_rx_add_vid	= ax88179a_vlan_rx_add_vid,
 	.ndo_vlan_rx_kill_vid	= ax88179a_vlan_rx_kill_vid,

-- 
2.47.3
Technical Details
Message-ID: <20261008-ax88179a-v18-8-6fa1d4c40422@birger-koblitz.de>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-342724-linux-kernel-netdev=dewy.ru
References: <20261008-ax88179a-v18-0-6fa1d4c40422@birger-koblitz.de>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-342724-linux-kernel-netdev=dewy.ru
From: mail@birger-koblitz.de (Birger Koblitz)
Newsgroups: linux.kernel.netdev
Subject: [PATCH net-next v18 08/13] ax88179_178a: Add AX179A/AX279
 multicast configuration
Date: Thu, 08 Oct 2026 05:51:14 +0200
Organization: Usenet Network
Message-ID: <20261008-ax88179a-v18-8-6fa1d4c40422@birger-koblitz.de>
References: <20261008-ax88179a-v18-0-6fa1d4c40422@birger-koblitz.de>
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 7bit
Injection-Info: usenet.network;
	logging-data="797583"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:mUP37ODOdL7ZoTHuiqD2qj+Zn4E= sha256:8ePVmNBueokOVUiw3xSnNZRFZJsaKj18g7AqdC4z9GM=
	sha1:GnSotpyuMFR3JdrKER7XqVFKyhU= sha256:rdFv/p24HBsErx+XrpIYvXwgJ4fOI4M8La6Mtlu78bk=
List-ID: <netdev.vger.kernel.org>
X-Mailpost-Empty-Hdrs: X-Spam-Level
X-Received: from localhost (localhost [127.0.0.1])
	by mail.dewy.ru (Postfix) with ESMTP id DCCDA10F2F2; Thu,  8 Oct 2026 06:55:30 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: 0.35
X-Spam-Status: No, score=0.35 tagged_above=-9999 required=6.31
	tests=[DCC_CHECK=1.1, DCC_REPUT_70_89=0.1, DKIM_SIGNED=0.1,
	DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,
	HEADER_FROM_DIFFERENT_DOMAINS=0.249, MAILING_LIST_MULTI=-1,
	SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001]
	autolearn=no autolearn_force=no
X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key)
	header.d=birger-koblitz.de header.b=DnwXCZdc; dkim=pass (2048-bit key)
	header.d=birger-koblitz.de header.b=N1mX+Rui
X-Received: from mail.dewy.ru ([127.0.0.1])
	by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id mj3m0e8cN1Xd;
	Thu,  8 Oct 2026 06:55:28 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.105.105.114; helo=tor.lore.kernel.org; envelope-from=netdev+bounces-342724-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> 
X-Authentication-Results: OpenDMARC; dmarc=none (p=none dis=none) header.from=birger-koblitz.de
X-Received: from tor.lore.kernel.org (tor.lore.kernel.org [172.105.105.114])
	by mail.dewy.ru (Postfix) with ESMTPS id 05E3C10C4C4; Thu,  8 Oct 2026 06:55:25 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.90.174.1])
	by tor.lore.kernel.org (Postfix) with ESMTP id B899C310D7; Thu,  8 Oct 2026 03:52:10 +0000 (UTC)
X-Received: from localhost.localdomain (localhost.localdomain [127.0.0.1])
	by smtp.subspace.kernel.org (Postfix) with ESMTP id 3F4993C343F;
	Thu,  8 Oct 2026 03:51:33 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (2048-bit key) header.d=birger-koblitz.de header.i=@birger-koblitz.de header.b="DnwXCZdc";
	dkim=pass (2048-bit key) header.d=birger-koblitz.de header.i=@birger-koblitz.de header.b="N1mX+Rui"
X-Received: from bkemail.birger-koblitz.de (bkemail.birger-koblitz.de [23.88.97.239])
	(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 98BD23C0A0B;
	Thu,  8 Oct 2026 03:51:31 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=23.88.97.239
X-ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;
	t=1791431493; cv=none; b=KFO+lc936o8jJrAnC4S/LO9gqLN66M++yDZnDNvhfqiRoFg3ntbWBTk6UxqHwyq4XsqWbTh+T9lneaTTRHr6unqGXt4usLhhtxYqHlCsM87A++YAE6kwU3gPFOugunPiHRjHSlrW08h1x9bFJJeCMko4Ul39w+3riEc9APSV0Po=
X-ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org;
	s=arc-20240116; t=1791431493; c=relaxed/simple;
	bh=pRuGlSrVHBYdsO1UnsRtb9s1Jv7DtuQKirqcCXuKLaY=;
	h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References:
	 In-Reply-To:To:Cc; b=EDKM7yx2ib/DO8sp1+Ro9iCVNkw6iii5PagFU9ZzVBp7eBcURtXxR2ZTYst+c0J6M3muCDwveRGP9AVSo5YNf2R6TKI/iPV76lLH6nPYqCYQk32XzWdVPkr56guwxVIxiPg3OsJ2IUEaYrTT4Y4NmtvGjO4a+0x2VG5dpF1ezqQ=
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=birger-koblitz.de; spf=pass smtp.mailfrom=birger-koblitz.de; dkim=pass (2048-bit key) header.d=birger-koblitz.de header.i=@birger-koblitz.de header.b=DnwXCZdc; dkim=pass (2048-bit key) header.d=birger-koblitz.de header.i=@birger-koblitz.de header.b=N1mX+Rui; arc=none smtp.client-ip=23.88.97.239
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=birger-koblitz.de
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=birger-koblitz.de
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=birger-koblitz.de;
	s=default; t=1791431490;
	bh=pRuGlSrVHBYdsO1UnsRtb9s1Jv7DtuQKirqcCXuKLaY=;
	h=From:Date:Subject:References:In-Reply-To:To:Cc:From;
	b=DnwXCZdcL4i876CuyI/7X9XglYYDqpExB2FOPbR2fBS0SxGljuTPIejOcgg+g7NaI
	 naFv+lRlOnErqPP7SDqWS0s9u5hVlbO6+t8vunmGMbh7vXn7JQ/acE5WAQ6DZ+7b2A
	 2fMWh5cVlWCj9gY4bdgvPdVY2zki0GW2lhCttow7us8zRQ8ufe+Boz+5UJWtqHnOlT
	 TdpwCFZnAsd7xk4CAqQ6/jGuwtGc+mYTT13AGZg2SVmH62VSFnZyBzpg5STay8b1Su
	 0vLwWgJRCP2j2tfk/62ZjyaLyfnJiJrwWfy/tf/6q2cncPBKAiXRdhlJxbVLFTjB+4
	 Ioq0Jb57t5A6w==
X-Received: by bkemail.birger-koblitz.de (Postfix, from userid 109)
	id 0FAAB47215; Thu,  8 Oct 2026 03:51:30 +0000 (UTC)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=birger-koblitz.de;
	s=default; t=1791431478;
	bh=pRuGlSrVHBYdsO1UnsRtb9s1Jv7DtuQKirqcCXuKLaY=;
	h=From:Date:Subject:References:In-Reply-To:To:Cc:From;
	b=N1mX+RuiEadsEDzvxZ9npc59e070ohWTz0rsflPLo3GBhaNqCpYplyypks4SAg+nf
	 fJexeJt5fAnCBJqGb7jXF5cOJKe+qiUPlEXqggClym7BBrH6M7qFPjotAWMe8F8UuL
	 CvC9Sy6wyo8RN2/vsqfRaB+LmfzQCGjisxQeE4pbSdZN1NMl44fml427abjEfbyo4x
	 hzVbN5DLFuIHeIrDW+1Gqiwupm8vEos42tQkloYhi+E9Kd1xwnCb/yDjhf6i29+fLm
	 ga/MOupAlj7v5D4VU6SRXA6Vgy4C/0XgmRrP/N351OEQTX6t1fo4lyKA0rnoHobcjt
	 U7s4oc1yMJRgA==
X-Received: from AMDDesktop.lan (unknown [IPv6:2a00:6020:47a3:e800:271c:c6c5:9fde:77cb])
	by bkemail.birger-koblitz.de (Postfix) with ESMTPSA id 636E3470BF;
	Thu,  8 Oct 2026 03:51:18 +0000 (UTC)
X-Precedence: bulk
X-Mailing-List: netdev@vger.kernel.org
X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org>
X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org>
X-In-Reply-To: <20261008-ax88179a-v18-0-6fa1d4c40422@birger-koblitz.de>
X-Cc: linux-usb@vger.kernel.org, netdev@vger.kernel.org, 
 linux-kernel@vger.kernel.org, loongarch@lists.linux.dev, 
 Jianhui Xu <neuromoments@gmail.com>, 
 Birger Koblitz <mail@birger-koblitz.de>
X-Mailer: b4 0.14.2