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/qede: free packets in bulk
[dpdk.git]
/
drivers
/
net
/
cxgbe
/
smt.c
diff --git
a/drivers/net/cxgbe/smt.c
b/drivers/net/cxgbe/smt.c
index
e8f3867
..
b7b5a4a
100644
(file)
--- a/
drivers/net/cxgbe/smt.c
+++ b/
drivers/net/cxgbe/smt.c
@@
-193,6
+193,12
@@
struct smt_entry *cxgbe_smt_alloc_switching(struct rte_eth_dev *dev, u8 *smac)
return t4_smt_alloc_switching(dev, 0x0, smac);
}
+void cxgbe_smt_release(struct smt_entry *e)
+{
+ if (rte_atomic32_read(&e->refcnt))
+ rte_atomic32_dec(&e->refcnt);
+}
+
/**
* Initialize Source MAC Table
*/