Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 198572
b: refs/heads/master
c: 418c437
h: refs/heads/master
v: v3
  • Loading branch information
Scott Feldman authored and David S. Miller committed May 24, 2010
1 parent 9aada9a commit 34aa86a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 6fc7f5730b71916bc44389015d404f668674c64c
refs/heads/master: 418c437d8b4b87815f3afed89da2aa0078d5379d
8 changes: 8 additions & 0 deletions trunk/drivers/net/enic/enic_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -1132,6 +1132,14 @@ static int enic_set_vf_port(struct net_device *netdev, int vf,
switch (request) {
case PORT_REQUEST_ASSOCIATE:

/* If the interface mac addr hasn't been assigned,
* assign a random mac addr before setting port-
* profile.
*/

if (is_zero_ether_addr(netdev->dev_addr))
random_ether_addr(netdev->dev_addr);

if (port[IFLA_PORT_PROFILE])
name = nla_data(port[IFLA_PORT_PROFILE]);

Expand Down

0 comments on commit 34aa86a

Please sign in to comment.