Skip to content

Conversation

@mrjimenez
Copy link
Contributor

The default configuration for all STM32 microcontrollers in HAL is
to replace the ehternet MAC address with the address configured in
replace address zero. In "modules/hal", Grep for:

macDefaultConf.SourceAddrControl = ETH_SOURCEADDRESS_REPLACE_ADDR0;

But this is a bad thing for bridging. Since Zephyr ethernet LL code
always writes the source address, this patch has no impact on normal
operation. And has the benefit of maintaining the source MAC address of
bridged packets.

@mrjimenez mrjimenez force-pushed the stm32_fix_checksum branch 2 times, most recently from b664369 to c8926c8 Compare December 9, 2025 23:57
@mrjimenez mrjimenez requested a review from juickar December 10, 2025 00:44
The default configuration for all STM32 microcontrollers in HAL is
to replace the ehternet MAC address with the address configured in
replace address zero. In "modules/hal", Grep for:

macDefaultConf.SourceAddrControl = ETH_SOURCEADDRESS_REPLACE_ADDR0;

But this is a bad thing for bridging. Since Zephyr ethernet LL code
always writes the source address, this patch has no impact on normal
operation. And has the benefit of maintaining the source MAC address
of bridged packets.

Signed-off-by: Marcelo Roberto Jimenez <marcelo.jimenez@gmail.com>
@sonarqubecloud
Copy link

@fabiobaltieri fabiobaltieri merged commit ce99d1e into zephyrproject-rtos:main Dec 10, 2025
27 checks passed
@mrjimenez mrjimenez deleted the stm32_fix_checksum branch December 11, 2025 21:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants