RDMA/irdma: Remove a redundant irdma_arp_table() call
authorTatyana Nikolova <tatyana.e.nikolova@intel.com>
Wed, 15 Mar 2023 14:53:03 +0000 (09:53 -0500)
committerLeon Romanovsky <leon@kernel.org>
Sun, 19 Mar 2023 09:36:03 +0000 (11:36 +0200)
Remove a redundant function call in irdma_modify_qp_roce, since
irdma_arp_table() with IRDMA_ARP_RESOLVE action is called after the if/else
ipv check as part of irdma_add_arp().

Signed-off-by: Tatyana Nikolova <tatyana.e.nikolova@intel.com>
Signed-off-by: Shiraz Saleem <shiraz.saleem@intel.com>
Link: https://lore.kernel.org/r/20230315145305.955-3-shiraz.saleem@intel.com
Signed-off-by: Leon Romanovsky <leon@kernel.org>
drivers/infiniband/hw/irdma/verbs.c

index ec9f4dfddd88dd84918f42423dc18376a2137e4c..d906f5916a1183e419034bb3b7e7bbde0d552d62 100644 (file)
@@ -1226,10 +1226,6 @@ int irdma_modify_qp_roce(struct ib_qp *ibqp, struct ib_qp_attr *attr,
                        udp_info->ipv4 = false;
                        irdma_copy_ip_ntohl(local_ip, daddr);
 
-                       udp_info->arp_idx = irdma_arp_table(iwdev->rf,
-                                                           &local_ip[0],
-                                                           false, NULL,
-                                                           IRDMA_ARP_RESOLVE);
                } else if (av->net_type == RDMA_NETWORK_IPV4) {
                        __be32 saddr = av->sgid_addr.saddr_in.sin_addr.s_addr;
                        __be32 daddr = av->dgid_addr.saddr_in.sin_addr.s_addr;