netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next 00/10] set addr_assign_type when inheriting a dev_addr
@ 2013-08-23  9:35 Bjørn Mork
  2013-08-23  9:35 ` [PATCH net-next 01/10] net: etherdevice: add address inherit helper Bjørn Mork
                   ` (9 more replies)
  0 siblings, 10 replies; 22+ messages in thread
From: Bjørn Mork @ 2013-08-23  9:35 UTC (permalink / raw)
  To: netdev-u79uwXL29TY76Z2rM5mHXA
  Cc: Bjørn Mork, Patrick McHardy, Jiri Pirko, John W. Linville,
	linux-wireless-u79uwXL29TY76Z2rM5mHXA, Jouni Malinen,
	libertas-dev-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, Greg Kroah-Hartman,
	devel-gWbeCf7V1WCQmaza687I9mD2FQJk+8+b, Forest Bond

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.


Bjørn Mork (10):
  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
  staging: vt6656: 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 +-
 drivers/staging/vt6656/hostap.c           |    2 +-
 include/linux/etherdevice.h               |   19 +++++++++++++++++++
 net/8021q/vlan_dev.c                      |    2 +-
 net/dsa/slave.c                           |    2 +-
 13 files changed, 31 insertions(+), 12 deletions(-)

-- 
1.7.10.4

--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

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

end of thread, other threads:[~2013-08-28  7:17 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-08-23  9:35 [PATCH net-next 00/10] set addr_assign_type when inheriting a dev_addr Bjørn Mork
2013-08-23  9:35 ` [PATCH net-next 01/10] net: etherdevice: add address inherit helper Bjørn Mork
2013-08-23 19:24   ` Stephen Hemminger
2013-08-23 22:28     ` Bjørn Mork
2013-08-27 18:35       ` David Miller
2013-08-28  7:17         ` Bjørn Mork
2013-08-23  9:35 ` [PATCH net-next 02/10] net: vlan: inherit addr_assign_type along with dev_addr Bjørn Mork
2013-08-23  9:35 ` [PATCH net-next 03/10] net: dsa: " Bjørn Mork
2013-08-23  9:35 ` [PATCH net-next 04/10] net: macvlan: " Bjørn Mork
2013-08-23  9:35 ` [PATCH net-next 05/10] net: team: " Bjørn Mork
2013-08-23  9:35 ` [PATCH net-next 06/10] net: airo: " Bjørn Mork
     [not found]   ` <1377250513-3662-7-git-send-email-bjorn-yOkvZcmFvRU@public.gmane.org>
2013-08-23 14:53     ` John W. Linville
2013-08-23  9:35 ` [PATCH net-next 07/10] net: hostap: " Bjørn Mork
2013-08-23  9:35 ` [PATCH net-next 08/10] net: libertas: " Bjørn Mork
2013-08-23 14:52   ` John W. Linville
2013-08-23  9:35 ` [PATCH net-next 09/10] staging: vt6655: " Bjørn Mork
2013-08-23  9:35 ` [PATCH net-next 10/10] staging: vt6656: " Bjørn Mork
2013-08-23 10:03   ` Dan Carpenter
2013-08-23 10:48     ` Bjørn Mork
2013-08-23 11:15       ` Dan Carpenter
2013-08-23 12:06         ` Bjørn Mork
2013-08-23 12:09           ` Dan Carpenter

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