]> www.infradead.org Git - users/willy/xarray.git/commit
net: hisilicon: hns3: use ethtool string helpers
authorRosen Penev <rosenp@gmail.com>
Mon, 4 Nov 2024 20:48:23 +0000 (12:48 -0800)
committerJakub Kicinski <kuba@kernel.org>
Thu, 7 Nov 2024 01:50:56 +0000 (17:50 -0800)
commit4ea3e221907aeee77c2f92953045121ddc9f5660
tree2385d6b55d3bf60168ba459359800a8b65da68b1
parent4069dcb7da9569cd2e7370bdf70a271acc5e812d
net: hisilicon: hns3: use ethtool string helpers

The latter is the preferred way to copy ethtool strings.

Avoids manually incrementing the pointer. Cleans up the code quite well.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
Reviewed-by: Jijie Shao <shaojijie@huawei.com>
Tested-by: Jijie Shao <shaojijie@huawei.com>
Link: https://patch.msgid.link/20241104204823.297277-1-rosenp@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/hisilicon/hns3/hnae3.h
drivers/net/ethernet/hisilicon/hns3/hns3_common/hclge_comm_tqp_stats.c
drivers/net/ethernet/hisilicon/hns3/hns3_common/hclge_comm_tqp_stats.h
drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c