feat(esp_eth): add Ethernet sublayer with optional VLAN and switch

Introduce the experimental Ethernet sublayer (parent/child VLAN, optional
switch path, iodriver provider), restructure eth test apps, and document
the new APIs.
This commit is contained in:
Ondrej Kosta
2026-08-13 13:56:57 +02:00
parent 2dd71fddaa
commit 2e79c3fd69
61 changed files with 3860 additions and 45 deletions
+11 -1
View File
@@ -1,10 +1,12 @@
/*
* SPDX-FileCopyrightText: 2019-2024 Espressif Systems (Shanghai) CO LTD
* SPDX-FileCopyrightText: 2019-2026 Espressif Systems (Shanghai) CO LTD
*
* SPDX-License-Identifier: Apache-2.0
*/
#pragma once
#include <stddef.h>
#include <stdint.h>
#include "esp_err.h"
#include "esp_event_base.h"
#include "hal/eth_types.h"
@@ -14,6 +16,14 @@
extern "C" {
#endif
/**
* @brief Scatter-gather buffer descriptor for extended Ethernet transmit.
*/
typedef struct {
uint8_t *buf; /*!< Pointer to the buffer segment */
size_t len; /*!< Length of the buffer segment in bytes */
} esp_eth_buf_desc_t;
/**
* @brief Offset for start of MAC custom ioctl commands
*