Lines Matching +full:dsa +full:- +full:slave +full:- +full:ports
4 * SPDX-License-Identifier: Apache-2.0
10 #include <zephyr/net/dsa.h>
23 if (ifaces->master == NULL) { in iface_cb()
24 ifaces->master = iface; in iface_cb()
26 /* Get slave interfaces */ in iface_cb()
27 for (int i = 0; i < ARRAY_SIZE(ifaces->lan); i++) { in iface_cb()
28 struct net_if *slave = dsa_get_slave_port(iface, i); in iface_cb() local
30 if (slave == NULL) { in iface_cb()
31 LOG_ERR("Slave interface %d not found.", i); in iface_cb()
35 ifaces->lan[i] = slave; in iface_cb()
43 /* MAC address of other device - for filtering testing */
54 lladst.len = sizeof(hdr->dst.addr); in dsa_ll_addr_switch_cb()
55 lladst.addr = &hdr->dst.addr[0]; in dsa_ll_addr_switch_cb()
74 pd->sock = socket(AF_PACKET, SOCK_RAW, htons(ETH_P_ALL)); in start_slave_port_packet_socket()
75 if (pd->sock < 0) { in start_slave_port_packet_socket()
77 return -errno; in start_slave_port_packet_socket()
83 ret = bind(pd->sock, (const struct sockaddr *)&dst, in start_slave_port_packet_socket()
87 return -errno; in start_slave_port_packet_socket()
98 /* Initialize interfaces - read them to user_data_ifaces */ in init_dsa_ports()
111 LOG_INF("DSA static MAC address table entry [%d]:", 0); in init_dsa_ports()
123 LOG_INF("DSA ports init - OK"); in main()