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
sched: improve doxygen comments
[dpdk.git]
/
examples
/
vhost
/
main.c
diff --git
a/examples/vhost/main.c
b/examples/vhost/main.c
index
c6a6531
..
0961db0
100644
(file)
--- a/
examples/vhost/main.c
+++ b/
examples/vhost/main.c
@@
-858,7
+858,7
@@
get_psd_sum(void *l3_hdr, uint64_t ol_flags)
{
if (ol_flags & PKT_TX_IPV4)
return rte_ipv4_phdr_cksum(l3_hdr, ol_flags);
{
if (ol_flags & PKT_TX_IPV4)
return rte_ipv4_phdr_cksum(l3_hdr, ol_flags);
- else /* assume ethertype == RTE_ETHER_TYPE_IP
v
6 */
+ else /* assume ethertype == RTE_ETHER_TYPE_IP
V
6 */
return rte_ipv6_phdr_cksum(l3_hdr, ol_flags);
}
return rte_ipv6_phdr_cksum(l3_hdr, ol_flags);
}
@@
-866,7
+866,7
@@
static void virtio_tx_offload(struct rte_mbuf *m)
{
void *l3_hdr;
struct rte_ipv4_hdr *ipv4_hdr = NULL;
{
void *l3_hdr;
struct rte_ipv4_hdr *ipv4_hdr = NULL;
- struct tcp_hdr *tcp_hdr = NULL;
+ struct
rte_
tcp_hdr *tcp_hdr = NULL;
struct rte_ether_hdr *eth_hdr =
rte_pktmbuf_mtod(m, struct rte_ether_hdr *);
struct rte_ether_hdr *eth_hdr =
rte_pktmbuf_mtod(m, struct rte_ether_hdr *);
@@
-878,7
+878,7
@@
static void virtio_tx_offload(struct rte_mbuf *m)
m->ol_flags |= PKT_TX_IP_CKSUM;
}
m->ol_flags |= PKT_TX_IP_CKSUM;
}
- tcp_hdr = (struct tcp_hdr *)((char *)l3_hdr + m->l3_len);
+ tcp_hdr = (struct
rte_
tcp_hdr *)((char *)l3_hdr + m->l3_len);
tcp_hdr->cksum = get_psd_sum(l3_hdr, m->ol_flags);
}
tcp_hdr->cksum = get_psd_sum(l3_hdr, m->ol_flags);
}