]> git.droids-corp.org - dpdk.git/blobdiff - drivers/net/sfc/sfc.c
net/sfc: support link status change interrupt
[dpdk.git] / drivers / net / sfc / sfc.c
index 4757e399fae038774e95d4ec9e69df90c4fa111a..6b3dc48a42717b5fdf8cded5d83c87c3aeb39348 100644 (file)
@@ -116,7 +116,9 @@ sfc_check_conf(struct sfc_adapter *sa)
                rc = EINVAL;
        }
 
-       if (conf->intr_conf.lsc != 0) {
+       if ((conf->intr_conf.lsc != 0) &&
+           (sa->intr.type != EFX_INTR_LINE) &&
+           (sa->intr.type != EFX_INTR_MESSAGE)) {
                sfc_err(sa, "Link status change interrupt not supported");
                rc = EINVAL;
        }