Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

xdp-dump: add check for new promiscuous mode message in tests #428

Merged
merged 1 commit into from
Jun 24, 2024

Conversation

liangxiao1
Copy link
Contributor

kernel updated the promiscuous mode message in below commit, so update the previous check condition.

net/core: refactor promiscuous mode message

old message:
[ 406.034418] device eth0 entered promiscuous mode
[ 408.424703] device eth0 left promiscuous mode

new message:
[ 406.034431] ice 0000:17:00.0 eth0: entered promiscuous mode
[ 408.424715] ice 0000:17:00.0 eth0: left promiscuous mode

@liangxiao1
Copy link
Contributor Author

I guess it fixes the failure mentioned in 415.

Copy link
Member

@tohojo tohojo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the fix! Just a small nit on the formatting :)

@@ -448,11 +448,11 @@ test_promiscuous_selfload()
fi

RESULT=$(dmesg)
if [[ "$RESULT" != *"device $NS entered promiscuous mode"* ]]; then
if [[ "$RESULT" != *"device $NS entered promiscuous mode"* && "$RESULT" != *"$NS: entered promiscuous mode"* ]]; then
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Better to combine these as two distinct 'test' invocations, like:
if [[ "$RESULT" != *"device $NS entered promiscuous mode"* ]] && [[ "$RESULT" != *"$NS: entered promiscuous mode"* ]]; then

same for all of the checks below, obviously :)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, @tohojo I updated and tested the patch as your suggestion.

kernel updated the promiscuous mode message in below commit,
so update the previous check condition.

net/core: refactor promiscuous mode message

old message:
[  406.034418] device eth0 entered promiscuous mode
[  408.424703] device eth0 left promiscuous mode

new message:
[  406.034431] ice 0000:17:00.0 eth0: entered promiscuous mode
[  408.424715] ice 0000:17:00.0 eth0: left promiscuous mode

Signed-off-by: Xiao Liang <[email protected]>
@tohojo tohojo merged commit d92fac5 into xdp-project:master Jun 24, 2024
5 checks passed
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.

test_promiscuous_selfload and test_promiscuous_preload fail in Debian testing/unstable in QEMU
2 participants