Skip to content

Commit

Permalink
can: mcp251xfd: mcp251xfd_ring_set_ringparam(): assign missing tx_obj…
Browse files Browse the repository at this point in the history
…_num_coalesce_irq

[ Upstream commit 1613fff ]

If the a new ring layout is set, the max coalesced frames for RX and
TX are re-calculated, too. Add the missing assignment of the newly
calculated TX max coalesced frames.

Fixes: 656fc12 ("can: mcp251xfd: add TX IRQ coalescing ethtool support")
Link: https://lore.kernel.org/all/20230130154334.1578518-1-mkl@pengutronix.de
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
  • Loading branch information
marckleinebudde authored and gregkh committed Feb 9, 2023
1 parent c3033f9 commit 6366671
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/net/can/spi/mcp251xfd/mcp251xfd-ethtool.c
Expand Up @@ -48,6 +48,7 @@ mcp251xfd_ring_set_ringparam(struct net_device *ndev,
priv->rx_obj_num = layout.cur_rx;
priv->rx_obj_num_coalesce_irq = layout.rx_coalesce;
priv->tx->obj_num = layout.cur_tx;
priv->tx_obj_num_coalesce_irq = layout.tx_coalesce;

return 0;
}
Expand Down

0 comments on commit 6366671

Please sign in to comment.