Use the same assign type, as the name we are basing our new name on. Signed-off-by: Tom Gundersen <t...@jklm.no> Cc: Tom Tucker <t...@opengridcomputing.com> Cc: Steve Wise <sw...@opengridcomputing.com> Cc: Roland Dreier <rol...@kernel.org> Cc: Sean Hefty <sean.he...@intel.com> Cc: Hal Rosenstock <hal.rosenst...@gmail.com> Cc: linux-rdma@vger.kernel.org --- drivers/infiniband/hw/amso1100/c2_provider.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/infiniband/hw/amso1100/c2_provider.c b/drivers/infiniband/hw/amso1100/c2_provider.c index 2d5cbf4..fc44460 100644 --- a/drivers/infiniband/hw/amso1100/c2_provider.c +++ b/drivers/infiniband/hw/amso1100/c2_provider.c @@ -734,7 +734,7 @@ static struct net_device *c2_pseudo_netdev_init(struct c2_dev *c2dev) /* change ethxxx to iwxxx */ strcpy(name, "iw"); strcat(name, &c2dev->netdev->name[3]); - netdev = alloc_netdev(0, name, NET_NAME_UNKNOWN, setup); + netdev = alloc_netdev(0, name, c2dev->netdev->name_assign_type, setup); if (!netdev) { printk(KERN_ERR PFX "%s - etherdev alloc failed", __func__); -- 1.9.3 -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html