netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Bjørn Mork" <bjorn@mork.no>
To: netdev@vger.kernel.org
Cc: devel@driverdev.osuosl.org, "Jiri Pirko" <jiri@resnulli.us>,
	libertas-dev@lists.infradead.org, "Jouni Malinen" <j@w1.fi>,
	"Greg Kroah-Hartman" <gregkh@linuxfoundation.org>,
	linux-wireless@vger.kernel.org,
	"John W. Linville" <linville@tuxdriver.com>,
	"Stephen Hemminger" <stephen@networkplumber.org>,
	"Forest Bond" <forest@alittletooquiet.net>,
	"Dan Carpenter" <dan.carpenter@oracle.com>,
	"Patrick McHardy" <kaber@trash.net>, "Bjørn Mork" <bjorn@mork.no>
Subject: [PATCH v2 net-next 0/9] set addr_assign_type when inheriting a dev_addr
Date: Fri, 30 Aug 2013 18:08:43 +0200	[thread overview]
Message-ID: <1377878932-26881-1-git-send-email-bjorn@mork.no> (raw)

Copying the dev_addr from a parent device is an operation
common to a number of drivers. The addr_assign_type should
be updated accordingly, either by reusing the value from
the source device or explicitly indicating that the address
is stolen by setting addr_assign_type to NET_ADDR_STOLEN.

This patch set adds a helper copying both the dev_addr and
the addr_assign_type, and use this helper in drivers which
don't currently set the addr_assign_type. Using NET_ADDR_STOLEN
might be more appropriate in some of these cases.  Please
let me know, and I'll update the patch accordingly.

Changes in v2:
 - assuming addr_len == ETH_ALEN to allow optimized memcpy
 - dropped the vt6656 patch due to addr_len being unset in that driver


Bjørn Mork (9):
  net: etherdevice: add address inherit helper
  net: vlan: inherit addr_assign_type along with dev_addr
  net: dsa: inherit addr_assign_type along with dev_addr
  net: macvlan: inherit addr_assign_type along with dev_addr
  net: team: inherit addr_assign_type along with dev_addr
  net: airo: inherit addr_assign_type along with dev_addr
  net: hostap: inherit addr_assign_type along with dev_addr
  net: libertas: inherit addr_assign_type along with dev_addr
  staging: vt6655: inherit addr_assign_type along with dev_addr

 drivers/net/macvlan.c                     |    2 +-
 drivers/net/team/team.c                   |    2 +-
 drivers/net/wireless/airo.c               |    2 +-
 drivers/net/wireless/hostap/hostap_hw.c   |    2 +-
 drivers/net/wireless/hostap/hostap_main.c |    2 +-
 drivers/net/wireless/libertas/mesh.c      |    2 +-
 drivers/staging/vt6655/hostap.c           |    2 +-
 drivers/staging/vt6655/ioctl.c            |    2 +-
 drivers/staging/vt6655/wpactl.c           |    2 +-
 include/linux/etherdevice.h               |   15 +++++++++++++++
 net/8021q/vlan_dev.c                      |    2 +-
 net/dsa/slave.c                           |    2 +-
 12 files changed, 26 insertions(+), 11 deletions(-)

-- 
1.7.10.4

_______________________________________________
devel mailing list
devel@linuxdriverproject.org
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

             reply	other threads:[~2013-08-30 16:08 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-08-30 16:08 Bjørn Mork [this message]
2013-08-30 16:08 ` [PATCH v2 net-next 1/9] net: etherdevice: add address inherit helper Bjørn Mork
2013-08-30 16:08 ` [PATCH v2 net-next 2/9] net: vlan: inherit addr_assign_type along with dev_addr Bjørn Mork
2013-08-30 16:08 ` [PATCH v2 net-next 3/9] net: dsa: " Bjørn Mork
2013-08-30 16:08 ` [PATCH v2 net-next 4/9] net: macvlan: " Bjørn Mork
2013-08-30 16:08 ` [PATCH v2 net-next 5/9] net: team: " Bjørn Mork
2013-08-30 16:08 ` [PATCH v2 net-next 6/9] net: airo: " Bjørn Mork
     [not found] ` <1377878932-26881-1-git-send-email-bjorn-yOkvZcmFvRU@public.gmane.org>
2013-08-30 16:08   ` [PATCH v2 net-next 7/9] net: hostap: " Bjørn Mork
2013-08-30 16:08   ` [PATCH v2 net-next 8/9] net: libertas: " Bjørn Mork
2013-08-30 16:08 ` [PATCH v2 net-next 9/9] staging: vt6655: " Bjørn Mork
2013-08-30 16:56   ` Greg Kroah-Hartman
2013-09-01  2:50 ` [PATCH v2 net-next 0/9] set addr_assign_type when inheriting a dev_addr David Miller
2013-09-03  7:38   ` Bjørn Mork
2013-09-04  1:41     ` David Miller

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=1377878932-26881-1-git-send-email-bjorn@mork.no \
    --to=bjorn@mork.no \
    --cc=dan.carpenter@oracle.com \
    --cc=devel@driverdev.osuosl.org \
    --cc=forest@alittletooquiet.net \
    --cc=gregkh@linuxfoundation.org \
    --cc=j@w1.fi \
    --cc=jiri@resnulli.us \
    --cc=kaber@trash.net \
    --cc=libertas-dev@lists.infradead.org \
    --cc=linux-wireless@vger.kernel.org \
    --cc=linville@tuxdriver.com \
    --cc=netdev@vger.kernel.org \
    --cc=stephen@networkplumber.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).