net/hinic/base: convert error value to ETIMEDOUT

Following commit updated the error codes:
commit 2ae8e130cf ("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>
This commit is contained in:
Xiaoyun Wang 2020-07-09 21:43:02 +08:00 committed by Ferruh Yigit
parent 50ce3e7aec
commit 3260064acc
2 changed files with 3 additions and 3 deletions

View File

@ -475,7 +475,7 @@ static int wait_for_flr_finish(struct hinic_hwif *hwif)
rte_delay_ms(10);
} while (time_before(jiffies, end));
return -EFAULT;
return -ETIMEDOUT;
}
#define HINIC_WAIT_CMDQ_IDLE_TIMEOUT 1000

View File

@ -321,7 +321,7 @@ int wait_until_doorbell_flush_states(struct hinic_hwif *hwif,
rte_delay_ms(1);
} while (time_before(jiffies, end));
return -EFAULT;
return -ETIMEDOUT;
}
static int wait_until_doorbell_and_outbound_enabled(struct hinic_hwif *hwif)
@ -343,7 +343,7 @@ static int wait_until_doorbell_and_outbound_enabled(struct hinic_hwif *hwif)
rte_delay_ms(1);
} while (time_before(jiffies, end));
return -EFAULT;
return -ETIMEDOUT;
}
u16 hinic_global_func_id(void *hwdev)