[PATCH] net/nfp: update incorrect MAC stats offset

Ferruh Yigit ferruh.yigit at amd.com
Mon Oct 16 15:25:31 CEST 2023


On 10/10/2023 7:09 AM, Chaoyong He wrote:
> From: James Hershaw <james.hershaw at corigine.com>
> 
> The pointer to the beginning of the MAC stats counters for port 1 are
> incorrectly set as the pointer to the beginning of the port 0 MAC stats
> counters, plus the size of the MAC stats counters multiplied by the port
> number.
> 
> This patch corrects this by setting the multiplier as the eth_table
> index of the port.
> 
> Fixes: f26e82397f6d ("net/nfp: implement xstats")
> Cc: stable at dpdk.org
> 
> Signed-off-by: James Hershaw <james.hershaw at corigine.com>
> Reviewed-by: Peng Zhang <peng.zhang at corigine.com>
> Reviewed-by: Chaoyong He <chaoyong.he at corigine.com>
> 
Applied to dpdk-next-net/main, thanks.


More information about the stable mailing list