When ALTQ is enabled ifnet accessors already need to be called, largely
defeating the purpose of the inline. To that extent, make the ALTQ form
functions in the netstack proper, and make them always available.
Details
Details
- Reviewers
glebius - Group Reviewers
network - Commits
- rG1bfa548b1f16: ifnet/API: Privatize the implementation of the drbr_* APIs
Diff Detail
Diff Detail
- Repository
- rG FreeBSD src repository
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
sys/net/ifq.h | ||
---|---|---|
317–331 | ||
318–328 | IMHO, these forward declarations should be under #ifdef ALTQ. Otherwise, with non-ALTQ case, we will have a forward declaration of a function as non-static, followed by a static implementation. Looks like our compiler doesn't care about that, but it could confuse other compilers. I could be wrong here, but better stay safe. | |
331 | drbr_free() being the same for both cases should go down below (or may be higher up). | |
338 |
Comment Actions
Faied to build with ALTQ disabled, functions redefined. Explicitly define ALTQ to only get the prototypes, and also suggest this is intended only for ALTQ.