Skip to content

net: fec: add xdp and page pool statistics

Shenwei Wang imx lkml netdev 4 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v5 Latest3 patches 4 repliesIn review
  2. v42 patches 7 repliesSuperseded
  3. v31 patch 11 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v21 patch10 repliesSuperseded

Changes in v5 from the cover letter

- split the patch into two: one for xdp statistics and one for page pool
- fix the bug to zero xdp_stats array
- use empty 'page_pool_stats' when CONFIG_PAGE_POOL_STATS is disabled.

Patches in v5 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3net: page_pool: export page_pool_stats definitioninclude/net/page_pool.h+2 -00 replies
2/3net: fec: add xdp statisticsdrivers/net/ethernet/freescale/fec.h drivers/net/ethernet/freescale/fec_main.c+83 -62 replies
3/3net: fec: add page pool statisticsdrivers/net/ethernet/freescale/fec_main.c+23 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v5 yet.

Read the v5 thread

Cover letter [PATCH v5 0/3] net: fec: add xdp and page pool statistics

Changes in V5:
- split the patch into two: one for xdp statistics and one for page pool
- fix the bug to zero xdp_stats array
- use empty 'page_pool_stats' when CONFIG_PAGE_POOL_STATS is disabled.

Changes in V4:
- Using u64 to record the XDP statistics
- Changing strncpy to strscpy
- Remove the "PAGE_POOL_STATS" select per Alexander's feedback
- Export the page_pool_stats definition in the page_pool.h

Changes in v3:
- change memcpy to strncpy to fix the warning reported by Paolo Abeni
- fix the compile errors on powerpc

Changes in v2:
- clean up and restructure the codes per Andrew Lunn's review comments
- clear the statistics when the adaptor is down

Shenwei Wang (3):
net: page_pool: export page_pool_stats definition
net: fec: add xdp statistics
net: fec: add page pool statistics

 drivers/net/ethernet/freescale/fec.h      | 15 ++++
 drivers/net/ethernet/freescale/fec_main.c | 96 +++++++++++++++++++++--
 include/net/page_pool.h                   |  2 +
 3 files changed, 107 insertions(+), 6 deletions(-)

--
2.34.1