Message ID | cover.1709053128.git.davthompson@nvidia.com |
---|---|
Headers | show |
Series | [SRU,J:linux-bluefield,v1,1/1] UBUNTU: SAUCE: mlxbf_gige: add support to display pause frame counters | expand |
Acked-by: Bartlomiej Zolnierkiewicz <bartlomiej.zolnierkiewicz@canonical.com> On Tue, Feb 27, 2024 at 6:12 PM David Thompson <davthompson@nvidia.com> wrote: > > BugLink: https://bugs.launchpad.net/bugs/2055086 > > SRU Justification: > > [Impact] > > The BlueField-2 and BlueField-3 silicon designs include a > provision for reporting pause frame counters, but the driver > (mlxbf_gige) does not have software support yet. > > [Fix] > > The fix is to update the mlxbf_gige driver to support the > "get_pause_stats()" callback, which enables display of > pause frame counters via "ethtool -I -a ooob_net0". > The support of this callback was added to Linux kernel 5.9.0 > > [Test Case] > > * Reboot BF platform, and configure oob_net0 interface > * Issue command "ethtool -I -a oob_net0" to display pause frame counters > * Send in multiple streams of traffic to oob_net0 interface, e.g. from > two or three simultaneous SCP operations > * Re-issue "ethtool -I -a oob_net0" and note difference in output > > [Regression Potential] > > The changed logic extends the ethtool support, so low risk for any problem. > > David Thompson (1): > UBUNTU: SAUCE: mlxbf_gige: add support to display pause frame counters > > .../mellanox/mlxbf_gige/mlxbf_gige_ethtool.c | 39 +++++++++++++++++++ > .../mellanox/mlxbf_gige/mlxbf_gige_regs.h | 22 +++++++++++ > 2 files changed, 61 insertions(+) >
On 24/02/27 12:10PM, David Thompson wrote: > BugLink: https://bugs.launchpad.net/bugs/2055086 > > SRU Justification: > > [Impact] > > The BlueField-2 and BlueField-3 silicon designs include a > provision for reporting pause frame counters, but the driver > (mlxbf_gige) does not have software support yet. > > [Fix] > > The fix is to update the mlxbf_gige driver to support the > "get_pause_stats()" callback, which enables display of > pause frame counters via "ethtool -I -a ooob_net0". > The support of this callback was added to Linux kernel 5.9.0 > > [Test Case] > > * Reboot BF platform, and configure oob_net0 interface > * Issue command "ethtool -I -a oob_net0" to display pause frame counters > * Send in multiple streams of traffic to oob_net0 interface, e.g. from > two or three simultaneous SCP operations > * Re-issue "ethtool -I -a oob_net0" and note difference in output > > [Regression Potential] > > The changed logic extends the ethtool support, so low risk for any problem. > > David Thompson (1): > UBUNTU: SAUCE: mlxbf_gige: add support to display pause frame counters > > .../mellanox/mlxbf_gige/mlxbf_gige_ethtool.c | 39 +++++++++++++++++++ > .../mellanox/mlxbf_gige/mlxbf_gige_regs.h | 22 +++++++++++ > 2 files changed, 61 insertions(+) Acked-by: Andrei Gherzan <andrei.gherzan@canonical.com>
Applied to jammy:linux-bluefield/master-next. Thanks. -- Best regards, Bartlomiej On Tue, Feb 27, 2024 at 6:12 PM David Thompson <davthompson@nvidia.com> wrote: > > BugLink: https://bugs.launchpad.net/bugs/2055086 > > SRU Justification: > > [Impact] > > The BlueField-2 and BlueField-3 silicon designs include a > provision for reporting pause frame counters, but the driver > (mlxbf_gige) does not have software support yet. > > [Fix] > > The fix is to update the mlxbf_gige driver to support the > "get_pause_stats()" callback, which enables display of > pause frame counters via "ethtool -I -a ooob_net0". > The support of this callback was added to Linux kernel 5.9.0 > > [Test Case] > > * Reboot BF platform, and configure oob_net0 interface > * Issue command "ethtool -I -a oob_net0" to display pause frame counters > * Send in multiple streams of traffic to oob_net0 interface, e.g. from > two or three simultaneous SCP operations > * Re-issue "ethtool -I -a oob_net0" and note difference in output > > [Regression Potential] > > The changed logic extends the ethtool support, so low risk for any problem. > > David Thompson (1): > UBUNTU: SAUCE: mlxbf_gige: add support to display pause frame counters > > .../mellanox/mlxbf_gige/mlxbf_gige_ethtool.c | 39 +++++++++++++++++++ > .../mellanox/mlxbf_gige/mlxbf_gige_regs.h | 22 +++++++++++ > 2 files changed, 61 insertions(+) >