Zephyr API Documentation  2.7.0-rc2
A Scalable Open Source RTOS
ethernet_context Struct Reference

#include <ethernet.h>

Data Fields

atomic_t flags
 
struct k_work carrier_work
 
struct net_ififace
 
enum net_l2_flags ethernet_l2_flags
 
bool is_net_carrier_up: 1
 
bool is_init: 1
 

Detailed Description

Ethernet L2 context that is needed for VLAN

Field Documentation

◆ carrier_work

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.

◆ ethernet_l2_flags

enum net_l2_flags ethernet_context::ethernet_l2_flags

This tells what L2 features does ethernet support.

◆ flags

atomic_t ethernet_context::flags

Flags representing ethernet state, which are accessed from multiple threads.

◆ iface

struct net_if* ethernet_context::iface

Network interface.

◆ is_init

bool ethernet_context::is_init

Is this context already initialized

◆ is_net_carrier_up

bool ethernet_context::is_net_carrier_up

Is network carrier up


The documentation for this struct was generated from the following file: