Lines Matching +full:5 +full:- +full:wire

2 # SPDX-License-Identifier: GPL-2.0
40 listen_cmd = f"socat -{ipver} -t 2 -u TCP-LISTEN:{port},reuseport /dev/null,ignoreeof"
64 # TCP falls back to non-LSO.
70 # will add up to 5% of extra packes... The check is best effort.
75 ksft_ge(qstat_new['tx-hw-gso-packets'] -
76 qstat_old['tx-hw-gso-packets'],
78 comment="Number of LSO super-packets with LSO enabled")
80 ksft_ge(qstat_new['tx-hw-gso-wire-packets'] -
81 qstat_old['tx-hw-gso-wire-packets'],
83 comment="Number of LSO wire-packets with LSO enabled")
86 ksft_lt(qstat_new['tx-hw-gso-packets'] -
87 qstat_old['tx-hw-gso-packets'],
88 15, comment="Number of LSO super-packets with LSO disabled")
90 ksft_lt(qstat_new['tx-hw-gso-wire-packets'] -
91 qstat_old['tx-hw-gso-wire-packets'],
92 500, comment="Number of LSO wire-packets with LSO disabled")
106 …ip(f"link add {tun_type}-ksft type {tun_type} {tun_arg} local {local_addr} remote {remote_addr} de…
107 defer(ip, f"link del {tun_type}-ksft")
108 ip(f"link set dev {tun_type}-ksft up")
109 ip(f"addr add {local_v4}/24 dev {tun_type}-ksft")
110 ip(f"addr add {local_v6}/64 dev {tun_type}-ksft")
112 …ip(f"link add {tun_type}-ksft type {tun_type} {tun_arg} local {remote_addr} remote {local_addr} de…
114 defer(ip, f"link del {tun_type}-ksft", host=cfg.remote)
115 ip(f"link set dev {tun_type}-ksft up", host=cfg.remote)
116 ip(f"addr add {remote_v4}/24 dev {tun_type}-ksft", host=cfg.remote)
117 ip(f"addr add {remote_v6}/64 dev {tun_type}-ksft", host=cfg.remote)
128 ethtool(f"-K {cfg.ifname} {features_cmd}")
155 ethtool(f"-K {cfg.ifname} {feature} off")
158 ethtool(f"-K {cfg.ifname} tx-gso-partial off")
159 ethtool(f"-K {cfg.ifname} tx-tcp-mangleid-segmentation off")
161 ethtool(f"-K {cfg.ifname} tx-gso-partial on")
164 ethtool(f"-K {cfg.ifname} tx-tcp-mangleid-segmentation on")
167 ethtool(f"-K {cfg.ifname} {feature} on")
174 def query_nic_features(cfg) -> None:
179 features = cfg.ethnl.features_get({"header": {"dev-index": cfg.ifindex}})
193 ethtool(f"-K {cfg.ifname} {hw_all_features_cmd}")
200 if 'tx-gso-partial' in cfg.hw_features:
201 ethtool(f"-K {cfg.ifname} tx-gso-partial off")
204 features = cfg.ethnl.features_get({"header": {"dev-index": cfg.ifindex}})
207 cfg.partial_features = cfg.hw_features - no_partial
208 ethtool(f"-K {cfg.ifname} tx-gso-partial on")
214 if 'tx-hw-gso-packets' in stats[0]:
215 ksft_pr("Detected qstat for LSO super-packets")
217 if 'tx-hw-gso-wire-packets' in stats[0]:
218 ksft_pr("Detected qstat for LSO wire-packets")
222 def main() -> None:
231 ("", "4", "tx-tcp-segmentation", None),
232 ("", "6", "tx-tcp6-segmentation", None),
233 …("vxlan", "4", "tx-udp_tnl-segmentation", ("vxlan", "id 100 dstport 4789 noudpcsum", ("4"…
234 …("vxlan", "6", "tx-udp_tnl-segmentation", ("vxlan", "id 100 dstport 4789 udp6zerocsumtx u…
235 …("vxlan_csum", "", "tx-udp_tnl-csum-segmentation", ("vxlan", "id 100 dstport 4789 udpcsum", ("4", …
236 ("gre", "4", "tx-gre-segmentation", ("gre", "", ("4", "6"))),
237 ("gre", "6", "tx-gre-segmentation", ("ip6gre","", ("4", "6"))),