Lines Matching full:duplex
84 def set_speed_and_duplex(self, speed: str, duplex: str, autoneg: bool = True) -> bool:
85 """Set the speed and duplex state for the interface"""
89 …process = ethtool(f"--change {self.cfg.ifname} speed {speed} duplex {duplex} autoneg {autoneg_stat…
91 ksft_pr(f"Unexpected error occurred while setting speed/duplex: {e}")
95 ksft_pr(f"Speed: {speed} Mbps, Duplex: {duplex} set for Interface: {self.cfg.ifname}")
101 """Verifying the speed and duplex state for the interface"""
104 with open(f"/sys/class/net/{self.cfg.ifname}/duplex", "r") as fp:
115 duplex = duplex_modes[0]
116 if not speed or not duplex:
117 ksft_pr("No speed or duplex modes found")
120 speed_duplex_cmd = f"speed {speed} duplex {duplex}" if state == "off" else ""
181 duplex = []
191 duplex.append(parts[1].lower())
192 return speed, duplex