summaryrefslogtreecommitdiffstats
path: root/src/plugins/avf/virtchnl.h
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/virtchnl.h
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/virtchnl.h')
-rw-r--r--src/plugins/avf/virtchnl.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/plugins/avf/virtchnl.h b/src/plugins/avf/virtchnl.h
index 1bdecbcdc8f..493384cb1d7 100644
--- a/src/plugins/avf/virtchnl.h
+++ b/src/plugins/avf/virtchnl.h
@@ -21,6 +21,16 @@
#define VIRTCHNL_VERSION_MAJOR 1
#define VIRTCHNL_VERSION_MINOR 1
+#define foreach_avf_promisc_flags \
+ _(0, UNICAST_PROMISC, "unicast") \
+ _(1, MULTICAST_PROMISC, "multicast")
+
+enum
+{
+#define _(a, b, c) FLAG_VF_ ##b = (1 << a),
+ foreach_avf_promisc_flags
+#undef _
+};
#define AVFINT_DYN_CTLN(x) (0x00003800 + (0x4 * x))
#define AVFINT_ICR0 0x00004800