/linux/net/mpls/ |
H A D | mpls_gso.c | 26 u16 mac_len = skb->mac_len; in mpls_gso_segment() local 46 skb->mac_len = 0; in mpls_gso_segment() 54 mac_len); in mpls_gso_segment() 59 mpls_hlen += mac_len; in mpls_gso_segment() 61 skb->mac_len = mac_len; in mpls_gso_segment() 69 skb_set_network_header(skb, mac_len); in mpls_gso_segment()
|
/linux/net/nsh/ |
H A D | nsh.c | 21 if (skb->mac_len) { in nsh_push() 80 unsigned int outer_hlen, mac_len, nsh_len; in nsh_gso_segment() local 89 mac_len = skb->mac_len; in nsh_gso_segment() 106 skb->mac_len = proto == htons(ETH_P_TEB) ? ETH_HLEN : 0; in nsh_gso_segment() 113 mac_offset, mac_len); in nsh_gso_segment() 122 skb->mac_len = mac_len; in nsh_gso_segment()
|
/linux/net/ipv4/ |
H A D | gre_offload.c | 24 u16 mac_len = skb->mac_len; in gre_gso_segment() local 42 skb->mac_len = skb_inner_network_offset(skb); in gre_gso_segment() 61 mac_len); in gre_gso_segment() 80 skb->mac_len = mac_len; in gre_gso_segment() 85 skb_set_network_header(skb, mac_len); in gre_gso_segment()
|
H A D | udp_offload.c | 28 u16 mac_len = skb->mac_len; in __skb_udp_tunnel_segment() local 55 skb->mac_len = skb_inner_network_offset(skb); in __skb_udp_tunnel_segment() 90 mac_len); in __skb_udp_tunnel_segment() 111 skb->mac_len = mac_len; in __skb_udp_tunnel_segment() 116 skb_set_network_header(skb, mac_len); in __skb_udp_tunnel_segment()
|
/linux/include/net/ |
H A D | gso.h | 98 int mac_len) in skb_gso_error_unwind() argument 105 skb->network_header = skb->mac_header + mac_len; in skb_gso_error_unwind() 106 skb->mac_len = mac_len; in skb_gso_error_unwind()
|
/linux/include/linux/ |
H A D | if_vlan.h | 350 unsigned int mac_len) in __vlan_insert_inner_tag() argument 360 if (likely(mac_len > ETH_TLEN)) in __vlan_insert_inner_tag() 361 memmove(skb->data, skb->data + VLAN_HLEN, mac_len - ETH_TLEN); in __vlan_insert_inner_tag() 365 veth = (struct vlan_ethhdr *)(skb->data + mac_len - ETH_HLEN); in __vlan_insert_inner_tag() 368 if (likely(mac_len >= ETH_TLEN)) { in __vlan_insert_inner_tag() 421 unsigned int mac_len) in vlan_insert_inner_tag() argument 425 err = __vlan_insert_inner_tag(skb, vlan_proto, vlan_tci, mac_len); in vlan_insert_inner_tag() 599 unsigned int vlan_depth = skb->mac_len, parse_depth = VLAN_MAX_DEPTH; in __vlan_get_protocol_offset()
|
/linux/drivers/crypto/marvell/octeontx/ |
H A D | otx_cptvf_algs.c | 893 int mac_len = crypto_aead_authsize(tfm); in create_aead_ctx_hdr() local 943 req_info->req.param1 = req->cryptlen - mac_len; in create_aead_ctx_hdr() 944 req_info->req.param2 = req->cryptlen + req->assoclen - mac_len; in create_aead_ctx_hdr() 950 fctx->enc.enc_ctrl.e.mac_len = mac_len; in create_aead_ctx_hdr() 1014 u32 mac_len) in create_aead_output_list() argument 1021 outputlen = req->cryptlen + req->assoclen + mac_len; in create_aead_output_list() 1023 outputlen = req->cryptlen + req->assoclen - mac_len; in create_aead_output_list() 1032 u32 enc, u32 mac_len) in create_aead_null_input_list() argument 1041 inputlen = req->cryptlen + req->assoclen - mac_len; in create_aead_null_input_list() 1051 u32 enc, u32 mac_len) in create_aead_null_output_list() argument [all …]
|
H A D | otx_cptvf_algs.h | 80 u64 mac_len:8; member 90 u64 mac_len:8;
|
/linux/drivers/crypto/cavium/cpt/ |
H A D | cptvf_algs.h | 55 u64 mac_len:8; member 65 u64 mac_len:8;
|
/linux/net/netfilter/ |
H 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/drivers/crypto/marvell/octeontx2/ |
H A D | otx2_cptvf_algs.c | 975 int mac_len = crypto_aead_authsize(tfm); in create_aead_ctx_hdr() local 1031 req_info->req.param1 = req->cryptlen - mac_len; in create_aead_ctx_hdr() 1032 req_info->req.param2 = req->cryptlen + req->assoclen - mac_len; in create_aead_ctx_hdr() 1038 fctx->enc.enc_ctrl.e.mac_len = mac_len; in create_aead_ctx_hdr() 1100 u32 mac_len) in create_aead_output_list() argument 1107 outputlen = req->cryptlen + req->assoclen + mac_len; in create_aead_output_list() 1109 outputlen = req->cryptlen + req->assoclen - mac_len; in create_aead_output_list() 1116 u32 enc, u32 mac_len) in create_aead_null_input_list() argument 1125 inputlen = req->cryptlen + req->assoclen - mac_len; in create_aead_null_input_list() 1133 u32 enc, u32 mac_len) in create_aead_null_output_list() argument [all …]
|
H A D | otx2_cptvf_algs.h | 71 u64 mac_len:8; member 81 u64 mac_len:8;
|
/linux/net/sched/ |
H A D | act_mirred.c | 261 int mac_len; in tcf_mirred_to_dev() local 295 mac_len = at_ingress ? skb->mac_len : in tcf_mirred_to_dev() 299 skb_pull_rcsum(skb_to_send, mac_len); in tcf_mirred_to_dev() 302 skb_push_rcsum(skb_to_send, mac_len); in tcf_mirred_to_dev()
|
H A D | act_sample.c | 192 skb_push(skb, skb->mac_len); in tcf_sample_act() 208 skb_pull(skb, skb->mac_len); in tcf_sample_act()
|
H 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()
|
H 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/net/ipv6/ |
H 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/net/mac802154/ |
H A D | llsec.c | 631 data = skb_mac_header(skb) + skb->mac_len; in llsec_do_encrypt_unauth() 673 assoclen = skb->mac_len; in llsec_do_encrypt_auth() 675 data = skb_mac_header(skb) + skb->mac_len; in llsec_do_encrypt_auth() 769 skb->mac_len = ieee802154_hdr_push(skb, &hdr); in mac802154_llsec_encrypt() 850 data = skb_mac_header(skb) + skb->mac_len; in llsec_do_decrypt_unauth() 882 assoclen = skb->mac_len; in llsec_do_decrypt_auth() 884 data = skb_mac_header(skb) + skb->mac_len; in llsec_do_decrypt_auth()
|
/linux/net/openvswitch/ |
H A D | actions.c | 171 __be32 mpls_lse, __be16 mpls_ethertype, __u16 mac_len) in push_mpls() argument 175 err = skb_mpls_push(skb, mpls_lse, mpls_ethertype, mac_len, !!mac_len); in push_mpls() 179 if (!mac_len) in push_mpls() 191 err = skb_mpls_pop(skb, ethertype, skb->mac_len, in pop_mpls() 1259 len = ovs_cb->mru ? ovs_cb->mru + skb->mac_len : skb->len; in execute_check_pkt_len() 1426 mpls->mpls_ethertype, skb->mac_len); in do_execute_actions() 1431 __u16 mac_len = 0; in do_execute_actions() local 1434 mac_len = skb->mac_len; in do_execute_actions() 1437 mpls->mpls_ethertype, mac_len); in do_execute_actions()
|
/linux/net/ieee802154/6lowpan/ |
H 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/net/ieee802154/ |
H A D | header_ops.c | 137 skb->mac_len = ret; in ieee802154_mac_cmd_push() 159 skb->mac_len = ret; in ieee802154_beacon_push()
|
/linux/net/llc/ |
H A D | llc_station.c | 79 if (skb->mac_len < ETH_HLEN) in llc_station_ac_send_test_r()
|
/linux/drivers/crypto/cavium/nitrox/ |
H A D | nitrox_req.h | 162 u64 mac_len : 8; member 166 u64 mac_len : 8;
|
/linux/tools/testing/selftests/bpf/progs/ |
H A D | kfree_skb.c | 42 __u16 mac_len, hdr_len, queue_mapping; member
|
/linux/net/hsr/ |
H A D | hsr_forward.c | 630 if (skb->mac_len < sizeof(struct hsr_ethhdr)) in hsr_fill_frame_info() 677 if (skb->mac_len < sizeof(struct ethhdr)) in fill_frame_info() 703 if (skb->mac_len < offsetofend(struct hsr_vlan_ethhdr, vlanhdr)) in fill_frame_info()
|