net/nfp: use a single struct eth_dev_ops
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest2 patches 1 replyIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | net/nfp: fix return value of nfp card init functiondrivers/ | +1 | 0 replies | |
| 2/2 | net/nfp: optimize ethdev structdrivers/ drivers/ drivers/ +1 more | +38 | 0 replies |
Reviews trailers per patch
All 2 patches have a Reviewed-by or Acked-by.
| Patch | Chaoyong He | Niklas Söderlund |
|---|---|---|
| 1/2 | R-b | R-b |
| 2/2 | R-b | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
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