Quantcast
Channel: Active questions tagged linux-kernel - Stack Overflow
Viewing all articles
Browse latest Browse all 12244

ethtool: set/unset autonegation, RX/TX pause

$
0
0

I was looking at the sources of ethtool, particularly at function do_spause() where autonegotiation, rx/tx pause can be enabled/disabled. I noticed that at first it issues ioctl() for ETHTOOL_GPAUSEPARAM command, i.e. it fetches the current settings, and they're the same, it doesn't change anything, otherwise it will issue ioctl() with ETHTOOL_SPAUSEPARAM command and set new parameters.

What is the reason for this? Is this optimization, or way to avoid link disruption?


Viewing all articles
Browse latest Browse all 12244

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>