diff options
author | Steven Luong <sluong@cisco.com> | 2019-06-04 22:29:39 -0700 |
---|---|---|
committer | Damjan Marion <dmarion@me.com> | 2019-06-06 20:54:37 +0000 |
commit | 7d2420f97fae1a535428b756139a910fc9a120e3 (patch) | |
tree | 26e41bc7688705c9684f9bef280a3aa4cfa45473 /src/plugins/avf/device.c | |
parent | 6c36ca545bbd6f65937a4ec0de55614cf7223690 (diff) |
avf: enable promiscuous mode
In order to receive multicast packets from the VF interface, promiscuos
mode must be enable.
Type: fix
Fixes: b4ff07a
Change-Id: I549bc37a05895d3355f2832c200e9262c95a27b5
Signed-off-by: Steven Luong <sluong@cisco.com>
(cherry picked from commit 607a23a1753ee8dc7e9150f09bb376553ed62639)
Diffstat (limited to 'src/plugins/avf/device.c')
-rw-r--r-- | src/plugins/avf/device.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/avf/device.c b/src/plugins/avf/device.c index 7d01149a1a0..e4c49da8fa0 100644 --- a/src/plugins/avf/device.c +++ b/src/plugins/avf/device.c @@ -561,7 +561,7 @@ avf_config_promisc_mode (vlib_main_t * vm, avf_device_t * ad) virtchnl_promisc_info_t pi = { 0 }; pi.vsi_id = ad->vsi_id; - pi.flags = 1; + pi.flags = FLAG_VF_UNICAST_PROMISC | FLAG_VF_MULTICAST_PROMISC; return avf_send_to_pf (vm, ad, VIRTCHNL_OP_CONFIG_PROMISCUOUS_MODE, &pi, sizeof (virtchnl_promisc_info_t), 0, 0); } |