]> git.baikalelectronics.ru Git - kernel.git/commit
octeontx2-af: Display all enabled PF VF rsrc_alloc entries.
authorRakesh Babu <rsaladi2@marvell.com>
Wed, 27 Oct 2021 17:32:33 +0000 (23:02 +0530)
committerDavid S. Miller <davem@davemloft.net>
Thu, 28 Oct 2021 13:47:37 +0000 (14:47 +0100)
commited7d6851b119a983863852820650ff4611598355
treef3093611326184a505ea78ec97e16a8b2c3b8cd4
parent0a721fb8a1abd655f589b9126f68f6ad285a0463
octeontx2-af: Display all enabled PF VF rsrc_alloc entries.

Currently, we are using a fixed buffer size of length 2048 to display
rsrc_alloc output. As a result a maximum of 2048 characters of
rsrc_alloc output is displayed, which may lead sometimes to display only
partial output. This patch fixes this dependency on max limit of buffer
size and displays all PF VF entries.

Each column of the debugfs entry "rsrc_alloc" uses a fixed width of 12
characters to print the list of LFs of each block for a PF/VF. If the
length of list of LFs of a block exceeds this fixed width then the list
gets truncated and displays only a part of the list. This patch fixes
this by using the maximum possible length of list of LFs among all
blocks of all PFs and VFs entries as the width size.

Fixes: 56530bc3f5ab ("octeontx2-af: Formatting debugfs entry rsrc_alloc.")
Fixes: edbff283a61d ("octeontx2-af: Dump current resource provisioning status")
Signed-off-by: Rakesh Babu <rsaladi2@marvell.com>
Signed-off-by: Nithin Dabilpuram <ndabilpuram@marvell.com>
Signed-off-by: Sunil Kovvuri Goutham <Sunil.Goutham@cavium.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/marvell/octeontx2/af/rvu_debugfs.c