summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason King <jason.brian.king@gmail.com>2021-04-04 11:35:47 -0500
committerJason King <jason.brian.king@gmail.com>2021-04-05 18:47:08 -0500
commit8054a0e4c809d98ffb44f17b9a8b932ca2c24b2c (patch)
treeda0134cc1a6535c8ac3f82dfa478f5077dda1c29
parentf980a4bbce3d867e2bb5e61c180593f416d181a5 (diff)
downloadillumos-joyent-8054a0e4c809d98ffb44f17b9a8b932ca2c24b2c.tar.gz
13695 Can't create VNICs over vioif after 13637
Reviewed by: Andy Fiddaman <andy@omnios.org> Reviewed by: Andrew Stormont <andyjstormont@gmail.com> Approved by: Robert Mustacchi <rm@fingolfin.org>
-rw-r--r--usr/src/uts/common/io/vioif/vioif.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/usr/src/uts/common/io/vioif/vioif.c b/usr/src/uts/common/io/vioif/vioif.c
index 822dbfa8b7..368af5381d 100644
--- a/usr/src/uts/common/io/vioif/vioif.c
+++ b/usr/src/uts/common/io/vioif/vioif.c
@@ -765,7 +765,17 @@ vioif_m_setpromisc(void *arg, boolean_t on)
uint8_t val = on ? 1 : 0;
if (!vif->vif_has_ctrlq_rx) {
- return (ENOTSUP);
+ /*
+ * While most hypervisors support the control queue, bhyve
+ * (or more specifically viona) on illumos currently does not.
+ *
+ * Until that support is added to viona, we pretend
+ * the request always succeeds to match the historic behavior
+ * of the illumos vioif driver. Once that support has been
+ * added to viona, we should do the correct thing and return
+ * ENOTSUP
+ */
+ return (0);
}
return (vioif_ctrlq_req(vif, VIRTIO_NET_CTRL_RX,