hinic: add set_channels ethtool_ops support
authorLuo bin <luobin9@huawei.com>
Tue, 2 Jun 2020 00:40:32 +0000 (08:40 +0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 2 Jun 2020 22:10:24 +0000 (15:10 -0700)
commit2eed5a8b614bc0197b29da7b21a78d2c564a7098
tree312a4b1c5a7e2f7a939a59bb7ef859958f3fa539
parent9a5a908c38c7a8978f240d8de57ec65441cf554f
hinic: add set_channels ethtool_ops support

add support to change TX/RX queue number with "ethtool -L combined".

V5 -> V6: remove check for carrier in hinic_xmit_frame
V4 -> V5: change time zone in patch header
V3 -> V4: update date in patch header
V2 -> V3: remove check for zero channels->combined_count
V1 -> V2: update commit message("ethtool -L" to "ethtool -L combined")
V0 -> V1: remove check for channels->tx_count/rx_count/other_count

Signed-off-by: Luo bin <luobin9@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/huawei/hinic/hinic_ethtool.c
drivers/net/ethernet/huawei/hinic/hinic_main.c