X-Git-Url: http://git.droids-corp.org/?p=dpdk.git;a=blobdiff_plain;f=lib%2Flibrte_gso%2Fgso_common.h;h=a0b83436d679e28034917ad350061739439fc91b;hp=3edd2429b91988e60a3bd0afafd428c8bf2ea73b;hb=e73e3547ce54d7ae48dff82d87efac0b7a30692a;hpb=f41b5156feb575b9cfeb177974c8e625e09b480f diff --git a/lib/librte_gso/gso_common.h b/lib/librte_gso/gso_common.h index 3edd2429b9..a0b83436d6 100644 --- a/lib/librte_gso/gso_common.h +++ b/lib/librte_gso/gso_common.h @@ -46,9 +46,9 @@ static inline void update_udp_header(struct rte_mbuf *pkt, uint16_t udp_offset) { - struct udp_hdr *udp_hdr; + struct rte_udp_hdr *udp_hdr; - udp_hdr = (struct udp_hdr *)(rte_pktmbuf_mtod(pkt, char *) + + udp_hdr = (struct rte_udp_hdr *)(rte_pktmbuf_mtod(pkt, char *) + udp_offset); udp_hdr->dgram_len = rte_cpu_to_be_16(pkt->pkt_len - udp_offset); }