RDMA/cxgb4: Server filters are supported only for IPv4
[deliverable/linux.git] / drivers / infiniband / hw / cxgb4 / cm.c
index 02c751543b70b7d3c848de77de8d4a28133f3ba8..bfd4ed78dcc1c72f169d26a0f98746799f94f093 100644 (file)
@@ -2938,7 +2938,8 @@ int c4iw_create_listen(struct iw_cm_id *cm_id, int backlog)
        /*
         * Allocate a server TID.
         */
-       if (dev->rdev.lldi.enable_fw_ofld_conn)
+       if (dev->rdev.lldi.enable_fw_ofld_conn &&
+           ep->com.local_addr.ss_family == AF_INET)
                ep->stid = cxgb4_alloc_sftid(dev->rdev.lldi.tids,
                                             cm_id->local_addr.ss_family, ep);
        else
This page took 0.028137 seconds and 5 git commands to generate.