get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

GET /api/patches/15880/?format=api
HTTP 200 OK
Allow: GET, PUT, PATCH, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "id": 15880,
    "url": "https://patches.dpdk.org/api/patches/15880/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/1474035333-7496-2-git-send-email-bernard.iremonger@intel.com/",
    "project": {
        "id": 1,
        "url": "https://patches.dpdk.org/api/projects/1/?format=api",
        "name": "DPDK",
        "link_name": "dpdk",
        "list_id": "dev.dpdk.org",
        "list_email": "dev@dpdk.org",
        "web_url": "http://core.dpdk.org",
        "scm_url": "git://dpdk.org/dpdk",
        "webscm_url": "http://git.dpdk.org/dpdk",
        "list_archive_url": "https://inbox.dpdk.org/dev",
        "list_archive_url_format": "https://inbox.dpdk.org/dev/{}",
        "commit_url_format": ""
    },
    "msgid": "<1474035333-7496-2-git-send-email-bernard.iremonger@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/1474035333-7496-2-git-send-email-bernard.iremonger@intel.com",
    "date": "2016-09-16T14:15:31",
    "name": "[dpdk-dev,v3,1/3] librte_ether: add API's for VF management",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "a4967c6f755dad351bd3580f686082e850f8c97b",
    "submitter": {
        "id": 91,
        "url": "https://patches.dpdk.org/api/people/91/?format=api",
        "name": "Iremonger, Bernard",
        "email": "bernard.iremonger@intel.com"
    },
    "delegate": {
        "id": 10,
        "url": "https://patches.dpdk.org/api/users/10/?format=api",
        "username": "bruce",
        "first_name": "Bruce",
        "last_name": "Richardson",
        "email": "bruce.richardson@intel.com"
    },
    "mbox": "https://patches.dpdk.org/project/dpdk/patch/1474035333-7496-2-git-send-email-bernard.iremonger@intel.com/mbox/",
    "series": [],
    "comments": "https://patches.dpdk.org/api/patches/15880/comments/",
    "check": "pending",
    "checks": "https://patches.dpdk.org/api/patches/15880/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<dev-bounces@dpdk.org>",
        "X-Original-To": "patchwork@dpdk.org",
        "Delivered-To": "patchwork@dpdk.org",
        "Received": [
            "from [92.243.14.124] (localhost [IPv6:::1])\n\tby dpdk.org (Postfix) with ESMTP id E20F772FA;\n\tFri, 16 Sep 2016 16:16:06 +0200 (CEST)",
            "from mga02.intel.com (mga02.intel.com [134.134.136.20])\n\tby dpdk.org (Postfix) with ESMTP id EA5AC6CD3\n\tfor <dev@dpdk.org>; Fri, 16 Sep 2016 16:16:01 +0200 (CEST)",
            "from fmsmga002.fm.intel.com ([10.253.24.26])\n\tby orsmga101.jf.intel.com with ESMTP; 16 Sep 2016 07:15:43 -0700",
            "from sivswdev01.ir.intel.com (HELO localhost.localdomain)\n\t([10.237.217.45])\n\tby fmsmga002.fm.intel.com with ESMTP; 16 Sep 2016 07:15:41 -0700"
        ],
        "X-ExtLoop1": "1",
        "X-IronPort-AV": "E=Sophos; i=\"5.30,344,1470726000\"; d=\"scan'208\";\n\ta=\"1057515346\"",
        "From": "Bernard Iremonger <bernard.iremonger@intel.com>",
        "To": "dev@dpdk.org, rahul.r.shah@intel.com, wenzhuo.lu@intel.com,\n\taz5157@att.com",
        "Cc": "Bernard Iremonger <bernard.iremonger@intel.com>,\n\tazelezniak <alexz@att.com>",
        "Date": "Fri, 16 Sep 2016 15:15:31 +0100",
        "Message-Id": "<1474035333-7496-2-git-send-email-bernard.iremonger@intel.com>",
        "X-Mailer": "git-send-email 1.7.0.7",
        "In-Reply-To": "<1472202620-20487-1-git-send-email-bernard.iremonger@intel.com>",
        "References": "<1472202620-20487-1-git-send-email-bernard.iremonger@intel.com>",
        "Subject": "[dpdk-dev] [PATCH v3 1/3] librte_ether: add API's for VF management",
        "X-BeenThere": "dev@dpdk.org",
        "X-Mailman-Version": "2.1.15",
        "Precedence": "list",
        "List-Id": "patches and discussions about DPDK <dev.dpdk.org>",
        "List-Unsubscribe": "<http://dpdk.org/ml/options/dev>,\n\t<mailto:dev-request@dpdk.org?subject=unsubscribe>",
        "List-Archive": "<http://dpdk.org/ml/archives/dev/>",
        "List-Post": "<mailto:dev@dpdk.org>",
        "List-Help": "<mailto:dev-request@dpdk.org?subject=help>",
        "List-Subscribe": "<http://dpdk.org/ml/listinfo/dev>,\n\t<mailto:dev-request@dpdk.org?subject=subscribe>",
        "Errors-To": "dev-bounces@dpdk.org",
        "Sender": "\"dev\" <dev-bounces@dpdk.org>"
    },
    "content": "Add new API functions to configure and manage VF's on a NIC.\n\nadd rte_eth_dev_vf_ping function.\nadd rte_eth_dev_set_vf_vlan_anti_spoof function.\nadd rte_eth_dev_set_vf_mac_anti_spoof function.\nadd rte_eth_dev_set_vf_vlan_strip function.\n\nSigned-off-by: azelezniak <alexz@att.com>\n\nadd rte_eth_dev_set_vf_vlan_insert function.\nadd rte_eth_dev_set_loopback function.\nadd rte_eth_dev_set_all_queues_drop function.\nadd rte_eth_dev_set_vf_split_drop_en function\nadd rte_eth_dev_set_vf_mac_addr function.\n\nSigned-off-by: Bernard Iremonger <bernard.iremonger@intel.com>\n---\n lib/librte_ether/rte_ethdev.c          | 192 +++++++++++++++++++++++++++++\n lib/librte_ether/rte_ethdev.h          | 217 ++++++++++++++++++++++++++++++++-\n lib/librte_ether/rte_ether_version.map |  14 +++\n 3 files changed, 422 insertions(+), 1 deletion(-)",
    "diff": "diff --git a/lib/librte_ether/rte_ethdev.c b/lib/librte_ether/rte_ethdev.c\nindex 382c959..4f83c29 100644\n--- a/lib/librte_ether/rte_ethdev.c\n+++ b/lib/librte_ether/rte_ethdev.c\n@@ -2305,6 +2305,30 @@ rte_eth_dev_default_mac_addr_set(uint8_t port_id, struct ether_addr *addr)\n }\n \n int\n+rte_eth_dev_set_vf_mac_addr(uint8_t port_id, uint16_t vf, struct ether_addr *addr)\n+{\n+\tstruct rte_eth_dev *dev;\n+\tstruct rte_eth_dev_info dev_info;\n+\n+\tRTE_ETH_VALID_PORTID_OR_ERR_RET(port_id, -ENODEV);\n+\n+\tif (!is_valid_assigned_ether_addr(addr))\n+\t\treturn -EINVAL;\n+\n+\tdev = &rte_eth_devices[port_id];\n+\trte_eth_dev_info_get(port_id, &dev_info);\n+\n+\tif (vf >= dev_info.max_vfs) {\n+\t\tRTE_PMD_DEBUG_TRACE(\"set VF mac addr: invalid VF %d\\n\", vf);\n+\t\treturn -EINVAL;\n+\t}\n+\n+\tRTE_FUNC_PTR_OR_ERR_RET(*dev->dev_ops->set_vf_mac_addr, -ENOTSUP);\n+\n+\treturn (*dev->dev_ops->set_vf_mac_addr)(dev, vf, addr);\n+}\n+\n+int\n rte_eth_dev_set_vf_rxmode(uint8_t port_id,  uint16_t vf,\n \t\t\t\tuint16_t rx_mode, uint8_t on)\n {\n@@ -2489,6 +2513,174 @@ rte_eth_dev_set_vf_vlan_filter(uint8_t port_id, uint16_t vlan_id,\n \t\t\t\t\t\t   vf_mask, vlan_on);\n }\n \n+int\n+rte_eth_dev_set_vf_vlan_anti_spoof(uint8_t port_id,\n+\t\t\t       uint16_t vf, uint8_t on)\n+{\n+\tstruct rte_eth_dev *dev;\n+\tstruct rte_eth_dev_info dev_info;\n+\n+\tRTE_ETH_VALID_PORTID_OR_ERR_RET(port_id, -ENODEV);\n+\n+\tdev = &rte_eth_devices[port_id];\n+\trte_eth_dev_info_get(port_id, &dev_info);\n+\n+\tif (vf >= dev_info.max_vfs) {\n+\t\tRTE_PMD_DEBUG_TRACE(\"set VF VLAN anti spoof: invalid VF %d\\n\", vf);\n+\t\treturn -EINVAL;\n+\t}\n+\n+\tRTE_FUNC_PTR_OR_ERR_RET(*dev->dev_ops->set_vf_vlan_anti_spoof, -ENOTSUP);\n+\t(*dev->dev_ops->set_vf_vlan_anti_spoof)(dev, vf, on);\n+\treturn 0;\n+}\n+\n+int\n+rte_eth_dev_set_vf_mac_anti_spoof(uint8_t port_id,\n+\t\t\t       uint16_t vf, uint8_t on)\n+{\n+\tstruct rte_eth_dev *dev;\n+\tstruct rte_eth_dev_info dev_info;\n+\n+\tRTE_ETH_VALID_PORTID_OR_ERR_RET(port_id, -ENODEV);\n+\n+\tdev = &rte_eth_devices[port_id];\n+\trte_eth_dev_info_get(port_id, &dev_info);\n+\n+\tif (vf >= dev_info.max_vfs) {\n+\t\tRTE_PMD_DEBUG_TRACE(\"set VF MAC anti spoof:invalid VF %d\\n\", vf);\n+\t\treturn -EINVAL;\n+\t}\n+\n+\tRTE_FUNC_PTR_OR_ERR_RET(*dev->dev_ops->set_vf_mac_anti_spoof, -ENOTSUP);\n+\t(*dev->dev_ops->set_vf_mac_anti_spoof)(dev, vf, on);\n+\treturn 0;\n+}\n+\n+int\n+rte_eth_dev_vf_ping(uint8_t port_id, int32_t vf)\n+{\n+\tstruct rte_eth_dev *dev;\n+\tstruct rte_eth_dev_info dev_info;\n+\n+\tRTE_ETH_VALID_PORTID_OR_ERR_RET(port_id, -ENODEV);\n+\n+\tdev = &rte_eth_devices[port_id];\n+\trte_eth_dev_info_get(port_id, &dev_info);\n+\n+\tif (vf >= dev_info.max_vfs) {\n+\t\tRTE_PMD_DEBUG_TRACE(\"VF ping: invalid VF %d\\n\", vf);\n+\t\treturn -EINVAL;\n+\t} else if (vf < -1) {\n+\t\t\tRTE_PMD_DEBUG_TRACE(\"VF ping: invalid value %d\\n\", vf);\n+\t\t\treturn -EINVAL;\n+\t}\n+\n+\tRTE_FUNC_PTR_OR_ERR_RET(*dev->dev_ops->vf_ping, -ENOTSUP);\n+\treturn (*dev->dev_ops->vf_ping)(dev, vf);\n+}\n+\n+int\n+rte_eth_dev_set_vf_vlan_strip(uint8_t port_id, uint16_t vf, int on)\n+{\n+\tstruct rte_eth_dev *dev;\n+\tstruct rte_eth_dev_info dev_info;\n+\tuint16_t queues_per_pool;\n+\tuint32_t q;\n+\n+\tRTE_ETH_VALID_PORTID_OR_ERR_RET(port_id, -ENODEV);\n+\n+\tdev = &rte_eth_devices[port_id];\n+\trte_eth_dev_info_get(port_id, &dev_info);\n+\n+\tif (vf >= dev_info.max_vfs) {\n+\t\tRTE_PMD_DEBUG_TRACE(\"set VF vlan strip: invalid VF %d\\n\", vf);\n+\t\treturn -EINVAL;\n+\t}\n+\n+\tRTE_FUNC_PTR_OR_ERR_RET(*dev->dev_ops->vlan_strip_queue_set, -ENOTSUP);\n+\n+\tqueues_per_pool = dev_info.vmdq_queue_num/dev_info.max_vmdq_pools;\n+\n+\tfor (q = 0; q < queues_per_pool; q++)\n+\t\t(*dev->dev_ops->vlan_strip_queue_set)(dev, q + vf * queues_per_pool, on);\n+\treturn 0;\n+}\n+\n+int\n+rte_eth_dev_set_vf_vlan_insert(uint8_t port_id, uint16_t vf, int on)\n+{\n+\tstruct rte_eth_dev *dev;\n+\tstruct rte_eth_dev_info dev_info;\n+\n+\tRTE_ETH_VALID_PORTID_OR_ERR_RET(port_id, -ENODEV);\n+\n+\tdev = &rte_eth_devices[port_id];\n+\trte_eth_dev_info_get(port_id, &dev_info);\n+\n+\tif (vf >= dev_info.max_vfs) {\n+\t\tRTE_PMD_DEBUG_TRACE(\"set VF vlan insert: invalid VF %d\\n\", vf);\n+\t\treturn -EINVAL;\n+\t}\n+\n+\tRTE_FUNC_PTR_OR_ERR_RET(*dev->dev_ops->set_vf_vlan_insert, -ENOTSUP);\n+\n+\t(*dev->dev_ops->set_vf_vlan_insert)(dev, vf, on);\n+\treturn 0;\n+}\n+\n+int\n+rte_eth_dev_set_tx_loopback(uint8_t port_id, int on)\n+{\n+\tstruct rte_eth_dev *dev;\n+\n+\tRTE_ETH_VALID_PORTID_OR_ERR_RET(port_id, -ENODEV);\n+\n+\tdev = &rte_eth_devices[port_id];\n+\n+\tRTE_FUNC_PTR_OR_ERR_RET(*dev->dev_ops->set_tx_loopback, -ENOTSUP);\n+\n+\t(*dev->dev_ops->set_tx_loopback)(dev, on);\n+\treturn 0;\n+}\n+\n+int\n+rte_eth_dev_set_all_queues_drop_en(uint8_t port_id, int state)\n+{\n+\tstruct rte_eth_dev *dev;\n+\n+\tRTE_ETH_VALID_PORTID_OR_ERR_RET(port_id, -ENODEV);\n+\n+\tdev = &rte_eth_devices[port_id];\n+\n+\tRTE_FUNC_PTR_OR_ERR_RET(*dev->dev_ops->set_all_queues_drop_en, -ENOTSUP);\n+\n+\t(*dev->dev_ops->set_all_queues_drop_en)(dev, state);\n+\treturn 0;\n+}\n+\n+int\n+rte_eth_dev_set_vf_split_drop_en(uint8_t port_id, uint16_t vf, int state)\n+{\n+\tstruct rte_eth_dev *dev;\n+\tstruct rte_eth_dev_info dev_info;\n+\n+\tRTE_ETH_VALID_PORTID_OR_ERR_RET(port_id, -ENODEV);\n+\n+\tdev = &rte_eth_devices[port_id];\n+\trte_eth_dev_info_get(port_id, &dev_info);\n+\n+\tif (vf >= dev_info.max_vfs) {\n+\t\tRTE_PMD_DEBUG_TRACE(\"set VF split drop enable: invalid VF %d\\n\", vf);\n+\t\treturn -EINVAL;\n+\t}\n+\n+\tRTE_FUNC_PTR_OR_ERR_RET(*dev->dev_ops->set_vf_split_drop_en, -ENOTSUP);\n+\n+\t(*dev->dev_ops->set_vf_split_drop_en)(dev, vf, state);\n+\treturn 0;\n+}\n+\n int rte_eth_set_queue_rate_limit(uint8_t port_id, uint16_t queue_idx,\n \t\t\t\t\tuint16_t tx_rate)\n {\ndiff --git a/lib/librte_ether/rte_ethdev.h b/lib/librte_ether/rte_ethdev.h\nindex 96575e8..68b477f 100644\n--- a/lib/librte_ether/rte_ethdev.h\n+++ b/lib/librte_ether/rte_ethdev.h\n@@ -1233,6 +1233,11 @@ typedef void (*eth_mac_addr_set_t)(struct rte_eth_dev *dev,\n \t\t\t\t  struct ether_addr *mac_addr);\n /**< @internal Set a MAC address into Receive Address Address Register */\n \n+typedef int (*eth_set_vf_mac_addr_t)(struct rte_eth_dev *dev,\n+\t\t\t\t  uint16_t vf,\n+\t\t\t\t  struct ether_addr *mac_addr);\n+/**< @internal Set VF address into Receive Address Address Register */\n+\n typedef int (*eth_uc_hash_table_set_t)(struct rte_eth_dev *dev,\n \t\t\t\t  struct ether_addr *mac_addr,\n \t\t\t\t  uint8_t on);\n@@ -1264,6 +1269,38 @@ typedef int (*eth_set_vf_vlan_filter_t)(struct rte_eth_dev *dev,\n \t\t\t\t  uint8_t vlan_on);\n /**< @internal Set VF VLAN pool filter */\n \n+typedef void (*eth_set_vf_vlan_anti_spoof_t)(struct rte_eth_dev *dev,\n+\t\t\t\t  uint16_t vf,\n+\t\t\t\t  uint8_t on);\n+/**< @internal Set VF VLAN anti spoof */\n+\n+typedef void (*eth_set_vf_mac_anti_spoof_t)(struct rte_eth_dev *dev,\n+\t\t\t\t  uint16_t vf,\n+\t\t\t\t  uint8_t on);\n+/**< @internal Set VF MAC anti spoof */\n+\n+typedef int (*eth_vf_ping_t)(struct rte_eth_dev *dev,\n+\t\t\t\tint32_t vf);\n+/**< @internal ping one or all vf's */\n+\n+typedef void (*eth_set_vf_vlan_insert_t)(struct rte_eth_dev *dev,\n+\t\t\t\t  uint16_t vf,\n+\t\t\t\t  int vlan);\n+/**< @internal Set VF vlan insert */\n+\n+typedef void (*eth_set_tx_loopback_t)(struct rte_eth_dev *dev,\n+\t\t\t\t  int on);\n+/**< @internal Set tx loopback */\n+\n+typedef void (*eth_set_all_queues_drop_en_t)(struct rte_eth_dev *dev,\n+\t\t\t\t  int state);\n+/**< @internal Set all queues drop */\n+\n+typedef void (*eth_set_vf_split_drop_en_t)(struct rte_eth_dev *dev,\n+\t\t\t\t  uint16_t vf,\n+\t\t\t\t  int state);\n+/**< @internal Set the enable drop bit in the VF split rx control register */\n+\n typedef int (*eth_set_queue_rate_limit_t)(struct rte_eth_dev *dev,\n \t\t\t\tuint16_t queue_idx,\n \t\t\t\tuint16_t tx_rate);\n@@ -1468,6 +1505,7 @@ struct eth_dev_ops {\n \teth_mac_addr_remove_t      mac_addr_remove; /**< Remove MAC address */\n \teth_mac_addr_add_t         mac_addr_add;  /**< Add a MAC address */\n \teth_mac_addr_set_t         mac_addr_set;  /**< Set a MAC address */\n+\teth_set_vf_mac_addr_t      set_vf_mac_addr;  /**< Set a VF MAC address */\n \teth_uc_hash_table_set_t    uc_hash_table_set;  /**< Set Unicast Table Array */\n \teth_uc_all_hash_table_set_t uc_all_hash_table_set;  /**< Set Unicast hash bitmap */\n \teth_mirror_rule_set_t\t   mirror_rule_set;  /**< Add a traffic mirror rule.*/\n@@ -1476,6 +1514,13 @@ struct eth_dev_ops {\n \teth_set_vf_rx_t            set_vf_rx;  /**< enable/disable a VF receive */\n \teth_set_vf_tx_t            set_vf_tx;  /**< enable/disable a VF transmit */\n \teth_set_vf_vlan_filter_t   set_vf_vlan_filter;  /**< Set VF VLAN filter */\n+\teth_set_vf_vlan_anti_spoof_t  set_vf_vlan_anti_spoof; /**< Set VF VLAN anti spoof */\n+\teth_set_vf_mac_anti_spoof_t   set_vf_mac_anti_spoof;  /**< Set VF MAC anti spoof */\n+\teth_vf_ping_t             vf_ping;  /**< Ping one or all VF's */\n+\teth_set_vf_vlan_insert_t  set_vf_vlan_insert; /** <Set VF VLAN insert */\n+\teth_set_tx_loopback_t  set_tx_loopback; /** <Set tx loopback */\n+\teth_set_all_queues_drop_en_t  set_all_queues_drop_en; /** <Set queue drop enable bit */\n+\teth_set_vf_split_drop_en_t  set_vf_split_drop_en; /** <Set split drop enable bit.*/\n \t/** Add UDP tunnel port. */\n \teth_udp_tunnel_port_add_t udp_tunnel_port_add;\n \t/** Del UDP tunnel port. */\n@@ -3332,7 +3377,23 @@ int rte_eth_dev_mac_addr_remove(uint8_t port, struct ether_addr *mac_addr);\n  */\n int rte_eth_dev_default_mac_addr_set(uint8_t port, struct ether_addr *mac_addr);\n \n-\n+/**\n+ * Set the VF MAC address.\n+ *\n+ * @param port\n+ *   The port identifier of the Ethernet device.\n+ * @param vf\n+ *   VF id.\n+ * @param mac_addr\n+ *   VF MAC address.\n+ * @return\n+ *   - (0) if successful, or *mac_addr* didn't exist.\n+ *   - (-ENOTSUP) if hardware doesn't support.\n+ *   - (-ENODEV) if *port* invalid.\n+ *   - (-EINVAL) if MAC address is invalid.\n+ */\n+int rte_eth_dev_set_vf_mac_addr(uint8_t port, uint16_t vf,\n+\t\t\t\tstruct ether_addr *mac_addr);\n /**\n  * Update Redirection Table(RETA) of Receive Side Scaling of Ethernet device.\n  *\n@@ -3499,6 +3560,160 @@ rte_eth_dev_set_vf_vlan_filter(uint8_t port, uint16_t vlan_id,\n \t\t\t\tuint8_t vlan_on);\n \n /**\n+ * Enable/Disable VF VLAN anti spoofing.\n+ *\n+ * @param port\n+ *    The port identifier of the Ethernet device.\n+ * @param vf\n+ *    VF on which to set VLAN anti spoofing.\n+ * @param vlan_on\n+ *    1 - Enable VFs VLAN anti spoofing.\n+ *    0 - Disable VFs VLAN anti spoofing.\n+ * @return\n+ *   - (0) if successful.\n+ *   - (-ENOTSUP) if hardware doesn't support.\n+ *   - (-ENODEV) if *port* invalid.\n+ *   - (-EINVAL) if bad parameter.\n+ */\n+int\n+rte_eth_dev_set_vf_vlan_anti_spoof(uint8_t port,\n+\t\t\t\tuint16_t vf,\n+\t\t\t\tuint8_t on);\n+\n+/**\n+ * Enable/Disable VF MAC anti spoofing.\n+ *\n+ * @param port\n+ *    The port identifier of the Ethernet device.\n+ * @param vf\n+ *    VF on which to set MAC anti spoofing.\n+ * @param vlan_on\n+ *    1 - Enable VFs MAC anti spoofing.\n+ *    0 - Disable VFs MAC anti spoofing.\n+ * @return\n+ *   - (0) if successful.\n+ *   - (-ENOTSUP) if hardware doesn't support.\n+ *   - (-ENODEV) if *port* invalid.\n+ *   - (-EINVAL) if bad parameter.\n+ */\n+int\n+rte_eth_dev_set_vf_mac_anti_spoof(uint8_t port,\n+\t\t\t\tuint16_t vf,\n+\t\t\t\tuint8_t on);\n+\n+/**\n+ * Ping all or specified VF\n+ *\n+ * @param port\n+ *   The port identifier of the Ethernet device.\n+ * @param vf\n+ *   specify VF to ping or all if -1.\n+ *\n+ * @return\n+ *   - (0) if successful.\n+ *   - (-ENOTSUP) if hardware doesn't support this feature.\n+ *   - (-ENODEV) if *port* invalid.\n+ *   - (-EINVAL) if bad parameter.\n+ */\n+int\n+rte_eth_dev_vf_ping(uint8_t port, int32_t vf);\n+\n+/**\n+ * Enable/Disable vf vlan strip\n+ *\n+ * @param port\n+ *    The port identifier of the Ethernet device.\n+ * @param vf\n+ *    ID specifying VF.\n+ * @param on\n+ *    1 - Enable VF's vlan strip.\n+ *    0 - Disable VF's vlan strip\n+ * @param queues_per_pool\n+ *    The number of queues per pool.\n+ *\n+ * @return\n+ *   - (0) if successful.\n+ *   - (-ENOTSUP) if hardware doesn't support this feature.\n+ *   - (-ENODEV) if *port* invalid.\n+ *   - (-EINVAL) if bad parameter.\n+ */\n+int\n+rte_eth_dev_set_vf_vlan_strip(uint8_t port, uint16_t vf, int on);\n+\n+/**\n+ * Enable/Disable vf vlan insert\n+ *\n+ * @param port\n+ *    The port identifier of the Ethernet device.\n+ * @param vf\n+ *    ID specifying VF.\n+ * @param on\n+ *    1 - Enable VF's vlan insert.\n+ *    0 - Disable VF's vlan insert\n+ *\n+ * @return\n+ *   - (0) if successful.\n+ *   - (-ENOTSUP) if hardware doesn't support this feature.\n+ *   - (-ENODEV) if *port* invalid.\n+ *   - (-EINVAL) if bad parameter.\n+ */\n+int\n+rte_eth_dev_set_vf_vlan_insert(uint8_t port, uint16_t vf, int on);\n+\n+/**\n+ * Enable/Disable tx loopback\n+ *\n+ * @param port\n+ *    The port identifier of the Ethernet device.\n+ * @param on\n+ *    1 - Enable tx loopback.\n+ *    0 - Disable tx loopback.\n+ *\n+ * @return\n+ *   - (0) if successful.\n+ *   - (-ENOTSUP) if hardware doesn't support this feature.\n+ *   - (-ENODEV) if *port* invalid.\n+ *   - (-EINVAL) if bad parameter.\n+ */\n+int\n+rte_eth_dev_set_tx_loopback(uint8_t port, int on);\n+/**\n+ * set all queues drop enable bit\n+ *\n+ * @param port\n+ *    The port identifier of the Ethernet device.\n+ * @param state\n+ *    1 - set the queue drop enable bit for all pools.\n+ *    0 - reset the queue drop enable bit for all pools.\n+ *\n+ * @return\n+ *   - (0) if successful.\n+ *   - (-ENOTSUP) if hardware doesn't support this feature.\n+ *   - (-ENODEV) if *port* invalid.\n+ *   - (-EINVAL) if bad parameter.\n+ */\n+int\n+rte_eth_dev_set_all_queues_drop_en(uint8_t port, int state);\n+/**\n+ * set drop enable bit in the VF split rx control register\n+ *\n+ * @param port\n+ *    The port identifier of the Ethernet device.\n+ * @param vf\n+ *    ID specifying VF.\n+ * @param state\n+ *    1 - set the drop enable bit in the split rx control register.\n+ *    0 - reset the drop enable bit in the split rx control register.\n+ *\n+ * @return\n+ *   - (0) if successful.\n+ *   - (-ENOTSUP) if hardware doesn't support this feature.\n+ *   - (-ENODEV) if *port* invalid.\n+ *   - (-EINVAL) if bad parameter.\n+ */\n+int\n+rte_eth_dev_set_vf_split_drop_en(uint8_t port, uint16_t vf, int state);\n+/**\n  * Set a traffic mirroring rule on an Ethernet device\n  *\n  * @param port_id\ndiff --git a/lib/librte_ether/rte_ether_version.map b/lib/librte_ether/rte_ether_version.map\nindex 45ddf44..3fe149f 100644\n--- a/lib/librte_ether/rte_ether_version.map\n+++ b/lib/librte_ether/rte_ether_version.map\n@@ -139,3 +139,17 @@ DPDK_16.07 {\n \trte_eth_dev_get_port_by_name;\n \trte_eth_xstats_get_names;\n } DPDK_16.04;\n+\n+DPDK_16.11 {\n+\tglobal:\n+\n+\trte_eth_dev_set_all_queues_drop_en;\n+\trte_eth_dev_set_tx_loopback;\n+\trte_eth_dev_set_vf_mac_addr;\n+\trte_eth_dev_set_vf_mac_anti_spoof;\n+\trte_eth_dev_set_vf_split_drop_en;\n+\trte_eth_dev_set_vf_vlan_anti_spoof;\n+\trte_eth_dev_set_vf_vlan_insert;\n+\trte_eth_dev_set_vf_vlan_strip;\n+\trte_eth_dev_vf_ping;\n+} DPDK_16.07;\n",
    "prefixes": [
        "dpdk-dev",
        "v3",
        "1/3"
    ]
}