Commit 4ebc5f25 authored by Piotr Raczynski's avatar Piotr Raczynski Committed by Tony Nguyen

ice: move devlink port code to a separate file

Keep devlink related code in a separate file. More devlink port code and
handlers will be added here for other port operations.

Remove no longer needed include of our devlink.h in ice_lib.c.
Reviewed-by: default avatarPrzemek Kitszel <przemyslaw.kitszel@intel.com>
Reviewed-by: default avatarWojciech Drewek <wojciech.drewek@intel.com>
Signed-off-by: default avatarPiotr Raczynski <piotr.raczynski@intel.com>
Signed-off-by: default avatarMichal Swiatkowski <michal.swiatkowski@linux.intel.com>
Reviewed-by: default avatarSimon Horman <horms@kernel.org>
Tested-by: Pucha Himasekhar Reddy <himasekharx.reddy.pucha@intel.com> (A Contingent worker at Intel)
Signed-off-by: default avatarTony Nguyen <anthony.l.nguyen@intel.com>
parent 0545cc86
...@@ -30,6 +30,7 @@ ice-y := ice_main.o \ ...@@ -30,6 +30,7 @@ ice-y := ice_main.o \
ice_flow.o \ ice_flow.o \
ice_idc.o \ ice_idc.o \
devlink/devlink.o \ devlink/devlink.o \
devlink/devlink_port.o \
ice_ddp.o \ ice_ddp.o \
ice_fw_update.o \ ice_fw_update.o \
ice_lag.o \ ice_lag.o \
......
This diff is collapsed.
/* SPDX-License-Identifier: GPL-2.0 */
/* Copyright (c) 2024, Intel Corporation. */
#ifndef _DEVLINK_PORT_H_
#define _DEVLINK_PORT_H_
int ice_devlink_create_pf_port(struct ice_pf *pf);
void ice_devlink_destroy_pf_port(struct ice_pf *pf);
int ice_devlink_create_vf_port(struct ice_vf *vf);
void ice_devlink_destroy_vf_port(struct ice_vf *vf);
#endif /* _DEVLINK_PORT_H_ */
...@@ -7,7 +7,6 @@ ...@@ -7,7 +7,6 @@
#include "ice_lib.h" #include "ice_lib.h"
#include "ice_fltr.h" #include "ice_fltr.h"
#include "ice_dcb_lib.h" #include "ice_dcb_lib.h"
#include "devlink/devlink.h"
#include "ice_vsi_vlan_ops.h" #include "ice_vsi_vlan_ops.h"
/** /**
......
...@@ -14,6 +14,7 @@ ...@@ -14,6 +14,7 @@
#include "ice_dcb_lib.h" #include "ice_dcb_lib.h"
#include "ice_dcb_nl.h" #include "ice_dcb_nl.h"
#include "devlink/devlink.h" #include "devlink/devlink.h"
#include "devlink/devlink_port.h"
#include "ice_hwmon.h" #include "ice_hwmon.h"
/* Including ice_trace.h with CREATE_TRACE_POINTS defined will generate the /* Including ice_trace.h with CREATE_TRACE_POINTS defined will generate the
* ice tracepoint functions. This must be done exactly once across the * ice tracepoint functions. This must be done exactly once across the
......
...@@ -4,6 +4,7 @@ ...@@ -4,6 +4,7 @@
#include "ice.h" #include "ice.h"
#include "ice_eswitch.h" #include "ice_eswitch.h"
#include "devlink/devlink.h" #include "devlink/devlink.h"
#include "devlink/devlink_port.h"
#include "ice_sriov.h" #include "ice_sriov.h"
#include "ice_tc_lib.h" #include "ice_tc_lib.h"
#include "ice_dcb_lib.h" #include "ice_dcb_lib.h"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment