net/atlantic: add missing experimental API tags

Those symbols are declared in the library map but the prototypes are
missing the experimental tag.
Without it, existing users won't notice it is experimental.

Fixes: ec0dec44ec ("net/atlantic: enable MACsec configuration")
Cc: stable@dpdk.org

Signed-off-by: David Marchand <david.marchand@redhat.com>
Acked-by: Adrien Mazarguil <adrien.mazarguil@6wind.com>
Acked-by: Neil Horman <nhorman@tuxdriver.com>
This commit is contained in:
David Marchand 2019-06-29 13:58:49 +02:00 committed by Thomas Monjalon
parent 3290ac14eb
commit 136ab94a5b
2 changed files with 30 additions and 6 deletions

View File

@ -8,7 +8,7 @@
#include "atl_ethdev.h" #include "atl_ethdev.h"
__rte_experimental int int
rte_pmd_atl_macsec_enable(uint16_t port, rte_pmd_atl_macsec_enable(uint16_t port,
uint8_t encr, uint8_t repl_prot) uint8_t encr, uint8_t repl_prot)
{ {
@ -24,7 +24,7 @@ rte_pmd_atl_macsec_enable(uint16_t port,
return atl_macsec_enable(dev, encr, repl_prot); return atl_macsec_enable(dev, encr, repl_prot);
} }
__rte_experimental int int
rte_pmd_atl_macsec_disable(uint16_t port) rte_pmd_atl_macsec_disable(uint16_t port)
{ {
struct rte_eth_dev *dev; struct rte_eth_dev *dev;
@ -39,7 +39,7 @@ rte_pmd_atl_macsec_disable(uint16_t port)
return atl_macsec_disable(dev); return atl_macsec_disable(dev);
} }
__rte_experimental int int
rte_pmd_atl_macsec_config_txsc(uint16_t port, uint8_t *mac) rte_pmd_atl_macsec_config_txsc(uint16_t port, uint8_t *mac)
{ {
struct rte_eth_dev *dev; struct rte_eth_dev *dev;
@ -54,7 +54,7 @@ rte_pmd_atl_macsec_config_txsc(uint16_t port, uint8_t *mac)
return atl_macsec_config_txsc(dev, mac); return atl_macsec_config_txsc(dev, mac);
} }
__rte_experimental int int
rte_pmd_atl_macsec_config_rxsc(uint16_t port, uint8_t *mac, uint16_t pi) rte_pmd_atl_macsec_config_rxsc(uint16_t port, uint8_t *mac, uint16_t pi)
{ {
struct rte_eth_dev *dev; struct rte_eth_dev *dev;
@ -69,7 +69,7 @@ rte_pmd_atl_macsec_config_rxsc(uint16_t port, uint8_t *mac, uint16_t pi)
return atl_macsec_config_rxsc(dev, mac, pi); return atl_macsec_config_rxsc(dev, mac, pi);
} }
__rte_experimental int int
rte_pmd_atl_macsec_select_txsa(uint16_t port, uint8_t idx, uint8_t an, rte_pmd_atl_macsec_select_txsa(uint16_t port, uint8_t idx, uint8_t an,
uint32_t pn, uint8_t *key) uint32_t pn, uint8_t *key)
{ {
@ -85,7 +85,7 @@ rte_pmd_atl_macsec_select_txsa(uint16_t port, uint8_t idx, uint8_t an,
return atl_macsec_select_txsa(dev, idx, an, pn, key); return atl_macsec_select_txsa(dev, idx, an, pn, key);
} }
__rte_experimental int int
rte_pmd_atl_macsec_select_rxsa(uint16_t port, uint8_t idx, uint8_t an, rte_pmd_atl_macsec_select_rxsa(uint16_t port, uint8_t idx, uint8_t an,
uint32_t pn, uint8_t *key) uint32_t pn, uint8_t *key)
{ {

View File

@ -14,6 +14,9 @@
#include <rte_ethdev_driver.h> #include <rte_ethdev_driver.h>
/** /**
* @warning
* @b EXPERIMENTAL: this API may change, or be removed, without prior notice
*
* Enable MACsec offload. * Enable MACsec offload.
* *
* @param port * @param port
@ -29,9 +32,13 @@
* - (-ENODEV) if *port* invalid. * - (-ENODEV) if *port* invalid.
* - (-ENOTSUP) if hardware doesn't support this feature. * - (-ENOTSUP) if hardware doesn't support this feature.
*/ */
__rte_experimental
int rte_pmd_atl_macsec_enable(uint16_t port, uint8_t encr, uint8_t repl_prot); int rte_pmd_atl_macsec_enable(uint16_t port, uint8_t encr, uint8_t repl_prot);
/** /**
* @warning
* @b EXPERIMENTAL: this API may change, or be removed, without prior notice
*
* Disable MACsec offload. * Disable MACsec offload.
* *
* @param port * @param port
@ -41,9 +48,13 @@ int rte_pmd_atl_macsec_enable(uint16_t port, uint8_t encr, uint8_t repl_prot);
* - (-ENODEV) if *port* invalid. * - (-ENODEV) if *port* invalid.
* - (-ENOTSUP) if hardware doesn't support this feature. * - (-ENOTSUP) if hardware doesn't support this feature.
*/ */
__rte_experimental
int rte_pmd_atl_macsec_disable(uint16_t port); int rte_pmd_atl_macsec_disable(uint16_t port);
/** /**
* @warning
* @b EXPERIMENTAL: this API may change, or be removed, without prior notice
*
* Configure Tx SC (Secure Connection). * Configure Tx SC (Secure Connection).
* *
* @param port * @param port
@ -55,9 +66,13 @@ int rte_pmd_atl_macsec_disable(uint16_t port);
* - (-ENODEV) if *port* invalid. * - (-ENODEV) if *port* invalid.
* - (-ENOTSUP) if hardware doesn't support this feature. * - (-ENOTSUP) if hardware doesn't support this feature.
*/ */
__rte_experimental
int rte_pmd_atl_macsec_config_txsc(uint16_t port, uint8_t *mac); int rte_pmd_atl_macsec_config_txsc(uint16_t port, uint8_t *mac);
/** /**
* @warning
* @b EXPERIMENTAL: this API may change, or be removed, without prior notice
*
* Configure Rx SC (Secure Connection). * Configure Rx SC (Secure Connection).
* *
* @param port * @param port
@ -71,9 +86,13 @@ int rte_pmd_atl_macsec_config_txsc(uint16_t port, uint8_t *mac);
* - (-ENODEV) if *port* invalid. * - (-ENODEV) if *port* invalid.
* - (-ENOTSUP) if hardware doesn't support this feature. * - (-ENOTSUP) if hardware doesn't support this feature.
*/ */
__rte_experimental
int rte_pmd_atl_macsec_config_rxsc(uint16_t port, uint8_t *mac, uint16_t pi); int rte_pmd_atl_macsec_config_rxsc(uint16_t port, uint8_t *mac, uint16_t pi);
/** /**
* @warning
* @b EXPERIMENTAL: this API may change, or be removed, without prior notice
*
* Enable Tx SA (Secure Association). * Enable Tx SA (Secure Association).
* *
* @param port * @param port
@ -92,10 +111,14 @@ int rte_pmd_atl_macsec_config_rxsc(uint16_t port, uint8_t *mac, uint16_t pi);
* - (-ENOTSUP) if hardware doesn't support this feature. * - (-ENOTSUP) if hardware doesn't support this feature.
* - (-EINVAL) if bad parameter. * - (-EINVAL) if bad parameter.
*/ */
__rte_experimental
int rte_pmd_atl_macsec_select_txsa(uint16_t port, uint8_t idx, uint8_t an, int rte_pmd_atl_macsec_select_txsa(uint16_t port, uint8_t idx, uint8_t an,
uint32_t pn, uint8_t *key); uint32_t pn, uint8_t *key);
/** /**
* @warning
* @b EXPERIMENTAL: this API may change, or be removed, without prior notice
*
* Enable Rx SA (Secure Association). * Enable Rx SA (Secure Association).
* *
* @param port * @param port
@ -114,6 +137,7 @@ int rte_pmd_atl_macsec_select_txsa(uint16_t port, uint8_t idx, uint8_t an,
* - (-ENOTSUP) if hardware doesn't support this feature. * - (-ENOTSUP) if hardware doesn't support this feature.
* - (-EINVAL) if bad parameter. * - (-EINVAL) if bad parameter.
*/ */
__rte_experimental
int rte_pmd_atl_macsec_select_rxsa(uint16_t port, uint8_t idx, uint8_t an, int rte_pmd_atl_macsec_select_rxsa(uint16_t port, uint8_t idx, uint8_t an,
uint32_t pn, uint8_t *key); uint32_t pn, uint8_t *key);