Following commit updated the error codes:
commit
2ae8e130cf21 ("net/hinic/base: modify returned error values")
In that commit 'ETIME' errors are not used because it is not supported
by FreeBSD, instead in this patch converting relevant error codes to
'ETIMEDOUT'.
Signed-off-by: Xiaoyun Wang <cloud.wangxiaoyun@huawei.com>
Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
rte_delay_ms(10);
} while (time_before(jiffies, end));
rte_delay_ms(10);
} while (time_before(jiffies, end));
}
#define HINIC_WAIT_CMDQ_IDLE_TIMEOUT 1000
}
#define HINIC_WAIT_CMDQ_IDLE_TIMEOUT 1000
rte_delay_ms(1);
} while (time_before(jiffies, end));
rte_delay_ms(1);
} while (time_before(jiffies, end));
}
static int wait_until_doorbell_and_outbound_enabled(struct hinic_hwif *hwif)
}
static int wait_until_doorbell_and_outbound_enabled(struct hinic_hwif *hwif)
rte_delay_ms(1);
} while (time_before(jiffies, end));
rte_delay_ms(1);
} while (time_before(jiffies, end));
}
u16 hinic_global_func_id(void *hwdev)
}
u16 hinic_global_func_id(void *hwdev)