/linux-6.3-rc2/net/mpls/ |
A D | mpls_gso.c | 25 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()
|
/linux-6.3-rc2/net/nsh/ |
A 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-6.3-rc2/net/ipv4/ |
A D | gre_offload.c | 23 u16 mac_len = skb->mac_len; in gre_gso_segment() local 41 skb->mac_len = skb_inner_network_offset(skb); in gre_gso_segment() 60 mac_len); in gre_gso_segment() 79 skb->mac_len = mac_len; in gre_gso_segment() 84 skb_set_network_header(skb, mac_len); in gre_gso_segment()
|
A D | udp_offload.c | 27 u16 mac_len = skb->mac_len; in __skb_udp_tunnel_segment() local 54 skb->mac_len = skb_inner_network_offset(skb); in __skb_udp_tunnel_segment() 89 mac_len); in __skb_udp_tunnel_segment() 110 skb->mac_len = mac_len; in __skb_udp_tunnel_segment() 115 skb_set_network_header(skb, mac_len); in __skb_udp_tunnel_segment()
|
/linux-6.3-rc2/include/linux/ |
A D | if_vlan.h | 342 unsigned int mac_len) in __vlan_insert_inner_tag() argument 352 if (likely(mac_len > ETH_TLEN)) in __vlan_insert_inner_tag() 353 memmove(skb->data, skb->data + VLAN_HLEN, mac_len - ETH_TLEN); in __vlan_insert_inner_tag() 356 veth = (struct vlan_ethhdr *)(skb->data + mac_len - ETH_HLEN); in __vlan_insert_inner_tag() 359 if (likely(mac_len >= ETH_TLEN)) { in __vlan_insert_inner_tag() 412 unsigned int mac_len) in vlan_insert_inner_tag() argument 416 err = __vlan_insert_inner_tag(skb, vlan_proto, vlan_tci, mac_len); in vlan_insert_inner_tag() 587 unsigned int vlan_depth = skb->mac_len, parse_depth = VLAN_MAX_DEPTH; in __vlan_get_protocol()
|
/linux-6.3-rc2/net/sched/ |
A D | act_mpls.c | 60 int ret, mac_len; in tcf_mpls_act() local 69 skb_push_rcsum(skb, skb->mac_len); in tcf_mpls_act() 70 mac_len = skb->mac_len; in tcf_mpls_act() 72 mac_len = skb_network_header(skb) - skb_mac_header(skb); in tcf_mpls_act() 81 if (skb_mpls_pop(skb, p->tcfm_proto, mac_len, in tcf_mpls_act() 87 if (skb_mpls_push(skb, new_lse, p->tcfm_proto, mac_len, in tcf_mpls_act() 102 new_lse = tcf_mpls_get_lse(NULL, p, mac_len || in tcf_mpls_act() 123 skb_pull_rcsum(skb, skb->mac_len); in tcf_mpls_act()
|
A D | act_mirred.c | 244 int mac_len; in tcf_mirred_act() local 297 mac_len = skb_at_tc_ingress(skb) ? skb->mac_len : in tcf_mirred_act() 301 skb_pull_rcsum(skb2, mac_len); in tcf_mirred_act() 304 skb_push_rcsum(skb2, mac_len); in tcf_mirred_act()
|
A D | act_sample.c | 190 skb_push(skb, skb->mac_len); in tcf_sample_act() 196 skb_pull(skb, skb->mac_len); in tcf_sample_act()
|
A D | act_bpf.c | 49 __skb_push(skb, skb->mac_len); in tcf_bpf_act() 52 __skb_pull(skb, skb->mac_len); in tcf_bpf_act()
|
A D | act_vlan.c | 39 skb_push_rcsum(skb, skb->mac_len); in tcf_vlan_act() 97 skb_pull_rcsum(skb, skb->mac_len); in tcf_vlan_act()
|
/linux-6.3-rc2/drivers/crypto/cavium/cpt/ |
A D | cptvf_algs.h | 55 u64 mac_len:8; member 65 u64 mac_len:8;
|
/linux-6.3-rc2/net/netfilter/ |
A D | nf_dup_netdev.c | 27 if (skb_cow_head(skb, skb->mac_len)) in nf_do_netdev_egress() 30 skb_push(skb, skb->mac_len); in nf_do_netdev_egress()
|
/linux-6.3-rc2/drivers/crypto/marvell/octeontx/ |
A D | otx_cptvf_algs.c | 974 int mac_len = crypto_aead_authsize(tfm); in create_aead_ctx_hdr() local 1024 req_info->req.param1 = req->cryptlen - mac_len; in create_aead_ctx_hdr() 1031 fctx->enc.enc_ctrl.e.mac_len = mac_len; in create_aead_ctx_hdr() 1095 u32 mac_len) in create_aead_output_list() argument 1104 outputlen = req->cryptlen + req->assoclen - mac_len; in create_aead_output_list() 1113 u32 enc, u32 mac_len) in create_aead_null_input_list() argument 1122 inputlen = req->cryptlen + req->assoclen - mac_len; in create_aead_null_input_list() 1132 u32 enc, u32 mac_len) in create_aead_null_output_list() argument 1198 rctx->fctx.hmac.s.hmac_recv, mac_len, in create_aead_null_output_list() 1200 if (status != mac_len) { in create_aead_null_output_list() [all …]
|
A D | otx_cptvf_algs.h | 80 u64 mac_len:8; member 90 u64 mac_len:8;
|
/linux-6.3-rc2/drivers/crypto/marvell/octeontx2/ |
A D | otx2_cptvf_algs.c | 1021 int mac_len = crypto_aead_authsize(tfm); in create_aead_ctx_hdr() local 1077 req_info->req.param1 = req->cryptlen - mac_len; in create_aead_ctx_hdr() 1084 fctx->enc.enc_ctrl.e.mac_len = mac_len; in create_aead_ctx_hdr() 1146 u32 mac_len) in create_aead_output_list() argument 1155 outputlen = req->cryptlen + req->assoclen - mac_len; in create_aead_output_list() 1162 u32 enc, u32 mac_len) in create_aead_null_input_list() argument 1171 inputlen = req->cryptlen + req->assoclen - mac_len; in create_aead_null_input_list() 1179 u32 enc, u32 mac_len) in create_aead_null_output_list() argument 1241 rctx->fctx.hmac.s.hmac_recv, mac_len, in create_aead_null_output_list() 1243 if (status != mac_len) in create_aead_null_output_list() [all …]
|
A D | otx2_cptvf_algs.h | 70 u64 mac_len:8; member 80 u64 mac_len:8;
|
/linux-6.3-rc2/net/openvswitch/ |
A D | actions.c | 164 __be32 mpls_lse, __be16 mpls_ethertype, __u16 mac_len) in push_mpls() argument 168 err = skb_mpls_push(skb, mpls_lse, mpls_ethertype, mac_len, !!mac_len); in push_mpls() 172 if (!mac_len) in push_mpls() 184 err = skb_mpls_pop(skb, ethertype, skb->mac_len, in pop_mpls() 1214 len = ovs_cb->mru ? ovs_cb->mru + skb->mac_len : skb->len; in execute_check_pkt_len() 1336 mpls->mpls_ethertype, skb->mac_len); in do_execute_actions() 1341 __u16 mac_len = 0; in do_execute_actions() local 1344 mac_len = skb->mac_len; in do_execute_actions() 1347 mpls->mpls_ethertype, mac_len); in do_execute_actions()
|
/linux-6.3-rc2/net/ipv6/ |
A D | seg6_iptunnel.c | 140 err = skb_cow_head(skb, tot_len + skb->mac_len); in seg6_do_srh_encap() 233 err = skb_cow_head(skb, tot_len + skb->mac_len); in seg6_do_srh_encap_red() 329 err = skb_cow_head(skb, hdrlen + skb->mac_len); in seg6_do_srh_inline() 421 if (pskb_expand_head(skb, skb->mac_len, 0, GFP_ATOMIC) < 0) in seg6_do_srh() 425 skb_push(skb, skb->mac_len); in seg6_do_srh()
|
/linux-6.3-rc2/net/mac802154/ |
A 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() 761 skb->mac_len = ieee802154_hdr_push(skb, &hdr); in mac802154_llsec_encrypt() 842 data = skb_mac_header(skb) + skb->mac_len; in llsec_do_decrypt_unauth() 874 assoclen = skb->mac_len; in llsec_do_decrypt_auth() 876 data = skb_mac_header(skb) + skb->mac_len; in llsec_do_decrypt_auth()
|
/linux-6.3-rc2/net/ieee802154/6lowpan/ |
A 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-6.3-rc2/tools/testing/selftests/bpf/progs/ |
A D | kfree_skb.c | 42 __u16 mac_len, hdr_len, queue_mapping; member
|
/linux-6.3-rc2/drivers/crypto/hisilicon/sec2/ |
A D | sec_crypto.c | 1143 const enum sec_mac_len mac_len, in sec_aead_setkey() argument 1155 ctx->a_ctx.mac_len = mac_len; in sec_aead_setkey() 1190 if ((ctx->a_ctx.mac_len & SEC_SQE_LEN_RATE_MASK) || in sec_aead_setkey() 1474 size_t authsize = ctx->a_ctx.mac_len; in set_aead_auth_iv() 1527 ctx->a_ctx.mac_len = authsize; in sec_aead_set_iv() 1534 ctx->a_ctx.mac_len = authsize; in sec_aead_set_iv() 1546 sec_sqe->type2.icvw_kmode |= cpu_to_le16((u16)ctx->mac_len); in sec_auth_bd_fill_xcm() 1572 sqe3->c_icv_key |= cpu_to_le16((u16)ctx->mac_len << SEC_MAC_OFFSET_V3); in sec_auth_bd_fill_xcm_v3() 1600 cpu_to_le32(ctx->mac_len / SEC_SQE_LEN_RATE); in sec_auth_bd_fill_ex() 1654 cpu_to_le32((u32)(ctx->mac_len / in sec_auth_bd_fill_ex_v3()
|
A D | sec.h | 93 u8 mac_len; member
|
/linux-6.3-rc2/drivers/crypto/cavium/nitrox/ |
A D | nitrox_req.h | 162 u64 mac_len : 8; member 166 u64 mac_len : 8;
|
/linux-6.3-rc2/net/xfrm/ |
A D | xfrm_input.c | 251 if (skb->mac_len) in xfrm4_remove_tunnel_encap() 288 if (skb->mac_len) in xfrm6_remove_tunnel_encap() 303 err = skb_cow_head(skb, size + skb->mac_len); in xfrm6_remove_beet_encap()
|