Home
last modified time | relevance | path

Searched hist:"972 ce7e3801e790bb348bfe98be1ab65af15bacd" (Results 1 – 2 of 2) sorted by relevance

/openbmc/linux/drivers/net/ethernet/freescale/dpaa2/
H A Ddpaa2-ethtool.cdiff 972ce7e3801e790bb348bfe98be1ab65af15bacd Wed Dec 15 04:58:31 CST 2021 Ioana Ciornei <ioana.ciornei@nxp.com> dpaa2-eth: fix ethtool statistics

Unfortunately, with the blamed commit I also added a side effect in the
ethtool stats shown. Because I added two more fields in the per channel
structure without verifying if its size is used in any way, part of the
ethtool statistics were off by 2.
Fix this by not looking up the size of the structure but instead on a
fixed value kept in a macro.

Fixes: fc398bec0387 ("net: dpaa2: add adaptive interrupt coalescing")
Signed-off-by: Ioana Ciornei <ioana.ciornei@nxp.com>
Link: https://lore.kernel.org/r/20211215105831.290070-1-ioana.ciornei@nxp.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
H A Ddpaa2-eth.hdiff 972ce7e3801e790bb348bfe98be1ab65af15bacd Wed Dec 15 04:58:31 CST 2021 Ioana Ciornei <ioana.ciornei@nxp.com> dpaa2-eth: fix ethtool statistics

Unfortunately, with the blamed commit I also added a side effect in the
ethtool stats shown. Because I added two more fields in the per channel
structure without verifying if its size is used in any way, part of the
ethtool statistics were off by 2.
Fix this by not looking up the size of the structure but instead on a
fixed value kept in a macro.

Fixes: fc398bec0387 ("net: dpaa2: add adaptive interrupt coalescing")
Signed-off-by: Ioana Ciornei <ioana.ciornei@nxp.com>
Link: https://lore.kernel.org/r/20211215105831.290070-1-ioana.ciornei@nxp.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>