Home
last modified time | relevance | path

Searched refs:ipv4 (Results 1 – 25 of 43) sorted by relevance

12

/drivers/infiniband/hw/usnic/
Dusnic_fwd.h114 filter->u.ipv4.flags = FILTER_FIELD_5TUP_PROTO; in usnic_fwd_init_udp_filter()
115 filter->u.ipv4.protocol = PROTO_UDP; in usnic_fwd_init_udp_filter()
118 filter->u.ipv4.flags |= FILTER_FIELD_5TUP_DST_AD; in usnic_fwd_init_udp_filter()
119 filter->u.ipv4.dst_addr = daddr; in usnic_fwd_init_udp_filter()
123 filter->u.ipv4.flags |= FILTER_FIELD_5TUP_DST_PT; in usnic_fwd_init_udp_filter()
124 filter->u.ipv4.dst_port = dport; in usnic_fwd_init_udp_filter()
Dusnic_fwd.c174 if (!(filter->u.ipv4.flags & FILTER_FIELD_5TUP_DST_AD)) in validate_filter_locked()
176 if (!(filter->u.ipv4.flags & FILTER_FIELD_5TUP_DST_PT)) in validate_filter_locked()
180 else if (filter->u.ipv4.dst_port == 0) in validate_filter_locked()
182 else if (ntohl(ufdev->inaddr) != filter->u.ipv4.dst_addr) in validate_filter_locked()
/drivers/infiniband/hw/ocrdma/
Docrdma_ah.c83 struct iphdr ipv4; in set_av_attr() local
127 *((__be16 *)&ipv4) = htons((4 << 12) | (5 << 8) | in set_av_attr()
129 ipv4.id = cpu_to_be16(pdid); in set_av_attr()
130 ipv4.frag_off = htons(IP_DF); in set_av_attr()
131 ipv4.tot_len = htons(0); in set_av_attr()
132 ipv4.ttl = attr->grh.hop_limit; in set_av_attr()
133 ipv4.protocol = nxthdr; in set_av_attr()
135 ipv4.saddr = sgid_addr._sockaddr_in.sin_addr.s_addr; in set_av_attr()
137 ipv4.daddr = dgid_addr._sockaddr_in.sin_addr.s_addr; in set_av_attr()
138 memcpy((u8 *)ah->av + eth_sz, &ipv4, sizeof(struct iphdr)); in set_av_attr()
/drivers/net/ethernet/cisco/enic/
Denic_clsf.c27 data.u.ipv4.protocol = PROTO_TCP; in enic_addfltr_5t()
30 data.u.ipv4.protocol = PROTO_UDP; in enic_addfltr_5t()
36 data.u.ipv4.src_addr = ntohl(keys->addrs.v4addrs.src); in enic_addfltr_5t()
37 data.u.ipv4.dst_addr = ntohl(keys->addrs.v4addrs.dst); in enic_addfltr_5t()
38 data.u.ipv4.src_port = ntohs(keys->ports.src); in enic_addfltr_5t()
39 data.u.ipv4.dst_port = ntohs(keys->ports.dst); in enic_addfltr_5t()
40 data.u.ipv4.flags = FILTER_FIELDS_IPV4_5TUPLE; in enic_addfltr_5t()
Dcq_enet_desc.h111 u8 *ipv6, u8 *ipv4, u8 *ipv4_fragment, u8 *fcs_ok) in cq_enet_rq_desc_dec() argument
179 *ipv4 = (desc->flags & CQ_ENET_RQ_DESC_FLAGS_IPV4) ? 1 : 0; in cq_enet_rq_desc_dec()
Dvnic_devcmd.h593 struct filter_ipv4_5tuple ipv4; member
/drivers/infiniband/hw/i40iw/
Di40iw_cm.c218 cm_info->ipv4 = cm_node->ipv4; in i40iw_get_addr_info()
267 if (cm_node->ipv4) in i40iw_send_cm_event()
420 if (cm_node->ipv4) in i40iw_form_cm_frame()
436 if (cm_node->ipv4) { in i40iw_form_cm_frame()
437 sqbuf->ipv4 = true; in i40iw_form_cm_frame()
467 sqbuf->ipv4 = false; in i40iw_form_cm_frame()
1550 if (child_listen_node->ipv4) in i40iw_del_multiple_qhash()
1858 event.cm_info.ipv4 = loopback->ipv4; in i40iw_dec_refcnt_listen()
1881 nfo.ipv4 = listener->ipv4; in i40iw_dec_refcnt_listen()
2139 cm_node->ipv4 = cm_info->ipv4; in i40iw_make_cm_node()
[all …]
Di40iw_cm.h304 bool ipv4; member
347 bool ipv4; member
372 bool ipv4; member
444 bool ipv4,
Di40iw_puda.h74 bool ipv4; member
95 bool ipv4; member
Di40iw_utils.c63 bool ipv4, in i40iw_arp_table() argument
71 if (ipv4) { in i40iw_arp_table()
1172 iphlen = (buf->ipv4) ? 20 : 40; in i40iw_ieq_update_tcpip_info()
1203 buf->ipv4 = (info->l3proto) ? false : true; in i40iw_puda_get_tcpip_info()
1210 if (buf->ipv4) { in i40iw_puda_get_tcpip_info()
Di40iw_hw.c473 bool ipv4, in i40iw_manage_arp_cache() argument
481 arp_index = i40iw_arp_table(iwdev, ip_addr, ipv4, mac_addr, action); in i40iw_manage_arp_cache()
562 info->ipv4_valid = cminfo->ipv4; in i40iw_manage_qhash()
Di40iw_puda.c383 if (info->ipv4) { in i40iw_puda_send()
456 info.ipv4 = buf->ipv4; in i40iw_puda_send_buf()
985 txbuf->ipv4 = buf->ipv4; in i40iw_ieq_setup_tx_buf()
/drivers/net/ethernet/mellanox/mlx5/core/
Den_rx.c487 struct iphdr *ipv4; in mlx5e_lro_update_hdr() local
501 ipv4 = (struct iphdr *)(skb->data + network_depth); in mlx5e_lro_update_hdr()
513 ipv4 = NULL; in mlx5e_lro_update_hdr()
526 if (ipv4) { in mlx5e_lro_update_hdr()
527 ipv4->ttl = cqe->lro_min_ttl; in mlx5e_lro_update_hdr()
528 ipv4->tot_len = cpu_to_be16(tot_len); in mlx5e_lro_update_hdr()
529 ipv4->check = 0; in mlx5e_lro_update_hdr()
530 ipv4->check = ip_fast_csum((unsigned char *)ipv4, in mlx5e_lro_update_hdr()
531 ipv4->ihl); in mlx5e_lro_update_hdr()
Den_arfs.c271 src_ipv4_src_ipv6.ipv4_layout.ipv4); in arfs_create_groups()
273 dst_ipv4_dst_ipv6.ipv4_layout.ipv4); in arfs_create_groups()
516 outer_headers.src_ipv4_src_ipv6.ipv4_layout.ipv4), in arfs_add_rule()
520 outer_headers.dst_ipv4_dst_ipv6.ipv4_layout.ipv4), in arfs_add_rule()
524 outer_headers.src_ipv4_src_ipv6.ipv4_layout.ipv4); in arfs_add_rule()
526 outer_headers.dst_ipv4_dst_ipv6.ipv4_layout.ipv4); in arfs_add_rule()
Den_fs_ethtool.c123 src_ipv4_src_ipv6.ipv4_layout.ipv4), in set_ips()
126 src_ipv4_src_ipv6.ipv4_layout.ipv4), in set_ips()
131 dst_ipv4_dst_ipv6.ipv4_layout.ipv4), in set_ips()
134 dst_ipv4_dst_ipv6.ipv4_layout.ipv4), in set_ips()
Den_tc.c263 src_ipv4_src_ipv6.ipv4_layout.ipv4), in parse_cls_flower()
266 src_ipv4_src_ipv6.ipv4_layout.ipv4), in parse_cls_flower()
269 dst_ipv4_dst_ipv6.ipv4_layout.ipv4), in parse_cls_flower()
272 dst_ipv4_dst_ipv6.ipv4_layout.ipv4), in parse_cls_flower()
/drivers/net/ethernet/mellanox/mlx4/
Dmcg.c872 rule_hw->ipv4.src_ip = spec->ipv4.src_ip; in parse_trans_rule()
873 rule_hw->ipv4.src_ip_msk = spec->ipv4.src_ip_msk; in parse_trans_rule()
874 rule_hw->ipv4.dst_ip = spec->ipv4.dst_ip; in parse_trans_rule()
875 rule_hw->ipv4.dst_ip_msk = spec->ipv4.dst_ip_msk; in parse_trans_rule()
929 if (cur->ipv4.src_ip) in mlx4_err_rule()
932 &cur->ipv4.src_ip); in mlx4_err_rule()
933 if (cur->ipv4.dst_ip) in mlx4_err_rule()
936 &cur->ipv4.dst_ip); in mlx4_err_rule()
Den_ethtool.c1378 spec_l3->ipv4.src_ip = cmd->fs.h_u.usr_ip4_spec.ip4src; in add_ip_rule()
1380 spec_l3->ipv4.src_ip_msk = EN_ETHTOOL_WORD_MASK; in add_ip_rule()
1381 spec_l3->ipv4.dst_ip = cmd->fs.h_u.usr_ip4_spec.ip4dst; in add_ip_rule()
1383 spec_l3->ipv4.dst_ip_msk = EN_ETHTOOL_WORD_MASK; in add_ip_rule()
1422 spec_l3->ipv4.src_ip = cmd->fs.h_u.tcp_ip4_spec.ip4src; in add_tcp_udp_rule()
1423 spec_l3->ipv4.dst_ip = cmd->fs.h_u.tcp_ip4_spec.ip4dst; in add_tcp_udp_rule()
1434 spec_l3->ipv4.src_ip = cmd->fs.h_u.udp_ip4_spec.ip4src; in add_tcp_udp_rule()
1435 spec_l3->ipv4.dst_ip = cmd->fs.h_u.udp_ip4_spec.ip4dst; in add_tcp_udp_rule()
1441 spec_l3->ipv4.src_ip_msk = EN_ETHTOOL_WORD_MASK; in add_tcp_udp_rule()
1443 spec_l3->ipv4.dst_ip_msk = EN_ETHTOOL_WORD_MASK; in add_tcp_udp_rule()
/drivers/scsi/fnic/
Dcq_enet_desc.h100 u8 *ipv6, u8 *ipv4, u8 *ipv4_fragment, u8 *fcs_ok) in cq_enet_rq_desc_dec() argument
161 *ipv4 = (desc->flags & CQ_ENET_RQ_DESC_FLAGS_IPV4) ? 1 : 0; in cq_enet_rq_desc_dec()
/drivers/infiniband/hw/mlx5/
Dmain.c1613 if (FIELDS_NOT_SUPPORTED(ib_spec->ipv4.mask, LAST_IPV4_FIELD)) in parse_flow_attr()
1622 src_ipv4_src_ipv6.ipv4_layout.ipv4), in parse_flow_attr()
1623 &ib_spec->ipv4.mask.src_ip, in parse_flow_attr()
1624 sizeof(ib_spec->ipv4.mask.src_ip)); in parse_flow_attr()
1626 src_ipv4_src_ipv6.ipv4_layout.ipv4), in parse_flow_attr()
1627 &ib_spec->ipv4.val.src_ip, in parse_flow_attr()
1628 sizeof(ib_spec->ipv4.val.src_ip)); in parse_flow_attr()
1630 dst_ipv4_dst_ipv6.ipv4_layout.ipv4), in parse_flow_attr()
1631 &ib_spec->ipv4.mask.dst_ip, in parse_flow_attr()
1632 sizeof(ib_spec->ipv4.mask.dst_ip)); in parse_flow_attr()
[all …]
/drivers/infiniband/core/
Duverbs.h228 struct ib_uverbs_flow_spec_ipv4 ipv4; member
/drivers/infiniband/hw/mlx4/
Dmain.c1474 if (FIELDS_NOT_SUPPORTED(ib_spec->ipv4.mask, LAST_IPV4_FIELD)) in parse_flow_attr()
1478 mlx4_spec->ipv4.src_ip = ib_spec->ipv4.val.src_ip; in parse_flow_attr()
1479 mlx4_spec->ipv4.src_ip_msk = ib_spec->ipv4.mask.src_ip; in parse_flow_attr()
1480 mlx4_spec->ipv4.dst_ip = ib_spec->ipv4.val.dst_ip; in parse_flow_attr()
1481 mlx4_spec->ipv4.dst_ip_msk = ib_spec->ipv4.mask.dst_ip; in parse_flow_attr()
/drivers/net/wireless/intel/iwlwifi/mvm/
Dtx.c645 bool ipv4 = (skb->protocol == htons(ETH_P_IP)); in iwl_mvm_tx_tso() local
646 u16 ip_base_id = ipv4 ? ntohs(ip_hdr(skb)->id) : 0; in iwl_mvm_tx_tso()
783 if (ipv4) in iwl_mvm_tx_tso()
791 if (ipv4) in iwl_mvm_tx_tso()
/drivers/net/vmxnet3/
Dvmxnet3_int.h217 bool ipv4; member
/drivers/net/ethernet/intel/i40e/
Di40e_txrx.c1295 bool ipv4, ipv6; in i40e_rx_checksum() local
1323 ipv4 = (decoded.outer_ip == I40E_RX_PTYPE_OUTER_IP) && in i40e_rx_checksum()
1328 if (ipv4 && in i40e_rx_checksum()
2063 struct iphdr *ipv4; in i40e_atr() member
2097 l4_proto = hdr.ipv4->protocol; in i40e_atr()

12