Skip to contentSkip to conversation

modify ETIME errors for FreeBSD

PATCH Applied Xiaoyun wang 2 participants 3 messages Jul 9, 2020 Network drivers

lore
Share & tools
lore
#0 lore raw

cover modify ETIME errors for FreeBSD

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(-)
Signature · 1 line
1.8.3.1
#1 lore raw

PATCH 1/1 net/hinic/base: modify ETIME errors for FreeBSD

Change ETIME errors to ETIMEDOUT, because ETIME is not defined in FreeBSD which may cause build error.

---
 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(-)
drivers/net/hinic/base/hinic_pmd_hwdev.c +1 -1
index 765c47d..ac2a72e 100644
@@ -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
drivers/net/hinic/base/hinic_pmd_hwif.c +2 -2
index 4578b68..d7fc1af 100644
@@ -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)
Signature · 1 line
1.8.3.1
Applied
#2 lore raw

Re: [dpdk-dev] [PATCH v1 1/1] net/hinic/base: modify ETIME errors for FreeBSD

Quoted 4 lines · Xiaoyun wang

Change ETIME errors to ETIMEDOUT, because ETIME is not defined in FreeBSD which may cause build error.

Applied to dpdk-next-net/master, thanks.