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
mbuf: clean old refcnt option
[dpdk.git]
/
lib
/
librte_ether
/
rte_ether.h
diff --git
a/lib/librte_ether/rte_ether.h
b/lib/librte_ether/rte_ether.h
index
bafeb2b
..
49f4576
100644
(file)
--- a/
lib/librte_ether/rte_ether.h
+++ b/
lib/librte_ether/rte_ether.h
@@
-383,7
+383,6
@@
static inline int rte_vlan_insert(struct rte_mbuf **m)
struct ether_hdr *oh, *nh;
struct vlan_hdr *vh;
struct ether_hdr *oh, *nh;
struct vlan_hdr *vh;
-#ifdef RTE_MBUF_REFCNT
/* Can't insert header if mbuf is shared */
if (rte_mbuf_refcnt_read(*m) > 1) {
struct rte_mbuf *copy;
/* Can't insert header if mbuf is shared */
if (rte_mbuf_refcnt_read(*m) > 1) {
struct rte_mbuf *copy;
@@
-394,7
+393,7
@@
static inline int rte_vlan_insert(struct rte_mbuf **m)
rte_pktmbuf_free(*m);
*m = copy;
}
rte_pktmbuf_free(*m);
*m = copy;
}
-#endif
+
oh = rte_pktmbuf_mtod(*m, struct ether_hdr *);
nh = (struct ether_hdr *)
rte_pktmbuf_prepend(*m, sizeof(struct vlan_hdr));
oh = rte_pktmbuf_mtod(*m, struct ether_hdr *);
nh = (struct ether_hdr *)
rte_pktmbuf_prepend(*m, sizeof(struct vlan_hdr));