net/ice/base: change address parameter to 16-bit
[dpdk.git] / drivers / net / octeontx2 / otx2_ethdev.h
index 381e6b6..7871e3d 100644 (file)
@@ -14,6 +14,7 @@
 #include <rte_mbuf.h>
 #include <rte_mempool.h>
 #include <rte_security_driver.h>
+#include <rte_spinlock.h>
 #include <rte_string_fns.h>
 #include <rte_time.h>
 
@@ -356,6 +357,7 @@ struct otx2_eth_dev {
        bool sdp_link; /* SDP flag */
        /* Inline IPsec params */
        uint16_t ipsec_in_max_spi;
+       rte_spinlock_t ipsec_tbl_lock;
        uint8_t duplex;
        uint32_t speed;
 } __rte_cache_aligned;
@@ -464,6 +466,8 @@ void otx2_nix_toggle_flag_link_cfg(struct otx2_eth_dev *dev, bool set);
 int otx2_nix_link_update(struct rte_eth_dev *eth_dev, int wait_to_complete);
 void otx2_eth_dev_link_status_update(struct otx2_dev *dev,
                                     struct cgx_link_user_info *link);
+void otx2_eth_dev_link_status_get(struct otx2_dev *dev,
+                                 struct cgx_link_user_info *link);
 int otx2_nix_dev_set_link_up(struct rte_eth_dev *eth_dev);
 int otx2_nix_dev_set_link_down(struct rte_eth_dev *eth_dev);
 int otx2_apply_link_speed(struct rte_eth_dev *eth_dev);