summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/exported-sql-viewer.py
diff options
context:
space:
mode:
authorMenglong Dong <imagedong@tencent.com>2022-04-13 11:15:52 +0300
committerDavid S. Miller <davem@davemloft.net>2022-04-13 15:09:56 +0300
commitd6d3146ce532268ad0ffd8d92d2b7492898decf1 (patch)
tree4ece9be47269f6bc07b86282f4a82e82c21703b2 /tools/perf/scripts/python/exported-sql-viewer.py
parentdba47afdc7d51b22dd9223a391d2b5ceb9bbe30c (diff)
downloadlinux-d6d3146ce532268ad0ffd8d92d2b7492898decf1.tar.xz
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 <imagedong@tencent.com> Reviewed-by: Jiang Biao <benbjiang@tencent.com> Reviewed-by: Hao Peng <flyingpeng@tencent.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions