Lines Matching full:ipv4
12 def test_receive(cfg, ipv4=False, extra_args=None): argument
17 if ipv4:
30 def test_transmit(cfg, ipv4=False, extra_args=None): argument
33 not (cfg.have_tx_csum_ipv4 and ipv4) and
34 not (cfg.have_tx_csum_ipv6 and not ipv4)):
37 if ipv4:
54 def test_builder(name, cfg, ipv4=False, tx=False, extra_args=""): argument
60 if ipv4:
66 test_transmit(cfg, ipv4, extra_args)
68 test_receive(cfg, ipv4, extra_args)
70 if ipv4:
91 elif f["name"] == "tx-checksum-ipv4":
107 for ipv4 in [True, False]:
108 cases.append(test_builder("rx_tcp", cfg, ipv4, False, "-t"))
109 cases.append(test_builder("rx_tcp_invalid", cfg, ipv4, False, "-t -E"))
111 cases.append(test_builder("rx_udp", cfg, ipv4, False, ""))
112 cases.append(test_builder("rx_udp_invalid", cfg, ipv4, False, "-E"))
114 cases.append(test_builder("tx_udp_csum_offload", cfg, ipv4, True, "-U"))
115 cases.append(test_builder("tx_udp_zero_checksum", cfg, ipv4, True, "-U -Z"))