Home
last modified time | relevance | path

Searched refs:l4hdr (Results 1 – 2 of 2) sorted by relevance

/linux/tools/testing/selftests/bpf/progs/
H A Dtest_tc_tunnel.c56 union l4hdr {
63 union l4hdr l4hdr;
69 union l4hdr l4hdr; in set_ipv4_csum()
172 olen += sizeof(h_outer.l4hdr.gre); in __encap_ipv4()
173 h_outer.l4hdr.gre.protocol = bpf_htons(l2_proto); in __encap_ipv4()
174 h_outer.l4hdr.gre.flags = 0; in __encap_ipv4()
178 olen += sizeof(h_outer.l4hdr.udp); in __encap_ipv4()
179 h_outer.l4hdr in __encap_ipv4()
51 union l4hdr { global() union
58 union l4hdr l4hdr; global() member
64 union l4hdr l4hdr; global() member
[all...]
/linux/drivers/net/ethernet/meta/fbnic/
H A Dfbnic_txrx.c201 unsigned char *l4hdr; in fbnic_tx_lso() local
224 l4hdr = skb_checksum_start(skb); in fbnic_tx_lso()
225 payload_len = cpu_to_be16(skb->len - (l4hdr - skb->data)); in fbnic_tx_lso()
228 struct tcphdr *tcph = (struct tcphdr *)l4hdr; in fbnic_tx_lso()
231 l4len = __tcp_hdrlen((struct tcphdr *)l4hdr); in fbnic_tx_lso()
234 struct udphdr *udph = (struct udphdr *)l4hdr; in fbnic_tx_lso()
241 hdrlen = (l4hdr - skb->data) + l4len; in fbnic_tx_lso()