Skip to content

bmc: return TC_ACT_OK instead of XDP_PASS in TC programs#15

Open
vdasu wants to merge 1 commit into
Orange-OpenSource:mainfrom
vdasu:fix/tc-action-namespace
Open

bmc: return TC_ACT_OK instead of XDP_PASS in TC programs#15
vdasu wants to merge 1 commit into
Orange-OpenSource:mainfrom
vdasu:fix/tc-action-namespace

Conversation

@vdasu

@vdasu vdasu commented Jul 12, 2026

Copy link
Copy Markdown

bmc_tx_filter_main and bmc_update_cache_main are sched_cls (TC) programs but returned XDP_PASS on their early-out paths. XDP_PASS == 2 == TC_ACT_SHOT, so a short frame (ip + 1 > data_end) and the !stats paths were dropped instead of passed. Use TC_ACT_OK, matching every other return in these functions.

bmc_tx_filter_main and bmc_update_cache_main are sched_cls (TC) programs
but returned XDP_PASS on their early-out paths. XDP_PASS == 2 == TC_ACT_SHOT,
so a short frame (ip + 1 > data_end) and the !stats paths were dropped instead
of passed. Use TC_ACT_OK, matching every other return in these functions.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant