Lines Matching refs:eth_hdr

101 	struct rte_ether_hdr *eth_hdr;  in parse_ptype()  local
105 eth_hdr = rte_pktmbuf_mtod(m, struct rte_ether_hdr *); in parse_ptype()
106 ether_type = eth_hdr->ether_type; in parse_ptype()
895 struct rte_ether_hdr *eth_hdr[8]; in simple_ipv4_fwd_8pkts() local
902 eth_hdr[0] = rte_pktmbuf_mtod(m[0], struct rte_ether_hdr *); in simple_ipv4_fwd_8pkts()
903 eth_hdr[1] = rte_pktmbuf_mtod(m[1], struct rte_ether_hdr *); in simple_ipv4_fwd_8pkts()
904 eth_hdr[2] = rte_pktmbuf_mtod(m[2], struct rte_ether_hdr *); in simple_ipv4_fwd_8pkts()
905 eth_hdr[3] = rte_pktmbuf_mtod(m[3], struct rte_ether_hdr *); in simple_ipv4_fwd_8pkts()
906 eth_hdr[4] = rte_pktmbuf_mtod(m[4], struct rte_ether_hdr *); in simple_ipv4_fwd_8pkts()
907 eth_hdr[5] = rte_pktmbuf_mtod(m[5], struct rte_ether_hdr *); in simple_ipv4_fwd_8pkts()
908 eth_hdr[6] = rte_pktmbuf_mtod(m[6], struct rte_ether_hdr *); in simple_ipv4_fwd_8pkts()
909 eth_hdr[7] = rte_pktmbuf_mtod(m[7], struct rte_ether_hdr *); in simple_ipv4_fwd_8pkts()
1071 *(uint64_t *)&eth_hdr[0]->d_addr = dest_eth_addr[dst_port[0]]; in simple_ipv4_fwd_8pkts()
1072 *(uint64_t *)&eth_hdr[1]->d_addr = dest_eth_addr[dst_port[1]]; in simple_ipv4_fwd_8pkts()
1073 *(uint64_t *)&eth_hdr[2]->d_addr = dest_eth_addr[dst_port[2]]; in simple_ipv4_fwd_8pkts()
1074 *(uint64_t *)&eth_hdr[3]->d_addr = dest_eth_addr[dst_port[3]]; in simple_ipv4_fwd_8pkts()
1075 *(uint64_t *)&eth_hdr[4]->d_addr = dest_eth_addr[dst_port[4]]; in simple_ipv4_fwd_8pkts()
1076 *(uint64_t *)&eth_hdr[5]->d_addr = dest_eth_addr[dst_port[5]]; in simple_ipv4_fwd_8pkts()
1077 *(uint64_t *)&eth_hdr[6]->d_addr = dest_eth_addr[dst_port[6]]; in simple_ipv4_fwd_8pkts()
1078 *(uint64_t *)&eth_hdr[7]->d_addr = dest_eth_addr[dst_port[7]]; in simple_ipv4_fwd_8pkts()
1081 rte_ether_addr_copy(&ports_eth_addr[dst_port[0]], &eth_hdr[0]->s_addr); in simple_ipv4_fwd_8pkts()
1082 rte_ether_addr_copy(&ports_eth_addr[dst_port[1]], &eth_hdr[1]->s_addr); in simple_ipv4_fwd_8pkts()
1083 rte_ether_addr_copy(&ports_eth_addr[dst_port[2]], &eth_hdr[2]->s_addr); in simple_ipv4_fwd_8pkts()
1084 rte_ether_addr_copy(&ports_eth_addr[dst_port[3]], &eth_hdr[3]->s_addr); in simple_ipv4_fwd_8pkts()
1085 rte_ether_addr_copy(&ports_eth_addr[dst_port[4]], &eth_hdr[4]->s_addr); in simple_ipv4_fwd_8pkts()
1086 rte_ether_addr_copy(&ports_eth_addr[dst_port[5]], &eth_hdr[5]->s_addr); in simple_ipv4_fwd_8pkts()
1087 rte_ether_addr_copy(&ports_eth_addr[dst_port[6]], &eth_hdr[6]->s_addr); in simple_ipv4_fwd_8pkts()
1088 rte_ether_addr_copy(&ports_eth_addr[dst_port[7]], &eth_hdr[7]->s_addr); in simple_ipv4_fwd_8pkts()
1125 struct rte_ether_hdr *eth_hdr[8]; in simple_ipv6_fwd_8pkts() local
1130 eth_hdr[0] = rte_pktmbuf_mtod(m[0], struct rte_ether_hdr *); in simple_ipv6_fwd_8pkts()
1131 eth_hdr[1] = rte_pktmbuf_mtod(m[1], struct rte_ether_hdr *); in simple_ipv6_fwd_8pkts()
1132 eth_hdr[2] = rte_pktmbuf_mtod(m[2], struct rte_ether_hdr *); in simple_ipv6_fwd_8pkts()
1133 eth_hdr[3] = rte_pktmbuf_mtod(m[3], struct rte_ether_hdr *); in simple_ipv6_fwd_8pkts()
1134 eth_hdr[4] = rte_pktmbuf_mtod(m[4], struct rte_ether_hdr *); in simple_ipv6_fwd_8pkts()
1135 eth_hdr[5] = rte_pktmbuf_mtod(m[5], struct rte_ether_hdr *); in simple_ipv6_fwd_8pkts()
1136 eth_hdr[6] = rte_pktmbuf_mtod(m[6], struct rte_ether_hdr *); in simple_ipv6_fwd_8pkts()
1137 eth_hdr[7] = rte_pktmbuf_mtod(m[7], struct rte_ether_hdr *); in simple_ipv6_fwd_8pkts()
1206 *(uint64_t *)&eth_hdr[0]->d_addr = dest_eth_addr[dst_port[0]]; in simple_ipv6_fwd_8pkts()
1207 *(uint64_t *)&eth_hdr[1]->d_addr = dest_eth_addr[dst_port[1]]; in simple_ipv6_fwd_8pkts()
1208 *(uint64_t *)&eth_hdr[2]->d_addr = dest_eth_addr[dst_port[2]]; in simple_ipv6_fwd_8pkts()
1209 *(uint64_t *)&eth_hdr[3]->d_addr = dest_eth_addr[dst_port[3]]; in simple_ipv6_fwd_8pkts()
1210 *(uint64_t *)&eth_hdr[4]->d_addr = dest_eth_addr[dst_port[4]]; in simple_ipv6_fwd_8pkts()
1211 *(uint64_t *)&eth_hdr[5]->d_addr = dest_eth_addr[dst_port[5]]; in simple_ipv6_fwd_8pkts()
1212 *(uint64_t *)&eth_hdr[6]->d_addr = dest_eth_addr[dst_port[6]]; in simple_ipv6_fwd_8pkts()
1213 *(uint64_t *)&eth_hdr[7]->d_addr = dest_eth_addr[dst_port[7]]; in simple_ipv6_fwd_8pkts()
1216 rte_ether_addr_copy(&ports_eth_addr[dst_port[0]], &eth_hdr[0]->s_addr); in simple_ipv6_fwd_8pkts()
1217 rte_ether_addr_copy(&ports_eth_addr[dst_port[1]], &eth_hdr[1]->s_addr); in simple_ipv6_fwd_8pkts()
1218 rte_ether_addr_copy(&ports_eth_addr[dst_port[2]], &eth_hdr[2]->s_addr); in simple_ipv6_fwd_8pkts()
1219 rte_ether_addr_copy(&ports_eth_addr[dst_port[3]], &eth_hdr[3]->s_addr); in simple_ipv6_fwd_8pkts()
1220 rte_ether_addr_copy(&ports_eth_addr[dst_port[4]], &eth_hdr[4]->s_addr); in simple_ipv6_fwd_8pkts()
1221 rte_ether_addr_copy(&ports_eth_addr[dst_port[5]], &eth_hdr[5]->s_addr); in simple_ipv6_fwd_8pkts()
1222 rte_ether_addr_copy(&ports_eth_addr[dst_port[6]], &eth_hdr[6]->s_addr); in simple_ipv6_fwd_8pkts()
1223 rte_ether_addr_copy(&ports_eth_addr[dst_port[7]], &eth_hdr[7]->s_addr); in simple_ipv6_fwd_8pkts()
1240 struct rte_ether_hdr *eth_hdr; in l3fwd_simple_forward() local
1244 eth_hdr = rte_pktmbuf_mtod(m, struct rte_ether_hdr *); in l3fwd_simple_forward()
1271 *(uint64_t *)&eth_hdr->d_addr = dest_eth_addr[dst_port]; in l3fwd_simple_forward()
1275 &eth_hdr->s_addr); in l3fwd_simple_forward()
1293 *(uint64_t *)&eth_hdr->d_addr = dest_eth_addr[dst_port]; in l3fwd_simple_forward()
1297 &eth_hdr->s_addr); in l3fwd_simple_forward()
1360 struct rte_ether_hdr *eth_hdr; in get_dst_port() local
1369 eth_hdr = rte_pktmbuf_mtod(pkt, struct rte_ether_hdr *); in get_dst_port()
1370 ipv6_hdr = (struct rte_ipv6_hdr *)(eth_hdr + 1); in get_dst_port()
1385 struct rte_ether_hdr *eth_hdr; in process_packet() local
1391 eth_hdr = rte_pktmbuf_mtod(pkt, struct rte_ether_hdr *); in process_packet()
1392 ipv4_hdr = (struct rte_ipv4_hdr *)(eth_hdr + 1); in process_packet()
1398 te = _mm_load_si128((__m128i *)eth_hdr); in process_packet()
1405 _mm_store_si128((__m128i *)eth_hdr, te); in process_packet()
1417 struct rte_ether_hdr *eth_hdr; in processx4_step1() local
1420 eth_hdr = rte_pktmbuf_mtod(pkt[0], struct rte_ether_hdr *); in processx4_step1()
1421 ipv4_hdr = (struct rte_ipv4_hdr *)(eth_hdr + 1); in processx4_step1()
1425 eth_hdr = rte_pktmbuf_mtod(pkt[1], struct rte_ether_hdr *); in processx4_step1()
1426 ipv4_hdr = (struct rte_ipv4_hdr *)(eth_hdr + 1); in processx4_step1()
1430 eth_hdr = rte_pktmbuf_mtod(pkt[2], struct rte_ether_hdr *); in processx4_step1()
1431 ipv4_hdr = (struct rte_ipv4_hdr *)(eth_hdr + 1); in processx4_step1()
1435 eth_hdr = rte_pktmbuf_mtod(pkt[3], struct rte_ether_hdr *); in processx4_step1()
1436 ipv4_hdr = (struct rte_ipv4_hdr *)(eth_hdr + 1); in processx4_step1()