aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/macvlan.c
diff options
context:
space:
mode:
authorZhongzhu Liu <liuzhongzhu@huawei.com>2019-08-28 22:23:05 +0800
committerDavid S. Miller <davem@davemloft.net>2019-08-29 16:57:43 -0700
commita582b78dfc33d211ecaadda4cb5765b382d9d682 (patch)
tree5b5bab3a47e0da9cc5edb0f17702053f5afb44d1 /drivers/net/macvlan.c
parentdpaa2-eth: Add pause frame support (diff)
downloadlinux-dev-a582b78dfc33d211ecaadda4cb5765b382d9d682.tar.xz
linux-dev-a582b78dfc33d211ecaadda4cb5765b382d9d682.zip
net: hns3: code optimization for debugfs related to "dump reg"
For making the code more readable, this patch uses a array to keep the information about the dumping register, and then uses it to parse the parameter cmd_buf which passing into hclge_dbg_dump_reg_cmd(). Also replaces parameter "base" of kstrtouint with 0 in the hclge_dbg_dump_reg_common(), which makes it more flexible. Signed-off-by: Zhongzhu Liu <liuzhongzhu@huawei.com> Signed-off-by: Guangbin Huang <huangguangbin2@huawei.com> Signed-off-by: Huazhong Tan <tanhuazhong@huawei.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/macvlan.c')
0 files changed, 0 insertions, 0 deletions