/Linux-v5.4/net/mpls/ |
D | mpls_gso.c | 24 u16 mac_len = skb->mac_len; in mpls_gso_segment() local 39 skb->mac_len = 0; in mpls_gso_segment() 47 mac_len); in mpls_gso_segment() 52 mpls_hlen += mac_len; in mpls_gso_segment() 54 skb->mac_len = mac_len; in mpls_gso_segment() 62 skb_set_network_header(skb, mac_len); in mpls_gso_segment()
|
/Linux-v5.4/net/nsh/ |
D | nsh.c | 20 if (skb->mac_len) { in nsh_push() 80 unsigned int nsh_len, mac_len; in nsh_gso_segment() local 87 mac_len = skb->mac_len; in nsh_gso_segment() 104 skb->mac_len = proto == htons(ETH_P_TEB) ? ETH_HLEN : 0; in nsh_gso_segment() 112 mac_len); in nsh_gso_segment() 120 skb->network_header = skb->mac_header + mac_len; in nsh_gso_segment() 121 skb->mac_len = mac_len; in nsh_gso_segment()
|
/Linux-v5.4/net/ipv4/ |
D | gre_offload.c | 21 u16 mac_len = skb->mac_len; in gre_gso_segment() local 40 skb->mac_len = skb_inner_network_offset(skb); in gre_gso_segment() 52 mac_len); in gre_gso_segment() 71 skb->mac_len = mac_len; in gre_gso_segment() 76 skb_set_network_header(skb, mac_len); in gre_gso_segment()
|
D | udp_offload.c | 26 u16 mac_len = skb->mac_len; in __skb_udp_tunnel_segment() local 52 skb->mac_len = skb_inner_network_offset(skb); in __skb_udp_tunnel_segment() 85 mac_len); in __skb_udp_tunnel_segment() 106 skb->mac_len = mac_len; in __skb_udp_tunnel_segment() 111 skb_set_network_header(skb, mac_len); in __skb_udp_tunnel_segment()
|
/Linux-v5.4/drivers/staging/isdn/gigaset/ |
D | asyncdata.c | 479 hdlc_skb = dev_alloc_skb(skb->len + stuf_cnt + 6 + skb->mac_len); in HDLC_Encode() 487 skb_reserve(hdlc_skb, skb->mac_len); in HDLC_Encode() 488 memcpy(skb_mac_header(hdlc_skb), skb_mac_header(skb), skb->mac_len); in HDLC_Encode() 489 hdlc_skb->mac_len = skb->mac_len; in HDLC_Encode() 543 iraw_skb = dev_alloc_skb(2 * skb->len + skb->mac_len); in iraw_encode() 551 skb_reserve(iraw_skb, skb->mac_len); in iraw_encode() 552 memcpy(skb_mac_header(iraw_skb), skb_mac_header(skb), skb->mac_len); in iraw_encode() 553 iraw_skb->mac_len = skb->mac_len; in iraw_encode()
|
/Linux-v5.4/include/linux/ |
D | if_vlan.h | 335 unsigned int mac_len) in __vlan_insert_inner_tag() argument 345 if (likely(mac_len > ETH_TLEN)) in __vlan_insert_inner_tag() 346 memmove(skb->data, skb->data + VLAN_HLEN, mac_len - ETH_TLEN); in __vlan_insert_inner_tag() 349 veth = (struct vlan_ethhdr *)(skb->data + mac_len - ETH_HLEN); in __vlan_insert_inner_tag() 352 if (likely(mac_len >= ETH_TLEN)) { in __vlan_insert_inner_tag() 405 unsigned int mac_len) in vlan_insert_inner_tag() argument 409 err = __vlan_insert_inner_tag(skb, vlan_proto, vlan_tci, mac_len); in vlan_insert_inner_tag() 583 unsigned int vlan_depth = skb->mac_len; in __vlan_get_protocol()
|
/Linux-v5.4/net/sched/ |
D | act_mpls.c | 58 int ret, mac_len; in tcf_mpls_act() local 67 skb_push_rcsum(skb, skb->mac_len); in tcf_mpls_act() 68 mac_len = skb->mac_len; in tcf_mpls_act() 70 mac_len = skb_network_header(skb) - skb_mac_header(skb); in tcf_mpls_act() 79 if (skb_mpls_pop(skb, p->tcfm_proto, mac_len)) in tcf_mpls_act() 84 if (skb_mpls_push(skb, new_lse, p->tcfm_proto, mac_len)) in tcf_mpls_act() 99 skb_pull_rcsum(skb, skb->mac_len); in tcf_mpls_act()
|
D | act_mirred.c | 223 int mac_len; in tcf_mirred_act() local 272 mac_len = skb_network_header(skb) - skb_mac_header(skb); in tcf_mirred_act() 273 skb_pull_rcsum(skb2, mac_len); in tcf_mirred_act() 276 skb_push_rcsum(skb2, skb->mac_len); in tcf_mirred_act()
|
D | act_sample.c | 186 skb_push(skb, skb->mac_len); in tcf_sample_act() 193 skb_pull(skb, skb->mac_len); in tcf_sample_act()
|
D | act_vlan.c | 38 skb_push_rcsum(skb, skb->mac_len); in tcf_vlan_act() 86 skb_pull_rcsum(skb, skb->mac_len); in tcf_vlan_act()
|
D | act_bpf.c | 48 __skb_push(skb, skb->mac_len); in tcf_bpf_act() 51 __skb_pull(skb, skb->mac_len); in tcf_bpf_act()
|
/Linux-v5.4/drivers/crypto/cavium/cpt/ |
D | cptvf_algs.h | 55 u64 mac_len:8; member 65 u64 mac_len:8;
|
/Linux-v5.4/net/ipv6/ |
D | seg6_iptunnel.c | 120 err = skb_cow_head(skb, tot_len + skb->mac_len); in seg6_do_srh_encap() 181 err = skb_cow_head(skb, hdrlen + skb->mac_len); in seg6_do_srh_inline() 265 if (pskb_expand_head(skb, skb->mac_len, 0, GFP_ATOMIC) < 0) in seg6_do_srh() 269 skb_push(skb, skb->mac_len); in seg6_do_srh()
|
/Linux-v5.4/net/mac802154/ |
D | llsec.c | 623 data = skb_mac_header(skb) + skb->mac_len; in llsec_do_encrypt_unauth() 665 assoclen = skb->mac_len; in llsec_do_encrypt_auth() 667 data = skb_mac_header(skb) + skb->mac_len; in llsec_do_encrypt_auth() 758 skb->mac_len = ieee802154_hdr_push(skb, &hdr); in mac802154_llsec_encrypt() 839 data = skb_mac_header(skb) + skb->mac_len; in llsec_do_decrypt_unauth() 871 assoclen = skb->mac_len; in llsec_do_decrypt_auth() 873 data = skb_mac_header(skb) + skb->mac_len; in llsec_do_decrypt_auth()
|
D | rx.c | 143 skb->mac_len = hlen; in ieee802154_parse_frame_start()
|
/Linux-v5.4/net/netfilter/ |
D | nf_dup_netdev.c | 19 skb_push(skb, skb->mac_len); in nf_do_netdev_egress()
|
/Linux-v5.4/drivers/net/ |
D | veth.c | 600 int mac_len, delta, off; in veth_xdp_rcv_skb() local 612 mac_len = skb->data - skb_mac_header(skb); in veth_xdp_rcv_skb() 613 pktlen = skb->len + mac_len; in veth_xdp_rcv_skb() 614 headroom = skb_headroom(skb) - mac_len; in veth_xdp_rcv_skb() 634 if (skb_copy_bits(skb, -mac_len, start, pktlen)) { in veth_xdp_rcv_skb() 640 VETH_XDP_HEADROOM + mac_len, skb->len, in veth_xdp_rcv_skb() 699 off = mac_len + delta; in veth_xdp_rcv_skb()
|
D | vrf.c | 1013 skb_push(skb, skb->mac_len); in vrf_ip6_rcv() 1015 skb_pull(skb, skb->mac_len); in vrf_ip6_rcv() 1058 skb_push(skb, skb->mac_len); in vrf_ip_rcv() 1060 skb_pull(skb, skb->mac_len); in vrf_ip_rcv()
|
/Linux-v5.4/net/ieee802154/6lowpan/ |
D | tx.c | 119 skb_put_data(frag, skb_mac_header(skb), skb->mac_len); in lowpan_alloc_frag() 180 skb_unprocessed = skb->len - skb->mac_len - skb_offset; in lowpan_xmit_fragmented()
|
/Linux-v5.4/net/xfrm/ |
D | xfrm_device.c | 28 pskb_pull(skb, skb->mac_len + hsize + x->props.header_len); in __xfrm_transport_prep() 46 pskb_pull(skb, skb->mac_len + x->props.header_len); in __xfrm_mode_tunnel_prep()
|
D | xfrm_input.c | 246 if (skb->mac_len) in xfrm4_remove_tunnel_encap() 284 if (skb->mac_len) in xfrm6_remove_tunnel_encap() 299 err = skb_cow_head(skb, size + skb->mac_len); in xfrm6_remove_beet_encap()
|
/Linux-v5.4/drivers/crypto/cavium/nitrox/ |
D | nitrox_req.h | 159 u64 mac_len : 8; member 163 u64 mac_len : 8;
|
/Linux-v5.4/net/core/ |
D | skbuff.c | 991 C(mac_len); in __skb_clone() 5283 int mac_len, meta_len; in skb_reorder_vlan_header() local 5291 mac_len = skb->data - skb_mac_header(skb); in skb_reorder_vlan_header() 5292 if (likely(mac_len > VLAN_HLEN + ETH_TLEN)) { in skb_reorder_vlan_header() 5294 mac_len - VLAN_HLEN - ETH_TLEN); in skb_reorder_vlan_header() 5452 skb->mac_len += VLAN_HLEN; in skb_vlan_push() 5487 int mac_len) in skb_mpls_push() argument 5504 skb_set_inner_network_header(skb, mac_len); in skb_mpls_push() 5510 mac_len); in skb_mpls_push() 5512 skb_set_network_header(skb, mac_len); in skb_mpls_push() [all …]
|
/Linux-v5.4/net/openvswitch/ |
D | flow.c | 642 skb_set_inner_network_header(skb, skb->mac_len); in key_extract_l3l4() 646 error = check_header(skb, skb->mac_len + stack_len); in key_extract_l3l4() 655 skb_set_inner_network_header(skb, skb->mac_len + stack_len); in key_extract_l3l4()
|
/Linux-v5.4/drivers/net/ethernet/ibm/ |
D | ibmveth.c | 1604 int rc, i, mac_len; in ibmveth_probe() local 1616 &mac_len); in ibmveth_probe() 1622 if (mac_len == 8) in ibmveth_probe() 1624 else if (mac_len != 6) { in ibmveth_probe() 1626 mac_len); in ibmveth_probe()
|