if (ioctl(netdev->netdev_fd, SIOCETHTOOL, &ifr) == 0) {
return 0;
} else {
- VLOG_WARN_RL(&rl, "ethtool command %s on network device %s failed: %s",
- cmd_name, netdev->name, strerror(errno));
+ if (errno != EOPNOTSUPP) {
+ VLOG_WARN_RL(&rl, "ethtool command %s on network device %s "
+ "failed: %s", cmd_name, netdev->name,
+ strerror(errno));
+ } else {
+ /* The device doesn't support this operation. That's pretty
+ * common, so there's no point in logging anything. */
+ }
return errno;
}
}