Hi Jan,

> Il 25/11/2021 11:26 Jan Kiszka <jan.kis...@siemens.com> ha scritto:
> 
>  
> On 25.11.21 00:46, Dario Binacchi wrote:
> > Like in the Linux kernel, the API allows to get/set device controller
> > parameters.
> > For now it only supports:
> >  - ETHTOOL_GDRVINFO: get general driver and device information
> >  - ETHTOOL_GRINGPARAM: get RX/TX ring parameters
> > 
> 
> What will be the use case? IIUC, only the c_can driver will implement
> the required callbacks, right? 
Yes, for now.

> Does it need this interface in order to become operational? 
No, the driver is fully operational even without this interface.
I think that 2722ac986e93 ("can: c_can: add ethtool support") was the
first commit applied to the Linux Kernel adding ethtool support for
CAN devices.

> Is it a useful debug features? Or what is this for, practically?
It allows the userspace to know the number of message objects managed by
the controller (32 or 64) and how many of them are used for 
reception/transmission.
If I know the TX FIFO depth I know how many messages I can send before the 
sendmsg returns error for FIFO full.

Thanks and regards,
Dario

> 
> Jan
> 
> -- 
> Siemens AG, T RDA IOT
> Corporate Competence Center Embedded Linux

Reply via email to