summaryrefslogtreecommitdiffstats
path: root/src/plugins/avf/device.c
diff options
context:
space:
mode:
authorSteven Luong <sluong@cisco.com>2019-06-04 22:29:39 -0700
committerDamjan Marion <dmarion@me.com>2019-06-05 12:48:36 +0000
commit607a23a1753ee8dc7e9150f09bb376553ed62639 (patch)
treeb62c280837941910e7514d439c6d56fd309e0853 /src/plugins/avf/device.c
parentdc42e0ad5ba039bb63b546dba9ba46b87ed109df (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>
Diffstat (limited to 'src/plugins/avf/device.c')
-rw-r--r--src/plugins/avf/device.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/avf/device.c b/src/plugins/avf/device.c
index 74b6ab4e4b0..8f75b828468 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);
}