RDMA/core: Allow detaching gid attribute netdevice for RoCE
[linux-2.6-block.git] / include / rdma / ib_verbs.h
index 4312899231caf7f6f82ae33551dd54088701b557..8f8965f8ffdb4938068f8cd88ae0a5602fbacc0e 100644 (file)
@@ -124,7 +124,7 @@ enum ib_gid_type {
 
 #define ROCE_V2_UDP_DPORT      4791
 struct ib_gid_attr {
-       struct net_device       *ndev;
+       struct net_device __rcu *ndev;
        struct ib_device        *device;
        union ib_gid            gid;
        enum ib_gid_type        gid_type;