Zephyr API Documentation
3.6.0
A Scalable Open Source RTOS
|
|
3.6.0 |
Ethernet L2 context that is needed for VLAN. More...
#include <ethernet.h>
Data Fields | |
atomic_t | flags |
Flags representing ethernet state, which are accessed from multiple threads. | |
struct k_work | carrier_work |
Carrier ON/OFF handler worker. | |
struct net_if * | iface |
Network interface. | |
enum net_l2_flags | ethernet_l2_flags |
This tells what L2 features does ethernet support. | |
bool | is_net_carrier_up: 1 |
Is network carrier up. | |
bool | is_init: 1 |
Is this context already initialized. | |
enum ethernet_if_types | eth_if_type |
Types of Ethernet network interfaces. | |
Ethernet L2 context that is needed for VLAN.
struct k_work ethernet_context::carrier_work |
Carrier ON/OFF handler worker.
This is used to create network interface UP/DOWN event when ethernet L2 driver notices carrier ON/OFF situation. We must not create another network management event from inside management handler thus we use worker thread to trigger the UP/DOWN event.
enum ethernet_if_types ethernet_context::eth_if_type |
Types of Ethernet network interfaces.
enum net_l2_flags ethernet_context::ethernet_l2_flags |
This tells what L2 features does ethernet support.
atomic_t ethernet_context::flags |
Flags representing ethernet state, which are accessed from multiple threads.
struct net_if* ethernet_context::iface |
Network interface.
bool ethernet_context::is_init |
Is this context already initialized.
bool ethernet_context::is_net_carrier_up |
Is network carrier up.