diff options
author | Elad Raz <eladr@mellanox.com> | 2017-01-12 09:10:39 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-01-12 09:25:55 -0500 |
commit | 28e46a0f2e03ab4ed0e23cace1ea89a68c8c115b (patch) | |
tree | f9014fe762ae21d7fe9ab3c2ef53933ef84ccb82 /drivers/net/ethernet/mellanox/mlxsw/pci_hw.h | |
parent | 400fc0106dd8c27ed84781c929c1a184785b9c79 (diff) | |
download | linux-stable-28e46a0f2e03ab4ed0e23cace1ea89a68c8c115b.tar.gz linux-stable-28e46a0f2e03ab4ed0e23cace1ea89a68c8c115b.tar.bz2 linux-stable-28e46a0f2e03ab4ed0e23cace1ea89a68c8c115b.zip |
mlxsw: pci: Fix EQE structure definition
The event_data starts from address 0x00-0x0C and not from 0x08-0x014. This
leads to duplication with other fields in the Event Queue Element such as
sub-type, cqn and owner.
Fixes: eda6500a987a0 ("mlxsw: Add PCI bus implementation")
Signed-off-by: Elad Raz <eladr@mellanox.com>
Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/mellanox/mlxsw/pci_hw.h')
-rw-r--r-- | drivers/net/ethernet/mellanox/mlxsw/pci_hw.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/net/ethernet/mellanox/mlxsw/pci_hw.h b/drivers/net/ethernet/mellanox/mlxsw/pci_hw.h index d147ddd97997..0af3338bfcb4 100644 --- a/drivers/net/ethernet/mellanox/mlxsw/pci_hw.h +++ b/drivers/net/ethernet/mellanox/mlxsw/pci_hw.h @@ -209,21 +209,21 @@ MLXSW_ITEM32(pci, eqe, owner, 0x0C, 0, 1); /* pci_eqe_cmd_token * Command completion event - token */ -MLXSW_ITEM32(pci, eqe, cmd_token, 0x08, 16, 16); +MLXSW_ITEM32(pci, eqe, cmd_token, 0x00, 16, 16); /* pci_eqe_cmd_status * Command completion event - status */ -MLXSW_ITEM32(pci, eqe, cmd_status, 0x08, 0, 8); +MLXSW_ITEM32(pci, eqe, cmd_status, 0x00, 0, 8); /* pci_eqe_cmd_out_param_h * Command completion event - output parameter - higher part */ -MLXSW_ITEM32(pci, eqe, cmd_out_param_h, 0x0C, 0, 32); +MLXSW_ITEM32(pci, eqe, cmd_out_param_h, 0x04, 0, 32); /* pci_eqe_cmd_out_param_l * Command completion event - output parameter - lower part */ -MLXSW_ITEM32(pci, eqe, cmd_out_param_l, 0x10, 0, 32); +MLXSW_ITEM32(pci, eqe, cmd_out_param_l, 0x08, 0, 32); #endif |