netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Hangbin Liu <liuhangbin@gmail.com>
To: tonghao@bamaicloud.com
Cc: netdev@vger.kernel.org, Jay Vosburgh <jv@jvosburgh.net>,
	"David S. Miller" <davem@davemloft.net>,
	Eric Dumazet <edumazet@google.com>,
	Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>,
	Simon Horman <horms@kernel.org>, Jonathan Corbet <corbet@lwn.net>,
	Andrew Lunn <andrew+netdev@lunn.ch>
Subject: Re: [PATCH net-next 1/4] net: bonding: add broadcast_neighbor option for 802.3ad
Date: Mon, 12 May 2025 08:22:34 +0000	[thread overview]
Message-ID: <aCGvynxFVglsf1St@fedora> (raw)
In-Reply-To: <20250510044504.52618-2-tonghao@bamaicloud.com>

On Sat, May 10, 2025 at 12:45:01PM +0800, tonghao@bamaicloud.com wrote:
> diff --git a/drivers/net/bonding/bond_sysfs.c b/drivers/net/bonding/bond_sysfs.c
> index 1e13bb170515..76f2a1bf57c2 100644
> --- a/drivers/net/bonding/bond_sysfs.c
> +++ b/drivers/net/bonding/bond_sysfs.c
> @@ -752,6 +752,23 @@ static ssize_t bonding_show_ad_user_port_key(struct device *d,
>  static DEVICE_ATTR(ad_user_port_key, 0644,
>  		   bonding_show_ad_user_port_key, bonding_sysfs_store_option);
>  
> +static ssize_t bonding_show_broadcast_neighbor(struct device *d,
> +					       struct device_attribute *attr,
> +					       char *buf)
> +{
> +	struct bonding *bond = to_bond(d);
> +	const struct bond_opt_value *val;
> +
> +	val = bond_opt_get_val(BOND_OPT_BROADCAST_NEIGH,
> +			bond->params.broadcast_neighbor);

nit: please take care of the code alignment here

> +
> +	return sysfs_emit(buf, "%s %d\n", val->string,
> +			bond->params.broadcast_neighbor);

                       here
> +}
> +
> +static DEVICE_ATTR(broadcast_neighbor, 0644,
> +		   bonding_show_broadcast_neighbor, bonding_sysfs_store_option);

and here.

Thanks
Hangbin

  parent reply	other threads:[~2025-05-12  8:22 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-05-10  4:45 [PATCH net-next 0/4] add broadcast_neighbor for no-stacking networking arch tonghao
2025-05-10  4:45 ` [PATCH net-next 1/4] net: bonding: add broadcast_neighbor option for 802.3ad tonghao
2025-05-10 12:44   ` Jay Vosburgh
2025-05-10 13:47     ` Andrew Lunn
2025-05-11 14:07     ` Tonghao Zhang
2025-05-11 15:53       ` Andrew Lunn
2025-05-12  2:25         ` Tonghao Zhang
2025-05-12  9:19           ` Jay Vosburgh
2025-05-12 14:55             ` Tonghao Zhang
2025-05-12  8:22   ` Hangbin Liu [this message]
2025-05-12  8:55     ` Tonghao Zhang
2025-05-10  4:45 ` [PATCH net-next 2/4] net: bonding: add broadcast_neighbor netlink option tonghao
2025-05-10  4:45 ` [PATCH net-next 3/4] net: bonding: send peer notify when failure recovery tonghao
2025-05-10 13:01   ` Jay Vosburgh
2025-05-11 14:34     ` Tonghao Zhang
2025-05-12  8:05   ` Hangbin Liu
2025-05-12  9:16     ` Tonghao Zhang
2025-05-10  4:45 ` [PATCH net-next 4/4] net: bonding: add tracepoint for 802.3ad tonghao

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=aCGvynxFVglsf1St@fedora \
    --to=liuhangbin@gmail.com \
    --cc=andrew+netdev@lunn.ch \
    --cc=corbet@lwn.net \
    --cc=davem@davemloft.net \
    --cc=edumazet@google.com \
    --cc=horms@kernel.org \
    --cc=jv@jvosburgh.net \
    --cc=kuba@kernel.org \
    --cc=netdev@vger.kernel.org \
    --cc=pabeni@redhat.com \
    --cc=tonghao@bamaicloud.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).