]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
qed: Enable RoCE parser searching on fp init
authorMichal Kalderon <Michal.Kalderon@cavium.com>
Tue, 23 May 2017 06:41:25 +0000 (09:41 +0300)
committerChuck Anderson <chuck.anderson@oracle.com>
Tue, 19 Sep 2017 05:32:14 +0000 (22:32 -0700)
Orabug: 26783820

Since we're closing the parser searching for RDMA when stoping the
fastpath, we need to re-enable it when starting the fastpath once again.

Signed-off-by: Michal Kalderon <Michal.Kalderon@cavium.com>
Signed-off-by: Yuval Mintz <Yuval.Mintz@cavium.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
[ Upstream commit f855df220238436d10c3de67da0b1a280a2092b4 ]
Signed-off-by: Somasundaram Krishnasamy <somasundaram.krishnasamy@oracle.com>
drivers/net/ethernet/qlogic/qed/qed_dev.c

index bee57606ab64033415e614a793461d27148a2b23..bfb0b899d33d06940aa8ecbfffa30383daab888b 100644 (file)
@@ -1923,6 +1923,13 @@ int qed_hw_start_fastpath(struct qed_hwfn *p_hwfn)
        if (!p_ptt)
                return -EAGAIN;
 
+       /* If roce info is allocated it means roce is initialized and should
+        * be enabled in searcher.
+        */
+       if (p_hwfn->p_rdma_info &&
+           p_hwfn->b_rdma_enabled_in_prs)
+               qed_wr(p_hwfn, p_ptt, p_hwfn->rdma_prs_search_reg, 0x1);
+
        /* Re-open incoming traffic */
        qed_wr(p_hwfn, p_ptt, NIG_REG_RX_LLH_BRB_GATE_DNTFWD_PERPF, 0x0);
        qed_ptt_release(p_hwfn, p_ptt);