net/hinic: set link down and up
[dpdk.git] / drivers / net / hinic / base / hinic_pmd_niccfg.h
index e8ce332..beab630 100644 (file)
@@ -578,6 +578,13 @@ struct hinic_link_mode_cmd {
        u16     advertised;
 };
 
+struct hinic_set_xsfp_status {
+       struct hinic_mgmt_msg_head mgmt_msg_head;
+
+       u32 port_id;
+       u32 xsfp_tx_dis;        /* 0: tx enable; 1: tx disable */
+};
+
 struct hinic_clear_qp_resource {
        struct hinic_mgmt_msg_head mgmt_msg_head;
 
@@ -807,6 +814,8 @@ int hinic_set_link_status_follow(void *hwdev,
 
 int hinic_get_link_mode(void *hwdev, u32 *supported, u32 *advertised);
 
+int hinic_set_xsfp_tx_status(void *hwdev, bool enable);
+
 int hinic_flush_qp_res(void *hwdev);
 
 int hinic_init_function_table(void *hwdev, u16 rx_buf_sz);