X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=drivers%2Fnet%2Fatlantic%2Fatl_ethdev.h;h=f547571b5c97bcb75befcb54ae05fe633f5d22a9;hb=0f880c3df192b3e91ca5f30ae6fd81def59f0158;hp=1e29999b539c6ec7e8c97efea538775988241d94;hpb=3af0d308541a5c32fb03a97d60c872264554a103;p=dpdk.git diff --git a/drivers/net/atlantic/atl_ethdev.h b/drivers/net/atlantic/atl_ethdev.h index 1e29999b53..f547571b5c 100644 --- a/drivers/net/atlantic/atl_ethdev.h +++ b/drivers/net/atlantic/atl_ethdev.h @@ -34,7 +34,7 @@ (&((struct atl_adapter *)adapter)->hw_cfg) #define ATL_FLAG_NEED_LINK_UPDATE (uint32_t)(1 << 0) -#define ATL_FLAG_NEED_LINK_CONFIG (uint32_t)(4 << 0) +#define ATL_FLAG_MACSEC (uint32_t)(4 << 0) struct atl_interrupt { uint32_t flags; @@ -104,4 +104,16 @@ uint16_t atl_xmit_pkts(void *tx_queue, struct rte_mbuf **tx_pkts, uint16_t atl_prep_pkts(void *tx_queue, struct rte_mbuf **tx_pkts, uint16_t nb_pkts); +int atl_macsec_enable(struct rte_eth_dev *dev, uint8_t encr, uint8_t repl_prot); +int atl_macsec_disable(struct rte_eth_dev *dev); +int atl_macsec_config_txsc(struct rte_eth_dev *dev, uint8_t *mac); +int atl_macsec_config_rxsc(struct rte_eth_dev *dev, + uint8_t *mac, uint16_t pi); +int atl_macsec_select_txsa(struct rte_eth_dev *dev, uint8_t idx, + uint8_t an, uint32_t pn, uint8_t *key); +int atl_macsec_select_rxsa(struct rte_eth_dev *dev, uint8_t idx, + uint8_t an, uint32_t pn, uint8_t *key); + +bool is_atlantic_supported(struct rte_eth_dev *dev); + #endif /* _ATLANTIC_ETHDEV_H_ */