diff options
Diffstat (limited to 'drivers/target')
-rw-r--r-- | drivers/target/iscsi/cxgbit/cxgbit_cm.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/target/iscsi/cxgbit/cxgbit_cm.c b/drivers/target/iscsi/cxgbit/cxgbit_cm.c index 71888b979ab5..0376d7328f25 100644 --- a/drivers/target/iscsi/cxgbit/cxgbit_cm.c +++ b/drivers/target/iscsi/cxgbit/cxgbit_cm.c | |||
@@ -932,8 +932,8 @@ cxgbit_offload_init(struct cxgbit_sock *csk, int iptype, __u8 *peer_ip, | |||
932 | goto out; | 932 | goto out; |
933 | csk->mtu = ndev->mtu; | 933 | csk->mtu = ndev->mtu; |
934 | csk->tx_chan = cxgb4_port_chan(ndev); | 934 | csk->tx_chan = cxgb4_port_chan(ndev); |
935 | csk->smac_idx = cxgb4_tp_smt_idx(cdev->lldi.adapter_type, | 935 | csk->smac_idx = |
936 | cxgb4_port_viid(ndev)); | 936 | ((struct port_info *)netdev_priv(ndev))->smt_idx; |
937 | step = cdev->lldi.ntxq / | 937 | step = cdev->lldi.ntxq / |
938 | cdev->lldi.nchan; | 938 | cdev->lldi.nchan; |
939 | csk->txq_idx = cxgb4_port_idx(ndev) * step; | 939 | csk->txq_idx = cxgb4_port_idx(ndev) * step; |
@@ -968,8 +968,8 @@ cxgbit_offload_init(struct cxgbit_sock *csk, int iptype, __u8 *peer_ip, | |||
968 | port_id = cxgb4_port_idx(ndev); | 968 | port_id = cxgb4_port_idx(ndev); |
969 | csk->mtu = dst_mtu(dst); | 969 | csk->mtu = dst_mtu(dst); |
970 | csk->tx_chan = cxgb4_port_chan(ndev); | 970 | csk->tx_chan = cxgb4_port_chan(ndev); |
971 | csk->smac_idx = cxgb4_tp_smt_idx(cdev->lldi.adapter_type, | 971 | csk->smac_idx = |
972 | cxgb4_port_viid(ndev)); | 972 | ((struct port_info *)netdev_priv(ndev))->smt_idx; |
973 | step = cdev->lldi.ntxq / | 973 | step = cdev->lldi.ntxq / |
974 | cdev->lldi.nports; | 974 | cdev->lldi.nports; |
975 | csk->txq_idx = (port_id * step) + | 975 | csk->txq_idx = (port_id * step) + |