summaryrefslogtreecommitdiff
path: root/fs/pstore/internal.h
diff options
context:
space:
mode:
authorLorenzo Bianconi <lorenzo@kernel.org>2023-11-21 20:08:44 +0100
committerPaolo Abeni <pabeni@redhat.com>2023-11-23 13:23:59 +0100
commit818ad9cc90d4a7165caaee7e32800c50d0564ec3 (patch)
tree09d50cc81004ea3f489601ddaf44ff5b5c5303e4 /fs/pstore/internal.h
parent4aa1d8f89b10cdc25a231dabf808d8935e0b137a (diff)
net: veth: fix ethtool stats reporting
Fix a possible misalignment between page_pool stats and tx xdp_stats reported in veth_get_ethtool_stats routine. The issue can be reproduced configuring the veth pair with the following tx/rx queues: $ip link add v0 numtxqueues 2 numrxqueues 4 type veth peer name v1 \ numtxqueues 1 numrxqueues 1 and loading a simple XDP program on v0 that just returns XDP_PASS. In this case on v0 the page_pool stats overwrites tx xdp_stats for queue 1. Fix the issue incrementing pp_idx of dev->real_num_tx_queues * VETH_TQ_STATS_LEN since we always report xdp_stats for all tx queues in ethtool. Fixes: 4fc418053ec7 ("net: veth: add page_pool stats") Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org> Link: https://lore.kernel.org/r/c5b5d0485016836448453f12846c7c4ab75b094a.1700593593.git.lorenzo@kernel.org Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'fs/pstore/internal.h')
0 files changed, 0 insertions, 0 deletions