netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next] igbvf: fix setting addr_assign_type if PF is up
@ 2013-01-09  9:59 Stefan Assmann
  2013-01-09 17:09 ` Williams, Mitch A
  0 siblings, 1 reply; 13+ messages in thread
From: Stefan Assmann @ 2013-01-09  9:59 UTC (permalink / raw)
  To: netdev; +Cc: e1000-devel, sassmann

When the PF is up and igbvf is loaded the MAC address is not generated using
eth_hw_addr_random(). This results in addr_assign_type not to be set.
Make sure it gets set.

Signed-off-by: Stefan Assmann <sassmann@kpanic.de>
---
 drivers/net/ethernet/intel/igbvf/netdev.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/net/ethernet/intel/igbvf/netdev.c b/drivers/net/ethernet/intel/igbvf/netdev.c
index 53281ff..6a698c5 100644
--- a/drivers/net/ethernet/intel/igbvf/netdev.c
+++ b/drivers/net/ethernet/intel/igbvf/netdev.c
@@ -2746,6 +2746,7 @@ static int igbvf_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
 			dev_err(&pdev->dev, "Error reading MAC address\n");
 			goto err_hw_init;
 		}
+		netdev->addr_assign_type = NET_ADDR_RANDOM;
 		memcpy(netdev->dev_addr, adapter->hw.mac.addr,
 			netdev->addr_len);
 	}
-- 
1.8.0.2


------------------------------------------------------------------------------
Master Java SE, Java EE, Eclipse, Spring, Hibernate, JavaScript, jQuery
and much more. Keep your Java skills current with LearnJavaNow -
200+ hours of step-by-step video tutorials by Java experts.
SALE $49.99 this month only -- learn more at:
http://p.sf.net/sfu/learnmore_122612 
_______________________________________________
E1000-devel mailing list
E1000-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/e1000-devel
To learn more about Intel&#174; Ethernet, visit http://communities.intel.com/community/wired

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

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

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-01-09  9:59 [PATCH net-next] igbvf: fix setting addr_assign_type if PF is up Stefan Assmann
2013-01-09 17:09 ` Williams, Mitch A
2013-01-09 17:58   ` [E1000-devel] " Stefan Assmann
2013-01-09 18:56     ` Williams, Mitch A
2013-01-09 19:53       ` Stefan Assmann
2013-01-09 21:37       ` Greg Rose
2013-01-14 22:25         ` Andy Gospodarek
2013-01-15 18:31           ` Greg Rose
2013-01-17  0:42             ` Williams, Mitch A
2013-01-17  1:06               ` Andy Gospodarek
2013-01-17  1:10               ` [E1000-devel] " Andy Gospodarek
2013-01-17 11:39               ` Stefan Assmann
2013-01-17 17:08               ` Greg Rose

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