Home
last modified time | relevance | path

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

12

/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()
/net/nsh/
Dnsh.c20 if (skb->mac_len) { in nsh_push()
81 unsigned int nsh_len, mac_len; in nsh_gso_segment() local
86 mac_len = skb->mac_len; in nsh_gso_segment()
103 skb->mac_len = proto == htons(ETH_P_TEB) ? ETH_HLEN : 0; in nsh_gso_segment()
110 mac_offset, mac_len); in nsh_gso_segment()
118 skb->network_header = skb->mac_header + mac_len; in nsh_gso_segment()
119 skb->mac_len = mac_len; in nsh_gso_segment()
/net/ipv4/
Dgre_offload.c23 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()
Dudp_offload.c27 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()
/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()
85 if (skb_mpls_push(skb, new_lse, p->tcfm_proto, mac_len, in tcf_mpls_act()
100 new_lse = tcf_mpls_get_lse(NULL, p, mac_len || in tcf_mpls_act()
121 skb_pull_rcsum(skb, skb->mac_len); in tcf_mpls_act()
Dact_mirred.c242 int mac_len; in tcf_mirred_act() local
295 mac_len = skb_at_tc_ingress(skb) ? skb->mac_len : in tcf_mirred_act()
299 skb_pull_rcsum(skb2, mac_len); in tcf_mirred_act()
302 skb_push_rcsum(skb2, mac_len); in tcf_mirred_act()
Dact_sample.c188 skb_push(skb, skb->mac_len); in tcf_sample_act()
194 skb_pull(skb, skb->mac_len); in tcf_sample_act()
Dact_bpf.c47 __skb_push(skb, skb->mac_len); in tcf_bpf_act()
50 __skb_pull(skb, skb->mac_len); in tcf_bpf_act()
Dact_vlan.c37 skb_push_rcsum(skb, skb->mac_len); in tcf_vlan_act()
95 skb_pull_rcsum(skb, skb->mac_len); in tcf_vlan_act()
Dcls_bpf.c97 __skb_push(skb, skb->mac_len); in cls_bpf_classify()
100 __skb_pull(skb, skb->mac_len); in cls_bpf_classify()
/net/netfilter/
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()
/net/openvswitch/
Dactions.c164 __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()
Dflow.c790 skb_set_inner_network_header(skb, skb->mac_len); in key_extract_l3l4()
794 error = check_header(skb, skb->mac_len + in key_extract_l3l4()
805 skb_set_inner_network_header(skb, skb->mac_len + in key_extract_l3l4()
/net/ipv6/
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()
Dioam6_iptunnel.c230 err = skb_cow_head(skb, hdrlen + skb->mac_len); in ioam6_do_inline()
268 err = skb_cow_head(skb, len + skb->mac_len); in ioam6_do_encap()
/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()
Diface.c408 skb->mac_len = hlen; in ieee802154_header_create()
470 skb->mac_len = hlen; in mac802154_header_create()
/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()
/net/llc/
Dllc_station.c79 if (skb->mac_len < ETH_HLEN) in llc_station_ac_send_test_r()
Dllc_input.c133 if (skb->mac_len < ETH_HLEN) in llc_fixup_skb()
Dllc_s_ac.c156 if (skb->mac_len < ETH_HLEN) in llc_sap_action_send_test_r()
/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.c253 if (skb->mac_len) in xfrm4_remove_tunnel_encap()
290 if (skb->mac_len) in xfrm6_remove_tunnel_encap()
307 err = skb_cow_head(skb, size + skb->mac_len); in xfrm6_remove_beet_encap()
/net/core/
Dskbuff.c1184 C(mac_len); in __skb_clone()
5701 int mac_len, meta_len; in skb_reorder_vlan_header() local
5709 mac_len = skb->data - skb_mac_header(skb); in skb_reorder_vlan_header()
5710 if (likely(mac_len > VLAN_HLEN + ETH_TLEN)) { in skb_reorder_vlan_header()
5712 mac_len - VLAN_HLEN - ETH_TLEN); in skb_reorder_vlan_header()
5871 skb->mac_len += VLAN_HLEN; in skb_vlan_push()
5976 int mac_len, bool ethernet) in skb_mpls_push() argument
5999 mac_len); in skb_mpls_push()
6001 skb_set_network_header(skb, mac_len); in skb_mpls_push()
6008 if (ethernet && mac_len >= ETH_HLEN) in skb_mpls_push()
[all …]
/net/hsr/
Dhsr_forward.c526 if (skb->mac_len < sizeof(struct hsr_ethhdr)) in hsr_fill_frame_info()
572 if (skb->mac_len < sizeof(struct ethhdr)) in fill_frame_info()

12