| /dpdk/examples/bpf/ |
| H A D | t1.c | 41 if (ether_header->ether_type != htons(0x0800)) in entry() 52 if (udphdr->dest != htons(5000)) in entry()
|
| H A D | t3.c | 41 if (eth->ether_type == htons(ETHERTYPE_ARP)) in entry()
|
| /dpdk/drivers/net/tap/ |
| H A D | tap_bpf_program.c | 143 if (skb->vlan_present && skb->vlan_proto == htons(ETH_P_8021AD)) { in rss_l3_l4() 152 if (proto == htons(ETH_P_IP)) { in rss_l3_l4() 177 } else if (proto == htons(ETH_P_IPV6)) { in rss_l3_l4()
|
| H A D | tap_flow.c | 599 msg->t.tcm_info = TC_H_MAKE(msg->t.tcm_info, htons(ETH_P_8021Q)); in tap_flow_create_vlan() 644 if (info->eth_type && info->eth_type != htons(ETH_P_IP)) in tap_flow_create_ipv4() 653 info->eth_type = htons(ETH_P_IP); in tap_flow_create_ipv4() 700 if (info->eth_type && info->eth_type != htons(ETH_P_IPV6)) in tap_flow_create_ipv6() 709 info->eth_type = htons(ETH_P_IPV6); in tap_flow_create_ipv6() 1122 htons(ETH_P_8021Q)); in priv_flow_process() 1126 data.eth_type : htons(ETH_P_ALL)); in priv_flow_process() 1398 msg->t.tcm_info = TC_H_MAKE(0, htons(ETH_P_ALL)); in tap_flow_create() 1437 msg->t.tcm_info = TC_H_MAKE(0, htons(ETH_P_ALL)); in tap_flow_create() 1725 msg->t.tcm_info = TC_H_MAKE(0, htons(ETH_P_ALL)); in tap_flow_implicit_create() [all …]
|
| /dpdk/examples/ipsec-secgw/ |
| H A D | ipip.h | 50 outip6->ip6_plen = htons(rte_pktmbuf_data_len(m) - in ipip_outbound() 71 outip4->ip_len = htons(rte_pktmbuf_data_len(m)); in ipip_outbound()
|
| H A D | esp.c | 206 ip4->ip_len = htons(rte_pktmbuf_data_len(m)); in esp_inbound_post() 212 ip6->ip6_plen = htons(rte_pktmbuf_data_len(m) - in esp_inbound_post() 319 ip4->ip_len = htons(rte_pktmbuf_data_len(m)); in esp_outbound() 323 ip6->ip6_plen = htons(rte_pktmbuf_data_len(m) - in esp_outbound()
|
| H A D | ipsec.c | 226 sess_conf.ipsec.udp.sport = htons(sa->udp.sport); in create_inline_session() 227 sess_conf.ipsec.udp.dport = htons(sa->udp.dport); in create_inline_session()
|
| /dpdk/drivers/net/cxgbe/ |
| H A D | cxgbe_compat.h | 163 #ifndef htons 164 #define htons(o) cpu_to_be16(o) macro
|
| H A D | sge.c | 992 cpl->pack = htons(0); in tx_do_packet_coalesce() 993 cpl->len = htons(len); in tx_do_packet_coalesce() 1181 lso->ipid_ofst = htons(0); in t4_eth_xmit() 1182 lso->mss = htons(m->tso_segsz); in t4_eth_xmit() 1215 cpl->pack = htons(0); in t4_eth_xmit() 1216 cpl->len = htons(m->pkt_len); in t4_eth_xmit() 1815 htons(V_FW_IQ_CMD_IQPCIECH(pciechan) | in t4_sge_alloc_rxq() 1819 c.iqsize = htons(iq->size); in t4_sge_alloc_rxq() 1861 htons(V_FW_IQ_CMD_FL0FBMIN(chip_ver <= CHELSIO_T5 ? in t4_sge_alloc_rxq() 1867 c.fl0size = htons(flsz); in t4_sge_alloc_rxq()
|
| /dpdk/examples/ptpclient/ |
| H A D | ptpclient.c | 441 eth_hdr->ether_type = htons(PTP_PROTOCOL); in parse_fup() 446 req_msg->hdr.seq_id = htons(ptp_data->seqID_SYNC); in parse_fup() 452 htons(sizeof(struct delay_req_msg)); in parse_fup()
|
| /dpdk/examples/ipsec-secgw/test/ |
| H A D | pkttest.py | 54 self.s = socket.socket(socket.AF_PACKET, socket.SOCK_RAW, socket.htons(Interface.ETH_P_ALL))
|
| /dpdk/drivers/net/af_packet/ |
| H A D | rte_eth_af_packet.c | 642 *sockfd = socket(AF_PACKET, SOCK_RAW, htons(ETH_P_ALL)); in open_packet_iface() 757 sockaddr.sll_protocol = htons(ETH_P_ALL); in rte_pmd_init_internals() 770 qsockfd = socket(AF_PACKET, SOCK_RAW, htons(ETH_P_ALL)); in rte_pmd_init_internals()
|
| /dpdk/examples/ip_pipeline/ |
| H A D | conn.c | 83 server_address.sin_port = htons(p->port); in conn_init()
|
| /dpdk/drivers/net/softnic/ |
| H A D | conn.c | 84 server_address.sin_port = htons(p->port); in softnic_conn_init()
|
| /dpdk/examples/pipeline/ |
| H A D | conn.c | 84 server_address.sin_port = htons(p->port); in conn_init()
|
| /dpdk/drivers/net/pfe/ |
| H A D | pfe_hif.c | 735 local_hdr.phyno = htons(0); /* RX_PHY_0 */ in send_dummy_pkt_to_hif() 736 local_hdr.length = htons(MIN_PKT_SIZE); in send_dummy_pkt_to_hif()
|
| /dpdk/drivers/net/mlx5/ |
| H A D | mlx5_flow_verbs.c | 730 udp.val.dst_port = htons(MLX5_UDP_PORT_VXLAN); in flow_verbs_translate_item_udp() 734 udp.val.dst_port = htons(MLX5_UDP_PORT_VXLAN_GPE); in flow_verbs_translate_item_udp() 738 udp.val.dst_port = htons(MLX5_UDP_PORT_MPLS); in flow_verbs_translate_item_udp()
|
| /dpdk/drivers/net/bnxt/tf_ulp/ |
| H A D | ulp_rte_parser.c | 844 priority = htons(vlan_tag >> ULP_VLAN_PRIORITY_SHIFT); in ulp_rte_vlan_hdr_handler() 846 vlan_tag = htons(vlan_tag); in ulp_rte_vlan_hdr_handler() 852 priority_mask = htons(vlan_tag_mask >> ULP_VLAN_PRIORITY_SHIFT); in ulp_rte_vlan_hdr_handler() 865 vlan_tag_mask = htons(vlan_tag_mask); in ulp_rte_vlan_hdr_handler()
|
| /dpdk/drivers/net/dpaa/ |
| H A D | dpaa_rxtx.c | 262 if (eth_hdr->ether_type == htons(RTE_ETHER_TYPE_IPV4)) in dpaa_checksum() 273 if (eth_hdr->ether_type == htons(RTE_ETHER_TYPE_IPV4)) in dpaa_checksum()
|
| /dpdk/kernel/linux/kni/ |
| H A D | kni_net.c | 739 eth->h_proto = htons(type); in kni_net_header()
|
| /dpdk/app/test/ |
| H A D | test_bpf.c | 1071 if (eth_hdr->ether_type == htons(0x8100)) { in test_jump2_check() 1081 if (eth_type == htons(0x0800)) { in test_jump2_check()
|
| /dpdk/drivers/net/iavf/ |
| H A D | iavf_ipsec_crypto.c | 787 request->ipsec_data.sp_cfg->udp_port = htons(udp_port); in iavf_ipsec_crypto_inbound_security_policy_add()
|
| /dpdk/drivers/net/hns3/ |
| H A D | hns3_ethdev_vf.c | 1090 uint16_t proto = htons(RTE_ETHER_TYPE_VLAN); in hns3vf_vlan_filter_configure()
|
| H A D | hns3_ethdev.c | 3750 tbl->mac_addr_lo16 = rte_cpu_to_le_16(htons(0x000E)); in hns3_prepare_mgr_tbl()
|