]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
net/rds: Skip packet filtering if interface does not support ACL
authorYuval Shaia <yuval.shaia@oracle.com>
Thu, 9 Jun 2016 18:41:32 +0000 (11:41 -0700)
committerChuck Anderson <chuck.anderson@oracle.com>
Tue, 12 Jul 2016 19:51:55 +0000 (12:51 -0700)
NULL value returned from ib_cm_dpp_acl_lookup for a given DPP means that
this DPP is not under ACL protection.
In this case we skip packet filtering.

Orabug: 23541567

Signed-off-by: Yuval Shaia <yuval.shaia@oracle.com>
Acked-by: Santosh Shilimkar <santosh.shilimkar@oracle.com>
net/rds/ib_cm.c

index a1e25d70825cd496fee1f5e95065503bed93a4d3..5a6c8a7b68321d2911bd5173d2e95882cfb2bcc1 100644 (file)
@@ -211,7 +211,7 @@ static int rds_ib_match_acl(struct rdma_cm_id *cm_id, __be32 saddr)
                       ntohs(cm_id->route.path_rec->pkey));
        acl = ib_cm_dpp_acl_lookup(&dpp);
        if (!acl)
-               goto out;
+               return 0;
 
        if (!acl->enabled)
                return 0;