Searched refs:skb (Results 76 - 100 of 3407) sorted by relevance

1234567891011>>

/linux-master/tools/testing/selftests/bpf/progs/
H A Ddecap_sanity.c16 static unsigned int skb_headlen(const struct sk_buff *skb) argument
18 return skb->len - skb->data_len;
21 static unsigned int skb_headroom(const struct sk_buff *skb) argument
23 return skb->data - skb->head;
26 static int skb_checksum_start_offset(const struct sk_buff *skb) argument
28 return skb->csum_start - skb_headroom(skb);
32 int decap_sanity(struct __sk_buff *skb) argument
[all...]
H A Dtailcall_bpf2bpf3.c15 int subprog_tail2(struct __sk_buff *skb) argument
19 if (load_word(skb, 0) || load_half(skb, 0))
20 bpf_tail_call_static(skb, &jmp_table, 10);
22 bpf_tail_call_static(skb, &jmp_table, 1);
26 return skb->len;
30 int subprog_tail(struct __sk_buff *skb) argument
34 bpf_tail_call_static(skb, &jmp_table, 0);
38 return skb->len * 2;
42 int classifier_0(struct __sk_buff *skb) argument
52 classifier_1(struct __sk_buff *skb) argument
62 entry(struct __sk_buff *skb) argument
[all...]
H A Dtest_pkt_access.c23 * ; return skb->len * 2;
29 * ; return skb->len * val;
37 int test_pkt_access_subprog1(volatile struct __sk_buff *skb) argument
39 return skb->len * 2;
43 int test_pkt_access_subprog2(int val, volatile struct __sk_buff *skb) argument
45 return skb->len * val;
51 int get_skb_len(struct __sk_buff *skb) argument
57 return skb->len;
66 int get_skb_ifindex(int, struct __sk_buff *skb, int);
69 int test_pkt_access_subprog3(int val, struct __sk_buff *skb) argument
75 get_skb_ifindex(int val, struct __sk_buff *skb, int var) argument
85 test_pkt_write_access_subprog(struct __sk_buff *skb, __u32 off) argument
103 test_pkt_access(struct __sk_buff *skb) argument
[all...]
H A Dtest_lwt_reroute.c13 int test_lwt_reroute(struct __sk_buff *skb) argument
16 void *start = (void *)(long)skb->data;
17 void *end = (void *)(long)skb->data_end;
20 if (skb->mark != 0)
27 skb->mark = bpf_ntohl(iph->daddr) & 0xff;
30 if (skb->mark == 0)
/linux-master/net/ipv6/
H A Dxfrm6_output.c19 void xfrm6_local_rxpmtu(struct sk_buff *skb, u32 mtu) argument
22 struct sock *sk = skb->sk;
25 fl6.daddr = ipv6_hdr(skb)->daddr;
30 void xfrm6_local_error(struct sk_buff *skb, u32 mtu) argument
34 struct sock *sk = skb->sk;
36 hdr = skb->encapsulation ? inner_ipv6_hdr(skb) : ipv6_hdr(skb);
43 static int __xfrm6_output_finish(struct net *net, struct sock *sk, struct sk_buff *skb) argument
45 return xfrm_output(sk, skb);
48 xfrm6_noneed_fragment(struct sk_buff *skb) argument
61 __xfrm6_output(struct net *net, struct sock *sk, struct sk_buff *skb) argument
106 xfrm6_output(struct net *net, struct sock *sk, struct sk_buff *skb) argument
[all...]
H A Dudp_offload.c19 static struct sk_buff *udp6_ufo_fragment(struct sk_buff *skb, argument
33 if (skb->encapsulation && skb_shinfo(skb)->gso_type &
35 segs = skb_udp_tunnel_segment(skb, features, true);
40 if (!(skb_shinfo(skb)->gso_type & (SKB_GSO_UDP | SKB_GSO_UDP_L4)))
43 if (!pskb_may_pull(skb, sizeof(struct udphdr)))
46 if (skb_shinfo(skb)->gso_type & SKB_GSO_UDP_L4)
47 return __udp_gso_segment(skb, features, true);
49 mss = skb_shinfo(skb)->gso_size;
50 if (unlikely(skb
116 udp6_gro_lookup_skb(struct sk_buff *skb, __be16 sport, __be16 dport) argument
131 udp6_gro_receive(struct list_head *head, struct sk_buff *skb) argument
165 udp6_gro_complete(struct sk_buff *skb, int nhoff) argument
[all...]
/linux-master/net/ieee802154/
H A Dieee802154.h37 int ieee802154_list_phy(struct sk_buff *skb, struct genl_info *info);
38 int ieee802154_dump_phy(struct sk_buff *skb, struct netlink_callback *cb);
39 int ieee802154_add_iface(struct sk_buff *skb, struct genl_info *info);
40 int ieee802154_del_iface(struct sk_buff *skb, struct genl_info *info);
47 int ieee802154_associate_req(struct sk_buff *skb, struct genl_info *info);
48 int ieee802154_associate_resp(struct sk_buff *skb, struct genl_info *info);
49 int ieee802154_disassociate_req(struct sk_buff *skb, struct genl_info *info);
50 int ieee802154_scan_req(struct sk_buff *skb, struct genl_info *info);
51 int ieee802154_start_req(struct sk_buff *skb, struct genl_info *info);
52 int ieee802154_list_iface(struct sk_buff *skb, struc
[all...]
/linux-master/include/linux/
H A Dnetfilter_netdev.h9 static inline bool nf_hook_ingress_active(const struct sk_buff *skb) argument
15 return rcu_access_pointer(skb->dev->nf_hooks_ingress);
19 static inline int nf_hook_ingress(struct sk_buff *skb) argument
21 struct nf_hook_entries *e = rcu_dereference(skb->dev->nf_hooks_ingress);
32 NFPROTO_NETDEV, skb->dev, NULL, NULL,
33 dev_net(skb->dev), NULL);
34 ret = nf_hook_slow(skb, &state, e, 0);
42 static inline int nf_hook_ingress_active(struct sk_buff *skb) argument
47 static inline int nf_hook_ingress(struct sk_buff *skb) argument
65 * @skb
85 nf_hook_egress(struct sk_buff *skb, int *rc, struct net_device *dev) argument
126 nf_hook_egress(struct sk_buff *skb, int *rc, struct net_device *dev) argument
133 nf_skip_egress(struct sk_buff *skb, bool skip) argument
[all...]
/linux-master/net/sched/
H A Dsch_frag.c18 int (*xmit)(struct sk_buff *skb);
23 static int sch_frag_xmit(struct net *net, struct sock *sk, struct sk_buff *skb) argument
27 if (skb_cow_head(skb, data->l2_len) < 0) {
28 kfree_skb(skb);
32 __skb_dst_copy(skb, data->dst);
33 *qdisc_skb_cb(skb) = data->cb;
34 skb->inner_protocol = data->inner_protocol;
36 __vlan_hwaccel_put_tag(skb, data->vlan_proto,
39 __vlan_hwaccel_clear_tag(skb);
42 skb_push(skb, dat
50 sch_frag_prepare_frag(struct sk_buff *skb, int (*xmit)(struct sk_buff *skb)) argument
84 sch_fragment(struct net *net, struct sk_buff *skb, u16 mru, int (*xmit)(struct sk_buff *skb)) argument
140 sch_frag_xmit_hook(struct sk_buff *skb, int (*xmit)(struct sk_buff *skb)) argument
[all...]
/linux-master/net/bridge/
H A Dbr_netfilter_hooks.c70 #define IS_IP(skb) \
71 (!skb_vlan_tag_present(skb) && skb->protocol == htons(ETH_P_IP))
73 #define IS_IPV6(skb) \
74 (!skb_vlan_tag_present(skb) && skb->protocol == htons(ETH_P_IPV6))
76 #define IS_ARP(skb) \
77 (!skb_vlan_tag_present(skb) && skb->protocol == htons(ETH_P_ARP))
79 static inline __be16 vlan_proto(const struct sk_buff *skb) argument
89 is_vlan_ip(const struct sk_buff *skb, const struct net *net) argument
96 is_vlan_ipv6(const struct sk_buff *skb, const struct net *net) argument
105 is_vlan_arp(const struct sk_buff *skb, const struct net *net) argument
112 pppoe_proto(const struct sk_buff *skb) argument
118 is_pppoe_ip(const struct sk_buff *skb, const struct net *net) argument
126 is_pppoe_ipv6(const struct sk_buff *skb, const struct net *net) argument
149 nf_bridge_info_free(struct sk_buff *skb) argument
162 nf_bridge_unshare(struct sk_buff *skb) argument
167 nf_bridge_encap_header_len(const struct sk_buff *skb) argument
179 nf_bridge_pull_encap_header(struct sk_buff *skb) argument
187 nf_bridge_pull_encap_header_rcsum(struct sk_buff *skb) argument
200 br_validate_ipv4(struct net *net, struct sk_buff *skb) argument
249 nf_bridge_update_protocol(struct sk_buff *skb) argument
270 br_nf_pre_routing_finish_bridge(struct net *net, struct sock *sk, struct sk_buff *skb) argument
321 br_nf_ipv4_daddr_was_changed(const struct sk_buff *skb, const struct nf_bridge_info *nf_bridge) argument
366 br_nf_pre_routing_finish(struct net *net, struct sock *sk, struct sk_buff *skb) argument
449 brnf_get_logical_dev(struct sk_buff *skb, const struct net_device *dev, const struct net *net) argument
468 setup_pre_routing(struct sk_buff *skb, const struct net *net) argument
497 br_nf_pre_routing(void *priv, struct sk_buff *skb, const struct nf_hook_state *state) argument
599 br_nf_local_in(void *priv, struct sk_buff *skb, const struct nf_hook_state *state) argument
652 br_nf_forward_finish(struct net *net, struct sock *sk, struct sk_buff *skb) argument
686 br_nf_forward_ip(struct sk_buff *skb, const struct nf_hook_state *state, u8 pf) argument
741 br_nf_forward_arp(struct sk_buff *skb, const struct nf_hook_state *state) argument
782 br_nf_forward(void *priv, struct sk_buff *skb, const struct nf_hook_state *state) argument
798 br_nf_push_frag_xmit(struct net *net, struct sock *sk, struct sk_buff *skb) argument
822 br_nf_ip_fragment(struct net *net, struct sock *sk, struct sk_buff *skb, int (*output)(struct net *, struct sock *, struct sk_buff *)) argument
839 nf_bridge_mtu_reduction(const struct sk_buff *skb) argument
848 br_nf_dev_queue_xmit(struct net *net, struct sock *sk, struct sk_buff *skb) argument
932 br_nf_post_routing(void *priv, struct sk_buff *skb, const struct nf_hook_state *state) argument
981 ip_sabotage_in(void *priv, struct sk_buff *skb, const struct nf_hook_state *state) argument
1012 br_nf_pre_routing_finish_bridge_slow(struct sk_buff *skb) argument
1037 br_nf_dev_xmit(struct sk_buff *skb) argument
1130 br_nf_hook_thresh(unsigned int hook, struct net *net, struct sock *sk, struct sk_buff *skb, struct net_device *indev, struct net_device *outdev, int (*okfn)(struct net *, struct sock *, struct sk_buff *)) argument
[all...]
H A Dbr_netfilter_ipv6.c43 int br_validate_ipv6(struct net *net, struct sk_buff *skb) argument
46 struct inet6_dev *idev = __in6_dev_get(skb->dev);
50 if (!pskb_may_pull(skb, ip6h_len))
53 if (skb->len < ip6h_len)
56 hdr = ipv6_hdr(skb);
62 if (hdr->nexthdr == NEXTHDR_HOP && nf_ip6_check_hbh_len(skb, &pkt_len))
65 if (pkt_len + ip6h_len > skb->len) {
70 if (pskb_trim_rcsum(skb, pkt_len + ip6h_len)) {
76 memset(IP6CB(skb), 0, sizeof(struct inet6_skb_parm));
89 br_nf_ipv6_daddr_was_changed(const struct sk_buff *skb, argument
101 br_nf_pre_routing_finish_ipv6(struct net *net, struct sock *sk, struct sk_buff *skb) argument
163 br_nf_pre_routing_ipv6(void *priv, struct sk_buff *skb, const struct nf_hook_state *state) argument
[all...]
H A Dbr_input.c27 br_netif_receive_skb(struct net *net, struct sock *sk, struct sk_buff *skb) argument
29 br_drop_fake_rtable(skb);
30 return netif_receive_skb(skb);
33 static int br_pass_frame_up(struct sk_buff *skb, bool promisc) argument
35 struct net_device *indev, *brdev = BR_INPUT_SKB_CB(skb)->brdev;
39 dev_sw_netstats_rx_add(brdev, skb->len);
47 br_switchdev_frame_unmark(skb);
54 !br_allowed_egress(vg, skb)) {
55 kfree_skb(skb);
59 indev = skb
76 br_handle_frame_finish(struct net *net, struct sock *sk, struct sk_buff *skb) argument
231 __br_handle_local_finish(struct sk_buff *skb) argument
245 br_handle_local_finish(struct net *net, struct sock *sk, struct sk_buff *skb) argument
253 nf_hook_bridge_pre(struct sk_buff *skb, struct sk_buff **pskb) argument
309 br_process_frame_type(struct net_bridge_port *p, struct sk_buff *skb) argument
328 struct sk_buff *skb = *pskb; local
[all...]
/linux-master/drivers/net/wireless/ath/ath10k/
H A Dwmi-ops.h15 void (*rx)(struct ath10k *ar, struct sk_buff *skb);
19 int (*pull_scan)(struct ath10k *ar, struct sk_buff *skb,
21 int (*pull_mgmt_rx)(struct ath10k *ar, struct sk_buff *skb,
23 int (*pull_mgmt_tx_compl)(struct ath10k *ar, struct sk_buff *skb,
26 struct ath10k *ar, struct sk_buff *skb,
28 int (*pull_ch_info)(struct ath10k *ar, struct sk_buff *skb,
30 int (*pull_vdev_start)(struct ath10k *ar, struct sk_buff *skb,
32 int (*pull_peer_kick)(struct ath10k *ar, struct sk_buff *skb,
34 int (*pull_swba)(struct ath10k *ar, struct sk_buff *skb,
36 int (*pull_phyerr_hdr)(struct ath10k *ar, struct sk_buff *skb,
235 ath10k_wmi_rx(struct ath10k *ar, struct sk_buff *skb) argument
267 ath10k_wmi_pull_scan(struct ath10k *ar, struct sk_buff *skb, struct wmi_scan_ev_arg *arg) argument
277 ath10k_wmi_pull_mgmt_tx_compl(struct ath10k *ar, struct sk_buff *skb, struct wmi_tlv_mgmt_tx_compl_ev_arg *arg) argument
287 ath10k_wmi_pull_mgmt_tx_bundle_compl(struct ath10k *ar, struct sk_buff *skb, struct wmi_tlv_mgmt_tx_bundle_compl_ev_arg *arg) argument
297 ath10k_wmi_pull_mgmt_rx(struct ath10k *ar, struct sk_buff *skb, struct wmi_mgmt_rx_ev_arg *arg) argument
307 ath10k_wmi_pull_ch_info(struct ath10k *ar, struct sk_buff *skb, struct wmi_ch_info_ev_arg *arg) argument
317 ath10k_wmi_pull_vdev_start(struct ath10k *ar, struct sk_buff *skb, struct wmi_vdev_start_ev_arg *arg) argument
327 ath10k_wmi_pull_peer_kick(struct ath10k *ar, struct sk_buff *skb, struct wmi_peer_kick_ev_arg *arg) argument
337 ath10k_wmi_pull_swba(struct ath10k *ar, struct sk_buff *skb, struct wmi_swba_ev_arg *arg) argument
347 ath10k_wmi_pull_phyerr_hdr(struct ath10k *ar, struct sk_buff *skb, struct wmi_phyerr_hdr_arg *arg) argument
367 ath10k_wmi_pull_svc_rdy(struct ath10k *ar, struct sk_buff *skb, struct wmi_svc_rdy_ev_arg *arg) argument
377 ath10k_wmi_pull_rdy(struct ath10k *ar, struct sk_buff *skb, struct wmi_rdy_ev_arg *arg) argument
387 ath10k_wmi_pull_svc_avail(struct ath10k *ar, struct sk_buff *skb, struct wmi_svc_avail_ev_arg *arg) argument
396 ath10k_wmi_pull_fw_stats(struct ath10k *ar, struct sk_buff *skb, struct ath10k_fw_stats *stats) argument
406 ath10k_wmi_pull_roam_ev(struct ath10k *ar, struct sk_buff *skb, struct wmi_roam_ev_arg *arg) argument
416 ath10k_wmi_pull_wow_event(struct ath10k *ar, struct sk_buff *skb, struct wmi_wow_ev_arg *arg) argument
426 ath10k_wmi_pull_echo_ev(struct ath10k *ar, struct sk_buff *skb, struct wmi_echo_ev_arg *arg) argument
436 ath10k_wmi_pull_dfs_status(struct ath10k *ar, struct sk_buff *skb, struct wmi_dfs_status_ev_arg *arg) argument
467 struct sk_buff *skb; local
489 struct sk_buff *skb; local
518 struct sk_buff *skb; local
535 struct sk_buff *skb; local
551 struct sk_buff *skb; local
566 struct sk_buff *skb; local
581 struct sk_buff *skb; local
596 struct sk_buff *skb; local
612 struct sk_buff *skb; local
627 struct sk_buff *skb; local
645 struct sk_buff *skb; local
660 struct sk_buff *skb; local
676 struct sk_buff *skb; local
693 struct sk_buff *skb; local
709 struct sk_buff *skb; local
724 struct sk_buff *skb; local
739 struct sk_buff *skb; local
755 struct sk_buff *skb; local
772 struct sk_buff *skb; local
789 struct sk_buff *skb; local
807 struct sk_buff *skb; local
828 struct sk_buff *skb; local
847 struct sk_buff *skb; local
863 struct sk_buff *skb; local
879 struct sk_buff *skb; local
895 struct sk_buff *skb; local
911 struct sk_buff *skb; local
928 struct sk_buff *skb; local
945 struct sk_buff *skb; local
962 struct sk_buff *skb; local
979 struct sk_buff *skb; local
994 struct sk_buff *skb; local
1015 struct sk_buff *skb; local
1033 struct sk_buff *skb; local
1058 struct sk_buff *skb; local
1074 struct sk_buff *skb; local
1093 struct sk_buff *skb; local
1113 struct sk_buff *skb; local
1128 struct sk_buff *skb; local
1143 struct sk_buff *skb; local
1158 struct sk_buff *skb; local
1175 struct sk_buff *skb; local
1192 struct sk_buff *skb; local
1208 struct sk_buff *skb; local
1225 struct sk_buff *skb; local
1242 struct sk_buff *skb; local
1259 struct sk_buff *skb; local
1278 struct sk_buff *skb; local
1295 struct sk_buff *skb; local
1310 struct sk_buff *skb; local
1326 struct sk_buff *skb; local
1343 struct sk_buff *skb; local
1362 struct sk_buff *skb; local
1379 struct sk_buff *skb; local
1398 struct sk_buff *skb; local
1417 struct sk_buff *skb; local
1435 struct sk_buff *skb; local
1453 struct sk_buff *skb; local
1471 struct sk_buff *skb; local
1487 struct sk_buff *skb; local
1502 struct sk_buff *skb; local
1531 struct sk_buff *skb; local
1552 struct sk_buff *skb; local
1581 struct sk_buff *skb; local
1598 struct sk_buff *skb; local
1613 struct sk_buff *skb; local
1631 struct sk_buff *skb; local
1648 struct sk_buff *skb; local
1666 struct sk_buff *skb; local
[all...]
/linux-master/net/llc/
H A Dllc_s_ev.c23 int llc_sap_ev_activation_req(struct llc_sap *sap, struct sk_buff *skb) argument
25 struct llc_sap_state_ev *ev = llc_sap_ev(skb);
31 int llc_sap_ev_rx_ui(struct llc_sap *sap, struct sk_buff *skb) argument
33 struct llc_sap_state_ev *ev = llc_sap_ev(skb);
34 struct llc_pdu_un *pdu = llc_pdu_un_hdr(skb);
41 int llc_sap_ev_unitdata_req(struct llc_sap *sap, struct sk_buff *skb) argument
43 struct llc_sap_state_ev *ev = llc_sap_ev(skb);
51 int llc_sap_ev_xid_req(struct llc_sap *sap, struct sk_buff *skb) argument
53 struct llc_sap_state_ev *ev = llc_sap_ev(skb);
60 int llc_sap_ev_rx_xid_c(struct llc_sap *sap, struct sk_buff *skb) argument
70 llc_sap_ev_rx_xid_r(struct llc_sap *sap, struct sk_buff *skb) argument
80 llc_sap_ev_test_req(struct llc_sap *sap, struct sk_buff *skb) argument
89 llc_sap_ev_rx_test_c(struct llc_sap *sap, struct sk_buff *skb) argument
99 llc_sap_ev_rx_test_r(struct llc_sap *sap, struct sk_buff *skb) argument
109 llc_sap_ev_deactivation_req(struct llc_sap *sap, struct sk_buff *skb) argument
[all...]
/linux-master/net/mac80211/
H A Dwme.c34 static int wme_downgrade_ac(struct sk_buff *skb) argument
36 switch (skb->priority) {
39 skb->priority = 5; /* VO -> VI */
43 skb->priority = 3; /* VI -> BE */
47 skb->priority = 2; /* BE -> BK */
85 struct sta_info *sta, struct sk_buff *skb)
90 while (sdata->wmm_acm & BIT(skb->priority)) {
91 int ac = ieee802_1d_to_ac[skb->priority];
94 skb->priority == ifmgd->tx_tspec[ac].up)
97 if (wme_downgrade_ac(skb)) {
84 ieee80211_downgrade_queue(struct ieee80211_sub_if_data *sdata, struct sta_info *sta, struct sk_buff *skb) argument
117 ieee80211_select_queue_80211(struct ieee80211_sub_if_data *sdata, struct sk_buff *skb, struct ieee80211_hdr *hdr) argument
147 ieee80211_select_queue(struct ieee80211_sub_if_data *sdata, struct sta_info *sta, struct sk_buff *skb) argument
193 ieee80211_set_qos_hdr(struct ieee80211_sub_if_data *sdata, struct sk_buff *skb) argument
[all...]
/linux-master/drivers/dpll/
H A Ddpll_nl.h18 int dpll_lock_doit(const struct genl_split_ops *ops, struct sk_buff *skb,
20 int dpll_pre_doit(const struct genl_split_ops *ops, struct sk_buff *skb,
22 int dpll_pin_pre_doit(const struct genl_split_ops *ops, struct sk_buff *skb,
25 dpll_unlock_doit(const struct genl_split_ops *ops, struct sk_buff *skb,
28 dpll_post_doit(const struct genl_split_ops *ops, struct sk_buff *skb,
31 dpll_pin_post_doit(const struct genl_split_ops *ops, struct sk_buff *skb,
34 int dpll_nl_device_id_get_doit(struct sk_buff *skb, struct genl_info *info);
35 int dpll_nl_device_get_doit(struct sk_buff *skb, struct genl_info *info);
36 int dpll_nl_device_get_dumpit(struct sk_buff *skb, struct netlink_callback *cb);
37 int dpll_nl_device_set_doit(struct sk_buff *skb, struc
[all...]
/linux-master/drivers/net/ethernet/qualcomm/rmnet/
H A Drmnet_map_command.c11 static u8 rmnet_map_do_flow_control(struct sk_buff *skb, argument
15 struct rmnet_map_header *map_header = (void *)skb->data;
24 kfree_skb(skb);
30 kfree_skb(skb);
42 kfree_skb(skb);
49 static void rmnet_map_send_ack(struct sk_buff *skb, argument
53 struct rmnet_map_header *map_header = (void *)skb->data;
55 struct net_device *dev = skb->dev;
58 skb_trim(skb,
59 skb
75 rmnet_map_command(struct sk_buff *skb, struct rmnet_port *port) argument
[all...]
/linux-master/net/dsa/
H A Dtag_lan9303.c57 static struct sk_buff *lan9303_xmit(struct sk_buff *skb, struct net_device *dev) argument
64 skb_push(skb, LAN9303_TAG_LEN);
67 dsa_alloc_etype_header(skb, LAN9303_TAG_LEN);
69 lan9303_tag = dsa_etype_header_pos_tx(skb);
71 tag = lan9303_xmit_use_arl(dp, skb->data) ?
77 return skb;
80 static struct sk_buff *lan9303_rcv(struct sk_buff *skb, struct net_device *dev) argument
85 if (unlikely(!pskb_may_pull(skb, LAN9303_TAG_LEN))) {
91 if (skb_vlan_tag_present(skb)) {
92 lan9303_tag1 = skb_vlan_tag_get(skb);
[all...]
/linux-master/net/bridge/netfilter/
H A Dnf_conntrack_bridge.c28 struct sk_buff *skb,
34 int frag_max_size = BR_INPUT_SKB_CB(skb)->frag_max_size;
35 bool mono_delivery_time = skb->mono_delivery_time;
37 ktime_t tstamp = skb->tstamp;
43 if (skb->ip_summed == CHECKSUM_PARTIAL &&
44 (err = skb_checksum_help(skb)))
47 iph = ip_hdr(skb);
55 ll_rs = LL_RESERVED_SPACE(skb->dev);
56 mtu = skb->dev->mtu;
58 if (skb_has_frag_list(skb)) {
27 nf_br_ip_fragment(struct net *net, struct sock *sk, struct sk_buff *skb, struct nf_bridge_frag_data *data, int (*output)(struct net *, struct sock *sk, const struct nf_bridge_frag_data *data, struct sk_buff *)) argument
130 br_skb_cb_save(struct sk_buff *skb, struct br_input_skb_cb *cb, size_t inet_skb_parm_size) argument
137 br_skb_cb_restore(struct sk_buff *skb, const struct br_input_skb_cb *cb, u16 fragsz) argument
145 nf_ct_br_defrag4(struct sk_buff *skb, const struct nf_hook_state *state) argument
175 nf_ct_br_defrag6(struct sk_buff *skb, const struct nf_hook_state *state) argument
204 nf_ct_br_ip_check(const struct sk_buff *skb) argument
223 nf_ct_br_ipv6_check(const struct sk_buff *skb) argument
240 nf_ct_bridge_pre(void *priv, struct sk_buff *skb, const struct nf_hook_state *state) argument
294 nf_ct_bridge_in(void *priv, struct sk_buff *skb, const struct nf_hook_state *state) argument
324 nf_ct_bridge_frag_save(struct sk_buff *skb, struct nf_bridge_frag_data *data) argument
338 nf_ct_bridge_refrag(struct sk_buff *skb, const struct nf_hook_state *state, int (*output)(struct net *, struct sock *sk, const struct nf_bridge_frag_data *data, struct sk_buff *)) argument
365 nf_ct_bridge_frag_restore(struct sk_buff *skb, const struct nf_bridge_frag_data *data) argument
386 nf_ct_bridge_refrag_post(struct net *net, struct sock *sk, const struct nf_bridge_frag_data *data, struct sk_buff *skb) argument
399 nf_ct_bridge_post(void *priv, struct sk_buff *skb, const struct nf_hook_state *state) argument
[all...]
/linux-master/net/core/
H A Dskbuff.c19 * Ray VanTassle : Fixed --skb->lock in free
82 #include <trace/events/skb.h>
190 * @skb: buffer
200 static void skb_panic(struct sk_buff *skb, unsigned int sz, void *addr, argument
204 msg, addr, skb->len, sz, skb->head, skb->data,
205 (unsigned long)skb->tail, (unsigned long)skb->end,
206 skb
210 skb_over_panic(struct sk_buff *skb, unsigned int sz, void *addr) argument
215 skb_under_panic(struct sk_buff *skb, unsigned int sz, void *addr) argument
299 struct sk_buff *skb; local
345 struct sk_buff *skb; local
362 __finalize_skb_around(struct sk_buff *skb, void *data, unsigned int size) argument
387 __slab_build_skb(struct sk_buff *skb, void *data, unsigned int *size) argument
412 struct sk_buff *skb; local
428 __build_skb_around(struct sk_buff *skb, void *data, unsigned int frag_size) argument
464 struct sk_buff *skb; local
481 struct sk_buff *skb = __build_skb(data, frag_size); local
485 skb_propagate_pfmemalloc(virt_to_head_page(data), skb); local
497 build_skb_around(struct sk_buff *skb, void *data, unsigned int frag_size) argument
507 skb_propagate_pfmemalloc(virt_to_head_page(data), skb); local
525 struct sk_buff *skb; local
549 struct sk_buff *skb = __napi_build_skb(data, frag_size); local
553 skb_propagate_pfmemalloc(virt_to_head_page(data), skb); local
643 struct sk_buff *skb; local
720 struct sk_buff *skb; local
794 struct sk_buff *skb; local
865 skb_add_rx_frag_netmem(struct sk_buff *skb, int i, netmem_ref netmem, int off, int size, unsigned int truesize) argument
877 skb_coalesce_rx_frag(struct sk_buff *skb, int i, int size, unsigned int truesize) argument
897 skb_drop_fraglist(struct sk_buff *skb) argument
902 skb_clone_fraglist(struct sk_buff *skb) argument
920 struct sk_buff *skb = *pskb, *nskb; local
1053 skb_pp_recycle(struct sk_buff *skb, void *data, bool napi_safe) argument
1070 skb_pp_frag_ref(struct sk_buff *skb) argument
1099 skb_free_head(struct sk_buff *skb, bool napi_safe) argument
1112 skb_release_data(struct sk_buff *skb, enum skb_drop_reason reason, bool napi_safe) argument
1153 kfree_skbmem(struct sk_buff *skb) argument
1183 skb_release_head_state(struct sk_buff *skb) argument
1197 skb_release_all(struct sk_buff *skb, enum skb_drop_reason reason, bool napi_safe) argument
1214 __kfree_skb(struct sk_buff *skb) argument
1222 __kfree_skb_reason(struct sk_buff *skb, enum skb_drop_reason reason) argument
1249 kfree_skb_reason(struct sk_buff *skb, enum skb_drop_reason reason) argument
1263 kfree_skb_add_bulk(struct sk_buff *skb, struct skb_free_array *sa, enum skb_drop_reason reason) argument
1312 skb_dump(const char *level, const struct sk_buff *skb, bool full_pkt) argument
1408 skb_tx_error(struct sk_buff *skb) argument
1426 consume_skb(struct sk_buff *skb) argument
1444 __consume_stateless_skb(struct sk_buff *skb) argument
1451 napi_skb_cache_put(struct sk_buff *skb) argument
1472 __napi_kfree_skb(struct sk_buff *skb, enum skb_drop_reason reason) argument
1478 napi_skb_free_stolen_head(struct sk_buff *skb) argument
1490 napi_consume_skb(struct sk_buff *skb, int budget) argument
1573 __skb_clone(struct sk_buff *n, struct sk_buff *skb) argument
1694 struct sk_buff *skb; local
1778 skb_zerocopy_notify_extend(struct sk_buff *skb, u32 lo, u16 len) argument
1800 struct sk_buff *tail, *skb = skb_from_uarg(uarg); local
1848 msg_zerocopy_callback(struct sk_buff *skb, struct ubuf_info *uarg, bool success) argument
1872 skb_zerocopy_iter_stream(struct sock *sk, struct sk_buff *skb, struct msghdr *msg, int len, struct ubuf_info *uarg) argument
1902 __skb_zcopy_downgrade_managed(struct sk_buff *skb) argument
1947 skb_copy_ubufs(struct sk_buff *skb, gfp_t gfp_mask) argument
2044 skb_clone(struct sk_buff *skb, gfp_t gfp_mask) argument
2074 skb_headers_offset_update(struct sk_buff *skb, int off) argument
2100 skb_alloc_rx_flag(const struct sk_buff *skb) argument
2124 skb_copy(const struct sk_buff *skb, gfp_t gfp_mask) argument
2169 __pskb_copy_fclone(struct sk_buff *skb, int headroom, gfp_t gfp_mask, bool fclone) argument
2233 pskb_expand_head(struct sk_buff *skb, int nhead, int ntail, gfp_t gfp_mask) argument
2322 skb_realloc_headroom(struct sk_buff *skb, unsigned int headroom) argument
2342 __skb_unclone_keeptruesize(struct sk_buff *skb, gfp_t pri) argument
2400 skb_expand_head(struct sk_buff *skb, unsigned int headroom) argument
2457 skb_copy_expand(const struct sk_buff *skb, int newheadroom, int newtailroom, gfp_t gfp_mask) argument
2516 __skb_pad(struct sk_buff *skb, int pad, bool free_on_error) argument
2564 pskb_put(struct sk_buff *skb, struct sk_buff *tail, int len) argument
2583 skb_put(struct sk_buff *skb, unsigned int len) argument
2604 skb_push(struct sk_buff *skb, unsigned int len) argument
2624 skb_pull(struct sk_buff *skb, unsigned int len) argument
2641 skb_pull_data(struct sk_buff *skb, size_t len) argument
2663 skb_trim(struct sk_buff *skb, unsigned int len) argument
2673 ___pskb_trim(struct sk_buff *skb, unsigned int len) argument
2760 pskb_trim_rcsum_slow(struct sk_buff *skb, unsigned int len) argument
2804 __pskb_pull_tail(struct sk_buff *skb, int delta) argument
2945 skb_copy_bits(const struct sk_buff *skb, int offset, void *to, int len) argument
3130 __skb_splice_bits(struct sk_buff *skb, struct pipe_inode_info *pipe, unsigned int *offset, unsigned int *len, struct splice_pipe_desc *spd, struct sock *sk) argument
3182 skb_splice_bits(struct sk_buff *skb, struct sock *sk, unsigned int offset, struct pipe_inode_info *pipe, unsigned int tlen, unsigned int flags) argument
3230 __skb_send_sock(struct sock *sk, struct sk_buff *skb, int offset, int len, sendmsg_func sendmsg) argument
3329 skb_send_sock_locked(struct sock *sk, struct sk_buff *skb, int offset, int len) argument
3337 skb_send_sock(struct sock *sk, struct sk_buff *skb, int offset, int len) argument
3354 skb_store_bits(struct sk_buff *skb, int offset, const void *from, int len) argument
3432 __skb_checksum(const struct sk_buff *skb, int offset, int len, __wsum csum, const struct skb_checksum_ops *ops) argument
3516 skb_checksum(const struct sk_buff *skb, int offset, int len, __wsum csum) argument
3530 skb_copy_and_csum_bits(const struct sk_buff *skb, int offset, u8 *to, int len) argument
3615 __skb_checksum_complete_head(struct sk_buff *skb, int len) argument
3641 __skb_checksum_complete(struct sk_buff *skb) argument
3805 skb_copy_and_csum_dev(const struct sk_buff *skb, u8 *to) argument
3917 struct sk_buff *skb = rb_entry(p, struct sk_buff, rbnode); local
3929 struct sk_buff *skb, *next; local
4000 skb_unlink(struct sk_buff *skb, struct sk_buff_head *list) argument
4030 skb_split_inside_header(struct sk_buff *skb, struct sk_buff* skb1, const u32 len, const int pos) argument
4051 skb_split_no_header(struct sk_buff *skb, struct sk_buff* skb1, const u32 len, int pos) argument
4098 skb_split(struct sk_buff *skb, struct sk_buff *skb1, const u32 len) argument
4118 skb_prepare_for_shift(struct sk_buff *skb) argument
4141 skb_shift(struct sk_buff *tgt, struct sk_buff *skb, int shiftlen) argument
4266 skb_prepare_seq_read(struct sk_buff *skb, unsigned int from, unsigned int to, struct skb_seq_state *st) argument
4427 skb_find_text(struct sk_buff *skb, unsigned int from, unsigned int to, struct ts_config *config) argument
4446 skb_append_pagefrags(struct sk_buff *skb, struct page *page, int offset, size_t size, size_t max_frags) argument
4476 skb_pull_rcsum(struct sk_buff *skb, unsigned int len) argument
4499 skb_segment_list(struct sk_buff *skb, netdev_features_t features, unsigned int offset) argument
5041 __skb_to_sgvec(struct sk_buff *skb, struct scatterlist *sg, int offset, int len, unsigned int recursion_level) argument
5124 skb_to_sgvec(struct sk_buff *skb, struct scatterlist *sg, int offset, int len) argument
5156 skb_to_sgvec_nomark(struct sk_buff *skb, struct scatterlist *sg, int offset, int len) argument
5182 skb_cow_data(struct sk_buff *skb, int tailbits, struct sk_buff **trailer) argument
5275 sock_rmem_free(struct sk_buff *skb) argument
5282 skb_set_err_queue(struct sk_buff *skb) argument
5294 sock_queue_err_skb(struct sock *sk, struct sk_buff *skb) argument
5316 is_icmp_err_skb(const struct sk_buff *skb) argument
5325 struct sk_buff *skb, *skb_next = NULL; local
5364 skb_clone_sk(struct sk_buff *skb) argument
5385 __skb_complete_tx_timestamp(struct sk_buff *skb, struct sock *sk, int tstype, bool opt_stats) argument
5428 skb_complete_tx_timestamp(struct sk_buff *skb, struct skb_shared_hwtstamps *hwtstamps) argument
5456 struct sk_buff *skb; local
5517 skb_complete_wifi_ack(struct sk_buff *skb, bool acked) argument
5556 skb_partial_csum_set(struct sk_buff *skb, u16 start, u16 off) argument
5574 skb_maybe_pull_tail(struct sk_buff *skb, unsigned int len, unsigned int max) argument
5597 skb_checksum_setup_ip(struct sk_buff *skb, typeof(IPPROTO_IP) proto, unsigned int off) argument
5631 skb_checksum_setup_ipv4(struct sk_buff *skb, bool recalculate) argument
5679 skb_checksum_setup_ipv6(struct sk_buff *skb, bool recalculate) argument
5784 skb_checksum_setup(struct sk_buff *skb, bool recalculate) argument
5819 skb_checksum_maybe_trim(struct sk_buff *skb, unsigned int transport_len) argument
5859 skb_checksum_trimmed(struct sk_buff *skb, unsigned int transport_len, __sum16(*skb_chkf)(struct sk_buff *skb)) argument
5892 __skb_warn_lro_forwarding(const struct sk_buff *skb) argument
5899 kfree_skb_partial(struct sk_buff *skb, bool head_stolen) argument
6018 skb_scrub_packet(struct sk_buff *skb, bool xnet) argument
6042 skb_reorder_vlan_header(struct sk_buff *skb) argument
6068 skb_vlan_untag(struct sk_buff *skb) argument
6109 skb_ensure_writable(struct sk_buff *skb, unsigned int write_len) argument
6121 skb_ensure_writable_head_tail(struct sk_buff *skb, struct net_device *dev) argument
6149 __skb_vlan_pop(struct sk_buff *skb, u16 *vlan_tci) argument
6182 skb_vlan_pop(struct sk_buff *skb) argument
6215 skb_vlan_push(struct sk_buff *skb, __be16 vlan_proto, u16 vlan_tci) argument
6254 skb_eth_pop(struct sk_buff *skb) argument
6281 skb_eth_push(struct sk_buff *skb, const unsigned char *dst, const unsigned char *src) argument
6310 skb_mod_eth_type(struct sk_buff *skb, struct ethhdr *hdr, __be16 ethertype) argument
6337 skb_mpls_push(struct sk_buff *skb, __be32 mpls_lse, __be16 mpls_proto, int mac_len, bool ethernet) argument
6390 skb_mpls_pop(struct sk_buff *skb, __be16 next_proto, int mac_len, bool ethernet) argument
6433 skb_mpls_update_lse(struct sk_buff *skb, __be32 mpls_lse) argument
6465 skb_mpls_dec_ttl(struct sk_buff *skb) argument
6506 struct sk_buff *skb; local
6555 pskb_carve_inside_header(struct sk_buff *skb, const u32 off, const int headlen, gfp_t gfp_mask) argument
6616 pskb_carve_frag_list(struct sk_buff *skb, struct skb_shared_info *shinfo, int eat, gfp_t gfp_mask) argument
6670 pskb_carve_inside_nonlinear(struct sk_buff *skb, const u32 off, int pos, gfp_t gfp_mask) argument
6747 pskb_carve(struct sk_buff *skb, const u32 len, gfp_t gfp) argument
6760 pskb_extract(struct sk_buff *skb, int off, int to_copy, gfp_t gfp) argument
6789 skb_condense(struct sk_buff *skb) argument
6883 __skb_ext_set(struct sk_buff *skb, enum skb_ext_id id, struct skb_ext *ext) argument
6911 skb_ext_add(struct sk_buff *skb, enum skb_ext_id id) argument
6964 __skb_ext_del(struct sk_buff *skb, enum skb_ext_id id) argument
7017 skb_attempt_defer_free(struct sk_buff *skb) argument
7057 skb_splice_csum_page(struct sk_buff *skb, struct page *page, size_t offset, size_t len) argument
7084 skb_splice_from_iter(struct sk_buff *skb, struct iov_iter *iter, ssize_t maxsize, gfp_t gfp) argument
[all...]
/linux-master/include/net/
H A Dtso.h21 static inline int tso_count_descs(const struct sk_buff *skb) argument
23 return skb_shinfo(skb)->gso_segs * 2 + skb_shinfo(skb)->nr_frags;
26 void tso_build_hdr(const struct sk_buff *skb, char *hdr, struct tso_t *tso,
28 void tso_build_data(const struct sk_buff *skb, struct tso_t *tso, int size);
29 int tso_start(struct sk_buff *skb, struct tso_t *tso);
/linux-master/samples/bpf/
H A Dtracex1.bpf.c28 struct sk_buff *skb; local
31 bpf_core_read(&skb, sizeof(skb), (void *)PT_REGS_PARM1(ctx));
32 dev = BPF_CORE_READ(skb, dev);
33 len = BPF_CORE_READ(skb, len);
38 char fmt[] = "skb %p len %d\n";
40 bpf_trace_printk(fmt, sizeof(fmt), skb, len);
/linux-master/net/netfilter/
H A Dutils.c10 __sum16 nf_ip_checksum(struct sk_buff *skb, unsigned int hook, argument
13 const struct iphdr *iph = ip_hdr(skb);
16 switch (skb->ip_summed) {
21 !csum_fold(skb->csum)) ||
23 skb->len - dataoff, protocol,
24 skb->csum)) {
25 skb->ip_summed = CHECKSUM_UNNECESSARY;
31 skb->csum = 0;
33 skb->csum = csum_tcpudp_nofold(iph->saddr, iph->daddr,
34 skb
43 nf_ip_checksum_partial(struct sk_buff *skb, unsigned int hook, unsigned int dataoff, unsigned int len, u8 protocol) argument
64 nf_ip6_checksum(struct sk_buff *skb, unsigned int hook, unsigned int dataoff, u8 protocol) argument
97 nf_ip6_checksum_partial(struct sk_buff *skb, unsigned int hook, unsigned int dataoff, unsigned int len, u8 protocol) argument
123 nf_checksum(struct sk_buff *skb, unsigned int hook, unsigned int dataoff, u8 protocol, unsigned short family) argument
142 nf_checksum_partial(struct sk_buff *skb, unsigned int hook, unsigned int dataoff, unsigned int len, u8 protocol, unsigned short family) argument
183 nf_ip6_check_hbh_len(struct sk_buff *skb, u32 *plen) argument
[all...]
/linux-master/net/lapb/
H A Dlapb_subr.c48 struct sk_buff *skb; local
58 skb = skb_dequeue(&lapb->ack_queue);
59 kfree_skb(skb);
66 struct sk_buff *skb, *skb_prev = NULL; local
73 while ((skb = skb_dequeue(&lapb->ack_queue)) != NULL) {
75 skb_queue_head(&lapb->write_queue, skb);
77 skb_append(skb_prev, skb, &lapb->write_queue);
78 skb_prev = skb;
106 int lapb_decode(struct lapb_cb *lapb, struct sk_buff *skb, argument
111 lapb_dbg(2, "(%p) S%d RX %3ph\n", lapb->dev, lapb->state, skb
224 struct sk_buff *skb; local
260 struct sk_buff *skb; local
[all...]
/linux-master/net/ipv4/
H A Desp4_offload.c31 struct sk_buff *skb)
33 int offset = skb_gro_offset(skb);
40 if (!pskb_pull(skb, offset))
43 if (xfrm_parse_spi(skb, IPPROTO_ESP, &spi, &seq) != 0)
46 xo = xfrm_offload(skb);
48 struct sec_path *sp = secpath_set(skb);
56 x = xfrm_state_lookup(dev_net(skb->dev), skb->mark,
57 (xfrm_address_t *)&ip_hdr(skb)->daddr,
62 skb
30 esp4_gro_receive(struct list_head *head, struct sk_buff *skb) argument
97 esp4_gso_encap(struct xfrm_state *x, struct sk_buff *skb) argument
114 xfrm4_tunnel_gso_segment(struct xfrm_state *x, struct sk_buff *skb, netdev_features_t features) argument
124 xfrm4_transport_gso_segment(struct xfrm_state *x, struct sk_buff *skb, netdev_features_t features) argument
140 xfrm4_beet_gso_segment(struct xfrm_state *x, struct sk_buff *skb, netdev_features_t features) argument
181 xfrm4_outer_mode_gso_segment(struct xfrm_state *x, struct sk_buff *skb, netdev_features_t features) argument
197 esp4_gso_segment(struct sk_buff *skb, netdev_features_t features) argument
242 esp_input_tail(struct xfrm_state *x, struct sk_buff *skb) argument
256 esp_xmit(struct xfrm_state *x, struct sk_buff *skb, netdev_features_t features) argument
[all...]

Completed in 220 milliseconds

1234567891011>>