]> git.droids-corp.org - dpdk.git/blobdiff - drivers/net/qede/base/ecore_iov_api.h
examples/ipsec-secgw: fix session mempool initialisation
[dpdk.git] / drivers / net / qede / base / ecore_iov_api.h
index 54500181215e5cae88edd0b308f23eea9ec4c9b0..bd7c5703f6a0ce7209b3db81fe1d055af6d7d72d 100644 (file)
@@ -14,6 +14,9 @@
 #define ECORE_ETH_VF_NUM_VLAN_FILTERS 2
 #define ECORE_VF_ARRAY_LENGTH (3)
 
+#define ECORE_VF_ARRAY_GET_VFID(arr, vfid)     \
+       (((arr)[(vfid) / 64]) & (1ULL << ((vfid) % 64)))
+
 #define IS_VF(p_dev)           ((p_dev)->b_is_vf)
 #define IS_PF(p_dev)           (!((p_dev)->b_is_vf))
 #ifdef CONFIG_ECORE_SRIOV