OSDN Git Service

ethtool: add two coalesce attributes for CQE mode
authorYufeng Mo <moyufeng@huawei.com>
Fri, 20 Aug 2021 07:35:17 +0000 (15:35 +0800)
committerJakub Kicinski <kuba@kernel.org>
Tue, 24 Aug 2021 14:38:28 +0000 (07:38 -0700)
commit029ee6b14356b94120bedb852dcdaefc0a282cf1
treeef86287ef5e0feeea57ddcf852eb22d302eb79a5
parent95d1d2490c278ea316a4350f4c24818275fb989c
ethtool: add two coalesce attributes for CQE mode

Currently, there are many drivers who support CQE mode configuration,
some configure it as a fixed when initialized, some provide an
interface to change it by ethtool private flags. In order to make it
more generic, add two new 'ETHTOOL_A_COALESCE_USE_CQE_TX' and
'ETHTOOL_A_COALESCE_USE_CQE_RX' coalesce attributes, then these
parameters can be accessed by ethtool netlink coalesce uAPI.

Also add an new structure kernel_ethtool_coalesce, then the
new parameter can be added into this struct.

Signed-off-by: Yufeng Mo <moyufeng@huawei.com>
Signed-off-by: Huazhong Tan <tanhuazhong@huawei.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Documentation/networking/ethtool-netlink.rst
include/linux/ethtool.h
include/uapi/linux/ethtool_netlink.h
net/ethtool/coalesce.c
net/ethtool/netlink.h