net/sfc: check configured Rx mode
[dpdk.git] / drivers / net / sfc / sfc.h
index 68715ea..e3397ac 100644 (file)
@@ -117,6 +117,7 @@ struct sfc_intr {
 };
 
 struct sfc_evq_info;
+struct sfc_rxq_info;
 
 struct sfc_port {
        unsigned int                    flow_ctrl;
@@ -155,6 +156,9 @@ struct sfc_adapter {
 
        unsigned int                    mgmt_evq_index;
        rte_spinlock_t                  mgmt_evq_lock;
+
+       unsigned int                    rxq_count;
+       struct sfc_rxq_info             *rxq_info;
 };
 
 /*
@@ -218,6 +222,9 @@ int sfc_port_init(struct sfc_adapter *sa);
 void sfc_port_fini(struct sfc_adapter *sa);
 int sfc_port_start(struct sfc_adapter *sa);
 void sfc_port_stop(struct sfc_adapter *sa);
+void sfc_port_link_mode_to_info(efx_link_mode_t link_mode,
+                               struct rte_eth_link *link_info);
+
 
 #ifdef __cplusplus
 }