Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ebf00060 authored by Steve Wise's avatar Steve Wise Committed by Roland Dreier
Browse files

RDMA/cxgb4: Always release neigh entry



Always release the neigh entry in rx_pkt().

Based on original work by Santosh Rastapur <santosh@chelsio.com>.

Signed-off-by: default avatarSteve Wise <swise@opengridcomputing.com>
Signed-off-by: default avatarRoland Dreier <roland@purestorage.com>
parent f8e81908
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -3347,13 +3347,13 @@ static int rx_pkt(struct c4iw_dev *dev, struct sk_buff *skb)
		pi = (struct port_info *)netdev_priv(pdev);
		pi = (struct port_info *)netdev_priv(pdev);
		tx_chan = cxgb4_port_chan(pdev);
		tx_chan = cxgb4_port_chan(pdev);
	}
	}
	neigh_release(neigh);
	if (!e) {
	if (!e) {
		pr_err("%s - failed to allocate l2t entry!\n",
		pr_err("%s - failed to allocate l2t entry!\n",
		       __func__);
		       __func__);
		goto free_dst;
		goto free_dst;
	}
	}


	neigh_release(neigh);
	step = dev->rdev.lldi.nrxq / dev->rdev.lldi.nchan;
	step = dev->rdev.lldi.nrxq / dev->rdev.lldi.nchan;
	rss_qid = dev->rdev.lldi.rxq_ids[pi->port_id * step];
	rss_qid = dev->rdev.lldi.rxq_ids[pi->port_id * step];
	window = (__force u16) htons((__force u16)tcph->window);
	window = (__force u16) htons((__force u16)tcph->window);