octeontx2-pf: Vary completion queue event size
authorSubbaraya Sundeep <sbhatta@marvell.com>
Tue, 22 Feb 2022 18:39:13 +0000 (00:09 +0530)
committerJakub Kicinski <kuba@kernel.org>
Thu, 24 Feb 2022 04:33:06 +0000 (20:33 -0800)
commit68258596cbc9a6c1e1e243ef41321c4c0332df95
tree41bb5f7ec26554b283eaad878dd2628b0b128bbc
parent1241e329ce2e1f5b1039fd356b75867b29721ad2
octeontx2-pf: Vary completion queue event size

Completion Queue Entry(CQE) is a descriptor written
by hardware to notify software about the send and
receive completion status. The CQE can be of size
128 or 512 bytes. A 512 bytes CQE can hold more receive
fragments pointers compared to 128 bytes CQE. This
patch enables to modify CQE size using:
<ethtool -G cqe-size N>.

Signed-off-by: Subbaraya Sundeep <sbhatta@marvell.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/marvell/octeontx2/nic/otx2_common.c
drivers/net/ethernet/marvell/octeontx2/nic/otx2_common.h
drivers/net/ethernet/marvell/octeontx2/nic/otx2_ethtool.c
drivers/net/ethernet/marvell/octeontx2/nic/otx2_pf.c
drivers/net/ethernet/marvell/octeontx2/nic/otx2_vf.c