]> www.infradead.org Git - users/jedix/linux-maple.git/commit
net: dsa: mt7530: generalize read port stats logic
authorChristian Marangi <ansuelsmth@gmail.com>
Thu, 10 Apr 2025 16:30:09 +0000 (18:30 +0200)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 15 Apr 2025 10:10:20 +0000 (12:10 +0200)
commitee6a2db281a39a29087bc3aed81945f75c84fd26
tree433614b8621bc3b585aaa90c4eea1b55d8a53e2d
parent0f2be57686c7e61b65158a09f0036d1be1ed5175
net: dsa: mt7530: generalize read port stats logic

In preparation for migration to use of standard MIB API, generalize the
read port stats logic to a dedicated function.

This will permit to manually provide the offset and size of the MIB
counter to directly access specific counter.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
Link: https://patch.msgid.link/20250410163022.3695-2-ansuelsmth@gmail.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/dsa/mt7530.c