diff options
author | Michal Kalderon <michal.kalderon@marvell.com> | 2019-05-26 14:22:24 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-05-26 22:04:11 +0200 |
commit | 443473d2f3a53100cfde67415feddde2b8781732 (patch) | |
tree | cff340962c7f2a076f20622c01e91a0966f262ce /drivers/infiniband/hw/qedr/qedr.h | |
parent | qed: Modify offload protocols to use the affined engine (diff) | |
download | linux-443473d2f3a53100cfde67415feddde2b8781732.tar.xz linux-443473d2f3a53100cfde67415feddde2b8781732.zip |
qedr: Change the MSI-X vectors selection to be based on affined engine
Use the msix vectors of the affined hwfn and not the
leading one.
Signed-off-by: Ariel Elior <ariel.elior@marvell.com>
Signed-off-by: Michal Kalderon <michal.kalderon@marvell.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/infiniband/hw/qedr/qedr.h')
-rw-r--r-- | drivers/infiniband/hw/qedr/qedr.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/infiniband/hw/qedr/qedr.h b/drivers/infiniband/hw/qedr/qedr.h index 6175d1e98717..a92ca22e5de1 100644 --- a/drivers/infiniband/hw/qedr/qedr.h +++ b/drivers/infiniband/hw/qedr/qedr.h @@ -157,6 +157,8 @@ struct qedr_dev { u32 dp_module; u8 dp_level; u8 num_hwfns; +#define QEDR_IS_CMT(dev) ((dev)->num_hwfns > 1) + u8 affin_hwfn_idx; u8 gsi_ll2_handle; uint wq_multiplier; |