Home
last modified time | relevance | path

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

1234

/drivers/staging/octeon/
Dethernet-tx.c399 (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/
Dxmit_linux.c83 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/
Dbe.h774 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/
Dnetvsc_drv.c341 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/
Di40e_txrx.c850 (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/
Dgeneve.c170 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()
Dvrf.c260 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/
Dsunvnet.c319 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/
Di40e_txrx.c1396 (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/
Datl1e_main.c1657 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/
Dipvlan_core.c144 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/
Dpptp.c266 iph = ip_hdr(skb); in pptp_xmit()
393 iph = ip_hdr(skb); in pptp_rcv()
/drivers/crypto/caam/
Dpdb.h97 u32 ip_hdr[0]; /* optional IP Header content */ member
/drivers/net/ethernet/cavium/liquidio/
Dlio_main.c2602 (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/
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/wireless/ipw2x00/
Dlibipw_tx.c232 ip = ip_hdr(skb); in libipw_classify()
/drivers/net/wireless/ti/wl18xx/
Dmain.c1217 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/
Drtw_xmit.c408 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/
Datl1c_main.c1999 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/
Dbnx2x_cmn.c709 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/
Dqeth_l3_main.c1773 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/
Djme.c978 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/
Dtx.c864 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/
Dtxrx.c1158 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/
Dpasemi_mac.c273 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()

1234