[igbvf] Allow changing of MAC address
The VF might not have assigned a MAC address upon startup, and will end up with a random MAC address during probe(). With this patch the MAC address can be changed later on. Signed-off-by: Hannes Reinecke <hare@suse.de> Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
parent
f63ec19dca
commit
bb5a4a111b
@ -617,6 +617,10 @@ static int igbvf_open ( struct net_device *netdev )
|
|||||||
|
|
||||||
DBG ("igbvf_open\n");
|
DBG ("igbvf_open\n");
|
||||||
|
|
||||||
|
/* Update MAC address */
|
||||||
|
memcpy ( adapter->hw.mac.addr, netdev->ll_addr, ETH_ALEN );
|
||||||
|
igbvf_reset( adapter );
|
||||||
|
|
||||||
/* allocate transmit descriptors */
|
/* allocate transmit descriptors */
|
||||||
err = igbvf_setup_tx_resources ( adapter );
|
err = igbvf_setup_tx_resources ( adapter );
|
||||||
if (err) {
|
if (err) {
|
||||||
|
Reference in New Issue
Block a user