From: Michal Swiatkowski <michal.swiatkowski@linux.intel.com>
To: Uday Shankar <ushankar@purestorage.com>
Cc: "Breno Leitao" <leitao@debian.org>,
"Andrew Lunn" <andrew+netdev@lunn.ch>,
"David S. Miller" <davem@davemloft.net>,
"Eric Dumazet" <edumazet@google.com>,
"Jakub Kicinski" <kuba@kernel.org>,
"Paolo Abeni" <pabeni@redhat.com>,
"Srinivas Kandagatla" <srinivas.kandagatla@linaro.org>,
"Rafał Miłecki" <rafal@milecki.pl>,
"Simon Horman" <horms@kernel.org>,
"Andrew Morton" <akpm@linux-foundation.org>,
"Johannes Berg" <johannes@sipsolutions.net>,
"Jonathan Corbet" <corbet@lwn.net>,
netdev@vger.kernel.org, linux-kernel@vger.kernel.org,
linux-wireless@vger.kernel.org, linux-doc@vger.kernel.org
Subject: Re: [PATCH v3 1/2] net, treewide: define and use MAC_ADDR_STR_LEN
Date: Thu, 6 Feb 2025 10:44:34 +0100 [thread overview]
Message-ID: <Z6SEeO0QFx9Y52LJ@mev-dev.igk.intel.com> (raw)
In-Reply-To: <20250205-netconsole-v3-1-132a31f17199@purestorage.com>
On Wed, Feb 05, 2025 at 10:21:30PM -0700, Uday Shankar wrote:
> There are a few places in the tree which compute the length of the
> string representation of a MAC address as 3 * ETH_ALEN - 1. Define a
> constant for this and use it where relevant. No functionality changes
> are expected.
>
> Signed-off-by: Uday Shankar <ushankar@purestorage.com>
> ---
> drivers/net/netconsole.c | 2 +-
> drivers/nvmem/brcm_nvram.c | 2 +-
> drivers/nvmem/layouts/u-boot-env.c | 2 +-
> include/linux/if_ether.h | 3 +++
> lib/net_utils.c | 4 +---
> net/mac80211/debugfs_sta.c | 5 +++--
> 6 files changed, 10 insertions(+), 8 deletions(-)
>
> diff --git a/drivers/net/netconsole.c b/drivers/net/netconsole.c
> index 86ab4a42769a49eebe5dd6f01dafafc6c86ec54f..6db5af2d8d059fa5c072194545d4408eec19b4a9 100644
> --- a/drivers/net/netconsole.c
> +++ b/drivers/net/netconsole.c
> @@ -675,7 +675,7 @@ static ssize_t remote_mac_store(struct config_item *item, const char *buf,
>
[...]
What about ieee80211_sta_debugfs_add()? (net/mac80211/debugfs_sta.c)
In gerneal looks fine, thanks:
Reviewed-by: Michal Swiatkowski <michal.swiatkowski@linux.intel.com>
>
> --
> 2.34.1
next prev parent reply other threads:[~2025-02-06 9:48 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-02-06 5:21 [PATCH v3 0/2] netconsole: allow selection of egress interface via MAC address Uday Shankar
2025-02-06 5:21 ` [PATCH v3 1/2] net, treewide: define and use MAC_ADDR_STR_LEN Uday Shankar
2025-02-06 9:44 ` Michal Swiatkowski [this message]
2025-02-06 9:50 ` Johannes Berg
2025-02-06 10:24 ` Michal Swiatkowski
2025-02-06 10:28 ` Johannes Berg
2025-02-06 5:21 ` [PATCH v3 2/2] netconsole: allow selection of egress interface via MAC address Uday Shankar
2025-02-08 0:28 ` Jakub Kicinski
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=Z6SEeO0QFx9Y52LJ@mev-dev.igk.intel.com \
--to=michal.swiatkowski@linux.intel.com \
--cc=akpm@linux-foundation.org \
--cc=andrew+netdev@lunn.ch \
--cc=corbet@lwn.net \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=horms@kernel.org \
--cc=johannes@sipsolutions.net \
--cc=kuba@kernel.org \
--cc=leitao@debian.org \
--cc=linux-doc@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-wireless@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=rafal@milecki.pl \
--cc=srinivas.kandagatla@linaro.org \
--cc=ushankar@purestorage.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.