Message ID | 1645109346-27600-1-git-send-email-sbhatta@marvell.com (mailing list archive) |
---|---|
Headers | show |
Series | Add ethtool support for completion event size | expand |
On Thu, 17 Feb 2022 20:19:04 +0530 Subbaraya Sundeep wrote: > After a packet is sent or received by NIC then NIC posts > a completion 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 patchset > introduces ce-size ethtool parameter to modify the size > of the completion event if NIC hardware has that capability. > A bigger completion event can have more receive buffer pointers > inturn NIC can transfer a bigger frame from wire as long as > hardware(MAC) receive frame size limit is not exceeded. > > Patch 1 adds support setting/getting ce-size via > ethtool -G and ethtool -g. > > Patch 2 includes octeontx2 driver changes to use > completion event size set from ethtool -G. Please add an explanation to ethtool-netlink.rst so people can understand what the semantics are. I think we may want to rename CE -> CQE, we used cqe for IRQ config. Does changing the CQE size also change the size of the completion ring? Or does it only control aggregation / writeback size?
Hi Jakub, On Thu, Feb 17, 2022 at 10:31 PM Jakub Kicinski <kuba@kernel.org> wrote: > > On Thu, 17 Feb 2022 20:19:04 +0530 Subbaraya Sundeep wrote: > > After a packet is sent or received by NIC then NIC posts > > a completion 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 patchset > > introduces ce-size ethtool parameter to modify the size > > of the completion event if NIC hardware has that capability. > > A bigger completion event can have more receive buffer pointers > > inturn NIC can transfer a bigger frame from wire as long as > > hardware(MAC) receive frame size limit is not exceeded. > > > > Patch 1 adds support setting/getting ce-size via > > ethtool -G and ethtool -g. > > > > Patch 2 includes octeontx2 driver changes to use > > completion event size set from ethtool -G. > > Please add an explanation to ethtool-netlink.rst so people can > understand what the semantics are. > Sure > I think we may want to rename CE -> CQE, we used cqe for IRQ config. > I used CE because not to be confused with CQE mode in coalesce. I will change to CQE > Does changing the CQE size also change the size of the completion ring? > Or does it only control aggregation / writeback size? In our case we change the completion ring size too. Thanks, Sundeep
On Fri, 18 Feb 2022 11:07:11 +0530 sundeep subbaraya wrote: > > Does changing the CQE size also change the size of the completion ring? > > Or does it only control aggregation / writeback size? > > In our case we change the completion ring size too. Okay, sounds good. Let's make sure the behavior is documented.