Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Dave Ertman and committed by
Tony Nguyen
d9251a56 97b5631a

+21 -13
+1
drivers/net/ethernet/intel/ice/ice_idc_int.h
··· 5 5 #define _ICE_IDC_INT_H_ 6 6 7 7 #include <linux/net/intel/iidc_rdma.h> 8 + #include <linux/net/intel/iidc_rdma_ice.h> 8 9 9 10 struct ice_pf; 10 11
+1 -13
include/linux/net/intel/iidc_rdma.h
··· 1 1 /* SPDX-License-Identifier: GPL-2.0 */ 2 - /* Copyright (C) 2021, Intel Corporation. */ 2 + /* Copyright (C) 2021-2025, Intel Corporation. */ 3 3 4 4 #ifndef _IIDC_RDMA_H_ 5 5 #define _IIDC_RDMA_H_ ··· 70 70 DECLARE_BITMAP(type, IIDC_RDMA_EVENT_NBITS); 71 71 u32 reg; 72 72 }; 73 - 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 73 86 74 /* Structure representing auxiliary driver tailored information about the core 87 75 * PCI dev, each auxiliary driver using the IIDC interface will have an
+19
include/linux/net/intel/iidc_rdma_ice.h
··· 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_*/