Skip to content

net/nfp: use a single struct eth_dev_ops

Niklas Söderlund dpdk-dev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2net/nfp: fix return value of nfp card init functiondrivers/net/nfp/nfp_ethdev.c+1 -10 replies
2/2net/nfp: optimize ethdev structdrivers/net/nfp/nfp_ethdev.c drivers/net/nfp/nfp_ethdev_vf.c drivers/net/nfp/nfp_rxtx.c +1 more+38 -720 replies

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchChaoyong HeNiklas Söderlund
1/2R-b R-b
2/2R-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/2] net/nfp: use a single struct eth_dev_ops

Hi all,

This small series aims to reduce code duplication by using a single shared struct eth_dev_ops for NFDk and NFD3.

Patch 1/2 is a small bug fix that suck in when adding support for NFP3800 where the error code is not correctly propagated.

Patch 2/2 is do the real work by merging the two existing structs and adding the small glue in the setup step that differenced them.

Jin Liu (2):
net/nfp: fix return value of nfp card init function net/nfp: optimize ethdev struct

 drivers/net/nfp/nfp_ethdev.c    | 38 ++++-----------------------------
 drivers/net/nfp/nfp_ethdev_vf.c | 36 +++----------------------------
 drivers/net/nfp/nfp_rxtx.c      | 33 ++++++++++++++++++++++++++--
 drivers/net/nfp/nfp_rxtx.h      |  5 +----
 4 files changed, 39 insertions(+), 73 deletions(-)
Signature · 1 line
2.37.3