Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp3493704pxb; Mon, 18 Oct 2021 16:51:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwfk+/kAf6Hsh5uXs+Ka80sNm1Y79TeMtUj+DeuqKjoQtM/v780Tjch3MChIbSbj1SITzsD X-Received: by 2002:a17:906:684e:: with SMTP id a14mr33826367ejs.142.1634601118669; Mon, 18 Oct 2021 16:51:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634601118; cv=none; d=google.com; s=arc-20160816; b=SJWeODFd67TmmGqvCLruv4Gi+JM1i2TYlULfyABbBLCRI48ZF2GcV/R9egCXqiURCY xAdvQNT6EclI0L/SbhTBD6ZmSwgYcpoGjrAOb6qJjtf2htUOXDwHQleUEz9hoWqxSY/l RNFsz+JbDoG+Ia01L9ZUlHKEFapPPEGGm7/rAWmv9hSb4HEyNHyohLfkXY3lIi9kKntj 221sDvzz5LMoFYHce1Wjup1bk7CVTZl4wDJI16HL2y7g6BttssXVuKpaHn2L9iawE4bP HVde1G46WgPiSuqjemYpOBEIUsxKI6gX0Yr73oEZEzUj63cMwSAky9MTAyJ25ZBfc9F4 aA9Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=PCuZ69iYH6+5hMyPXWrA2gBu7D5ud+sRu/NUH5drDUg=; b=yfKLZaY+yxXvWGUXGCS/8coAtBMqx1k291SoIpITj7e8FdWCGHJfioDRQeCdj4Bt25 arIjybfAo+lHQOu2DJAoLcPwie0ySmMjc+DA1jRqYQ5ycsMZLuz3Vwaa4IMCCgX25ODK Jc9o3m8EKlK7lfyxlRq5f0XO4hBG1hEgpU7zUg7cN4uETX1p4xZU6fwk8cbTYLQ/dP/m sV1QVMWYYfEpKRsrUqnyQU37WNGNm+CgmOe4TBjuU6qU2ii1TFRqZNEycltb3BcThBRt /WrEmOphiM/wjNoz5of5BexaVvxVcLlnojQ4AwvnBk0cDdi4C/U73XPMNw0OjsxIl7SS 0MPQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=pL1mN36X; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x13si20710163edi.550.2021.10.18.16.51.37; Mon, 18 Oct 2021 16:51:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-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=@kernel.org header.s=k20201202 header.b=pL1mN36X; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233772AbhJRXwr (ORCPT + 64 others); Mon, 18 Oct 2021 19:52:47 -0400 Received: from mail.kernel.org ([198.145.29.99]:35072 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233309AbhJRXwn (ORCPT ); Mon, 18 Oct 2021 19:52:43 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 50C7061250; Mon, 18 Oct 2021 23:50:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1634601031; bh=dE88fn6owS/u78BUKFz1R0smoxBiZvJ8wnfDQQe5xoc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=pL1mN36XvnbzWof7/iie+mTIz8Vho80rcn/+xKY65bdOHdiH+NErxQYc4CU19hFNA DFwSO+sZjmn/8MCFtv/xpHxjPMQ3L4nfxKRzS1oNnRbiyIJRJ0qOqbOeqvgK1hfQFR W6vJ+883SqCQxxzL6R/6vMdrlHrOiBGCBNujC7gQeF2P6pFpYS5v7aQjMo7oXMBE3q Xvs+xR+02eE8HohbIgvStu38WnGH/IxRUkTXLP5J3rKPjM6m4W7y6ssiNVgWYWW202 x658RLY0qKcku1hacraLlDp6gEFHdS867VFmcvEqW65ZxnFWUKmEpn1o7eOz9Pp70p /AnECQiQujzKw== From: Jakub Kicinski To: kvalo@codeaurora.org Cc: linux-wireless@vger.kernel.org, Jakub Kicinski Subject: [PATCH 13/15] wireless: ray_cs: use eth_hw_addr_set() Date: Mon, 18 Oct 2021 16:50:19 -0700 Message-Id: <20211018235021.1279697-14-kuba@kernel.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20211018235021.1279697-1-kuba@kernel.org> References: <20211018235021.1279697-1-kuba@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Commit 406f42fa0d3c ("net-next: When a bond have a massive amount of VLANs...") introduced a rbtree for faster Ethernet address look up. To maintain netdev->dev_addr in this tree we need to make all the writes to it got through appropriate helpers. Signed-off-by: Jakub Kicinski --- CC: kvalo@codeaurora.org CC: linux-wireless@vger.kernel.org --- drivers/net/wireless/ray_cs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/ray_cs.c b/drivers/net/wireless/ray_cs.c index 0f5009c47cd0..e3a3dc3e45b4 100644 --- a/drivers/net/wireless/ray_cs.c +++ b/drivers/net/wireless/ray_cs.c @@ -791,7 +791,7 @@ static int ray_dev_init(struct net_device *dev) #endif /* RAY_IMMEDIATE_INIT */ /* copy mac and broadcast addresses to linux device */ - memcpy(dev->dev_addr, &local->sparm.b4.a_mac_addr, ADDRLEN); + eth_hw_addr_set(dev, local->sparm.b4.a_mac_addr); eth_broadcast_addr(dev->broadcast); dev_dbg(&link->dev, "ray_dev_init ending\n"); -- 2.31.1