can: mcp251xfd: ethtool: add support
authorMarc Kleine-Budde <mkl@pengutronix.de>
Mon, 25 Oct 2021 09:34:32 +0000 (11:34 +0200)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Sun, 13 Mar 2022 08:45:35 +0000 (09:45 +0100)
commitd86ba8db6af3af567cd9a20e194e5ebd8f21987e
treecf24bfd3400ebaa135271d5f714217eab64f548d
parentb8123d94f58cdd1f3d476f60156fc356194bec55
can: mcp251xfd: ethtool: add support

This patch adds basic ethtool support (to query the current and
maximum ring parameters) to the driver.

Link: https://lore.kernel.org/20220313083640.501791-5-mkl@pengutronix.de
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
drivers/net/can/spi/mcp251xfd/Makefile
drivers/net/can/spi/mcp251xfd/mcp251xfd-core.c
drivers/net/can/spi/mcp251xfd/mcp251xfd-ethtool.c [new file with mode: 0644]
drivers/net/can/spi/mcp251xfd/mcp251xfd-ring.c
drivers/net/can/spi/mcp251xfd/mcp251xfd.h