On 7/7/2020 12:01 PM, Shyam Sundar S K wrote:
>
> On 7/7/2020 11:25 PM, Andrew Lunn wrote:
>> [CAUTION: External Email]
>>
>> On Tue, Jul 07, 2020 at 05:32:54PM +0000, Shyam Sundar S K wrote:
>>> In embedded environments, ethtool may not be available to toggle between
>>> auto negotiation on/off.
>>>
>>> Add a module parameter to control auto negotiation for these situations.
> Hi Andrew
>> Where does this end? You can set the link speed via module parameters?
>> Pause? Duplex?
>>
>> Andrew
>
> Agree to your feedback. Most of the information required to control the
> connection is already present in the
>
> driver and this piece of information is missing. Customers who run a
> minimal Linux do not have the flexibility
>
> to add userspace applications like ethtool to control the connection
> information. Please consider this as expectional
You do not need to have the ethtool application proper, you can have a
small binary that only implements the right amount of ioctl() (or now
netlink) interface so as to restart or disable auto-negotiation. We are
talking about ~200 LOCs or something along those lines.
--
Florian