Skip to contentSkip to conversation

ice: Move support DDP code out of ice_flex_pipe.c

PATCH In review Sergey Temerkhanov 2 participants 2 messages Dec 20, 2022 – Jan 4, 2023

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH v4 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 separate file.

---
V2: Incorporate latest ice_flex_pipe.c changes
V3: Remove double documentation leftovers
V4: Reformat the code

---
 drivers/net/ethernet/intel/ice/Makefile       |    1 +
 drivers/net/ethernet/intel/ice/ice_ddp.c      | 1897 ++++++++++++++++
 drivers/net/ethernet/intel/ice/ice_ddp.h      |  445 ++++
 .../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, 2344 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 +1897 -0

1,897 lines not on this page · raw message

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

445 lines not on this page · raw message

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

651 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 · 6 lines
2.34.1

_______________________________________________
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.

Tested-by on v4 1/1
#1 lore raw
Quoted 22 lines

-----Original Message-----
From: Intel-wired-lan <[email protected]> On Behalf Of Sergey Temerkhanov
Sent: Tuesday, December 20, 2022 8:31 PM
To: [email protected]
Cc: Temerkhanov, Sergey <[email protected]>
Subject: [Intel-wired-lan] [net-next v4 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 separate file.

---
V2: Incorporate latest ice_flex_pipe.c changes
V3: Remove double documentation leftovers
V4: Reformat the code

Quoted 11 lines
---
 drivers/net/ethernet/intel/ice/Makefile       |    1 +
 drivers/net/ethernet/intel/ice/ice_ddp.c      | 1897 ++++++++++++++++
 drivers/net/ethernet/intel/ice/ice_ddp.h      |  445 ++++
 .../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, 2344 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