Skip to content

Commit 608edab

Browse files
committed
Merge branch 'mlxsw-fixes'
Jiri Pirko says: ==================== mlxsw: Couple of fixes Couple of simple fixes from Arkadi and Elad. Please queue these up for stable. Thanks. ==================== Signed-off-by: David S. Miller <[email protected]>
2 parents 0719e72 + 28e46a0 commit 608edab

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-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

drivers/net/ethernet/mellanox/mlxsw/spectrum.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -684,6 +684,7 @@ static netdev_tx_t mlxsw_sp_port_xmit(struct sk_buff *skb,
684684
dev_kfree_skb_any(skb_orig);
685685
return NETDEV_TX_OK;
686686
}
687+
dev_consume_skb_any(skb_orig);
687688
}
688689

689690
if (eth_skb_pad(skb)) {

drivers/net/ethernet/mellanox/mlxsw/switchx2.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -345,6 +345,7 @@ static netdev_tx_t mlxsw_sx_port_xmit(struct sk_buff *skb,
345345
dev_kfree_skb_any(skb_orig);
346346
return NETDEV_TX_OK;
347347
}
348+
dev_consume_skb_any(skb_orig);
348349
}
349350
mlxsw_sx_txhdr_construct(skb, &tx_info);
350351
/* TX header is consumed by HW on the way so we shouldn't count its

0 commit comments

Comments
 (0)