net/sfc: add abstractions for the management EVQ identity
authorIgor Romanov <igor.romanov@oktetlabs.ru>
Fri, 2 Jul 2021 08:39:37 +0000 (11:39 +0300)
committerDavid Marchand <david.marchand@redhat.com>
Tue, 20 Jul 2021 10:20:31 +0000 (12:20 +0200)
Add a function returning management event queue software index.

Signed-off-by: Igor Romanov <igor.romanov@oktetlabs.ru>
Signed-off-by: Andrew Rybchenko <andrew.rybchenko@oktetlabs.ru>
Reviewed-by: Andy Moreton <amoreton@xilinx.com>
drivers/net/sfc/sfc_ev.c
drivers/net/sfc/sfc_ev.h

index ed28d51..ba44093 100644 (file)
@@ -983,7 +983,7 @@ sfc_ev_attach(struct sfc_adapter *sa)
                goto fail_kvarg_perf_profile;
        }
 
-       sa->mgmt_evq_index = 0;
+       sa->mgmt_evq_index = sfc_mgmt_evq_sw_index(sfc_sa2shared(sa));
        rte_spinlock_init(&sa->mgmt_evq_lock);
 
        rc = sfc_ev_qinit(sa, SFC_EVQ_TYPE_MGMT, 0, sa->evq_min_entries,
index 75b9dcd..3f3c4b5 100644 (file)
@@ -60,6 +60,12 @@ struct sfc_evq {
        unsigned int                    entries;
 };
 
+static inline sfc_sw_index_t
+sfc_mgmt_evq_sw_index(__rte_unused const struct sfc_adapter_shared *sas)
+{
+       return 0;
+}
+
 /*
  * Functions below define event queue to transmit/receive queue and vice
  * versa mapping.