Skip to contentSkip to conversation

ice: Move support DDP code out of ice_flex_pipe.c

PATCH Superseded Sergey Temerkhanov 3 participants 4 messages Dec 19, 2022

Subsystems (2)

v2 of 4 Superseded Latest is v4 →

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 ice: Move support DDP code out of ice_flex_pipe.c

Currently, ice_flex_pipe.c includes the DDP loading functions and has grown large. Although flexible processing support code is related to DDP loading, these parts are distinct. Move the DDP loading functionality from ice_flex_pipe.c to a seperate file.

V2: Incorporate latest changes

---
 drivers/net/ethernet/intel/ice/Makefile       |    1 +
 drivers/net/ethernet/intel/ice/ice_ddp.c      | 1919 +++++++++++++++++
 drivers/net/ethernet/intel/ice/ice_ddp.h      |  449 ++++
 .../net/ethernet/intel/ice/ice_flex_pipe.c    | 1904 ----------------
 .../net/ethernet/intel/ice/ice_flex_pipe.h    |   69 -
 .../net/ethernet/intel/ice/ice_flex_type.h    |  328 +--
 6 files changed, 2370 insertions(+), 2300 deletions(-)
 create mode 100644 drivers/net/ethernet/intel/ice/ice_ddp.c
 create mode 100644 drivers/net/ethernet/intel/ice/ice_ddp.h
drivers/net/ethernet/intel/ice/Makefile +1 -0
index 060d8f2b4953..f269952d207d 100644
@@ -28,6 +28,7 @@ ice-y := ice_main.o	\
 	 ice_flow.o	\
 	 ice_idc.o	\
 	 ice_devlink.o	\
+	 ice_ddp.o	\
 	 ice_fw_update.o \
 	 ice_lag.o	\
 	 ice_ethtool.o  \
drivers/net/ethernet/intel/ice/ice_ddp.c new file +1919 -0

1,919 lines not on this page · raw message

drivers/net/ethernet/intel/ice/ice_ddp.h new file +449 -0

449 lines not on this page · raw message

drivers/net/ethernet/intel/ice/ice_flex_pipe.c +0 -1904

625 lines not on this page · raw message

drivers/net/ethernet/intel/ice/ice_flex_pipe.h +0 -69

69 lines not on this page · raw message

drivers/net/ethernet/intel/ice/ice_flex_type.h +1 -327

328 lines not on this page · raw message

The rest of this diff is not shown. View the raw message.

Signature · 14 lines
2.34.1

---------------------------------------------------------------------
Intel Technology Poland sp. z o.o.
ul. Slowackiego 173 | 80-298 Gdansk | Sad Rejonowy Gdansk Polnoc | VII Wydzial Gospodarczy Krajowego Rejestru Sadowego - KRS 101882 | NIP 957-07-52-316 | Kapital zakladowy 200.000 PLN.
Spolka oswiadcza, ze posiada status duzego przedsiebiorcy w rozumieniu ustawy z dnia 8 marca 2013 r. o przeciwdzialaniu nadmiernym opoznieniom w transakcjach handlowych.

Ta wiadomosc wraz z zalacznikami jest przeznaczona dla okreslonego adresata i moze zawierac informacje poufne. W razie przypadkowego otrzymania tej wiadomosci, prosimy o powiadomienie nadawcy oraz trwale jej usuniecie; jakiekolwiek przegladanie lub rozpowszechnianie jest zabronione.
This e-mail and any attachments may contain confidential material for the sole use of the intended recipient(s). If you are not the intended recipient, please contact the sender and delete all copies; any review or distribution by others is strictly prohibited.

_______________________________________________
Intel-wired-lan mailing list
[email protected]
https://lists.osuosl.org/mailman/listinfo/intel-wired-lan

Part of the diff is not shown here. View the raw message.

#1 lore raw
Quoted 7 lines · Sergey Temerkhanov

Currently, ice_flex_pipe.c includes the DDP loading functions and has grown large. Although flexible processing support code is related to DDP loading, these parts are distinct. Move the DDP loading functionality from ice_flex_pipe.c to a seperate file.

V2: Incorporate latest changes

Hi Sergey,

two things: versioning for single patches should go below --- line, second thing is that this description tells us nothing. What are the 'latest changes' ? :) I probably have to dig review on v1 to get the idea.

Quoted 13 lines
---
 drivers/net/ethernet/intel/ice/Makefile       |    1 +
 drivers/net/ethernet/intel/ice/ice_ddp.c      | 1919 +++++++++++++++++
 drivers/net/ethernet/intel/ice/ice_ddp.h      |  449 ++++
 .../net/ethernet/intel/ice/ice_flex_pipe.c    | 1904 ----------------
 .../net/ethernet/intel/ice/ice_flex_pipe.h    |   69 -
 .../net/ethernet/intel/ice/ice_flex_type.h    |  328 +--
 6 files changed, 2370 insertions(+), 2300 deletions(-)
 create mode 100644 drivers/net/ethernet/intel/ice/ice_ddp.c
 create mode 100644 drivers/net/ethernet/intel/ice/ice_ddp.h

_______________________________________________
Intel-wired-lan mailing list
[email protected]
https://lists.osuosl.org/mailman/listinfo/intel-wired-lan

#2 lore raw
Quoted 15 lines

-----Original Message-----
From: Fijalkowski, Maciej <[email protected]>
Sent: Monday, December 19, 2022 5:49 PM
To: Temerkhanov, Sergey <[email protected]>
Cc: [email protected]
Subject: Re: [Intel-wired-lan] [net-next v2 1/1] ice: Move support DDP code out of ice_flex_pipe.c

Quoted 6 lines · Sergey Temerkhanov

Currently, ice_flex_pipe.c includes the DDP loading functions and has grown large. Although flexible processing support code is related to DDP loading, these parts are distinct.
Move the DDP loading functionality from ice_flex_pipe.c to a seperate file.

Quoted 7 lines
Quoted 1 line

V2: Incorporate latest changes

Hi Sergey,

two things: versioning for single patches should go below --- line, second thing is that this description tells us nothing. What are the 'latest changes' ? :) I probably have to dig review on v1 to get the idea.

That essentially means the latest changes from ice_flex_pipe.c, this patch itself does not change any functionality

Quoted 14 lines
Quoted 14 lines
---
 drivers/net/ethernet/intel/ice/Makefile       |    1 +
 drivers/net/ethernet/intel/ice/ice_ddp.c      | 1919 +++++++++++++++++
 drivers/net/ethernet/intel/ice/ice_ddp.h      |  449 ++++
 .../net/ethernet/intel/ice/ice_flex_pipe.c    | 1904 ----------------
 .../net/ethernet/intel/ice/ice_flex_pipe.h    |   69 -
 .../net/ethernet/intel/ice/ice_flex_type.h    |  328 +--
 6 files changed, 2370 insertions(+), 2300 deletions(-)  create mode
100644 drivers/net/ethernet/intel/ice/ice_ddp.c
 create mode 100644 drivers/net/ethernet/intel/ice/ice_ddp.h

---------------------------------------------------------------------
Intel Technology Poland sp. z o.o.
ul. Slowackiego 173 | 80-298 Gdansk | Sad Rejonowy Gdansk Polnoc | VII Wydzial Gospodarczy Krajowego Rejestru Sadowego - KRS 101882 | NIP 957-07-52-316 | Kapital zakladowy 200.000 PLN. Spolka oswiadcza, ze posiada status duzego przedsiebiorcy w rozumieniu ustawy z dnia 8 marca 2013 r. o przeciwdzialaniu nadmiernym opoznieniom w transakcjach handlowych.

Ta wiadomosc wraz z zalacznikami jest przeznaczona dla okreslonego adresata i moze zawierac informacje poufne. W razie przypadkowego otrzymania tej wiadomosci, prosimy o powiadomienie nadawcy oraz trwale jej usuniecie; jakiekolwiek przegladanie lub rozpowszechnianie jest zabronione. This e-mail and any attachments may contain confidential material for the sole use of the intended recipient(s). If you are not the intended recipient, please contact the sender and delete all copies; any review or distribution by others is strictly prohibited.

_______________________________________________
Intel-wired-lan mailing list
[email protected]
https://lists.osuosl.org/mailman/listinfo/intel-wired-lan

#3 lore raw
In reply to Sergey Temerkhanov
Quoted 19 lines

-----Original Message-----
From: Intel-wired-lan <[email protected]> On Behalf Of Sergey Temerkhanov
Sent: Saturday, December 17, 2022 2:10 PM
To: [email protected]
Cc: Temerkhanov, Sergey <[email protected]>
Subject: [Intel-wired-lan] [net-next v2 1/1] ice: Move support DDP code out of ice_flex_pipe.c

Currently, ice_flex_pipe.c includes the DDP loading functions and has grown large. Although flexible processing support code is related to DDP loading, these parts are distinct. Move the DDP loading functionality from ice_flex_pipe.c to a seperate file.

V2: Incorporate latest changes

---

[...]

Quoted 17 lines
drivers/net/ethernet/intel/ice/ice_ddp.c new file +6 -0
+
+/**
+ * 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. 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.
+ */
+/**
+ * ice_chk_pkg_version - check package version for compatibility with driver
+ * @pkg_ver: pointer to a version structure to check
+ *

Quoted 8 lines

+ * 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
+ * version must match our ICE_PKG_SUPP_VER_MAJ and ICE_PKG_SUPP_VER_MNR
+ * definitions.
+ */

There's double kdoc here. I assume that's why this warning is popping up:

warning: Incorrect use of kernel-doc format: * ice_chk_pkg_version - check package version for compatibility with driver

Quoted 15 lines

+static enum ice_ddp_state ice_chk_pkg_version(struct ice_pkg_ver *pkg_ver)

drivers/net/ethernet/intel/ice/ice_ddp.c new file +13 -0
+{
+	if (pkg_ver->major > ICE_PKG_SUPP_VER_MAJ ||
+	    (pkg_ver->major == ICE_PKG_SUPP_VER_MAJ &&
+	     pkg_ver->minor > ICE_PKG_SUPP_VER_MNR))
+		return ICE_DDP_PKG_FILE_VERSION_TOO_HIGH;
+	else if (pkg_ver->major < ICE_PKG_SUPP_VER_MAJ ||
+		 (pkg_ver->major == ICE_PKG_SUPP_VER_MAJ &&
+		  pkg_ver->minor < ICE_PKG_SUPP_VER_MNR))
+		return ICE_DDP_PKG_FILE_VERSION_TOO_LOW;
+
+	return ICE_DDP_PKG_SUCCESS;
+}
+

[...]

Quoted 9 lines

---------------------------------------------------------------------
Intel Technology Poland sp. z o.o.
ul. Slowackiego 173 | 80-298 Gdansk | Sad Rejonowy Gdansk Polnoc | VII Wydzial Gospodarczy Krajowego Rejestru Sadowego - KRS 101882 | NIP 957- 07-52-316 | Kapital zakladowy 200.000 PLN.
Spolka oswiadcza, ze posiada status duzego przedsiebiorcy w rozumieniu ustawy z dnia 8 marca 2013 r. o przeciwdzialaniu nadmiernym opoznieniom w transakcjach handlowych.

Quoted 9 lines

Ta wiadomosc wraz z zalacznikami jest przeznaczona dla okreslonego adresata i moze zawierac informacje poufne. W razie przypadkowego otrzymania tej wiadomosci, prosimy o powiadomienie nadawcy oraz trwale jej usuniecie; jakiekolwiek przegladanie lub rozpowszechnianie jest zabronione.
This e-mail and any attachments may contain confidential material for the sole use of the intended recipient(s). If you are not the intended recipient, please contact the sender and delete all copies; any review or distribution by others is strictly prohibited.

This footer still needs to be removed.

Quoted 4 lines

_______________________________________________
Intel-wired-lan mailing list
[email protected]
https://lists.osuosl.org/mailman/listinfo/intel-wired-lan

_______________________________________________
Intel-wired-lan mailing list
[email protected]
https://lists.osuosl.org/mailman/listinfo/intel-wired-lan