]> git.droids-corp.org - dpdk.git/blobdiff - drivers/net/hns3/hns3_ethdev.h
net/hns3: support link speed autoneg for PF
[dpdk.git] / drivers / net / hns3 / hns3_ethdev.h
index df37f05159f3f56ac5a3afd9d078735ee253fb5d..7b7d3592698c6cef45d3f11cfae9ceb87a06b631 100644 (file)
@@ -165,6 +165,12 @@ struct hns3_cfg {
        uint16_t umv_space;
 };
 
+struct hns3_set_link_speed_cfg {
+       uint32_t speed;
+       uint8_t duplex  : 1;
+       uint8_t autoneg : 1;
+};
+
 /* mac media type */
 enum hns3_media_type {
        HNS3_MEDIA_TYPE_UNKNOWN,