On Fri, 2018-01-05 at 13:35 -0700, Jason Gunthorpe wrote: > Anyhow. Bart should look at what iscsi does for namespaces and copy > that.. No sense in inventing something unique for RDMA. Unless if I missed something, network namespace support seems to be missing from the iSCSI and FCoE initiator drivers: $ git grep -nH 'struct net[^[:alnum:]_]' */scsi $ git grep -nH 'init_net' */scsi drivers/scsi/cxgbi/libcxgbi.c:593: rt = ip_route_output_ports(&init_net, fl4, NULL, daddr, saddr, drivers/scsi/cxgbi/libcxgbi.c:642: ndev = ip_dev_find(&init_net, daddr->sin_addr.s_addr); drivers/scsi/cxgbi/libcxgbi.c:708: return (struct rt6_info *)ip6_route_output(&init_net, NULL, &fl); drivers/scsi/cxgbi/libcxgbi.c:790: err = ipv6_dev_get_saddr(&init_net, idev ? idev->dev : NULL, drivers/scsi/fcoe/fcoe.c:1815: netdev = dev_get_by_index(&init_net, entry->ifindex); drivers/scsi/fcoe/fcoe_transport.c:727: return dev_get_by_name(&init_net, ifname); drivers/scsi/scsi_netlink.c:133: scsi_nl_sock = netlink_kernel_create(&init_net, NETLINK_SCSITRANSPORT, drivers/scsi/scsi_transport_iscsi.c:4533: nls = netlink_kernel_create(&init_net, NETLINK_ISCSI, &cfg); Bart.��.n��������+%������w��{.n�����{���fk��ܨ}���Ơz�j:+v�����w����ޙ��&�)ߡ�a����z�ޗ���ݢj��w�f