From: "Su, Simei" <simei.su@intel.com>
To: "Zhang, Qi Z" <qi.z.zhang@intel.com>,
"Yang, Qiming" <qiming.yang@intel.com>
Cc: "dev@dpdk.org" <dev@dpdk.org>
Subject: RE: [PATCH] net/ice/base: support customized DDP package
Date: Tue, 6 Jun 2023 09:24:09 +0000 [thread overview]
Message-ID: <PH8PR11MB6609DF70FAAD5EF35F17D5169C52A@PH8PR11MB6609.namprd11.prod.outlook.com> (raw)
In-Reply-To: <20230605093801.2362170-1-simei.su@intel.com>
This patch is for customized DDP package based on DPDK 23.03.
Customer use a custom package and a custom kernel driver, so DPDK won't upstream it.
> -----Original Message-----
> From: Su, Simei <simei.su@intel.com>
> Sent: Monday, June 5, 2023 5:38 PM
> To: Zhang, Qi Z <qi.z.zhang@intel.com>; Yang, Qiming
> <qiming.yang@intel.com>
> Cc: dev@dpdk.org; Su, Simei <simei.su@intel.com>
> Subject: [PATCH] net/ice/base: support customized DDP package
>
> This patch adds support for custom DDP version 255.4.0.0.
>
> Signed-off-by: Simei Su <simei.su@intel.com>
> ---
> drivers/net/ice/base/ice_ddp.c | 41 ++++++++++++++++++++++++++++++----
> drivers/net/ice/base/ice_ddp.h | 1 +
> 2 files changed, 38 insertions(+), 4 deletions(-)
>
> diff --git a/drivers/net/ice/base/ice_ddp.c b/drivers/net/ice/base/ice_ddp.c
> index d1cae48047..7164a600b4 100644
> --- a/drivers/net/ice/base/ice_ddp.c
> +++ b/drivers/net/ice/base/ice_ddp.c
> @@ -1014,15 +1014,32 @@ void ice_free_seg(struct ice_hw *hw) }
>
> /**
> - * ice_chk_pkg_version - check package version for compatibility with driver
> + * ice_chk_pkg_vesrion_customize - check package version for GRE_EXTEND
> + support
> * @pkg_ver: pointer to a version structure to check
> *
> - * Check to make sure that the package about to be downloaded is compatible
> with
> - * the driver. To be compatible, the major and minor components of the
> package
> + * To be compatible, the major and minor components of the package
> * version must match our ICE_PKG_SUPP_VER_MAJ and
> ICE_PKG_SUPP_VER_MNR
> * definitions.
> */
> -static enum ice_ddp_state ice_chk_pkg_version(struct ice_pkg_ver *pkg_ver)
> +static enum ice_ddp_state
> +ice_chk_pkg_vesrion_customize(struct ice_pkg_ver *pkg_ver) {
> + if (pkg_ver->major == ICE_PKG_SUPP_VER_CUSTOM_MAJ)
> + return ICE_DDP_PKG_SUCCESS;
> + else
> + return ICE_DDP_PKG_ERR;
> +}
> +
> +/**
> + * ice_chk_pkg_vesrion_general - check package version for general
> +package
> + * @pkg_ver: pointer to a version structure to check
> + *
> + * To be compatible, the major and minor components of the package
> + * version must match our ICE_PKG_SUPP_VER_MAJ and
> ICE_PKG_SUPP_VER_MNR
> + * definitions.
> + */
> +static enum ice_ddp_state
> +ice_chk_pkg_vesrion_general(struct ice_pkg_ver *pkg_ver)
> {
> if (pkg_ver->major > ICE_PKG_SUPP_VER_MAJ ||
> (pkg_ver->major == ICE_PKG_SUPP_VER_MAJ && @@ -1036,6
> +1053,22 @@ static enum ice_ddp_state ice_chk_pkg_version(struct
> ice_pkg_ver *pkg_ver)
> return ICE_DDP_PKG_SUCCESS;
> }
>
> +/**
> + * ice_chk_pkg_version - check package version for compatibility with
> +driver
> + * @pkg_ver: pointer to a version structure to check
> + *
> + * Check to make sure that the package about to be downloaded is
> +compatible with
> + * the driver.
> + */
> +static enum ice_ddp_state ice_chk_pkg_version(struct ice_pkg_ver
> +*pkg_ver) {
> + if (!ice_chk_pkg_vesrion_general(pkg_ver) ||
> + !ice_chk_pkg_vesrion_customize(pkg_ver))
> + return ICE_DDP_PKG_SUCCESS;
> + else
> + return ICE_DDP_PKG_ERR;
> +}
> +
> /**
> * ice_chk_pkg_compat
> * @hw: pointer to the hardware structure diff --git
> a/drivers/net/ice/base/ice_ddp.h b/drivers/net/ice/base/ice_ddp.h index
> 53bbbe2a5a..b8d79e89ac 100644
> --- a/drivers/net/ice/base/ice_ddp.h
> +++ b/drivers/net/ice/base/ice_ddp.h
> @@ -15,6 +15,7 @@
> /* Package minimal version supported */
> #define ICE_PKG_SUPP_VER_MAJ 1
> #define ICE_PKG_SUPP_VER_MNR 3
> +#define ICE_PKG_SUPP_VER_CUSTOM_MAJ 255
>
> /* Package format version */
> #define ICE_PKG_FMT_VER_MAJ 1
> --
> 2.25.1
prev parent reply other threads:[~2023-06-06 9:24 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-06-05 9:38 Simei Su
2023-06-06 9:24 ` Su, Simei [this message]
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=PH8PR11MB6609DF70FAAD5EF35F17D5169C52A@PH8PR11MB6609.namprd11.prod.outlook.com \
--to=simei.su@intel.com \
--cc=dev@dpdk.org \
--cc=qi.z.zhang@intel.com \
--cc=qiming.yang@intel.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).