Home
last modified time | relevance | path

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

123

/kernel/linux/linux-5.10/net/mpls/
Dmpls_gso.c25 u16 mac_len = skb->mac_len; in mpls_gso_segment() local
42 skb->mac_len = 0; in mpls_gso_segment()
50 mac_len); in mpls_gso_segment()
55 mpls_hlen += mac_len; in mpls_gso_segment()
57 skb->mac_len = mac_len; in mpls_gso_segment()
65 skb_set_network_header(skb, mac_len); in mpls_gso_segment()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/net/ipv4/
Dgre_offload.c22 u16 mac_len = skb->mac_len; in gre_gso_segment() local
40 skb->mac_len = skb_inner_network_offset(skb); in gre_gso_segment()
53 mac_len); in gre_gso_segment()
72 skb->mac_len = mac_len; in gre_gso_segment()
77 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()
/kernel/linux/linux-5.10/net/sched/
Dact_mpls.c59 int ret, mac_len; in tcf_mpls_act() local
68 skb_push_rcsum(skb, skb->mac_len); in tcf_mpls_act()
69 mac_len = skb->mac_len; in tcf_mpls_act()
71 mac_len = skb_network_header(skb) - skb_mac_header(skb); in tcf_mpls_act()
80 if (skb_mpls_pop(skb, p->tcfm_proto, mac_len, in tcf_mpls_act()
86 if (skb_mpls_push(skb, new_lse, p->tcfm_proto, mac_len, in tcf_mpls_act()
101 new_lse = tcf_mpls_get_lse(NULL, p, mac_len || in tcf_mpls_act()
122 skb_pull_rcsum(skb, skb->mac_len); in tcf_mpls_act()
Dact_mirred.c224 int mac_len; in tcf_mirred_act() local
277 mac_len = skb_at_tc_ingress(skb) ? skb->mac_len : in tcf_mirred_act()
281 skb_pull_rcsum(skb2, mac_len); in tcf_mirred_act()
284 skb_push_rcsum(skb2, mac_len); in tcf_mirred_act()
Dact_sample.c184 skb_push(skb, skb->mac_len); in tcf_sample_act()
191 skb_pull(skb, skb->mac_len); in tcf_sample_act()
Dact_vlan.c38 skb_push_rcsum(skb, skb->mac_len); in tcf_vlan_act()
96 skb_pull_rcsum(skb, skb->mac_len); in tcf_vlan_act()
Dact_bpf.c49 __skb_push(skb, skb->mac_len); in tcf_bpf_act()
52 __skb_pull(skb, skb->mac_len); in tcf_bpf_act()
/kernel/linux/linux-5.10/include/linux/
Dif_vlan.h337 unsigned int mac_len) in __vlan_insert_inner_tag() argument
347 if (likely(mac_len > ETH_TLEN)) in __vlan_insert_inner_tag()
348 memmove(skb->data, skb->data + VLAN_HLEN, mac_len - ETH_TLEN); in __vlan_insert_inner_tag()
351 veth = (struct vlan_ethhdr *)(skb->data + mac_len - ETH_HLEN); in __vlan_insert_inner_tag()
354 if (likely(mac_len >= ETH_TLEN)) { in __vlan_insert_inner_tag()
407 unsigned int mac_len) in vlan_insert_inner_tag() argument
411 err = __vlan_insert_inner_tag(skb, vlan_proto, vlan_tci, mac_len); in vlan_insert_inner_tag()
585 unsigned int vlan_depth = skb->mac_len, parse_depth = VLAN_MAX_DEPTH; in __vlan_get_protocol()
/kernel/linux/linux-5.10/drivers/crypto/cavium/cpt/
Dcptvf_algs.h55 u64 mac_len:8; member
65 u64 mac_len:8;
/kernel/linux/linux-5.10/drivers/crypto/marvell/octeontx/
Dotx_cptvf_algs.c972 int mac_len = crypto_aead_authsize(tfm); in create_aead_ctx_hdr() local
1022 req_info->req.param1 = req->cryptlen - mac_len; in create_aead_ctx_hdr()
1023 req_info->req.param2 = req->cryptlen + req->assoclen - mac_len; in create_aead_ctx_hdr()
1029 fctx->enc.enc_ctrl.e.mac_len = mac_len; in create_aead_ctx_hdr()
1093 u32 mac_len) in create_aead_output_list() argument
1100 outputlen = req->cryptlen + req->assoclen + mac_len; in create_aead_output_list()
1102 outputlen = req->cryptlen + req->assoclen - mac_len; in create_aead_output_list()
1111 u32 enc, u32 mac_len) in create_aead_null_input_list() argument
1120 inputlen = req->cryptlen + req->assoclen - mac_len; in create_aead_null_input_list()
1130 u32 enc, u32 mac_len) in create_aead_null_output_list() argument
[all …]
Dotx_cptvf_algs.h80 u64 mac_len:8; member
90 u64 mac_len:8;
/kernel/linux/linux-5.10/net/ipv6/
Dseg6_iptunnel.c137 err = skb_cow_head(skb, tot_len + skb->mac_len); in seg6_do_srh_encap()
206 err = skb_cow_head(skb, hdrlen + skb->mac_len); in seg6_do_srh_inline()
290 if (pskb_expand_head(skb, skb->mac_len, 0, GFP_ATOMIC) < 0) in seg6_do_srh()
294 skb_push(skb, skb->mac_len); in seg6_do_srh()
/kernel/linux/linux-5.10/net/openvswitch/
Dactions.c163 __be32 mpls_lse, __be16 mpls_ethertype, __u16 mac_len) in push_mpls() argument
167 err = skb_mpls_push(skb, mpls_lse, mpls_ethertype, mac_len, !!mac_len); in push_mpls()
171 if (!mac_len) in push_mpls()
183 err = skb_mpls_pop(skb, ethertype, skb->mac_len, in pop_mpls()
1171 len = ovs_cb->mru ? ovs_cb->mru + skb->mac_len : skb->len; in execute_check_pkt_len()
1290 mpls->mpls_ethertype, skb->mac_len); in do_execute_actions()
1295 __u16 mac_len = 0; in do_execute_actions() local
1298 mac_len = skb->mac_len; in do_execute_actions()
1301 mpls->mpls_ethertype, mac_len); in do_execute_actions()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/net/netfilter/
Dnf_dup_netdev.c19 skb_push(skb, skb->mac_len); in nf_do_netdev_egress()
/kernel/linux/linux-5.10/drivers/net/
Dveth.c658 int mac_len, delta, off; in veth_xdp_rcv_skb() local
670 mac_len = skb->data - skb_mac_header(skb); in veth_xdp_rcv_skb()
671 pktlen = skb->len + mac_len; in veth_xdp_rcv_skb()
672 headroom = skb_headroom(skb) - mac_len; in veth_xdp_rcv_skb()
692 if (skb_copy_bits(skb, -mac_len, start, pktlen)) { in veth_xdp_rcv_skb()
697 nskb = veth_build_skb(head, VETH_XDP_HEADROOM + mac_len, in veth_xdp_rcv_skb()
766 off = mac_len + delta; in veth_xdp_rcv_skb()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/progs/
Dkfree_skb.c42 __u16 mac_len, hdr_len, queue_mapping; member
/kernel/linux/linux-5.10/drivers/crypto/hisilicon/sec2/
Dsec.h84 u8 mac_len; member
/kernel/linux/linux-5.10/net/xfrm/
Dxfrm_device.c44 pskb_pull(skb, skb->mac_len + x->props.header_len); in __xfrm_mode_tunnel_prep()
63 pskb_pull(skb, skb->mac_len + hsize + (x->props.header_len - phlen)); in __xfrm_mode_beet_prep()
Dxfrm_input.c249 if (skb->mac_len) in xfrm4_remove_tunnel_encap()
287 if (skb->mac_len) in xfrm6_remove_tunnel_encap()
302 err = skb_cow_head(skb, size + skb->mac_len); in xfrm6_remove_beet_encap()
/kernel/linux/linux-5.10/drivers/crypto/cavium/nitrox/
Dnitrox_req.h161 u64 mac_len : 8; member
165 u64 mac_len : 8;
/kernel/linux/linux-5.10/drivers/net/ethernet/qualcomm/rmnet/
Drmnet_handlers.c163 skb_push(skb, skb->mac_len); in rmnet_bridge_handler()

123