+/*
+ * Get VF device for existing netvsc device
+ * Assumes vf_lock is held.
+ */
+static inline struct rte_eth_dev *
+hn_get_vf_dev(const struct hn_data *hv)
+{
+ uint16_t vf_port = hv->vf_port;
+
+ if (vf_port == HN_INVALID_PORT)
+ return NULL;
+ else
+ return &rte_eth_devices[vf_port];
+}
+
+int hn_vf_info_get(struct hn_data *hv,