Received: by 2002:a05:7412:798b:b0:fc:a2b0:25d7 with SMTP id fb11csp550211rdb; Thu, 22 Feb 2024 11:34:49 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXZMe4OM6MnUNAg6gxyvqpmvHwnTFwRpkSAUtBvxpNvmJMvV3d5asL/Zmxolvyq7RLqkuXo28ZXuoX3sZNIboKZ+kg6m0q1d0ynczF/tA== X-Google-Smtp-Source: AGHT+IGeeF5M6cHXz5PuOavFTjR7P842w6zhQI8a0hDbGjW2v4zRAPVlaHHS1DbItX7Grqs2XKOF X-Received: by 2002:a05:6830:1d91:b0:6e4:459e:fdba with SMTP id y17-20020a0568301d9100b006e4459efdbamr16957204oti.26.1708630489447; Thu, 22 Feb 2024 11:34:49 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708630489; cv=pass; d=google.com; s=arc-20160816; b=oclaXy1JcYyL5hNc+RDPcLGpw+eNO9Tw/1SHT+Z1W75SRtZ9POdqE4eLhKaSt1HopE sBob3h280vNFEFU22QsKkrPRTwTwuDuwqasBZrHEXHd59NVI5panfu8t6ZRyJR9cqMy+ fs0LE3uarJ9Hq0A2NmzZGUEZKQGT3wR5JrMcRRKzh/F1saQyQWm7AUSElYwcfFZZ1ChE yiB9Hyf7AcBxt30w+FMjIaenZoEnxyPMKTb4jXVonkDgNx4kOQPVqXPa+e3uj3Oyf3sd 2ZVvSPG02JFk4ePWgie+CsQ1r4jCWd0QQ5738Xxw0vRLi8Dcja3Tj5Ep1HpBPtz9bLaP vksw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=drWQzvlnEBcW5dvKDzDFY4gU6bq3wS1gAprIHRuoXXI=; fh=pRc5M8dRuC5Zmn26duS1zVO8fJ6wmApoN6KE5aDxmg0=; b=Xu79kt99k5fJedyo0BS68E/UorkxenV2IAsdjq1bS9Au9LFwEsFF1CxkgZJyhJD0Q9 dhqkOdoaM9MY8tSLO2Ey4gF12E4xV5d7UegIPbrJIgIbFWpB8RTSNBN3gMAXX5lqE1/q ivHIJ81sDvVZ5flh+aJ+7cwEt8hYosBkEbqTnb7kWVnQGMAdsEsOjjsYfUiK6CdOGEo0 jqrIakdiG/mdPJFRsicgGcV80PFUPcP2/Sb7MsTZhR1UTE6oLMneD66azazlQ6P29j5N +1iiudC8e4WLLV+6tL72fKb8D3uYech9yhWhuPhuJbdkxHfKU8dYS7tWJAApJwEyIkSI +Ghg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b="EDnlZS/F"; arc=pass (i=1 spf=pass spfdomain=lunn.ch dkim=pass dkdomain=lunn.ch dmarc=pass fromdomain=lunn.ch); spf=pass (google.com: domain of linux-kernel+bounces-77265-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-77265-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id q26-20020a65685a000000b005ce7efd2eb5si10514409pgt.266.2024.02.22.11.34.49 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Feb 2024 11:34:49 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-77265-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b="EDnlZS/F"; arc=pass (i=1 spf=pass spfdomain=lunn.ch dkim=pass dkdomain=lunn.ch dmarc=pass fromdomain=lunn.ch); spf=pass (google.com: domain of linux-kernel+bounces-77265-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-77265-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch 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 3FC6A28A80D for ; Thu, 22 Feb 2024 19:33:30 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A20D96AF84; Thu, 22 Feb 2024 19:33:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=lunn.ch header.i=@lunn.ch header.b="EDnlZS/F" Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) (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 47DE1548E3; Thu, 22 Feb 2024 19:33:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=156.67.10.101 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708630393; cv=none; b=mHHlzivr5Rcum+NLpLBDcK2edSfceJAAkQcSkpAAQK0HB3r9moW4exaFUPuMqdmla2HGqTYHQjrxQUON6hMdqkprfBbB/XCPIQCKooQg6MdNyD860lw8AgcjL7soBmhB+HuF2T9qZG8JedVxdqWpq8PXwcLS7I7d3Q8Epicaz6w= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708630393; c=relaxed/simple; bh=SsMEPEzS+J84TF7BO8eIlxKQtrTsNOrjRtjClfS0r4A=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=rs/rgHjkRLIGdl42hO8P2+qWSpC8U/4z2RxATepLYsrJcleVBfSmzUE7dzpphwl7DE6/6e9x+DvBGJAUc7FZRkIKeimlmnp8dVWzvIaxEjc4+zOAlaeYaMlWmMMreXR/djVKHbS0LY2mJ5QpzAuDrJdeHmvmyKkvOvFk6NTlZug= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lunn.ch; spf=pass smtp.mailfrom=lunn.ch; dkim=pass (1024-bit key) header.d=lunn.ch header.i=@lunn.ch header.b=EDnlZS/F; arc=none smtp.client-ip=156.67.10.101 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lunn.ch Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=lunn.ch DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Disposition:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:From:Sender:Reply-To:Subject: Date:Message-ID:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Content-Disposition:In-Reply-To:References; bh=drWQzvlnEBcW5dvKDzDFY4gU6bq3wS1gAprIHRuoXXI=; b=EDnlZS/FAjWflt8kA9898R4PYL 771HsUlpM+Y9uY2yMk7qJB+HK4DOn+WxBr2+NWofsV6ps1P3/g/j/KPXBJDoZ405RH7lv1GGMLO9v 7cTPfGif9J0hQAfYysBjXxwSetG4YfFzlB80ox4Lwl3xa25KATIRZ+bJH9WNDBhnpbH4=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1rdEoV-008TX4-W5; Thu, 22 Feb 2024 20:32:59 +0100 Date: Thu, 22 Feb 2024 20:32:59 +0100 From: Andrew Lunn To: Vineeth Karumanchi Cc: nicolas.ferre@microchip.com, claudiu.beznea@tuxon.dev, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, linux@armlinux.org.uk, vadim.fedorenko@linux.dev, netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, git@amd.com Subject: Re: [PATCH net-next v2 2/4] net: macb: Add ARP support to WOL Message-ID: <8e4a779a-22e7-4db2-b65e-69cca5e6fac5@lunn.ch> References: <20240222153848.2374782-1-vineeth.karumanchi@amd.com> <20240222153848.2374782-3-vineeth.karumanchi@amd.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240222153848.2374782-3-vineeth.karumanchi@amd.com> > u32 wol; > + u32 wolopts; > + wol->supported |= (bp->wol & MACB_WOL_HAS_MAGIC_PACKET) ? WAKE_MAGIC : 0; > + wol->supported |= (bp->wol & MACB_WOL_HAS_ARP_PACKET) ? WAKE_ARP : 0; > + if (bp->caps & MACB_CAPS_WOL) > + bp->wol |= (MACB_WOL_HAS_ARP_PACKET | MACB_WOL_HAS_MAGIC_PACKET); So bp->wol is the capabilities of the hardware? And bp->wolopts is what has been enabled via ethtool? I just wounder if it would be easier to understand is bp->wol was renamed wol_caps, similar to bp->caps? Andrew