/drivers/staging/octeon/ |
D | ethernet-tx.c | 399 (ip_hdr(skb)->version == 4) && in cvm_oct_xmit() 400 (ip_hdr(skb)->ihl == 5) && in cvm_oct_xmit() 401 ((ip_hdr(skb)->frag_off == 0) || in cvm_oct_xmit() 402 (ip_hdr(skb)->frag_off == htons(1 << 14))) && in cvm_oct_xmit() 403 ((ip_hdr(skb)->protocol == IPPROTO_TCP) || in cvm_oct_xmit() 404 (ip_hdr(skb)->protocol == IPPROTO_UDP))) { in cvm_oct_xmit() 620 (ip_hdr(skb)->protocol == IPPROTO_TCP) in cvm_oct_xmit_pow() 621 || (ip_hdr(skb)->protocol == IPPROTO_UDP); in cvm_oct_xmit_pow() 632 work->word2.s.is_frag = !((ip_hdr(skb)->frag_off == 0) in cvm_oct_xmit_pow() 633 || (ip_hdr(skb)->frag_off == in cvm_oct_xmit_pow()
|
/drivers/staging/rtl8712/ |
D | xmit_linux.c | 83 struct iphdr ip_hdr; in r8712_set_qos() local 91 _r8712_pktfile_read(ppktfile, (u8 *)&ip_hdr, sizeof(ip_hdr)); in r8712_set_qos() 93 UserPriority = ip_hdr.tos >> 5; in r8712_set_qos()
|
/drivers/net/ethernet/emulex/benet/ |
D | be.h | 774 if (ip_hdr(skb)->version == 4) in is_tcp_pkt() 775 val = (ip_hdr(skb)->protocol == IPPROTO_TCP); in is_tcp_pkt() 776 else if (ip_hdr(skb)->version == 6) in is_tcp_pkt() 786 if (ip_hdr(skb)->version == 4) in is_udp_pkt() 787 val = (ip_hdr(skb)->protocol == IPPROTO_UDP); in is_udp_pkt() 788 else if (ip_hdr(skb)->version == 6) in is_udp_pkt() 796 return skb->protocol == htons(ETH_P_IP) && ip_hdr(skb)->version == 4; in is_ipv4_pkt()
|
/drivers/net/hyperv/ |
D | netvsc_drv.c | 341 struct iphdr *iphdr = ip_hdr(skb); in get_net_transport_info() 517 uh->check = csum_tcpudp_magic(ip_hdr(skb)->saddr, in netvsc_start_xmit() 518 ip_hdr(skb)->daddr, in netvsc_start_xmit() 540 ip_hdr(skb)->tot_len = 0; in netvsc_start_xmit() 541 ip_hdr(skb)->check = 0; in netvsc_start_xmit() 543 ~csum_tcpudp_magic(ip_hdr(skb)->saddr, in netvsc_start_xmit() 544 ip_hdr(skb)->daddr, 0, IPPROTO_TCP, 0); in netvsc_start_xmit()
|
/drivers/net/ethernet/intel/i40evf/ |
D | i40e_txrx.c | 850 (ip_hdr(skb)->ihl * 4); in i40e_rx_checksum() 857 if ((ip_hdr(skb)->protocol == IPPROTO_UDP) && in i40e_rx_checksum() 860 iph = ip_hdr(skb); in i40e_rx_checksum() 1456 iph = skb->encapsulation ? inner_ip_hdr(skb) : ip_hdr(skb); in i40e_tso() 1511 switch (ip_hdr(skb)->protocol) { in i40e_tx_enable_csum() 1514 oiph = ip_hdr(skb); in i40e_tx_enable_csum() 1529 ip_hdr(skb)->check = 0; in i40e_tx_enable_csum() 1537 ip_hdr(skb)->check = 0; in i40e_tx_enable_csum() 1564 this_ip_hdr = ip_hdr(skb); in i40e_tx_enable_csum()
|
/drivers/net/ |
D | geneve.c | 170 iph = ip_hdr(skb); /* outer IP header... */ in geneve_rx() 734 const struct iphdr *iip = ip_hdr(skb); in geneve_get_v4_rt() 781 const struct iphdr *iip = ip_hdr(skb); in geneve_get_v6_dst() 868 tos = ip_tunnel_ecn_encap(key->tos, ip_hdr(skb), skb); in geneve_xmit_skb() 878 tos = ip_tunnel_ecn_encap(fl4.flowi4_tos, ip_hdr(skb), skb); in geneve_xmit_skb() 952 prio = ip_tunnel_ecn_encap(key->tos, ip_hdr(skb), skb); in geneve6_xmit_skb() 961 prio = ip_tunnel_ecn_encap(fl6.flowi6_tos, ip_hdr(skb), skb); in geneve6_xmit_skb()
|
D | vrf.c | 260 struct iphdr *ip4h = ip_hdr(skb); in vrf_process_v4_outbound() 441 nexthop = (__force u32)rt_nexthop(rt, ip_hdr(skb)->daddr); in vrf_finish_output()
|
/drivers/net/ethernet/sun/ |
D | sunvnet.c | 319 struct iphdr *iph = ip_hdr(skb); in vnet_fullcsum() 1095 struct iphdr *iph = ip_hdr(nskb); in vnet_skb_shape() 1159 proto = ip_hdr(skb)->protocol; in vnet_handle_offloads() 1228 if (ip_hdr(curr)->protocol == IPPROTO_TCP) in vnet_handle_offloads() 1230 else if (ip_hdr(curr)->protocol == IPPROTO_UDP) in vnet_handle_offloads() 1285 fl4.flowi4_tos = RT_TOS(ip_hdr(skb)->tos); in vnet_start_xmit() 1286 fl4.daddr = ip_hdr(skb)->daddr; in vnet_start_xmit() 1287 fl4.saddr = ip_hdr(skb)->saddr; in vnet_start_xmit()
|
/drivers/net/ethernet/intel/i40e/ |
D | i40e_txrx.c | 1396 (ip_hdr(skb)->ihl * 4); in i40e_rx_checksum() 1403 if ((ip_hdr(skb)->protocol == IPPROTO_UDP) && in i40e_rx_checksum() 1406 iph = ip_hdr(skb); in i40e_rx_checksum() 2226 iph = skb->encapsulation ? inner_ip_hdr(skb) : ip_hdr(skb); in i40e_tso() 2324 switch (ip_hdr(skb)->protocol) { in i40e_tx_enable_csum() 2327 oiph = ip_hdr(skb); in i40e_tx_enable_csum() 2345 ip_hdr(skb)->check = 0; in i40e_tx_enable_csum() 2353 ip_hdr(skb)->check = 0; in i40e_tx_enable_csum() 2378 this_ip_hdr = ip_hdr(skb); in i40e_tx_enable_csum()
|
/drivers/net/ethernet/atheros/atl1e/ |
D | atl1e_main.c | 1657 real_len = (((unsigned char *)ip_hdr(skb) - skb->data) in atl1e_tso_csum() 1658 + ntohs(ip_hdr(skb)->tot_len)); in atl1e_tso_csum() 1670 ip_hdr(skb)->check = 0; in atl1e_tso_csum() 1671 ip_hdr(skb)->tot_len = 0; in atl1e_tso_csum() 1673 ip_hdr(skb)->saddr, in atl1e_tso_csum() 1674 ip_hdr(skb)->daddr, in atl1e_tso_csum() 1676 tpd->word3 |= (ip_hdr(skb)->ihl & in atl1e_tso_csum()
|
/drivers/net/ipvlan/ |
D | ipvlan_core.c | 144 ip4h = ip_hdr(skb); in ipvlan_get_L3_hdr() 352 const struct iphdr *ip4h = ip_hdr(skb); in ipvlan_process_v4_outbound()
|
/drivers/net/ppp/ |
D | pptp.c | 266 iph = ip_hdr(skb); in pptp_xmit() 393 iph = ip_hdr(skb); in pptp_rcv()
|
/drivers/crypto/caam/ |
D | pdb.h | 97 u32 ip_hdr[0]; /* optional IP Header content */ member
|
/drivers/net/ethernet/cavium/liquidio/ |
D | lio_main.c | 2602 (ip_hdr(skb)->version == 4); in is_ipv4() 2618 return (ip_hdr(skb)->frag_off & htons(IP_MF | IP_OFFSET)) ? 1 : 0; in is_ip_fragmented() 2635 return (ip_hdr(skb)->protocol == IPPROTO_TCP) || in is_tcpudp() 2636 (ip_hdr(skb)->protocol == IPPROTO_UDP); in is_tcpudp() 2642 struct iphdr *iphdr = ip_hdr(skb); in get_ipv4_5tuple_tag() 2752 if (ip_hdr(skb)->ihl > 5) in liquidio_xmit() 2774 if (ip_hdr(skb)->ihl > 5) in liquidio_xmit()
|
/drivers/net/wireless/ath/ath6kl/ |
D | txrx.c | 110 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/wireless/ipw2x00/ |
D | libipw_tx.c | 232 ip = ip_hdr(skb); in libipw_classify()
|
/drivers/net/wireless/ti/wl18xx/ |
D | main.c | 1217 struct iphdr *ip_hdr; in wl18xx_set_tx_desc_csum() local 1238 ip_hdr = (void *)skb_network_header(skb); in wl18xx_set_tx_desc_csum() 1239 desc->wl18xx_checksum_data |= (ip_hdr->protocol & 0x01); in wl18xx_set_tx_desc_csum()
|
/drivers/staging/rtl8188eu/core/ |
D | rtw_xmit.c | 408 struct iphdr ip_hdr; in set_qos() local 416 _rtw_pktfile_read(ppktfile, (u8 *)&ip_hdr, sizeof(ip_hdr)); in set_qos() 418 user_prio = ip_hdr.tos >> 5; in set_qos()
|
/drivers/net/ethernet/atheros/atl1c/ |
D | atl1c_main.c | 1999 real_len = (((unsigned char *)ip_hdr(skb) - skb->data) in atl1c_tso_csum() 2000 + ntohs(ip_hdr(skb)->tot_len)); in atl1c_tso_csum() 2013 ip_hdr(skb)->check = 0; in atl1c_tso_csum() 2015 ip_hdr(skb)->saddr, in atl1c_tso_csum() 2016 ip_hdr(skb)->daddr, in atl1c_tso_csum()
|
/drivers/net/ethernet/broadcom/bnx2x/ |
D | bnx2x_cmn.c | 709 const struct iphdr *iph = ip_hdr(skb); in bnx2x_gro_ip_csum() 3412 prot = ip_hdr(skb)->protocol; in bnx2x_xmit_type() 3549 pbd->ip_id = bswab16(ip_hdr(skb)->id); in bnx2x_set_pbd_gso() 3551 bswab16(~csum_tcpudp_magic(ip_hdr(skb)->saddr, in bnx2x_set_pbd_gso() 3552 ip_hdr(skb)->daddr, in bnx2x_set_pbd_gso() 3720 struct iphdr *iph = ip_hdr(skb); in bnx2x_update_pbds_gso_enc() 3766 if (ip_hdr(skb)->protocol == IPPROTO_UDP) { in bnx2x_update_pbds_gso_enc() 3859 ip_hdr(skb)->protocol, skb_shinfo(skb)->gso_type, xmit_type, in bnx2x_start_xmit()
|
/drivers/s390/net/ |
D | qeth_l3_main.c | 1773 struct iphdr *ip_hdr; in qeth_l3_rebuild_skb() local 1791 ip_hdr = (struct iphdr *)skb->data; in qeth_l3_rebuild_skb() 1792 ip_eth_mc_map(ip_hdr->daddr, tg_addr); in qeth_l3_rebuild_skb() 2724 __be32 *pkey = &ip_hdr(skb)->daddr; in qeth_l3_fill_header() 2763 struct iphdr *iph = ip_hdr(skb); in qeth_l3_hdr_csum() 2782 struct iphdr *iph = ip_hdr(skb); in qeth_tso_fill_header()
|
/drivers/net/ethernet/ |
D | jme.c | 978 if ((ip_hdr(skb)->protocol != IPPROTO_UDP) || in jme_udpsum() 980 (ip_hdr(skb)->ihl << 2) + in jme_udpsum() 986 ETH_HLEN + (ip_hdr(skb)->ihl << 2)); in jme_udpsum() 2102 struct iphdr *iph = ip_hdr(skb); in jme_tx_tso() 2132 ip_proto = ip_hdr(skb)->protocol; in jme_tx_csum()
|
/drivers/net/ethernet/sfc/ |
D | tx.c | 864 EFX_BUG_ON_PARANOID(ip_hdr(skb)->protocol != IPPROTO_TCP); in efx_tso_check_protocol() 1028 st->ipv4_id = ntohs(ip_hdr(skb)->id); in tso_start()
|
/drivers/net/wireless/ath/wil6210/ |
D | txrx.c | 1158 protocol = ip_hdr(skb)->protocol; in wil_tx_desc_offload_setup() 1276 ip_hdr(skb)->tot_len = 0; in __wil_tx_vring_tso() 1277 ip_hdr(skb)->check = 0; in __wil_tx_vring_tso()
|
/drivers/net/ethernet/pasemi/ |
D | pasemi_mac.c | 273 iph = ip_hdr(skb); in get_skb_hdr() 1411 switch (ip_hdr(skb)->protocol) { in pasemi_mac_queue_csdesc() 1519 switch (ip_hdr(skb)->protocol) { in pasemi_mac_start_tx()
|