* [dpdk-dev] [PATCH v1 0/1] modify ETIME errors for FreeBSD
@ 2020-07-09 13:43 Xiaoyun wang
2020-07-09 13:43 ` [dpdk-dev] [PATCH v1 1/1] net/hinic/base: " Xiaoyun wang
0 siblings, 1 reply; 3+ messages in thread
From: Xiaoyun wang @ 2020-07-09 13:43 UTC (permalink / raw)
To: dev
Cc: ferruh.yigit, bluca, luoxianjun, luoxingyu, zhouguoyang,
yin.yinshi, david.yangxiaoliang, zhaohui8, zhengjingzhou,
Xiaoyun wang
Change ETIME to ETIMEDOUT, because ETIME is not
defined in FreeBSD which may cause build error.
--
v1:
- modify ETIME errors for FreeBSD
Xiaoyun wang (1):
net/hinic/base: modify ETIME errors for FreeBSD
drivers/net/hinic/base/hinic_pmd_hwdev.c | 2 +-
drivers/net/hinic/base/hinic_pmd_hwif.c | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
--
1.8.3.1
^ permalink raw reply [flat|nested] 3+ messages in thread
* [dpdk-dev] [PATCH v1 1/1] net/hinic/base: modify ETIME errors for FreeBSD
2020-07-09 13:43 [dpdk-dev] [PATCH v1 0/1] modify ETIME errors for FreeBSD Xiaoyun wang
@ 2020-07-09 13:43 ` Xiaoyun wang
2020-07-09 20:02 ` Ferruh Yigit
0 siblings, 1 reply; 3+ messages in thread
From: Xiaoyun wang @ 2020-07-09 13:43 UTC (permalink / raw)
To: dev
Cc: ferruh.yigit, bluca, luoxianjun, luoxingyu, zhouguoyang,
yin.yinshi, david.yangxiaoliang, zhaohui8, zhengjingzhou,
Xiaoyun wang
Change ETIME errors to ETIMEDOUT, because ETIME is not
defined in FreeBSD which may cause build error.
Signed-off-by: Xiaoyun wang <cloud.wangxiaoyun@huawei.com>
---
drivers/net/hinic/base/hinic_pmd_hwdev.c | 2 +-
drivers/net/hinic/base/hinic_pmd_hwif.c | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/drivers/net/hinic/base/hinic_pmd_hwdev.c b/drivers/net/hinic/base/hinic_pmd_hwdev.c
index 765c47d..ac2a72e 100644
--- a/drivers/net/hinic/base/hinic_pmd_hwdev.c
+++ b/drivers/net/hinic/base/hinic_pmd_hwdev.c
@@ -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
diff --git a/drivers/net/hinic/base/hinic_pmd_hwif.c b/drivers/net/hinic/base/hinic_pmd_hwif.c
index 4578b68..d7fc1af 100644
--- a/drivers/net/hinic/base/hinic_pmd_hwif.c
+++ b/drivers/net/hinic/base/hinic_pmd_hwif.c
@@ -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)
--
1.8.3.1
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [dpdk-dev] [PATCH v1 1/1] net/hinic/base: modify ETIME errors for FreeBSD
2020-07-09 13:43 ` [dpdk-dev] [PATCH v1 1/1] net/hinic/base: " Xiaoyun wang
@ 2020-07-09 20:02 ` Ferruh Yigit
0 siblings, 0 replies; 3+ messages in thread
From: Ferruh Yigit @ 2020-07-09 20:02 UTC (permalink / raw)
To: Xiaoyun wang, dev
Cc: bluca, luoxianjun, luoxingyu, zhouguoyang, yin.yinshi,
david.yangxiaoliang, zhaohui8, zhengjingzhou
On 7/9/2020 2:43 PM, Xiaoyun wang wrote:
> Change ETIME errors to ETIMEDOUT, because ETIME is not
> defined in FreeBSD which may cause build error.
>
> Signed-off-by: Xiaoyun wang <cloud.wangxiaoyun@huawei.com>
Applied to dpdk-next-net/master, thanks.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2020-07-09 20:02 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-09 13:43 [dpdk-dev] [PATCH v1 0/1] modify ETIME errors for FreeBSD Xiaoyun wang
2020-07-09 13:43 ` [dpdk-dev] [PATCH v1 1/1] net/hinic/base: " Xiaoyun wang
2020-07-09 20:02 ` Ferruh Yigit
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).