Home
last modified time | relevance | path

Searched refs:mac_len (Results 1 – 25 of 51) sorted by relevance

123

/Linux-v5.4/net/mpls/
Dmpls_gso.c24 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/
Dnsh.c20 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/
Dgre_offload.c21 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()
Dudp_offload.c26 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/
Dasyncdata.c479 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/
Dif_vlan.h335 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/
Dact_mpls.c58 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()
Dact_mirred.c223 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()
Dact_sample.c186 skb_push(skb, skb->mac_len); in tcf_sample_act()
193 skb_pull(skb, skb->mac_len); in tcf_sample_act()
Dact_vlan.c38 skb_push_rcsum(skb, skb->mac_len); in tcf_vlan_act()
86 skb_pull_rcsum(skb, skb->mac_len); in tcf_vlan_act()
Dact_bpf.c48 __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/
Dcptvf_algs.h55 u64 mac_len:8; member
65 u64 mac_len:8;
/Linux-v5.4/net/ipv6/
Dseg6_iptunnel.c120 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/
Dllsec.c623 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()
Drx.c143 skb->mac_len = hlen; in ieee802154_parse_frame_start()
/Linux-v5.4/net/netfilter/
Dnf_dup_netdev.c19 skb_push(skb, skb->mac_len); in nf_do_netdev_egress()
/Linux-v5.4/drivers/net/
Dveth.c600 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()
Dvrf.c1013 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/
Dtx.c119 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/
Dxfrm_device.c28 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()
Dxfrm_input.c246 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/
Dnitrox_req.h159 u64 mac_len : 8; member
163 u64 mac_len : 8;
/Linux-v5.4/net/core/
Dskbuff.c991 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/
Dflow.c642 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/
Dibmveth.c1604 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()

123