-
Notifications
You must be signed in to change notification settings - Fork 8k
drivers:ethernet: Add promiscuous mode to the slip interface #97232
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
Conversation
Hello @mrjimenez, and thank you very much for your first pull request to the Zephyr project! |
65a6851
to
4b2702f
Compare
Fixed the issues with code/commit message compliance. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You have mixed changes in the commit. The indentation/style things should be separated into a different commit than the promisc mode changes.
drivers/ethernet/eth_slip_tap.c
Outdated
ETH_NET_DEVICE_INIT(slip, CONFIG_SLIP_DRV_NAME, slip_init, NULL, &slip_context_data, NULL, | ||
CONFIG_KERNEL_INIT_PRIORITY_DEFAULT, &slip_if_api, _SLIP_MTU); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I do not like this change, it looks like you used clang formatter which makes long lines that are just harder to read than the original code. The other format changes look ok (just place into separate commit).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi Jukka,
I totally agree with you, really, I think it got much uglier. But since it is my first commit on the project, and I got a "non-conformity" error on the automated tests, I assumed all files should have passed throuhg the project's defined clang-format.
I will do as you said, split the patch and format as before.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The CI reports clang-format issues but they are only suggestions (at least for now) and can be ignored if they do not make sense/look ugly.
This patch just formats the file before the real patch so that whitespace changes do not mix with the real code changes. Signed-off-by: Marcelo Roberto Jimenez <[email protected]>
Slip is naturally promiscuous, so this patch does nothing but acknowledge that. Promiscuous mode in slip is important to allow the interface to be added to a bridge. Signed-off-by: Marcelo Roberto Jimenez <[email protected]>
4b2702f
to
28f7cb1
Compare
|
Slip is naturally promiscuous, so this patch does nothing but acknowledge that. Promiscuous mode in slip is important to allow the interface to be added to a bridge.