Home
last modified time | relevance | path

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

123

/linux/net/mpls/
H A Dmpls_gso.c26 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 Dnsh.c21 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 Dgre_offload.c24 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 Dudp_offload.c28 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 Dgso.h98 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 Dif_vlan.h350 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 Dotx_cptvf_algs.c893 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 Dotx_cptvf_algs.h80 u64 mac_len:8; member
90 u64 mac_len:8;
/linux/drivers/crypto/cavium/cpt/
H A Dcptvf_algs.h55 u64 mac_len:8; member
65 u64 mac_len:8;
/linux/net/netfilter/
H A Dnf_dup_netdev.c27 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 Dotx2_cptvf_algs.c975 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 Dotx2_cptvf_algs.h71 u64 mac_len:8; member
81 u64 mac_len:8;
/linux/net/sched/
H A Dact_mirred.c261 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 Dact_sample.c192 skb_push(skb, skb->mac_len); in tcf_sample_act()
208 skb_pull(skb, skb->mac_len); in tcf_sample_act()
H A Dact_bpf.c49 __skb_push(skb, skb->mac_len); in tcf_bpf_act()
52 __skb_pull(skb, skb->mac_len); in tcf_bpf_act()
H A Dact_vlan.c39 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 Dseg6_iptunnel.c140 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 Dllsec.c631 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 Dactions.c171 __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 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/net/ieee802154/
H A Dheader_ops.c137 skb->mac_len = ret; in ieee802154_mac_cmd_push()
159 skb->mac_len = ret; in ieee802154_beacon_push()
/linux/net/llc/
H A Dllc_station.c79 if (skb->mac_len < ETH_HLEN) in llc_station_ac_send_test_r()
/linux/drivers/crypto/cavium/nitrox/
H A Dnitrox_req.h162 u64 mac_len : 8; member
166 u64 mac_len : 8;
/linux/tools/testing/selftests/bpf/progs/
H A Dkfree_skb.c42 __u16 mac_len, hdr_len, queue_mapping; member
/linux/net/hsr/
H A Dhsr_forward.c630 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()

123