git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
net/sfc/base: import loopback control
[dpdk.git]
/
drivers
/
net
/
sfc
/
base
/
ef10_nic.c
diff --git
a/drivers/net/sfc/base/ef10_nic.c
b/drivers/net/sfc/base/ef10_nic.c
index
f28edd2
..
fec6a69
100644
(file)
--- a/
drivers/net/sfc/base/ef10_nic.c
+++ b/
drivers/net/sfc/base/ef10_nic.c
@@
-1377,10
+1377,19
@@
ef10_nic_probe(
goto fail5;
#endif
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);
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);
#if EFSYS_OPT_MAC_STATS
fail5:
EFSYS_PROBE(fail5);