net/hns3: support link speed autoneg for PF
[dpdk.git] / drivers / net / hns3 / hns3_ethdev.h
index df37f05..7b7d359 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,