DPDK patches and discussions
 help / color / mirror / Atom feed
From: "Niklas Söderlund" <niklas.soderlund@corigine.com>
To: dev@dpdk.org
Cc: oss-drivers@corigine.com, "Jin Liu" <jin.liu@corigine.com>,
	"Chaoyong He" <chaoyong.he@corigine.com>,
	"Niklas Söderlund" <niklas.soderlund@corigine.com>
Subject: [PATCH 0/2] net/nfp: use a single struct eth_dev_ops
Date: Thu, 22 Sep 2022 15:03:12 +0200	[thread overview]
Message-ID: <20220922130314.694790-1-niklas.soderlund@corigine.com> (raw)

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(-)

-- 
2.37.3


             reply	other threads:[~2022-09-22 13:04 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-09-22 13:03 Niklas Söderlund [this message]
2022-09-22 13:03 ` [PATCH 1/2] net/nfp: fix return value of nfp card init function Niklas Söderlund
2022-09-22 13:03 ` [PATCH 2/2] net/nfp: optimize ethdev struct Niklas Söderlund
2022-10-05 16:51 ` [PATCH 0/2] net/nfp: use a single struct eth_dev_ops Ferruh Yigit

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220922130314.694790-1-niklas.soderlund@corigine.com \
    --to=niklas.soderlund@corigine.com \
    --cc=chaoyong.he@corigine.com \
    --cc=dev@dpdk.org \
    --cc=jin.liu@corigine.com \
    --cc=oss-drivers@corigine.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).