[PATCH 0/3] Subject: [PATCH 0/3] staging: octeon: Fix initialization pathways, parsing, and modernize statistics
From: Oscar Alejandro Sánchez Lucero via B4 Relay
Date: Sun Nov 08 2026 - 06:53:42 EST
This series resolves critical initialization issues, structural edge cases
in string tokenization, and infrastructure modernizations within the core
ethernet interface logic of the Cavium Octeon staging driver (ethernet.c).
1. Fix a missing hardware resource cleanup step in the cvm_oct_probe() error
handling path by ensuring cvmx_pko_disable() is invoked dynamically prior
to device detachment.
2. Replace an unsafe prefix-matching strstr() evaluation within the
pow_send_list check with accurate comma-separated tokenization using
strsep() and strict strcmp() checking.
3. Migrate the legacy 32-bit ndo_get_stats net_device_ops callback to the
modern 64-bit ndo_get_stats64 atomic interface infrastructure to prevent
counter wrap-around bugs on SMP platforms.
Oscar Alejandro Sánchez Lucero (3):
staging: octeon: disable PKO before device removal in probe error path
staging: octeon: match exact interface names in pow_send_list
staging: octeon: convert from ndo_get_stats to ndo_get_stats64
Signed-off-by: Oscar Alejandro Sánchez Lucero <aleszlucero@xxxxxxxxx>
---
Oscar Alejandro Sánchez Lucero (3):
staging: octeon: disable PKO before device removal in probe error path
staging: octeon: convert from ndo_get_stats to ndo_get_stats64
staging: octeon: match exact interface names in pow_send_list
drivers/staging/octeon/ethernet.c | 55 +++++++++++++++++++++++++--------------
1 file changed, 36 insertions(+), 19 deletions(-)
---
base-commit: ddfe51b0a0f5dc9e415cc2c8ad8db17532dd426b
change-id: 20261108-octeon-init-pipeline-v1-e25ec64f49e3
Best regards,
--
Oscar Alejandro Sánchez Lucero <aleszlucero@xxxxxxxxx>