diff options
author | Damjan Marion <damarion@cisco.com> | 2017-06-21 14:29:44 +0200 |
---|---|---|
committer | Ole Trøan <otroan@employees.org> | 2017-06-21 20:48:08 +0000 |
commit | 4e53a0d0f01c8c81842d1f50fb5cf0d26e0c1713 (patch) | |
tree | d9ea3553be8d0a2a6c75d2cc39db0cd77e159830 /src/plugins/memif/memif.c | |
parent | c817daa74ae52cd0bb64b14050b52bc6b3308698 (diff) |
Introduce default rx mode for device drivers
If interface is down and queues are not configured then we are not able
to change rx-mode. This change introducess default mode which is stored
per interface and applied if driver wants.
Change-Id: I70149c21c1530eafc148d5e4aa03fbee53dec62f
Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'src/plugins/memif/memif.c')
-rw-r--r-- | src/plugins/memif/memif.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/memif/memif.c b/src/plugins/memif/memif.c index ec67023b673..fffb94c952b 100644 --- a/src/plugins/memif/memif.c +++ b/src/plugins/memif/memif.c @@ -222,7 +222,7 @@ memif_connect (memif_if_t * mif) } vnet_hw_interface_assign_rx_thread (vnm, mif->hw_if_index, i, ~0); rv = vnet_hw_interface_set_rx_mode (vnm, mif->hw_if_index, i, - VNET_HW_INTERFACE_RX_MODE_INTERRUPT); + VNET_HW_INTERFACE_RX_MODE_DEFAULT); if (rv) clib_warning ("Warning: unable to set rx mode for interface %d queue %d: " |