]> git.droids-corp.org - dpdk.git/blobdiff - drivers/net/sfc/sfc_switch.h
net/ionic: preserve Rx mode across LIF stop/start
[dpdk.git] / drivers / net / sfc / sfc_switch.h
index 9845ac8801dac412f668e1208b1740dc63a67014..96ece9565413160d3b194522b64238b3ea24acfd 100644 (file)
@@ -32,6 +32,8 @@ enum sfc_mae_switch_port_type {
 struct sfc_mae_switch_port_request {
        enum sfc_mae_switch_port_type           type;
        const efx_mport_sel_t                   *entity_mportp;
+       const efx_mport_sel_t                   *ethdev_mportp;
+       uint16_t                                ethdev_port_id;
 };
 
 int sfc_mae_assign_switch_domain(struct sfc_adapter *sa,
@@ -41,6 +43,10 @@ int sfc_mae_assign_switch_port(uint16_t switch_domain_id,
                               const struct sfc_mae_switch_port_request *req,
                               uint16_t *switch_port_id);
 
+int sfc_mae_switch_port_by_ethdev(uint16_t switch_domain_id,
+                                 uint16_t ethdev_port_id,
+                                 efx_mport_sel_t *mport_sel);
+
 #ifdef __cplusplus
 }
 #endif