diff options
author | Michal Kalderon <michal.kalderon@marvell.com> | 2019-05-26 15:22:25 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-05-26 13:04:12 -0700 |
commit | 8366d520019f366fabd6c7a13032bdcd837e18d4 (patch) | |
tree | 18bfbb1841fbf922bc19e0ce377e6df4cc72d4b0 /drivers/net/ethernet/qlogic/qed/qed_rdma.c | |
parent | 443473d2f3a53100cfde67415feddde2b8781732 (diff) | |
download | linux-stable-8366d520019f366fabd6c7a13032bdcd837e18d4.tar.gz linux-stable-8366d520019f366fabd6c7a13032bdcd837e18d4.tar.bz2 linux-stable-8366d520019f366fabd6c7a13032bdcd837e18d4.zip |
qed: Set the doorbell address correctly
In 100g mode the doorbell bar is united for both engines. Set
the correct offset in the hwfn so that the doorbell returned
for RoCE is in the affined hwfn.
Signed-off-by: Ariel Elior <ariel.elior@marvell.com>
Signed-off-by: Denis Bolotin <denis.bolotin@marvell.com>
Signed-off-by: Michal Kalderon <michal.kalderon@marvell.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/qlogic/qed/qed_rdma.c')
-rw-r--r-- | drivers/net/ethernet/qlogic/qed/qed_rdma.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/qlogic/qed/qed_rdma.c b/drivers/net/ethernet/qlogic/qed/qed_rdma.c index 4284374daa4f..e4d63359864e 100644 --- a/drivers/net/ethernet/qlogic/qed/qed_rdma.c +++ b/drivers/net/ethernet/qlogic/qed/qed_rdma.c @@ -803,7 +803,7 @@ static int qed_rdma_add_user(void *rdma_cxt, dpi_start_offset + ((out_params->dpi) * p_hwfn->dpi_size)); - out_params->dpi_phys_addr = p_hwfn->cdev->db_phys_addr + + out_params->dpi_phys_addr = p_hwfn->db_phys_addr + dpi_start_offset + ((out_params->dpi) * p_hwfn->dpi_size); |