netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: David Miller <davem@davemloft.net>
To: ogerlitz@voltaire.com
Cc: netdev@vger.kernel.org
Subject: Re: active-backup/bonding with drivers not supporting set_mac_address()
Date: Mon, 10 Jul 2006 11:23:22 -0700 (PDT)	[thread overview]
Message-ID: <20060710.112322.100334803.davem@davemloft.net> (raw)
In-Reply-To: <Pine.LNX.4.64.0607101618390.26558@zuben>

From: Or Gerlitz <ogerlitz@voltaire.com>
Date: Mon, 10 Jul 2006 16:43:36 +0300 (IDT)

> Looking on the linux bonding driver, it seems to unconditionally (*)
> assume that the enslaved device supports the set_mac_address call.
> 
> >From reading the doc (Documentation/networking/bonding.txt) i understand that
> it is **not** a must prerequisite for the active-backup mode, this is since
> there is at most one active slave at each point of time and as the doc states:
> 
> 	when a failover occurs in active-backup mode, bonding will issue
> 	one or more gratuitous ARPs on the newly active slave.
> 
> I'd like to get feedback from people here if you think it makes sense
> to change the bonding driver to actually allow for active-backup/bonding
> with network device drivers which does not support set_mac_address.

Blindly dereferencing the ->set_mac_address method is wrong, it
does seem.

Regardless of whether we add support for active-backup/bonding for
devices without this method, in the mean time the bonding
driver should check for whether that method is NULL and disallow
the bond configuration if it is.

  reply	other threads:[~2006-07-10 18:22 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-07-10 13:43 active-backup/bonding with drivers not supporting set_mac_address() Or Gerlitz
2006-07-10 18:23 ` David Miller [this message]
2006-07-10 18:31   ` Jay Vosburgh
2006-07-10 18:46     ` David Miller
2006-07-10 18:29 ` Jay Vosburgh
2006-07-10 18:45   ` David Miller
2006-07-11  5:29     ` Jay Vosburgh
2006-07-11 13:33   ` Or Gerlitz
2006-07-11 14:01   ` Or Gerlitz

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=20060710.112322.100334803.davem@davemloft.net \
    --to=davem@davemloft.net \
    --cc=netdev@vger.kernel.org \
    --cc=ogerlitz@voltaire.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).