common/mlx5: fix device list operations concurrency
[dpdk.git] / drivers / common / cnxk / roc_dev_priv.h
index 7ee604e..302dc0f 100644 (file)
@@ -30,9 +30,14 @@ typedef void (*link_info_t)(void *roc_nix,
 /* PTP info callback */
 typedef int (*ptp_info_t)(void *roc_nix, bool enable);
 
+/* Link status get callback */
+typedef void (*link_status_get_t)(void *roc_nix,
+                                 struct cgx_link_user_info *link);
+
 struct dev_ops {
        link_info_t link_status_update;
        ptp_info_t ptp_info_update;
+       link_status_get_t link_status_get;
 };
 
 #define dev_is_vf(dev) ((dev)->hwcap & DEV_HWCAP_F_VF)
@@ -83,6 +88,7 @@ struct dev {
        uint16_t maxvf;
        struct dev_ops *ops;
        void *roc_nix;
+       void *roc_cpt;
        bool disable_shared_lmt; /* false(default): shared lmt mode enabled */
        const struct plt_memzone *lmt_mz;
 } __plt_cache_aligned;