Skip to content

Commit

Permalink
soc: nxp_s32: disable TCP/UDP checksum only if eth driver enabled
Browse files Browse the repository at this point in the history
Only disable TCP/UDP software checksum if the ethernet
driver enabled. This is to avoid interfere with net tests
which don't need the on board driver to function

Signed-off-by: Dat Nguyen Duy <dat.nguyenduy@nxp.com>
  • Loading branch information
Dat-NguyenDuy authored and aescolar committed Jul 4, 2024
1 parent a610b92 commit 2457f73
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions soc/nxp/s32/s32k3/Kconfig.defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,15 @@ config NUM_IRQS
config FPU
default y

if NET_L2_ETHERNET
if ETH_DRIVER && NET_L2_ETHERNET

config NET_TCP_CHECKSUM
default n

config NET_UDP_CHECKSUM
default n

endif # NET_L2_ETHERNET
endif # ETH_DRIVER && NET_L2_ETHERNET

config CACHE_MANAGEMENT
default y
Expand Down
4 changes: 2 additions & 2 deletions soc/nxp/s32/s32ze/Kconfig.defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ config SYS_CLOCK_HW_CYCLES_PER_SEC
config MAIN_STACK_SIZE
default 1024

if NET_L2_ETHERNET
if ETH_DRIVER && NET_L2_ETHERNET

# NETC drops TCP/UDP packets with invalid checksum
config NET_TCP_CHECKSUM
Expand All @@ -27,6 +27,6 @@ config NET_TCP_CHECKSUM
config NET_UDP_CHECKSUM
default n

endif # NET_L2_ETHERNET
endif # ETH_DRIVER && NET_L2_ETHERNET

endif # SOC_SERIES_S32ZE

0 comments on commit 2457f73

Please sign in to comment.