Provide TC_HANDLE(maj, min) macro to generate tc handles
This commit is contained in:
parent
350b15f9d1
commit
475dffa699
1 changed files with 6 additions and 0 deletions
|
@ -23,6 +23,12 @@
|
|||
extern "C" {
|
||||
#endif
|
||||
|
||||
/**
|
||||
* Compute tc handle based on major and minor parts
|
||||
* @ingroup tc
|
||||
*/
|
||||
#define TC_HANDLE(maj, min) (TC_H_MAJ((maj) << 16) | TC_H_MIN(min))
|
||||
|
||||
/**
|
||||
* Traffic control object
|
||||
* @ingroup tc
|
||||
|
|
Loading…
Add table
Reference in a new issue