Lines Matching full:vlan
69 /* VLAN Interface 3 addresses */
152 "Invalid VLAN tag (%d vs %d) in TX pkt", in eth_tx()
157 net_eth_vlan_get_vid(ntohs(hdr->vlan.tci)), in eth_tx()
158 "Invalid VLAN tag in ethernet header"); in eth_tx()
377 "Too many VLAN interfaces"); in iface_cb()
401 /* One extra eth interface without vlan support */ in test_vlan_setup()
419 iface1 = eth_interfaces[1]; /* This has VLAN enabled */ in test_address_setup()
421 iface3 = vlan_interfaces[0]; /* and this is the virtual VLAN interface */ in test_address_setup()
495 "invalid VLAN tag unspec"); in ZTEST()
497 "invalid VLAN priority"); in ZTEST()
500 zassert_equal(net_pkt_vlan_tag(pkt), 0, "invalid VLAN tag"); in ZTEST()
503 zassert_equal(net_pkt_vlan_tci(pkt), 0, "invalid VLAN TCI"); in ZTEST()
509 "invalid VLAN priority"); in ZTEST()
514 "invalid VLAN tag unspec"); in ZTEST()
517 "invalid VLAN priority"); in ZTEST()
521 "invalid VLAN priority"); in ZTEST()
526 zassert_equal(net_pkt_vlan_dei(pkt), dei, "invalid VLAN DEI"); in ZTEST()
528 "invalid VLAN priority"); in ZTEST()
529 zassert_equal(net_pkt_vlan_tag(pkt), 0, "invalid VLAN tag"); in ZTEST()
532 zassert_equal(net_pkt_vlan_tag(pkt), tag, "invalid VLAN tag"); in ZTEST()
533 zassert_equal(net_pkt_vlan_dei(pkt), dei, "invalid VLAN DEI"); in ZTEST()
535 "invalid VLAN priority"); in ZTEST()
539 zassert_equal(net_pkt_vlan_tag(pkt), tag, "invalid VLAN tag"); in ZTEST()
540 zassert_equal(net_pkt_vlan_dei(pkt), dei, "invalid VLAN DEI"); in ZTEST()
542 "invalid VLAN priority"); in ZTEST()
546 zassert_equal(net_pkt_vlan_tag(pkt), tag, "invalid VLAN tag"); in ZTEST()
547 zassert_equal(net_pkt_vlan_dei(pkt), dei, "invalid VLAN DEI"); in ZTEST()
549 "invalid VLAN priority"); in ZTEST()
553 zassert_equal(net_pkt_vlan_tag(pkt), tag, "invalid VLAN tag"); in ZTEST()
554 zassert_equal(net_pkt_vlan_dei(pkt), dei, "invalid VLAN DEI"); in ZTEST()
556 "invalid VLAN priority"); in ZTEST()
558 zassert_equal(net_pkt_vlan_tci(pkt), 0, "invalid VLAN TCI"); in ZTEST()
567 zassert_equal(tag, net_eth_vlan_get_vid(tci), "Invalid VLAN tag"); in ZTEST()
569 "Invalid VLAN priority"); in ZTEST()
574 /* Enable two VLAN tags and verity that proper interfaces are enabled.
614 zassert_equal(ret, true, "VLAN enabled for interface 0"); in test_vlan_enable()
617 zassert_equal(ret, false, "VLAN enabled for interface 1"); in test_vlan_enable()
621 zassert_equal(ret, -EBADF, "Invalid VLAN tag value %d", ret); in test_vlan_enable()
625 zassert_equal(ret, -EALREADY, "VLAN tag %d enabled for iface 1 (%d)", in test_vlan_enable()
636 "Not identified as VLAN interface %d", in test_vlan_enable()
643 "Could not get the VLAN interface (%d)", in test_vlan_enable()
681 zassert_equal(ret, false, "VLAN enabled for interface 0"); in test_vlan_disable()
684 zassert_equal(ret, false, "VLAN enabled for interface 1"); in test_vlan_disable()
688 zassert_equal(ret, -EBADF, "Invalid VLAN tag value %d", ret); in test_vlan_disable()
692 zassert_equal(ret, -ESRCH, "VLAN tag %d disabled for iface 1", in test_vlan_disable()
714 zassert_equal(ret, true, "VLAN disabled for interface 0"); in test_vlan_enable_all()
717 zassert_equal(ret, true, "VLAN disabled for interface 0"); in test_vlan_enable_all()
720 zassert_equal(ret, true, "VLAN disabled for interface 0"); in test_vlan_enable_all()
723 zassert_equal(ret, true, "VLAN disabled for interface 0"); in test_vlan_enable_all()
753 zassert_equal(ret, false, "VLAN enabled for interface 0"); in test_vlan_disable_all()
756 zassert_equal(ret, false, "VLAN enabled for interface 1"); in test_vlan_disable_all()
759 zassert_equal(ret, false, "VLAN enabled for interface 2"); in test_vlan_disable_all()
762 zassert_equal(ret, false, "VLAN enabled for interface 3"); in test_vlan_disable_all()
829 * We cannot use loopback as then VLAN would not be used. in comm_sendto_recvfrom()
855 zassert_equal(ret, true, "VLAN not enabled for interface 1"); in ZTEST()
914 zassert_equal(ret, true, "VLAN not enabled for interface"); in ZTEST()
922 zassert_not_null(ifaddr, "vlan addr"); in ZTEST()