diff options
author | Huazhong Tan <[email protected]> | 2018-05-19 16:53:20 +0100 |
---|---|---|
committer | David S. Miller <[email protected]> | 2018-05-20 18:53:59 -0400 |
commit | 42687543ca18c106ffd562b40199bd31ab3a347a (patch) | |
tree | ad359a9fd452173af30945fa701181f13b355020 /scripts/bpf_helpers_doc.py | |
parent | 3c7624d8fc0b893b644b945ab904c629ebc9611e (diff) |
net: hns3: Use enums instead of magic number in hclge_is_special_opcode
This patch does bit of a clean-up by using already defined enums for
certain values in function hclge_is_special_opcode(). Below enums from
have been used as replacements for magic values:
enum hclge_opcode_type{
<snip>
HCLGE_OPC_STATS_64_BIT = 0x0030,
HCLGE_OPC_STATS_32_BIT = 0x0031,
HCLGE_OPC_STATS_MAC = 0x0032,
<snip>
};
Signed-off-by: Huazhong Tan <[email protected]>
Signed-off-by: Peng Li <[email protected]>
Signed-off-by: Salil Mehta <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'scripts/bpf_helpers_doc.py')
0 files changed, 0 insertions, 0 deletions