aboutsummaryrefslogtreecommitdiffstats
path: root/ethtool.c
diff options
context:
space:
mode:
authorSubbaraya Sundeep <sbhatta@marvell.com>2022-05-26 16:48:45 +0530
committerMichal Kubecek <mkubecek@suse.cz>2022-06-13 23:55:26 +0200
commit6b320b804fb96363f1412057c908f0ec1c97f4ef (patch)
treef3d56e0f2dd96d437d6a6ca73047aff7a2fed6df /ethtool.c
parent41fddc0eb01fcd8c5a47b415d3faecd714652513 (diff)
downloadethtool-6b320b804fb96363f1412057c908f0ec1c97f4ef.tar.gz
rings: add support to set/get cqe size
After a packet is sent or received by NIC then NIC posts a completion queue event which consists of transmission status (like send success or error) and received status(like pointers to packet fragments). These completion events may also use a ring similar to rx and tx rings. This patch introduces cqe-size ethtool parameter to modify the size of the completion queue event if NIC hardware has that capability. With this patch in place, cqe size can be set via "ethtool -G <dev> cqe-size xxx" and get via "ethtool -g <dev>". Signed-off-by: Subbaraya Sundeep <sbhatta@marvell.com>
Diffstat (limited to 'ethtool.c')
-rw-r--r--ethtool.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ethtool.c b/ethtool.c
index 2772530..209e22c 100644
--- a/ethtool.c
+++ b/ethtool.c
@@ -5733,6 +5733,7 @@ static const struct option args[] = {
" [ rx-jumbo N ]\n"
" [ tx N ]\n"
" [ rx-buf-len N]\n"
+ " [ cqe-size N]\n"
},
{
.opts = "-k|--show-features|--show-offload",