Searched refs:eth_interfaces (Results 1 – 5 of 5) sorted by relevance
/Zephyr-Core-3.7.0/tests/net/vlan/src/ |
D | main.c | 78 static struct net_if *eth_interfaces[NET_ETH_MAX_COUNT]; variable 320 eth_interfaces[ud->eth_if_count++] = iface; in iface_cb() 369 iface1 = eth_interfaces[1]; /* This has VLAN enabled */ in test_address_setup() 370 iface2 = eth_interfaces[0]; /* and this one not */ in test_address_setup() 532 ret = net_eth_vlan_enable(eth_interfaces[0], VLAN_TAG_1); in test_vlan_enable() 534 ret = net_eth_vlan_enable(eth_interfaces[0], VLAN_TAG_2); in test_vlan_enable() 536 ret = net_eth_vlan_enable(eth_interfaces[0], VLAN_TAG_3); in test_vlan_enable() 538 ret = net_eth_vlan_enable(eth_interfaces[0], VLAN_TAG_4); in test_vlan_enable() 541 eth_ctx = net_if_l2_data(eth_interfaces[0]); in test_vlan_enable() 543 iface = net_eth_get_vlan_iface(eth_interfaces[0], VLAN_TAG_1); in test_vlan_enable() [all …]
|
/Zephyr-Core-3.7.0/tests/net/ptp/clock/src/ |
D | main.c | 65 static struct net_if *eth_interfaces[MAX_NUM_INTERFACES]; variable 310 if (ud->eth_if_count >= ARRAY_SIZE(eth_interfaces)) { in iface_cb() 324 eth_interfaces[ud->eth_if_count++] = iface; in iface_cb() 358 iface1 = eth_interfaces[0]; in test_address_setup() 359 iface2 = eth_interfaces[1]; in test_address_setup() 360 iface3 = eth_interfaces[2]; in test_address_setup() 419 clk = net_eth_get_ptp_clock(eth_interfaces[idx]); in test_ptp_clock_interfaces() 421 eth_interfaces[idx]); in test_ptp_clock_interfaces() 424 clk = net_eth_get_ptp_clock(eth_interfaces[idx]); in test_ptp_clock_interfaces() 426 eth_interfaces[idx]); in test_ptp_clock_interfaces() [all …]
|
/Zephyr-Core-3.7.0/tests/net/tx_timestamp/src/ |
D | main.c | 65 static struct net_if *eth_interfaces[2]; variable 190 iface = eth_interfaces[0]; in test_timestamp_setup() 220 zassert_equal(eth_interfaces[1], net_pkt_iface(pkt), in timestamp_callback_2() 236 iface = eth_interfaces[1]; in test_timestamp_setup_2nd_iface() 263 pkt = net_pkt_alloc_on_iface(eth_interfaces[0], K_FOREVER); in test_timestamp_setup_all() 287 iface = eth_interfaces[0]; in test_timestamp_cleanup() 330 if (ud->eth_if_count >= ARRAY_SIZE(eth_interfaces)) { in iface_cb() 335 eth_interfaces[ud->eth_if_count++] = iface; in iface_cb() 353 iface1 = eth_interfaces[0]; in test_address_setup() 354 iface2 = eth_interfaces[1]; in test_address_setup() [all …]
|
/Zephyr-Core-3.7.0/tests/net/virtual/src/ |
D | main.c | 78 static struct net_if *eth_interfaces[2]; variable 320 if (!eth_interfaces[0]) { in iface_cb() 322 eth_interfaces[0] = iface; in iface_cb() 326 if (ud->eth_if_count > ARRAY_SIZE(eth_interfaces)) { in iface_cb() 330 eth_interfaces[starting_eth_idx++] = iface; in iface_cb() 369 zassert_true(ud.eth_if_count <= ARRAY_SIZE(eth_interfaces), in test_virtual_setup() 372 ud.eth_if_count, ARRAY_SIZE(eth_interfaces)); in test_virtual_setup() 387 eth = eth_interfaces[0]; in test_address_setup() 559 ret = net_virtual_interface_attach(iface, eth_interfaces[0]); in ZTEST() 562 net_if_get_by_iface(eth_interfaces[0]), in ZTEST() [all …]
|
/Zephyr-Core-3.7.0/tests/net/checksum_offload/src/ |
D | main.c | 79 static struct net_if *eth_interfaces[2 + IS_ENABLED(CONFIG_ETH_NATIVE_POSIX)]; variable 514 eth_interfaces[0] = iface; in iface_cb() 519 eth_interfaces[1] = iface; in iface_cb() 538 zassert_equal(ud.eth_if_count, sizeof(eth_interfaces) / sizeof(void *), in test_eth_setup() 541 sizeof(eth_interfaces) / sizeof(void *)); in test_eth_setup() 550 iface1 = eth_interfaces[0]; in test_address_setup() 551 iface2 = eth_interfaces[1]; in test_address_setup() 704 iface = eth_interfaces[1]; in test_udp_context_prepare() 709 iface = eth_interfaces[0]; in test_udp_context_prepare() 862 *iface = eth_interfaces[1]; in test_icmp_init() [all …]
|