cxgb4: use new fw interface to get the VIN and smt index
If the fw supports returning VIN/VIVLD in FW_VI_CMD save it in port_info structure else retrieve these from viid and save them in port_info structure. Do the same for smt_idx from FW_VI_MAC_CMD Signed-off-by: Santosh Rastapur <santosh@chelsio.com> Signed-off-by: Ganesh Goudar <ganeshgr@chelsio.com> Signed-off-by: David S. Miller <davem@davemloft.net>
此提交包含在:
@@ -1074,8 +1074,7 @@ static struct sock *chtls_recv_sock(struct sock *lsk,
|
||||
csk->txq_idx = (rxq_idx < cdev->lldi->ntxq) ? rxq_idx :
|
||||
port_id * step;
|
||||
csk->sndbuf = newsk->sk_sndbuf;
|
||||
csk->smac_idx = cxgb4_tp_smt_idx(cdev->lldi->adapter_type,
|
||||
cxgb4_port_viid(ndev));
|
||||
csk->smac_idx = ((struct port_info *)netdev_priv(ndev))->smt_idx;
|
||||
tp->rcv_wnd = select_rcv_wnd(csk);
|
||||
RCV_WSCALE(tp) = select_rcv_wscale(tcp_full_space(newsk),
|
||||
WSCALE_OK(tp),
|
||||
|
新增問題並參考
封鎖使用者