Lines Matching +full:6 +full:f
40 listen_cmd = f"socat -{ipver} -t 2 -u TCP-LISTEN:{port},reuseport /dev/null,ignoreeof"
107 ip(f"link add {tun_type}-ksft type {tun_type} {tun_arg} local {local_addr} remote {remote_addr} dev {cfg.ifname}")
108 defer(ip, f"link del {tun_type}-ksft")
109 ip(f"link set dev {tun_type}-ksft up")
110 ip(f"addr add {local_v4}/24 dev {tun_type}-ksft")
111 ip(f"addr add {local_v6}/64 dev {tun_type}-ksft")
113 ip(f"link add {tun_type}-ksft type {tun_type} {tun_arg} local {remote_addr} remote {local_addr} dev {cfg.remote_ifname}",
115 defer(ip, f"link del {tun_type}-ksft", host=cfg.remote)
116 ip(f"link set dev {tun_type}-ksft up", host=cfg.remote)
117 ip(f"addr add {remote_v4}/24 dev {tun_type}-ksft", host=cfg.remote)
118 ip(f"addr add {remote_v6}/64 dev {tun_type}-ksft", host=cfg.remote)
127 features_cmd += f" {feature} {setting}"
129 ethtool(f"-K {cfg.ifname} {features_cmd}")
131 ksft_pr(f"WARNING: failure restoring wanted features: {e}")
136 def f(cfg):
142 raise KsftSkipEx(f"Device does not support LSO queue stats")
145 raise KsftSkipEx(f"Device does not support {feature}")
153 remote_v6 = cfg.remote_addr_v["6"]
156 ethtool(f"-K {cfg.ifname} {feature} off")
159 ethtool(f"-K {cfg.ifname} tx-gso-partial off")
160 ethtool(f"-K {cfg.ifname} tx-tcp-mangleid-segmentation off")
162 ethtool(f"-K {cfg.ifname} tx-gso-partial on")
165 ethtool(f"-K {cfg.ifname} tx-tcp-mangleid-segmentation on")
168 ethtool(f"-K {cfg.ifname} {feature} on")
171 f.__name__ = name + ((outer_ipver + "_") if tun else "") + "ipv" + inner_ipver
172 return f
183 for f in features["wanted"]["bits"]["bit"]:
184 cfg.wanted_features.add(f["name"])
188 for f in features["hw"]["bits"]["bit"]:
189 if f.get("value", False):
190 feature = f["name"]
192 hw_all_features_cmd += f" {feature} on"
194 ethtool(f"-K {cfg.ifname} {hw_all_features_cmd}")
196 ksft_pr(f"WARNING: failure enabling all hw features: {e}")
202 ethtool(f"-K {cfg.ifname} tx-gso-partial off")
206 for f in features["active"]["bits"]["bit"]:
207 no_partial.add(f["name"])
209 ethtool(f"-K {cfg.ifname} tx-gso-partial on")
233 ("", "6", "tx-tcp6-segmentation", None),
234 ("vxlan", "4", "tx-udp_tnl-segmentation", ("vxlan", "id 100 dstport 4789 noudpcsum", ("4", "6"))),
235 ("vxlan", "6", "tx-udp_tnl-segmentation", ("vxlan", "id 100 dstport 4789 udp6zerocsumtx udp6zerocsumrx", ("4", "6"))),
236 ("vxlan_csum", "", "tx-udp_tnl-csum-segmentation", ("vxlan", "id 100 dstport 4789 udpcsum", ("4", "6"))),
237 ("gre", "4", "tx-gre-segmentation", ("gre", "", ("4", "6"))),
238 ("gre", "6", "tx-gre-segmentation", ("ip6gre","", ("4", "6"))),
242 for outer_ipver in ["4", "6"]: