cxgb3: Rework t3_l2t_get to take a dst_entry instead of a neighbour.
This way we consolidate the RCU locking down into the place where it actually matters, and also we can make the code handle dst_get_neighbour_noref() returning NULL properly. Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
51d4597451
commit
a4757123ae
@@ -966,7 +966,7 @@ static int init_act_open(struct cxgbi_sock *csk)
|
||||
csk->saddr.sin_addr.s_addr = chba->ipv4addr;
|
||||
|
||||
csk->rss_qid = 0;
|
||||
csk->l2t = t3_l2t_get(t3dev, dst_get_neighbour_noref(dst), ndev);
|
||||
csk->l2t = t3_l2t_get(t3dev, dst, ndev);
|
||||
if (!csk->l2t) {
|
||||
pr_err("NO l2t available.\n");
|
||||
return -EINVAL;
|
||||
|
Reference in New Issue
Block a user