diff options
| author | Menglong Dong <[email protected]> | 2022-04-13 16:15:52 +0800 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2022-04-13 13:09:56 +0100 |
| commit | d6d3146ce532268ad0ffd8d92d2b7492898decf1 (patch) | |
| tree | 4ece9be47269f6bc07b86282f4a82e82c21703b2 /tools/perf/scripts/python/futex-contention.py | |
| parent | dba47afdc7d51b22dd9223a391d2b5ceb9bbe30c (diff) | |
skb: add some helpers for skb drop reasons
In order to simply the definition and assignment for
'enum skb_drop_reason', introduce some helpers.
SKB_DR() is used to define a variable of type 'enum skb_drop_reason'
with the 'SKB_DROP_REASON_NOT_SPECIFIED' initial value.
SKB_DR_SET() is used to set the value of the variable. Seems it is
a little useless? But it makes the code shorter.
SKB_DR_OR() is used to set the value of the variable if it is not set
yet, which means its value is SKB_DROP_REASON_NOT_SPECIFIED.
Signed-off-by: Menglong Dong <[email protected]>
Reviewed-by: Jiang Biao <[email protected]>
Reviewed-by: Hao Peng <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/futex-contention.py')
0 files changed, 0 insertions, 0 deletions