mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Prepare for (re)using this header file in userland.
Remove the inlined code from the header file if it's compiled in userland. It's not required and it shouldn't be there in the first place.
This commit is contained in:
parent
41e0047a15
commit
dd9f5bba52
1 changed files with 6 additions and 0 deletions
|
|
@ -101,6 +101,9 @@ struct sample_node {
|
|||
int packets_since_sample[NUM_PACKET_SIZE_BINS];
|
||||
unsigned sample_tt[NUM_PACKET_SIZE_BINS];
|
||||
};
|
||||
|
||||
#ifdef _KERNEL
|
||||
|
||||
#define ATH_NODE_SAMPLE(an) ((struct sample_node *)&(an)[1])
|
||||
#define IS_RATE_DEFINED(sn, rix) (((sn)->ratemask & (1<<(rix))) != 0)
|
||||
|
||||
|
|
@ -225,4 +228,7 @@ static unsigned calc_usecs_unicast_packet(struct ath_softc *sc,
|
|||
}
|
||||
return tt;
|
||||
}
|
||||
|
||||
#endif /* _KERNEL */
|
||||
|
||||
#endif /* _DEV_ATH_RATE_SAMPLE_H */
|
||||
|
|
|
|||
Loading…
Reference in a new issue