netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next v2 0/8] bonding: add more netlink attributes
@ 2013-12-12 22:09 Scott Feldman
  2013-12-14  6:08 ` David Miller
  0 siblings, 1 reply; 2+ messages in thread
From: Scott Feldman @ 2013-12-12 22:09 UTC (permalink / raw)
  To: vfalico, fubar, andy; +Cc: netdev, roopa, shm

v2:

Addressed v1 review comments.  In particular, Jay's concern about
current sysfs ordering limitations carrying over to iproute.  Netlink
attributes are processed in a priority order in
bond_netlink.c:bond_changelink().  Lower priority attributes can't undo
higher priority attributes when attempting to set both with iproute
command.  For example, this command will fail:

  ip link add bond1 type bond mode active-backup miimon 10 arp_interval 10

Because we're trying to create a new bond to use incompatible miimon
and ARP interval attributes.  However, if attributes are applied
one-at-a-time, previously applied attributes can be overridden:

  ip link add bond1 type bond mode active-backup miimon 10
  ip link set dev bond1 type bond arp_interval 10

These two commands succeed.  The bond is first created to use miimon.
Next, the bond is converted to use ARP interval, which undoes miimon.

v1:

Following Jiri Pirko's lead, add more bonding netlink attributes.  Sending
matching iproute2 patch separately.  sysfs access to attributes is
retained.

---

Scott Feldman (8):
      bonding: add miimon netlink support
      bonding: add updelay netlink support
      bonding: add downdelay netlink support
      bonding: add use_carrier netlink support
      bonding: add arp_interval netlink support
      bonding: add arp_ip_target netlink support
      bonding: add arp_validate netlink support
      bonding: add arp_all_targets netlink support


 drivers/net/bonding/bond_netlink.c |  157 ++++++++++++++++
 drivers/net/bonding/bond_options.c |  324 +++++++++++++++++++++++++++++++++
 drivers/net/bonding/bond_sysfs.c   |  349 +++++++++---------------------------
 drivers/net/bonding/bonding.h      |   11 +
 include/uapi/linux/if_link.h       |    8 +
 5 files changed, 578 insertions(+), 271 deletions(-)

-- 
Signature

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH net-next v2 0/8] bonding: add more netlink attributes
  2013-12-12 22:09 [PATCH net-next v2 0/8] bonding: add more netlink attributes Scott Feldman
@ 2013-12-14  6:08 ` David Miller
  0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2013-12-14  6:08 UTC (permalink / raw)
  To: sfeldma; +Cc: vfalico, fubar, andy, netdev, roopa, shm

From: Scott Feldman <sfeldma@cumulusnetworks.com>
Date: Thu, 12 Dec 2013 14:09:48 -0800

> v2:
> 
> Addressed v1 review comments.  In particular, Jay's concern about
> current sysfs ordering limitations carrying over to iproute.  Netlink
> attributes are processed in a priority order in
> bond_netlink.c:bond_changelink().  Lower priority attributes can't undo
> higher priority attributes when attempting to set both with iproute
> command.  For example, this command will fail:
> 
>   ip link add bond1 type bond mode active-backup miimon 10 arp_interval 10
> 
> Because we're trying to create a new bond to use incompatible miimon
> and ARP interval attributes.  However, if attributes are applied
> one-at-a-time, previously applied attributes can be overridden:
> 
>   ip link add bond1 type bond mode active-backup miimon 10
>   ip link set dev bond1 type bond arp_interval 10
> 
> These two commands succeed.  The bond is first created to use miimon.
> Next, the bond is converted to use ARP interval, which undoes miimon.
> 
> v1:
> 
> Following Jiri Pirko's lead, add more bonding netlink attributes.  Sending
> matching iproute2 patch separately.  sysfs access to attributes is
> retained.

Series applied, thanks Scott.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-12-14  6:08 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-12-12 22:09 [PATCH net-next v2 0/8] bonding: add more netlink attributes Scott Feldman
2013-12-14  6:08 ` David Miller

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).