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
common/cnxk: add workaround for vWQE flush
[dpdk.git]
/
examples
/
ip_fragmentation
/
main.c
diff --git
a/examples/ip_fragmentation/main.c
b/examples/ip_fragmentation/main.c
index
d511331
..
78205d2
100644
(file)
--- a/
examples/ip_fragmentation/main.c
+++ b/
examples/ip_fragmentation/main.c
@@
-148,13
+148,13
@@
static struct rte_eth_conf port_conf = {
.mtu = JUMBO_FRAME_MAX_SIZE - RTE_ETHER_HDR_LEN -
RTE_ETHER_CRC_LEN,
.split_hdr_size = 0,
.mtu = JUMBO_FRAME_MAX_SIZE - RTE_ETHER_HDR_LEN -
RTE_ETHER_CRC_LEN,
.split_hdr_size = 0,
- .offloads = (
DEV
_RX_OFFLOAD_CHECKSUM |
-
DEV
_RX_OFFLOAD_SCATTER),
+ .offloads = (
RTE_ETH
_RX_OFFLOAD_CHECKSUM |
+
RTE_ETH
_RX_OFFLOAD_SCATTER),
},
.txmode = {
},
.txmode = {
- .mq_mode = ETH_MQ_TX_NONE,
- .offloads = (
DEV
_TX_OFFLOAD_IPV4_CKSUM |
-
DEV
_TX_OFFLOAD_MULTI_SEGS),
+ .mq_mode =
RTE_
ETH_MQ_TX_NONE,
+ .offloads = (
RTE_ETH
_TX_OFFLOAD_IPV4_CKSUM |
+
RTE_ETH
_TX_OFFLOAD_MULTI_SEGS),
},
};
},
};
@@
-298,7
+298,7
@@
l3fwd_simple_forward(struct rte_mbuf *m, struct lcore_queue_conf *qconf,
rte_pktmbuf_free(m);
/* request HW to regenerate IPv4 cksum */
rte_pktmbuf_free(m);
/* request HW to regenerate IPv4 cksum */
- ol_flags |= (
PKT_TX_IPV4 | PKT
_TX_IP_CKSUM);
+ ol_flags |= (
RTE_MBUF_F_TX_IPV4 | RTE_MBUF_F
_TX_IP_CKSUM);
/* If we fail to fragment the packet */
if (unlikely (len2 < 0))
/* If we fail to fragment the packet */
if (unlikely (len2 < 0))
@@
-623,7
+623,7
@@
check_all_ports_link_status(uint32_t port_mask)
continue;
}
/* clear all_ports_up flag if any link down */
continue;
}
/* clear all_ports_up flag if any link down */
- if (link.link_status == ETH_LINK_DOWN) {
+ if (link.link_status ==
RTE_
ETH_LINK_DOWN) {
all_ports_up = 0;
break;
}
all_ports_up = 0;
break;
}