Home
last modified time | relevance | path

Searched refs:ip_hdr (Results 1 – 25 of 110) sorted by relevance

12345

/drivers/staging/octeon/
Dethernet-tx.c380 (ip_hdr(skb)->version == 4) && in cvm_oct_xmit()
381 (ip_hdr(skb)->ihl == 5) && in cvm_oct_xmit()
382 ((ip_hdr(skb)->frag_off == 0) || in cvm_oct_xmit()
383 (ip_hdr(skb)->frag_off == htons(1 << 14))) && in cvm_oct_xmit()
384 ((ip_hdr(skb)->protocol == IPPROTO_TCP) || in cvm_oct_xmit()
385 (ip_hdr(skb)->protocol == IPPROTO_UDP))) { in cvm_oct_xmit()
601 (ip_hdr(skb)->protocol == IPPROTO_TCP) || in cvm_oct_xmit_pow()
602 (ip_hdr(skb)->protocol == IPPROTO_UDP); in cvm_oct_xmit_pow()
613 work->word2.s.is_frag = !((ip_hdr(skb)->frag_off == 0) || in cvm_oct_xmit_pow()
614 (ip_hdr(skb)->frag_off == in cvm_oct_xmit_pow()
/drivers/infiniband/sw/rxe/
Drxe_recv.c174 if (ip_hdr(skb)->daddr != saddr->s_addr) { in check_addr()
176 &ip_hdr(skb)->daddr, in check_addr()
181 if (ip_hdr(skb)->saddr != daddr->s_addr) { in check_addr()
183 &ip_hdr(skb)->saddr, in check_addr()
291 ipv6_addr_set_v4mapped(ip_hdr(skb)->daddr, in rxe_rcv_mcast_pkt()
347 ipv6_addr_set_v4mapped(ip_hdr(skb)->daddr, in rxe_match_dgid()
404 &ip_hdr(skb)->saddr); in rxe_rcv()
Drxe_icrc.c63 memcpy(pshdr, ip_hdr(skb), hdr_size); in rxe_icrc_hdr()
/drivers/staging/rtl8712/
Dxmit_linux.c81 struct iphdr ip_hdr; in r8712_set_qos() local
89 _r8712_pktfile_read(ppktfile, (u8 *)&ip_hdr, sizeof(ip_hdr)); in r8712_set_qos()
91 UserPriority = ip_hdr.tos >> 5; in r8712_set_qos()
/drivers/net/ethernet/emulex/benet/
Dbe.h908 if (ip_hdr(skb)->version == 4) in is_tcp_pkt()
909 val = (ip_hdr(skb)->protocol == IPPROTO_TCP); in is_tcp_pkt()
910 else if (ip_hdr(skb)->version == 6) in is_tcp_pkt()
920 if (ip_hdr(skb)->version == 4) in is_udp_pkt()
921 val = (ip_hdr(skb)->protocol == IPPROTO_UDP); in is_udp_pkt()
922 else if (ip_hdr(skb)->version == 6) in is_udp_pkt()
930 return skb->protocol == htons(ETH_P_IP) && ip_hdr(skb)->version == 4; in is_ipv4_pkt()
935 if (ip_hdr(skb)->version == 6) in is_ipv6_ext_hdr()
/drivers/net/ethernet/sun/
Dsunvnet_common.c308 struct iphdr *iph = ip_hdr(skb); in vnet_fullcsum_ipv4()
419 struct iphdr *iph = ip_hdr(skb); in vnet_rx_one()
428 struct iphdr *iph = ip_hdr(skb); in vnet_rx_one()
1174 struct iphdr *iph = ip_hdr(nskb); in vnet_skb_shape()
1233 proto = ip_hdr(skb)->protocol; in vnet_handle_offloads()
1303 if (ip_hdr(curr)->protocol == IPPROTO_TCP) in vnet_handle_offloads()
1305 else if (ip_hdr(curr)->protocol == IPPROTO_UDP) in vnet_handle_offloads()
1361 fl4.flowi4_tos = RT_TOS(ip_hdr(skb)->tos); in sunvnet_start_xmit_common()
1362 fl4.daddr = ip_hdr(skb)->daddr; in sunvnet_start_xmit_common()
1363 fl4.saddr = ip_hdr(skb)->saddr; in sunvnet_start_xmit_common()
/drivers/net/ethernet/aquantia/atlantic/
Daq_nic.c508 (ip_hdr(skb)->version == 6) ? 1U : 0U; in aq_nic_map_skb()
537 if (ip_hdr(skb)->version == 4) { in aq_nic_map_skb()
539 (ip_hdr(skb)->protocol == IPPROTO_TCP) ? in aq_nic_map_skb()
542 (ip_hdr(skb)->protocol == IPPROTO_UDP) ? in aq_nic_map_skb()
544 } else if (ip_hdr(skb)->version == 6) { in aq_nic_map_skb()
/drivers/net/ethernet/sfc/
Dtx_tso.c159 EFX_WARN_ON_ONCE_PARANOID(ip_hdr(skb)->protocol != IPPROTO_TCP); in efx_tso_check_protocol()
188 st->ipv4_id = ntohs(ip_hdr(skb)->id); in tso_start()
/drivers/net/
Dvrf.c257 ip4h = ip_hdr(skb); in vrf_process_v4_outbound()
587 nexthop = (__force u32)rt_nexthop(rt, ip_hdr(skb)->daddr); in vrf_finish_output()
691 if (ipv4_is_multicast(ip_hdr(skb)->daddr) || in vrf_ip_out()
692 ipv4_is_lbcast(ip_hdr(skb)->daddr)) in vrf_ip_out()
1053 if (ipv4_is_multicast(ip_hdr(skb)->daddr)) in vrf_ip_rcv()
Dgeneve.c177 iph = ip_hdr(skb); /* outer IP header... */ in geneve_lookup_skb()
738 tos = ip_tunnel_get_dsfield(ip_hdr(skb), skb); in geneve_get_v4_rt()
787 prio = ip_tunnel_get_dsfield(ip_hdr(skb), skb); in geneve_get_v6_dst()
842 tos = ip_tunnel_ecn_encap(key->tos, ip_hdr(skb), skb); in geneve_xmit_skb()
845 tos = ip_tunnel_ecn_encap(fl4.flowi4_tos, ip_hdr(skb), skb); in geneve_xmit_skb()
888 prio = ip_tunnel_ecn_encap(key->tos, ip_hdr(skb), skb); in geneve6_xmit_skb()
892 ip_hdr(skb), skb); in geneve6_xmit_skb()
/drivers/net/ipvlan/
Dipvlan_core.c142 ip4h = ip_hdr(skb); in ipvlan_get_L3_hdr()
374 const struct iphdr *ip4h = ip_hdr(skb); in ipvlan_process_v4_outbound()
740 struct iphdr *ip4h = ip_hdr(skb); in ipvlan_l3_rcv()
/drivers/net/ethernet/qlogic/qede/
Dqede_filter.c353 if (tpos->tuple.src_ipv4 == ip_hdr(skb)->saddr && in qede_compare_ip_addr()
354 tpos->tuple.dst_ipv4 == ip_hdr(skb)->daddr) in qede_compare_ip_addr()
433 ip_proto = ip_hdr(skb)->protocol; in qede_rx_flow_steer()
486 n->tuple.src_ipv4 = ip_hdr(skb)->saddr; in qede_rx_flow_steer()
487 n->tuple.dst_ipv4 = ip_hdr(skb)->daddr; in qede_rx_flow_steer()
Dqede_fp.c252 l4_proto = ip_hdr(skb)->protocol; in qede_set_params_for_ipv6_ext()
809 const struct iphdr *iph = ip_hdr(skb); in qede_gro_ip_csum()
1684 l4_proto = ip_hdr(skb)->protocol; in qede_features_check()
/drivers/net/ethernet/qualcomm/emac/
Demac-mac.c1278 u32 pkt_len = ((unsigned char *)ip_hdr(skb) - skb->data) in emac_tso_csum()
1279 + ntohs(ip_hdr(skb)->tot_len); in emac_tso_csum()
1293 ip_hdr(skb)->check = 0; in emac_tso_csum()
1295 ~csum_tcpudp_magic(ip_hdr(skb)->saddr, in emac_tso_csum()
1296 ip_hdr(skb)->daddr, in emac_tso_csum()
/drivers/net/ethernet/atheros/atl1e/
Datl1e_main.c1650 real_len = (((unsigned char *)ip_hdr(skb) - skb->data) in atl1e_tso_csum()
1651 + ntohs(ip_hdr(skb)->tot_len)); in atl1e_tso_csum()
1663 ip_hdr(skb)->check = 0; in atl1e_tso_csum()
1664 ip_hdr(skb)->tot_len = 0; in atl1e_tso_csum()
1666 ip_hdr(skb)->saddr, in atl1e_tso_csum()
1667 ip_hdr(skb)->daddr, in atl1e_tso_csum()
1669 tpd->word3 |= (ip_hdr(skb)->ihl & in atl1e_tso_csum()
/drivers/net/hyperv/
Dnetvsc_drv.c476 struct iphdr *ip = ip_hdr(skb); in net_checksum_info()
632 ip_hdr(skb)->tot_len = 0; in netvsc_start_xmit()
633 ip_hdr(skb)->check = 0; in netvsc_start_xmit()
635 ~csum_tcpudp_magic(ip_hdr(skb)->saddr, in netvsc_start_xmit()
636 ip_hdr(skb)->daddr, 0, IPPROTO_TCP, 0); in netvsc_start_xmit()
663 if (ip_hdr(skb)->protocol == IPPROTO_TCP) in netvsc_start_xmit()
/drivers/net/wireless/intel/iwlwifi/mvm/
Dtx.c131 protocol = ip_hdr(skb)->protocol; in iwl_mvm_tx_csum()
177 ip_hdr(skb)->check = 0; in iwl_mvm_tx_csum()
705 u16 ip_base_id = ipv4 ? ntohs(ip_hdr(skb)->id) : 0; in iwl_mvm_tx_tso()
844 ip_hdr(tmp)->id = htons(ip_base_id + i * num_subframes); in iwl_mvm_tx_tso()
853 ip_send_check(ip_hdr(tmp)); in iwl_mvm_tx_tso()
/drivers/net/ppp/
Dpptp.c229 iph = ip_hdr(skb); in pptp_xmit()
351 iph = ip_hdr(skb); in pptp_rcv()
/drivers/net/wireless/ath/ath6kl/
Dtxrx.c110 u8 up = 0, traffic_class, *ip_hdr; in ath6kl_process_uapsdq() local
136 ip_hdr = (u8 *)(datap + 1); in ath6kl_process_uapsdq()
142 ip_hdr = (u8 *)(llc_hdr + 1); in ath6kl_process_uapsdq()
147 ip_hdr, 0); in ath6kl_process_uapsdq()
/drivers/net/ethernet/mellanox/mlx5/core/
Den_selftest.c215 iph = ip_hdr(skb); in mlx5e_test_loopback_validate()
/drivers/crypto/caam/
Dpdb.h147 u32 ip_hdr[0]; member
/drivers/net/ethernet/mellanox/mlx5/core/en_accel/
Dipsec_rxtx.c111 struct iphdr *ipv4hdr = ip_hdr(skb); in mlx5e_ipsec_remove_trailer()
Dipsec.c406 if (ip_hdr(skb)->ihl > 5) in mlx5e_ipsec_offload_ok()
/drivers/staging/rtl8188eu/core/
Drtw_xmit.c395 struct iphdr ip_hdr; in set_qos() local
403 _rtw_pktfile_read(ppktfile, (u8 *)&ip_hdr, sizeof(ip_hdr)); in set_qos()
405 user_prio = ip_hdr.tos >> 5; in set_qos()
/drivers/net/wireless/intel/ipw2x00/
Dlibipw_tx.c232 ip = ip_hdr(skb); in libipw_classify()

12345