netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jiri Pirko <jiri@resnulli.us>
To: netdev@vger.kernel.org
Cc: davem@davemloft.net, edumazet@google.com,
	bhutchings@solarflare.com, shemminger@vyatta.com,
	sassmann@redhat.com, kaber@trash.net, richard@nod.at
Subject: [patch net-next 0/7] fix dev->addr_assign_type setting and related code
Date: Tue,  1 Jan 2013 14:30:12 +0100	[thread overview]
Message-ID: <1357047019-1037-1-git-send-email-jiri@resnulli.us> (raw)

commit c1f79426e2df5ef96fe3e76de6c7606d15bf390b introduced addr_assign_type,
but incorrectly works with the value as if it was a bitfield. This patch corrects this.

Also, new "assign_type" is added to track that the address was changed by
dev_set_mac_address().

Jiri Pirko (7):
  rtnl: use dev_set_mac_address() instead of plain ndo_
  net: call add_device_randomness() only after successful mac change
  net: set dev->addr_assign_type correctly
  net: add address assign type "SET"
  net: remove unnecessary NET_ADDR_RANDOM "bitclean"
  um: net: use eth_hw_addr_random() to generate random mac
  ll_temac: fix mac address setting

 arch/um/drivers/net_kern.c                      | 22 +++++++-----------
 arch/um/include/shared/net_kern.h               |  1 -
 drivers/net/ethernet/adi/bfin_mac.c             |  1 -
 drivers/net/ethernet/atheros/atl1c/atl1c_main.c |  3 +--
 drivers/net/ethernet/atheros/atlx/atl1.c        |  2 +-
 drivers/net/ethernet/atheros/atlx/atlx.c        |  1 -
 drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c |  1 -
 drivers/net/ethernet/calxeda/xgmac.c            |  1 -
 drivers/net/ethernet/cisco/enic/enic_main.c     |  1 -
 drivers/net/ethernet/ethoc.c                    |  3 +--
 drivers/net/ethernet/intel/igbvf/netdev.c       |  1 -
 drivers/net/ethernet/lantiq_etop.c              |  2 +-
 drivers/net/ethernet/marvell/pxa168_eth.c       |  1 -
 drivers/net/ethernet/micrel/ks8842.c            |  1 -
 drivers/net/ethernet/micrel/ks8851.c            |  1 -
 drivers/net/ethernet/micrel/ks8851_mll.c        |  1 -
 drivers/net/ethernet/microchip/enc28j60.c       |  1 -
 drivers/net/ethernet/nvidia/forcedeth.c         |  1 -
 drivers/net/ethernet/octeon/octeon_mgmt.c       |  6 ++---
 drivers/net/ethernet/smsc/smsc911x.c            |  1 -
 drivers/net/ethernet/ti/davinci_emac.c          |  1 -
 drivers/net/ethernet/tile/tilepro.c             |  1 -
 drivers/net/ethernet/wiznet/w5100.c             |  1 -
 drivers/net/ethernet/wiznet/w5300.c             |  1 -
 drivers/net/ethernet/xilinx/ll_temac_main.c     | 31 ++++++++++++++-----------
 drivers/net/macvlan.c                           |  1 -
 drivers/net/team/team.c                         |  2 --
 drivers/staging/octeon/ethernet.c               |  6 ++---
 include/linux/etherdevice.h                     |  2 +-
 include/linux/netdevice.h                       |  2 ++
 net/batman-adv/soft-interface.c                 |  1 -
 net/bridge/br_device.c                          |  1 -
 net/core/dev.c                                  |  8 ++++---
 net/core/rtnetlink.c                            | 20 ++--------------
 net/ethernet/eth.c                              |  2 --
 net/openvswitch/vport-internal_dev.c            |  1 -
 36 files changed, 43 insertions(+), 90 deletions(-)

-- 
1.8.0

             reply	other threads:[~2013-01-01 13:30 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-01-01 13:30 Jiri Pirko [this message]
2013-01-01 13:30 ` [patch net-next 1/7] rtnl: use dev_set_mac_address() instead of plain ndo_ Jiri Pirko
2013-01-01 18:33   ` Stephen Hemminger
2013-01-01 19:00     ` Jiri Pirko
2013-01-01 13:30 ` [patch net-next 2/7] net: call add_device_randomness() only after successful mac change Jiri Pirko
2013-01-01 13:30 ` [patch net-next 3/7] net: set dev->addr_assign_type correctly Jiri Pirko
2013-01-01 13:30 ` [patch net-next 4/7] net: add address assign type "SET" Jiri Pirko
2013-01-01 13:30 ` [patch net-next 5/7] net: remove unnecessary NET_ADDR_RANDOM "bitclean" Jiri Pirko
2013-01-10  2:55   ` Antonio Quartulli
2013-01-01 13:30 ` [patch net-next 6/7] um: net: use eth_hw_addr_random() to generate random mac Jiri Pirko
2013-01-01 13:30 ` [patch net-next 7/7] ll_temac: fix mac address setting Jiri Pirko
2013-01-04  6:43 ` [patch net-next 0/7] fix dev->addr_assign_type setting and related code 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=1357047019-1037-1-git-send-email-jiri@resnulli.us \
    --to=jiri@resnulli.us \
    --cc=bhutchings@solarflare.com \
    --cc=davem@davemloft.net \
    --cc=edumazet@google.com \
    --cc=kaber@trash.net \
    --cc=netdev@vger.kernel.org \
    --cc=richard@nod.at \
    --cc=sassmann@redhat.com \
    --cc=shemminger@vyatta.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).