i40evf: don't guess device name
authorMitch Williams <[email protected]>
Fri, 21 Feb 2014 03:29:11 +0000 (19:29 -0800)
committerDavid S. Miller <[email protected]>
Fri, 21 Feb 2014 17:38:25 +0000 (12:38 -0500)
We don't need to set an interface name here; the net core will do
that, and then it will get renamed by udev anyway.

Change-ID: I839a17837d19bedd1f490bff32ac5b85b4bfd97f
Signed-off-by: Mitch Williams <[email protected]>
Signed-off-by: Jesse Brandeburg <[email protected]>
Tested-by: Sibai Li <[email protected]>
Signed-off-by: Aaron Brown <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
drivers/net/ethernet/intel/i40evf/i40evf_main.c

index 1bb9debf9694ec71b3c35f5b700a75e1f00542cd..40a5e78560c74f58f00a6915fd408fbf98f03f8f 100644 (file)
@@ -2084,8 +2084,6 @@ static void i40evf_init_task(struct work_struct *work)
 
        netif_carrier_off(netdev);
 
-       strcpy(netdev->name, "eth%d");
-
        adapter->vsi.id = adapter->vsi_res->vsi_id;
        adapter->vsi.seid = adapter->vsi_res->vsi_id; /* dummy */
        adapter->vsi.back = adapter;