Thread (231 messages) 231 messages, 9 authors, 2016-11-11

Re: [PATCH v3 12/15] ether: extract function eth_dev_get_intr_handle

From: Panu Matilainen <hidden>
Date: 2016-09-16 07:28:07

On 09/15/2016 05:05 PM, Thomas Monjalon wrote:
2016-09-15 14:02, Hunt, David:
quoted
On 9/9/2016 9:43 AM, Shreyansh Jain wrote:
quoted
+static inline
+struct rte_intr_handle *eth_dev_get_intr_handle(struct rte_eth_dev *dev)
+{
+	if (dev->pci_dev) {
+		return &dev->pci_dev->intr_handle;
+	}
+
+	RTE_VERIFY(0);
Rather than RTE_VERIFY(0), might I suggest using rte_panic with a more
relevant error message?
RTE_ASSERT is preferred.
We must stop adding some rte_panic calls except for debug.
+1

It wouldn't hurt to make that a hard rule.

	- Panu -
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help