Make it clear that corresponding functions should be called on device
configure and close operations. No functional change.
Fixes:
06bc197796e2 ("net/sfc: interrupts support sufficient for event queue init")
Cc: stable@dpdk.org
Signed-off-by: Andrew Rybchenko <arybchenko@solarflare.com>
if (rc != 0)
goto fail_check_conf;
- rc = sfc_intr_init(sa);
+ rc = sfc_intr_configure(sa);
if (rc != 0)
- goto fail_intr_init;
+ goto fail_intr_configure;
rc = sfc_ev_init(sa);
if (rc != 0)
sfc_ev_fini(sa);
fail_ev_init:
- sfc_intr_fini(sa);
+ sfc_intr_close(sa);
-fail_intr_init:
+fail_intr_configure:
fail_check_conf:
sa->state = SFC_ADAPTER_INITIALIZED;
sfc_log_init(sa, "failed %d", rc);
sfc_rx_fini(sa);
sfc_port_fini(sa);
sfc_ev_fini(sa);
- sfc_intr_fini(sa);
+ sfc_intr_close(sa);
sa->state = SFC_ADAPTER_INITIALIZED;
sfc_log_init(sa, "done");
int sfc_intr_attach(struct sfc_adapter *sa);
void sfc_intr_detach(struct sfc_adapter *sa);
-int sfc_intr_init(struct sfc_adapter *sa);
-void sfc_intr_fini(struct sfc_adapter *sa);
+int sfc_intr_configure(struct sfc_adapter *sa);
+void sfc_intr_close(struct sfc_adapter *sa);
int sfc_intr_start(struct sfc_adapter *sa);
void sfc_intr_stop(struct sfc_adapter *sa);
}
int
-sfc_intr_init(struct sfc_adapter *sa)
+sfc_intr_configure(struct sfc_adapter *sa)
{
struct sfc_intr *intr = &sa->intr;
}
void
-sfc_intr_fini(struct sfc_adapter *sa)
+sfc_intr_close(struct sfc_adapter *sa)
{
sfc_log_init(sa, "entry");