diff options
author | Konstantin Taranov <kotaranov@microsoft.com> | 2023-12-13 02:01:47 -0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2023-12-15 10:24:53 +0000 |
commit | 02fed6d92badf08e2ac2cd1755d14c45c8f3d0ca (patch) | |
tree | 7e5c4965db0528ada96d453dea0fba968045486f /include/net | |
parent | 10b7572d17871b027de1d17152f08a2dc9c3aef6 (diff) | |
download | linux-stable-02fed6d92badf08e2ac2cd1755d14c45c8f3d0ca.tar.gz linux-stable-02fed6d92badf08e2ac2cd1755d14c45c8f3d0ca.tar.bz2 linux-stable-02fed6d92badf08e2ac2cd1755d14c45c8f3d0ca.zip |
net: mana: add msix index sharing between EQs
This patch allows to assign and poll more than one EQ on the same
msix index.
It is achieved by introducing a list of attached EQs in each IRQ context.
It also removes the existing msix_index map that tried to ensure that there
is only one EQ at each msix_index.
This patch exports symbols for creating EQs from other MANA kernel modules.
Signed-off-by: Konstantin Taranov <kotaranov@microsoft.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net')
-rw-r--r-- | include/net/mana/gdma.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/include/net/mana/gdma.h b/include/net/mana/gdma.h index 88b6ef7ce1a6..76f2fd2645b7 100644 --- a/include/net/mana/gdma.h +++ b/include/net/mana/gdma.h @@ -293,6 +293,7 @@ struct gdma_queue { u32 head; u32 tail; + struct list_head entry; /* Extra fields specific to EQ/CQ. */ union { @@ -328,6 +329,7 @@ struct gdma_queue_spec { void *context; unsigned long log2_throttle_limit; + unsigned int msix_index; } eq; struct { @@ -344,7 +346,9 @@ struct gdma_queue_spec { struct gdma_irq_context { void (*handler)(void *arg); - void *arg; + /* Protect the eq_list */ + spinlock_t lock; + struct list_head eq_list; char name[MANA_IRQ_NAME_SZ]; }; @@ -355,7 +359,6 @@ struct gdma_context { unsigned int max_num_queues; unsigned int max_num_msix; unsigned int num_msix_usable; - struct gdma_resource msix_resource; struct gdma_irq_context *irq_contexts; /* L2 MTU */ |