]> git.droids-corp.org - dpdk.git/blobdiff - drivers/net/sfc/base/ef10_nic.c
net/sfc/base: import loopback control
[dpdk.git] / drivers / net / sfc / base / ef10_nic.c
index f28edd2e636e5490fcda0642885f2d7284640c5f..fec6a69e372627a6d0a7a0d4ace902a1a81d6cb4 100644 (file)
@@ -1377,10 +1377,19 @@ ef10_nic_probe(
                goto fail5;
 #endif
 
+#if EFSYS_OPT_LOOPBACK
+       if ((rc = efx_mcdi_get_loopback_modes(enp)) != 0)
+               goto fail6;
+#endif
+
        encp->enc_features = enp->en_features;
 
        return (0);
 
+#if EFSYS_OPT_LOOPBACK
+fail6:
+       EFSYS_PROBE(fail6);
+#endif
 #if EFSYS_OPT_MAC_STATS
 fail5:
        EFSYS_PROBE(fail5);