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: add rte prefix to offload flags
[dpdk.git]
/
lib
/
net
/
rte_ether.h
diff --git
a/lib/net/rte_ether.h
b/lib/net/rte_ether.h
index
7ee5e9a
..
581ac1b
100644
(file)
--- a/
lib/net/rte_ether.h
+++ b/
lib/net/rte_ether.h
@@
-336,7
+336,7
@@
static inline int rte_vlan_strip(struct rte_mbuf *m)
return -1;
vh = (struct rte_vlan_hdr *)(eh + 1);
return -1;
vh = (struct rte_vlan_hdr *)(eh + 1);
- m->ol_flags |=
PKT_RX_VLAN | PKT
_RX_VLAN_STRIPPED;
+ m->ol_flags |=
RTE_MBUF_F_RX_VLAN | RTE_MBUF_F
_RX_VLAN_STRIPPED;
m->vlan_tci = rte_be_to_cpu_16(vh->vlan_tci);
/* Copy ether header over rather than moving whole packet */
m->vlan_tci = rte_be_to_cpu_16(vh->vlan_tci);
/* Copy ether header over rather than moving whole packet */
@@
-383,9
+383,9
@@
static inline int rte_vlan_insert(struct rte_mbuf **m)
vh = (struct rte_vlan_hdr *) (nh + 1);
vh->vlan_tci = rte_cpu_to_be_16((*m)->vlan_tci);
vh = (struct rte_vlan_hdr *) (nh + 1);
vh->vlan_tci = rte_cpu_to_be_16((*m)->vlan_tci);
- (*m)->ol_flags &= ~(
PKT_RX_VLAN_STRIPPED | PKT
_TX_VLAN);
+ (*m)->ol_flags &= ~(
RTE_MBUF_F_RX_VLAN_STRIPPED | RTE_MBUF_F
_TX_VLAN);
- if ((*m)->ol_flags &
PKT
_TX_TUNNEL_MASK)
+ if ((*m)->ol_flags &
RTE_MBUF_F
_TX_TUNNEL_MASK)
(*m)->outer_l2_len += sizeof(struct rte_vlan_hdr);
else
(*m)->l2_len += sizeof(struct rte_vlan_hdr);
(*m)->outer_l2_len += sizeof(struct rte_vlan_hdr);
else
(*m)->l2_len += sizeof(struct rte_vlan_hdr);