From: David Miller <davem@davemloft.net>
To: alexander.h.duyck@intel.com
Cc: netdev@vger.kernel.org, jeffrey.t.kirsher@intel.com, jpirko@redhat.com
Subject: Re: [RFC PATCH] net: Add support for device specific address syncing
Date: Thu, 15 May 2014 23:05:40 -0400 (EDT) [thread overview]
Message-ID: <20140515.230540.466419985495775051.davem@davemloft.net> (raw)
In-Reply-To: <20140514233444.29822.45400.stgit@ahduyck-cp2.jf.intel.com>
From: Alexander Duyck <alexander.h.duyck@intel.com>
Date: Wed, 14 May 2014 16:37:27 -0700
> This change provides a function to be used in order to break the
> ndo_set_rx_mode call into a set of address add and remove calls. The code
> is based on the implementation of dev_uc_sync/dev_mc_sync. Since they
> essentially do the same thing but with only one dev I simply named my
> functions __dev_uc_sync/__dev_mc_sync.
>
> I also implemented an unsync version of the functions as well to allow for
> cleanup on close.
>
> Signed-off-by: Alexander Duyck <alexander.h.duyck@intel.com>
> ---
>
> I still have to do some testing on this patch, but I am looking to see if
> this is the correct approach or if the community would prefer I take a
> different one.
I just wonder about error handling.
The code just seems to stop trying to sync() if one intermediate
sync() fails.
Shouldn't we unwind or signal errors to the caller?
Is the idea that the driver has internal state which will track if
something goes wrong and take care of error recovery itself? If so,
that kind of indirect error handling doesn't sit too well with me.
next prev parent reply other threads:[~2014-05-16 3:05 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-05-14 23:37 [RFC PATCH] net: Add support for device specific address syncing Alexander Duyck
2014-05-16 3:05 ` David Miller [this message]
2014-05-16 18:47 ` Alexander Duyck
2014-05-16 19:01 ` David Miller
2014-05-16 19:55 ` Alexander Duyck
2014-05-16 20:47 ` David Miller
2014-05-16 22:24 ` Alexander Duyck
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=20140515.230540.466419985495775051.davem@davemloft.net \
--to=davem@davemloft.net \
--cc=alexander.h.duyck@intel.com \
--cc=jeffrey.t.kirsher@intel.com \
--cc=jpirko@redhat.com \
--cc=netdev@vger.kernel.org \
/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).