Received: by 2002:a05:7412:8d09:b0:fa:4c10:6cad with SMTP id bj9csp667153rdb; Tue, 16 Jan 2024 11:58:13 -0800 (PST) X-Google-Smtp-Source: AGHT+IFbpdAWuZZ2+nibhVJV/3JQZF87/IPqegODduNIishsP+H9/gF7nto0gxH0H/O+9VxXFDpY X-Received: by 2002:a17:902:efce:b0:1d5:7428:4ec2 with SMTP id ja14-20020a170902efce00b001d574284ec2mr4078815plb.7.1705435093192; Tue, 16 Jan 2024 11:58:13 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705435093; cv=pass; d=google.com; s=arc-20160816; b=NUtQ+pI7Nc77+EjRpPZEu8Dzy+QBqiB7RIorU8DxV7sSdmGOKqlr/4qEAVgKNPIn2a fgCsrlSsZDAVwdhngDllMWfQ67uehhdnR9bkenGjs/f9j8oBj+HPtAMgKZVLKC3BS13o J6cFRDOSht0s8TuENnw6bltkKoYoTYrN0LSBFrisUbPoQvkz6gSKUaI4IRIjEeeJPW4F koKxu57yaJTu7MjBgtMTxluGuYLtGhyK/bVbayhxR78aihQAmlZH2KQsSAqYTJcLkn74 yoUnZRZT223HsbM2csVzSTBdx18bAlw/d9j0xYlTcawfYjCjuMP6jhmgVFblllcTXZJM Kjvw== 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:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=PAr0elCH7kYWFdXGhYRe6eb34Hkh4M0Qc2VDBQ2fMTI=; fh=xOGgceOGmOONgxiIAnntiS5d+5R6y5wJB5ieG3jtGCI=; b=B8qCXstZbDZrK2D4CLeUw4yBAaced/rBZlAP0yEbkNOG8KAwgud12DPsS9uEuuR+3l TPCogU6vtZW45bF/cFj716RMbGztjAoANanZIONqUzTAKzycksj3PCjhCliLQH98tjga Vqxje/98psLgwlXbiLdaslsFx25qurrrBtxEj/eL8QDvteP4NA1HFSEQOOeydRwHRe9d 06s4cblJ/loTe8lDtL8C6vzHDt84ZLO5LJaDyYXVnQKNLlMv0tDEbEf+V7PkM1f9e4es ci6sIiHqLIOtD3kKYcyIzMKXcWkVz7OTsDtrUKsb8q6Mp2cirtfozBeJBF4zSD3I74cz jKGg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=jMfMvhYU; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-27821-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-27821-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id b14-20020a170902d50e00b001d3dbb38f84si12787877plg.449.2024.01.16.11.58.12 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Jan 2024 11:58:13 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-27821-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=jMfMvhYU; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-27821-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-27821-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=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 sv.mirrors.kernel.org (Postfix) with ESMTPS id D97462837D3 for ; Tue, 16 Jan 2024 19:58:12 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BF6CA3173E; Tue, 16 Jan 2024 19:44:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="jMfMvhYU" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 E1755200DB; Tue, 16 Jan 2024 19:44:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705434286; cv=none; b=LgHwA0Sny8n54Oy5uUI46voi1Y/4N3cKWZDiS9RYCXFhGPirJdi1L8hZvsbxJehJ5l75sir62z6+pN6ztBMR3UphQXJcFV4wjptCjPRg3harMMaXEHnHx4agxD5l/knQ56wDDaHuHyaHwH9Pknvr/f7Qv4zkhoiQYxdqA7j8FNU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705434286; c=relaxed/simple; bh=B6vfzVnC/GrAGTLt3GQNzuN97eOxeLSK0sZPBZpGPhE=; h=Received:DKIM-Signature:From:To:Cc:Subject:Date:Message-ID: X-Mailer:In-Reply-To:References:MIME-Version:X-stable: X-Patchwork-Hint:X-stable-base:Content-Transfer-Encoding; b=TjNetgvWQux61MqKppJXw5CNSR/qiN/V4BgpZFlTybWOrp0IAcJzKoPuxVlgxbqj8SqjuoBCxbvL6Os1NiK2288rF6lcGciDHJOeHUN1YFiWfVNc3iEy+Lm+nel/oPybUMIoABqdWj5uEZEWG4kP1f6zTIaRufTBS9bf3O8gGnY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=jMfMvhYU; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1EA43C433C7; Tue, 16 Jan 2024 19:44:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1705434285; bh=B6vfzVnC/GrAGTLt3GQNzuN97eOxeLSK0sZPBZpGPhE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=jMfMvhYUQuDF09qA5lCQwLh/geRyqLrcuTN4uiZ8ZxzVQUfmfiP1gIetkDCo9UpL5 x+sDbz3ZqcBLwxd/6wexOhe8zLD9wUIB8koaWQbuaU7xW73laLFn4yNyQBuhYPPl5Q 0rIkUQicAIV1uQ7rqQM+rzW0d69OEwLeVdDcBHlsifeYMXzmHyV+uv5tTxgN/0M/by AbUzoDU3FzRPNyZRrNDMzMkBwHFinpO/fQ1LMdC74YL7tuHmSMy0pjMW4iQk5gbkyR ukdi9n+DCDKEbLlfhzzgm6jy0SpcilmqIxkzvP3o0gZ2E6T39BaJm4EIVd40SH4zkJ 8E4fy4131lgYQ== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: duanqiangwen , Jakub Kicinski , Sasha Levin , jiawenwu@trustnetic.com, mengyuanlou@net-swift.com, davem@davemloft.net, edumazet@google.com, pabeni@redhat.com, andrew@lunn.ch, bhelgaas@google.com, maciej.fijalkowski@intel.com, horms@kernel.org, netdev@vger.kernel.org Subject: [PATCH AUTOSEL 6.7 050/108] net: wangxun: fix changing mac failed when running Date: Tue, 16 Jan 2024 14:39:16 -0500 Message-ID: <20240116194225.250921-50-sashal@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240116194225.250921-1-sashal@kernel.org> References: <20240116194225.250921-1-sashal@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore X-stable-base: Linux 6.7 Content-Transfer-Encoding: 8bit From: duanqiangwen [ Upstream commit 87e839c82cc36346a2cd183ca941316902110716 ] in some bonding mode, service need to change mac when netif is running. Wangxun netdev add IFF_LIVE_ADDR_CHANGE priv_flag to support it. Signed-off-by: duanqiangwen Link: https://lore.kernel.org/r/20231206095044.17844-1-duanqiangwen@net-swift.com Signed-off-by: Jakub Kicinski Signed-off-by: Sasha Levin --- drivers/net/ethernet/wangxun/ngbe/ngbe_main.c | 1 + drivers/net/ethernet/wangxun/txgbe/txgbe_main.c | 1 + 2 files changed, 2 insertions(+) diff --git a/drivers/net/ethernet/wangxun/ngbe/ngbe_main.c b/drivers/net/ethernet/wangxun/ngbe/ngbe_main.c index 8db804543e66..a5c623fd023e 100644 --- a/drivers/net/ethernet/wangxun/ngbe/ngbe_main.c +++ b/drivers/net/ethernet/wangxun/ngbe/ngbe_main.c @@ -582,6 +582,7 @@ static int ngbe_probe(struct pci_dev *pdev, netdev->priv_flags |= IFF_UNICAST_FLT; netdev->priv_flags |= IFF_SUPP_NOFCS; + netdev->priv_flags |= IFF_LIVE_ADDR_CHANGE; netdev->min_mtu = ETH_MIN_MTU; netdev->max_mtu = WX_MAX_JUMBO_FRAME_SIZE - diff --git a/drivers/net/ethernet/wangxun/txgbe/txgbe_main.c b/drivers/net/ethernet/wangxun/txgbe/txgbe_main.c index 526250102db2..a78da2309db5 100644 --- a/drivers/net/ethernet/wangxun/txgbe/txgbe_main.c +++ b/drivers/net/ethernet/wangxun/txgbe/txgbe_main.c @@ -638,6 +638,7 @@ static int txgbe_probe(struct pci_dev *pdev, netdev->priv_flags |= IFF_UNICAST_FLT; netdev->priv_flags |= IFF_SUPP_NOFCS; + netdev->priv_flags |= IFF_LIVE_ADDR_CHANGE; netdev->min_mtu = ETH_MIN_MTU; netdev->max_mtu = WX_MAX_JUMBO_FRAME_SIZE - -- 2.43.0