git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
net/sfc: restart RxQ in case of exception on event queue
[dpdk.git]
/
drivers
/
net
/
sfc
/
sfc.h
diff --git
a/drivers/net/sfc/sfc.h
b/drivers/net/sfc/sfc.h
index
543c368
..
c6bb5e8
100644
(file)
--- a/
drivers/net/sfc/sfc.h
+++ b/
drivers/net/sfc/sfc.h
@@
-190,6
+190,12
@@
sfc_adapter_lock(struct sfc_adapter *sa)
rte_spinlock_lock(&sa->lock);
}
+static inline int
+sfc_adapter_trylock(struct sfc_adapter *sa)
+{
+ return rte_spinlock_trylock(&sa->lock);
+}
+
static inline void
sfc_adapter_unlock(struct sfc_adapter *sa)
{