ipsec: support AES-CTR
[dpdk.git] / lib / librte_ethdev / rte_ethdev_driver.h
index ca31b57..c2ac263 100644 (file)
@@ -58,28 +58,21 @@ struct rte_eth_dev *rte_eth_dev_attach_secondary(const char *name);
 
 /**
  * @internal
- * Release the specified ethdev port.
+ * Notify RTE_ETH_EVENT_DESTROY and release the specified ethdev port.
  *
- * @param eth_dev
- * Device to be detached.
- * @return
- *   - 0 on success, negative on error
- */
-int rte_eth_dev_release_port(struct rte_eth_dev *eth_dev);
-
-/**
- * @internal
- * Release the specified ethdev port in the local process.
- * Only set ethdev state to unused, but not reset shared data since
- * it assume other processes is still using it. typically it is
- * called by a secondary process.
+ * The following PMD-managed data fields will be freed:
+ *   - dev_private
+ *   - mac_addrs
+ *   - hash_mac_addrs
+ * If one of these fields should not be freed,
+ * it must be reset to NULL by the PMD, typically in dev_close method.
  *
  * @param eth_dev
  * Device to be detached.
  * @return
  *   - 0 on success, negative on error
  */
-int rte_eth_dev_release_port_secondary(struct rte_eth_dev *eth_dev);
+int rte_eth_dev_release_port(struct rte_eth_dev *eth_dev);
 
 /**
  * @internal