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
crypto/qat: fix smaller modulus cases for mod exp
[dpdk.git]
/
examples
/
ip_fragmentation
/
main.c
diff --git
a/examples/ip_fragmentation/main.c
b/examples/ip_fragmentation/main.c
index
cc338f4
..
78205d2
100644
(file)
--- a/
examples/ip_fragmentation/main.c
+++ b/
examples/ip_fragmentation/main.c
@@
-145,16
+145,16
@@
struct lcore_queue_conf lcore_queue_conf[RTE_MAX_LCORE];
static struct rte_eth_conf port_conf = {
.rxmode = {
static struct rte_eth_conf port_conf = {
.rxmode = {
- .max_rx_pkt_len = JUMBO_FRAME_MAX_SIZE,
+ .mtu = JUMBO_FRAME_MAX_SIZE - RTE_ETHER_HDR_LEN -
+ RTE_ETHER_CRC_LEN,
.split_hdr_size = 0,
.split_hdr_size = 0,
- .offloads = (DEV_RX_OFFLOAD_CHECKSUM |
- DEV_RX_OFFLOAD_SCATTER |
- DEV_RX_OFFLOAD_JUMBO_FRAME),
+ .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;
}
@@
-917,9
+917,9
@@
main(int argc, char **argv)
"Error during getting device (port %u) info: %s\n",
portid, strerror(-ret));
"Error during getting device (port %u) info: %s\n",
portid, strerror(-ret));
- local_port_conf.rxmode.m
ax_rx_pkt_len
= RTE_MIN(
- dev_info.max_
rx_pktlen
,
- local_port_conf.rxmode.m
ax_rx_pkt_len
);
+ local_port_conf.rxmode.m
tu
= RTE_MIN(
+ dev_info.max_
mtu
,
+ local_port_conf.rxmode.m
tu
);
/* get the lcore_id for this port */
while (rte_lcore_is_enabled(rx_lcore_id) == 0 ||
/* get the lcore_id for this port */
while (rte_lcore_is_enabled(rx_lcore_id) == 0 ||
@@
-962,8
+962,7
@@
main(int argc, char **argv)
}
/* set the mtu to the maximum received packet size */
}
/* set the mtu to the maximum received packet size */
- ret = rte_eth_dev_set_mtu(portid,
- local_port_conf.rxmode.max_rx_pkt_len - MTU_OVERHEAD);
+ ret = rte_eth_dev_set_mtu(portid, local_port_conf.rxmode.mtu);
if (ret < 0) {
printf("\n");
rte_exit(EXIT_FAILURE, "Set MTU failed: "
if (ret < 0) {
printf("\n");
rte_exit(EXIT_FAILURE, "Set MTU failed: "