-
Notifications
You must be signed in to change notification settings - Fork 2k
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
sys/net/netopt: Drop deprecated NETOPT_MAX_PACKET_SIZE #16023
Conversation
Replaces instances of deprecated NETOPT_MAX_PACKET_SIZE by NETOPT_MAX_PDU_SIZE.
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.
Though no removal release was deprecated over a year ago
$ git blame sys/include/net/netopt.h
[…]
5ba72df5aae (Marian Buschsieweke 2019-02-04 12:38:25 +0100 32) /**
5ba72df5aae (Marian Buschsieweke 2019-02-04 12:38:25 +0100 33) * @brief A deprecated alias for @ref NETOPT_MAX_PDU_SIZE
5ba72df5aae (Marian Buschsieweke 2019-02-04 12:38:25 +0100 34) *
5ba72df5aae (Marian Buschsieweke 2019-02-04 12:38:25 +0100 35) * @deprecated Please use @ref NETOPT_MAX_PDU_SIZE instead of
5ba72df5aae (Marian Buschsieweke 2019-02-04 12:38:25 +0100 36) * `NETOPT_MAX_PACKET_SIZE`
5ba72df5aae (Marian Buschsieweke 2019-02-04 12:38:25 +0100 37) */
5ba72df5aae (Marian Buschsieweke 2019-02-04 12:38:25 +0100 38) #define NETOPT_MAX_PACKET_SIZE NETOPT_MAX_PDU_SIZE
[…]
So IMHO this is okay to remove.
|
The first I merged already, for the second I am not sure if it makes sense to go with a patch for now, since I do not know, how active the project still is. |
Unrelated, I know, but do you maybe want to piggy-back some style fixes for the issues pointed out by the static tests? I wouldn't ask if I did not know you are usually open to this :-). |
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.
Re-ACK from my side. Though I would prefer a reordering of the commits such that the removal of the usage in the packets comes first and the removal of the option comes after. This way, the history in this PR stays bisectable without compile errors.
(might be that this is already the case and Github just shows it sorted by author date; did not check) |
Replace NETOPT_MAX_PACKET_SIZE by NETOPT_MAX_PDU_SIZE via a patch
This option has been deprecated for quite a few release. It should be safe to delete now.
I reordered the commits as suggested |
Cool! :-( We really should try to clean up RIOT so that vendor files are only included in |
What if we just patch the offending vendor files? |
I don't quiet understand, how this error was triggered in the first place... |
fdc150c
to
7635f5f
Compare
Settled offline. |
Contribution description
Drop the deprecated alias
NETOPT_MAX_PACKET_SIZE
forNETOPT_MAX_PDU_SIZE
.Testing procedure
Murdock will do here.
Issues/PRs references
None