Re: [dpdk-dev] [PATCH v2 1/6] eal/interrupts: implement get set APIs

2021-10-14 Thread David Marchand
On Tue, Oct 5, 2021 at 2:17 PM Harman Kalra wrote: > +struct rte_intr_handle *rte_intr_instance_alloc(uint32_t flags) > +{ > + struct rte_intr_handle *intr_handle; > + bool mem_allocator; Regardless of the currently defined flags, we want to have an ABI ready for future changes, so if

Re: [dpdk-dev] [PATCH v2 1/6] eal/interrupts: implement get set APIs

2021-10-13 Thread Dmitry Kozlyuk
2021-10-05 17:44 (UTC+0530), Harman Kalra: > [...] > +int rte_intr_instance_copy(struct rte_intr_handle *intr_handle, > +const struct rte_intr_handle *src) > +{ > + if (intr_handle == NULL) { > + RTE_LOG(ERR, EAL, "Interrupt instance unallocated\n"); > +

[dpdk-dev] [PATCH v2 1/6] eal/interrupts: implement get set APIs

2021-10-05 Thread Harman Kalra
Prototype/Implement get set APIs for interrupt handle fields. User wont be able to access any of the interrupt handle fields directly while should use these get/set APIs to access/manipulate them. Internal interrupt header i.e. rte_eal_interrupt.h is rearranged, as APIs defined are moved to rte_in