Skip to content

Commit d9251a5

Browse files
dmertmananguy11
authored andcommitted
iidc/ice/irdma: Break iidc.h into two headers
In preparation of supporting more than a single core PCI driver for RDMA, break the iidc_rdma.h header file into two more focused headers. Only the elements universal to all Intel drivers will remain in the generic iidc_rdma.h header. Move the ice specific information to an ice specific header file named iidc_rdma_ice.h. Reviewed-by: Przemek Kitszel <przemyslaw.kitszel@intel.com> Signed-off-by: Dave Ertman <david.m.ertman@intel.com> Signed-off-by: Tatyana Nikolova <tatyana.e.nikolova@intel.com> Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
1 parent 97b5631 commit d9251a5

File tree

3 files changed

+21
-13
lines changed

3 files changed

+21
-13
lines changed

drivers/net/ethernet/intel/ice/ice_idc_int.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
#define _ICE_IDC_INT_H_
66

77
#include <linux/net/intel/iidc_rdma.h>
8+
#include <linux/net/intel/iidc_rdma_ice.h>
89

910
struct ice_pf;
1011

include/linux/net/intel/iidc_rdma.h

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/* SPDX-License-Identifier: GPL-2.0 */
2-
/* Copyright (C) 2021, Intel Corporation. */
2+
/* Copyright (C) 2021-2025, Intel Corporation. */
33

44
#ifndef _IIDC_RDMA_H_
55
#define _IIDC_RDMA_H_
@@ -71,18 +71,6 @@ struct iidc_rdma_event {
7171
u32 reg;
7272
};
7373

74-
struct ice_pf;
75-
76-
int ice_add_rdma_qset(struct ice_pf *pf, struct iidc_rdma_qset_params *qset);
77-
int ice_del_rdma_qset(struct ice_pf *pf, struct iidc_rdma_qset_params *qset);
78-
int ice_rdma_request_reset(struct ice_pf *pf,
79-
enum iidc_rdma_reset_type reset_type);
80-
int ice_rdma_update_vsi_filter(struct ice_pf *pf, u16 vsi_id, bool enable);
81-
void ice_get_qos_params(struct ice_pf *pf,
82-
struct iidc_rdma_qos_params *qos);
83-
int ice_alloc_rdma_qvector(struct ice_pf *pf, struct msix_entry *entry);
84-
void ice_free_rdma_qvector(struct ice_pf *pf, struct msix_entry *entry);
85-
8674
/* Structure representing auxiliary driver tailored information about the core
8775
* PCI dev, each auxiliary driver using the IIDC interface will have an
8876
* instance of this struct dedicated to it.
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
/* SPDX-License-Identifier: GPL-2.0 */
2+
/* Copyright (C) 2021-2025, Intel Corporation. */
3+
4+
#ifndef _IIDC_RDMA_ICE_H_
5+
#define _IIDC_RDMA_ICE_H_
6+
7+
struct ice_pf;
8+
9+
int ice_add_rdma_qset(struct ice_pf *pf, struct iidc_rdma_qset_params *qset);
10+
int ice_del_rdma_qset(struct ice_pf *pf, struct iidc_rdma_qset_params *qset);
11+
int ice_rdma_request_reset(struct ice_pf *pf,
12+
enum iidc_rdma_reset_type reset_type);
13+
int ice_rdma_update_vsi_filter(struct ice_pf *pf, u16 vsi_id, bool enable);
14+
void ice_get_qos_params(struct ice_pf *pf,
15+
struct iidc_rdma_qos_params *qos);
16+
int ice_alloc_rdma_qvector(struct ice_pf *pf, struct msix_entry *entry);
17+
void ice_free_rdma_qvector(struct ice_pf *pf, struct msix_entry *entry);
18+
19+
#endif /* _IIDC_RDMA_ICE_H_*/

0 commit comments

Comments
 (0)