From: Stefan Assmann <sassmann@kpanic.de>
To: netdev@vger.kernel.org
Cc: e1000-devel@lists.sourceforge.net, sassmann@kpanic.de
Subject: [PATCH net-next] igbvf: fix setting addr_assign_type if PF is up
Date: Wed, 9 Jan 2013 10:59:24 +0100 [thread overview]
Message-ID: <1357725564-5581-1-git-send-email-sassmann@kpanic.de> (raw)
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® Ethernet, visit http://communities.intel.com/community/wired
next reply other threads:[~2013-01-09 9:59 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-01-09 9:59 Stefan Assmann [this message]
2013-01-09 17:09 ` [PATCH net-next] igbvf: fix setting addr_assign_type if PF is up 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
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=1357725564-5581-1-git-send-email-sassmann@kpanic.de \
--to=sassmann@kpanic.de \
--cc=e1000-devel@lists.sourceforge.net \
--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).