Skip to content

Commit 28e46a0

Browse files
Elad Razdavem330
authored andcommitted
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: eda6500 ("mlxsw: Add PCI bus implementation") Signed-off-by: Elad Raz <[email protected]> Signed-off-by: Jiri Pirko <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 400fc01 commit 28e46a0

File tree

1 file changed

+4
-4
lines changed
  • drivers/net/ethernet/mellanox/mlxsw

1 file changed

+4
-4
lines changed

drivers/net/ethernet/mellanox/mlxsw/pci_hw.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -209,21 +209,21 @@ MLXSW_ITEM32(pci, eqe, owner, 0x0C, 0, 1);
209209
/* pci_eqe_cmd_token
210210
* Command completion event - token
211211
*/
212-
MLXSW_ITEM32(pci, eqe, cmd_token, 0x08, 16, 16);
212+
MLXSW_ITEM32(pci, eqe, cmd_token, 0x00, 16, 16);
213213

214214
/* pci_eqe_cmd_status
215215
* Command completion event - status
216216
*/
217-
MLXSW_ITEM32(pci, eqe, cmd_status, 0x08, 0, 8);
217+
MLXSW_ITEM32(pci, eqe, cmd_status, 0x00, 0, 8);
218218

219219
/* pci_eqe_cmd_out_param_h
220220
* Command completion event - output parameter - higher part
221221
*/
222-
MLXSW_ITEM32(pci, eqe, cmd_out_param_h, 0x0C, 0, 32);
222+
MLXSW_ITEM32(pci, eqe, cmd_out_param_h, 0x04, 0, 32);
223223

224224
/* pci_eqe_cmd_out_param_l
225225
* Command completion event - output parameter - lower part
226226
*/
227-
MLXSW_ITEM32(pci, eqe, cmd_out_param_l, 0x10, 0, 32);
227+
MLXSW_ITEM32(pci, eqe, cmd_out_param_l, 0x08, 0, 32);
228228

229229
#endif

0 commit comments

Comments
 (0)