]> git.droids-corp.org - dpdk.git/blobdiff - drivers/net/sfc/sfc.c
net/sfc: fix unused variable in RSS-agnostic build
[dpdk.git] / drivers / net / sfc / sfc.c
index 6cecfc00abaedaca4e9ba8000b1bea6c5601a568..7849a1c289187f72bd5dd2571f6ab2b1a4254423 100644 (file)
@@ -510,10 +510,10 @@ static const uint8_t default_rss_key[SFC_RSS_KEY_SIZE] = {
 };
 #endif
 
+#if EFSYS_OPT_RX_SCALE
 static int
 sfc_set_rss_defaults(struct sfc_adapter *sa)
 {
-#if EFSYS_OPT_RX_SCALE
        int rc;
 
        rc = efx_intr_init(sa->nic, sa->intr.type, NULL);
@@ -556,10 +556,14 @@ fail_ev_init:
 
 fail_intr_init:
        return rc;
+}
 #else
+static int
+sfc_set_rss_defaults(__rte_unused struct sfc_adapter *sa)
+{
        return 0;
-#endif
 }
+#endif
 
 int
 sfc_attach(struct sfc_adapter *sa)