"tests/nn/git@developer.sourcefind.cn:OpenDAS/fairscale.git" did not exist on "ca18b50cbe0a48ad7a0ca3f1962e5f88f79d717b"
Commit 09e293da authored by Hejing Li's avatar Hejing Li
Browse files

Dctcp_i40e node tso on

parent d605bacb
...@@ -215,7 +215,7 @@ class I40eDCTCPNode(NodeConfig): ...@@ -215,7 +215,7 @@ class I40eDCTCPNode(NodeConfig):
return super().prepare_post_cp() + [ return super().prepare_post_cp() + [
'modprobe i40e', 'modprobe i40e',
'ethtool -G eth0 rx 4096 tx 4096', 'ethtool -G eth0 rx 4096 tx 4096',
'ethtool -K eth0 tso off', 'ethtool -K eth0 tso on',
'ip link set eth0 txqueuelen 13888', 'ip link set eth0 txqueuelen 13888',
f'ip link set dev eth0 mtu {self.mtu} up', f'ip link set dev eth0 mtu {self.mtu} up',
f'ip addr add {self.ip}/24 dev eth0', f'ip addr add {self.ip}/24 dev eth0',
...@@ -265,6 +265,12 @@ class DctcpClient(AppConfig): ...@@ -265,6 +265,12 @@ class DctcpClient(AppConfig):
'sleep 20' 'sleep 20'
] ]
class PingClient(AppConfig):
server_ip = '192.168.64.1'
def run_cmds(self, node):
return [f'ping {self.server_ip} -c 100']
class IperfTCPServer(AppConfig): class IperfTCPServer(AppConfig):
def run_cmds(self, node): def run_cmds(self, node):
return ['iperf -s -l 32M -w 32M'] return ['iperf -s -l 32M -w 32M']
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment