33 #include <linux/module.h>
38 #include <asm/uaccess.h>
70 priv->
dev->broadcast[8] = pkey >> 8;
71 priv->
dev->broadcast[9] = pkey & 0xff;
75 ipoib_warn(ppriv,
"failed to initialize subinterface: "
77 ppriv->
ca->name, ppriv->
port);
83 ipoib_warn(priv,
"failed to initialize; error %i", result);
105 priv->
dev->iflink = ppriv->
dev->ifindex;
113 unregister_netdevice(priv->
dev);
132 ppriv = netdev_priv(pdev);
134 snprintf(intf_name,
sizeof intf_name,
"%s.%04x",
135 ppriv->
dev->name, pkey);
141 return restart_syscall();
150 if (ppriv->
pkey == pkey) {
156 if (tpriv->
pkey == pkey &&
184 ppriv = netdev_priv(pdev);
187 return restart_syscall();
190 if (priv->
pkey == pkey &&
192 unregister_netdevice(priv->
dev);