Searched refs:skb (Results 476 - 500 of 3419) sorted by relevance

<<11121314151617181920>>

/linux-master/drivers/net/wireless/silabs/wfx/
H A Ddata_tx.h45 void wfx_tx(struct ieee80211_hw *hw, struct ieee80211_tx_control *control, struct sk_buff *skb);
49 struct wfx_tx_priv *wfx_skb_tx_priv(struct sk_buff *skb);
50 struct wfx_hif_req_tx *wfx_skb_txreq(struct sk_buff *skb);
51 struct wfx_vif *wfx_skb_wvif(struct wfx_dev *wdev, struct sk_buff *skb);
/linux-master/tools/testing/selftests/bpf/progs/
H A Dtailcall_bpf2bpf_fentry.c11 int BPF_PROG(fentry, struct sk_buff *skb) argument
H A Dtailcall_bpf2bpf_fexit.c11 int BPF_PROG(fexit, struct sk_buff *skb) argument
H A Dkfunc_call_test.c8 int kfunc_call_test4(struct __sk_buff *skb) argument
10 struct bpf_sock *sk = skb->sk;
25 int kfunc_call_test2(struct __sk_buff *skb) argument
27 struct bpf_sock *sk = skb->sk;
40 int kfunc_call_test1(struct __sk_buff *skb) argument
42 struct bpf_sock *sk = skb->sk;
61 int kfunc_call_test_ref_btf_id(struct __sk_buff *skb) argument
77 int kfunc_call_test_pass(struct __sk_buff *skb) argument
87 bpf_kfunc_call_test_pass_ctx(skb);
140 int kfunc_call_test_get_mem(struct __sk_buff *skb) argument
171 kfunc_call_test_static_unused_arg(struct __sk_buff *skb) argument
[all...]
H A Dcrypto_sanity.c20 static int skb_dynptr_validate(struct __sk_buff *skb, struct bpf_dynptr *psrc) argument
26 if (skb->protocol != __bpf_constant_htons(ETH_P_IPV6))
29 if (bpf_skb_load_bytes(skb, ETH_HLEN, &ip6h, sizeof(ip6h)))
35 if (bpf_skb_load_bytes(skb, ETH_HLEN + sizeof(ip6h), &udph, sizeof(udph)))
42 if (skb->len < offset + 16)
45 /* let's make sure that 16 bytes of payload are in the linear part of skb */
46 bpf_skb_pull_data(skb, offset + 16);
47 bpf_dynptr_from_skb(skb, 0, psrc);
88 int decrypt_sanity(struct __sk_buff *skb) argument
95 err = skb_dynptr_validate(skb,
128 encrypt_sanity(struct __sk_buff *skb) argument
[all...]
H A Dtest_global_func10.c30 int global_func10(struct __sk_buff *skb) argument
32 const struct Small small = {.x = skb->len };
/linux-master/net/mpls/
H A Dmpls_iptunnel.c36 static int mpls_xmit(struct sk_buff *skb) argument
44 struct dst_entry *dst = skb_dst(skb);
59 !dst->lwtstate || skb_warn_if_lro(skb))
62 skb_forward_csum(skb);
83 ttl = ip_hdr(skb)->ttl;
92 ttl = ipv6_hdr(skb)->hop_limit;
101 if (mpls_pkt_too_big(skb, mtu - new_header_size))
108 /* Ensure there is enough space for the headers in the skb */
109 if (skb_cow(skb, hh_len + new_header_size))
112 skb_set_inner_protocol(skb, sk
226 mpls_fill_encap_info(struct sk_buff *skb, struct lwtunnel_state *lwtstate) argument
[all...]
/linux-master/include/net/
H A Dgre.h28 int (*handler)(struct sk_buff *skb);
29 void (*err_handler)(struct sk_buff *skb, u32 info);
37 int gre_parse_header(struct sk_buff *skb, struct tnl_ptk_info *tpi,
102 static inline void gre_build_header(struct sk_buff *skb, int hdr_len, argument
109 skb_push(skb, hdr_len);
111 skb_set_inner_protocol(skb, proto);
112 skb_reset_transport_header(skb);
113 greh = (struct gre_base_hdr *)skb->data;
133 !(skb_shinfo(skb)->gso_type &
136 if (skb
[all...]
/linux-master/net/rose/
H A Drose_out.c30 static void rose_send_iframe(struct sock *sk, struct sk_buff *skb) argument
34 if (skb == NULL)
37 skb->data[2] |= (rose->vr << 5) & 0xE0;
38 skb->data[2] |= (rose->vs << 1) & 0x0E;
42 rose_transmit_link(skb, rose->neighbour);
48 struct sk_buff *skb, *skbn; local
73 skb = skb_dequeue(&sk->sk_write_queue);
76 if ((skbn = skb_clone(skb, GFP_ATOMIC)) == NULL) {
77 skb_queue_head(&sk->sk_write_queue, skb);
93 skb_queue_tail(&rose->ack_queue, skb);
[all...]
/linux-master/drivers/net/ethernet/netronome/nfp/
H A Dccm.h49 static inline u8 nfp_ccm_get_type(struct sk_buff *skb) argument
53 hdr = (struct nfp_ccm_hdr *)skb->data;
58 static inline __be16 __nfp_ccm_get_tag(struct sk_buff *skb) argument
62 hdr = (struct nfp_ccm_hdr *)skb->data;
67 static inline unsigned int nfp_ccm_get_tag(struct sk_buff *skb) argument
69 return be16_to_cpu(__nfp_ccm_get_tag(skb));
109 void nfp_ccm_rx(struct nfp_ccm *ccm, struct sk_buff *skb);
111 nfp_ccm_communicate(struct nfp_ccm *ccm, struct sk_buff *skb,
122 int __nfp_ccm_mbox_communicate(struct nfp_net *nn, struct sk_buff *skb,
126 int nfp_ccm_mbox_communicate(struct nfp_net *nn, struct sk_buff *skb,
[all...]
/linux-master/net/core/
H A Dselftests.c57 struct sk_buff *skb = NULL; local
75 skb = netdev_alloc_skb(ndev, size);
76 if (!skb)
79 prefetchw(skb->data);
81 ehdr = skb_push(skb, ETH_HLEN);
82 skb_reset_mac_header(skb);
84 skb_set_network_header(skb, skb->len);
85 ihdr = skb_put(skb, sizeof(*ihdr));
87 skb_set_transport_header(skb, sk
170 net_test_loopback_validate(struct sk_buff *skb, struct net_device *ndev, struct packet_type *pt, struct net_device *orig_ndev) argument
244 struct sk_buff *skb = NULL; local
[all...]
/linux-master/net/batman-adv/
H A Dfragmentation.c46 kfree_skb(entry->skb);
48 consume_skb(entry->skb);
126 * @skb: skb to insert
132 * Return: true if skb is buffered, false on error. If the chain has all the
137 struct sk_buff *skb,
152 if (skb_linearize(skb) < 0)
155 frag_packet = (struct batadv_frag_packet *)skb->data;
163 frag_entry_new->skb = skb;
136 batadv_frag_insert_packet(struct batadv_orig_node *orig_node, struct sk_buff *skb, struct hlist_head *chain_out) argument
310 batadv_frag_skb_buffer(struct sk_buff **skb, struct batadv_orig_node *orig_node_src) argument
348 batadv_frag_skb_fwd(struct sk_buff *skb, struct batadv_hard_iface *recv_if, struct batadv_orig_node *orig_node_src) argument
396 batadv_frag_create(struct net_device *net_dev, struct sk_buff *skb, struct batadv_frag_packet *frag_head, unsigned int fragment_size) argument
433 batadv_frag_send_packet(struct sk_buff *skb, struct batadv_orig_node *orig_node, struct batadv_neigh_node *neigh_node) argument
[all...]
H A Dbridge_loop_avoidance.h36 bool batadv_bla_rx(struct batadv_priv *bat_priv, struct sk_buff *skb,
38 bool batadv_bla_tx(struct batadv_priv *bat_priv, struct sk_buff *skb,
40 bool batadv_bla_is_backbone_gw(struct sk_buff *skb,
48 struct sk_buff *skb);
63 struct sk_buff *skb, unsigned short vid,
70 struct sk_buff *skb, unsigned short vid)
75 static inline bool batadv_bla_is_backbone_gw(struct sk_buff *skb, argument
90 struct sk_buff *skb)
62 batadv_bla_rx(struct batadv_priv *bat_priv, struct sk_buff *skb, unsigned short vid, int packet_type) argument
69 batadv_bla_tx(struct batadv_priv *bat_priv, struct sk_buff *skb, unsigned short vid) argument
89 batadv_bla_check_bcast_duplist(struct batadv_priv *bat_priv, struct sk_buff *skb) argument
/linux-master/net/ipv6/
H A Ddatagram.c295 static void ipv6_icmp_error_rfc4884(const struct sk_buff *skb, argument
298 switch (icmp6_hdr(skb)->icmp6_type) {
301 ip_icmp_error_rfc4884(skb, out, sizeof(struct icmp6hdr),
302 icmp6_hdr(skb)->icmp6_datagram_len * 8);
306 void ipv6_icmp_error(struct sock *sk, struct sk_buff *skb, int err, argument
309 struct icmp6hdr *icmph = icmp6_hdr(skb);
315 skb = skb_clone(skb, GFP_ATOMIC);
316 if (!skb)
319 skb
349 struct sk_buff *skb; local
388 struct sk_buff *skb; local
435 ip6_datagram_support_cmsg(struct sk_buff *skb, struct sock_exterr_skb *serr) argument
458 struct sk_buff *skb; local
551 struct sk_buff *skb; local
595 ip6_datagram_recv_common_ctl(struct sock *sk, struct msghdr *msg, struct sk_buff *skb) argument
620 ip6_datagram_recv_specific_ctl(struct sock *sk, struct msghdr *msg, struct sk_buff *skb) argument
751 ip6_datagram_recv_ctl(struct sock *sk, struct msghdr *msg, struct sk_buff *skb) argument
[all...]
/linux-master/drivers/nfc/nfcmrvl/
H A Dfw_dnld.c75 struct sk_buff *skb; local
78 skb = nci_skb_alloc(priv->ndev, (NCI_DATA_HDR_SIZE + plen), GFP_KERNEL);
79 if (!skb)
82 hdr = skb_put(skb, NCI_DATA_HDR_SIZE);
90 return skb;
130 const struct sk_buff *skb)
132 if (sizeof(nci_pattern_core_reset_ntf) != skb->len ||
133 memcmp(skb->data, nci_pattern_core_reset_ntf,
147 const struct sk_buff *skb)
151 if (sizeof(nci_pattern_core_init_rsp) >= skb
129 process_state_reset(struct nfcmrvl_private *priv, const struct sk_buff *skb) argument
146 process_state_init(struct nfcmrvl_private *priv, const struct sk_buff *skb) argument
176 process_state_set_ref_clock(struct nfcmrvl_private *priv, const struct sk_buff *skb) argument
222 process_state_set_hi_config(struct nfcmrvl_private *priv, const struct sk_buff *skb) argument
233 process_state_open_lc(struct nfcmrvl_private *priv, const struct sk_buff *skb) argument
247 process_state_fw_dnld(struct nfcmrvl_private *priv, struct sk_buff *skb) argument
348 process_state_close_lc(struct nfcmrvl_private *priv, const struct sk_buff *skb) argument
360 process_state_boot(struct nfcmrvl_private *priv, const struct sk_buff *skb) argument
393 struct sk_buff *skb; local
462 nfcmrvl_fw_dnld_recv_frame(struct nfcmrvl_private *priv, struct sk_buff *skb) argument
[all...]
/linux-master/drivers/net/wireless/ath/ath10k/
H A Dtestmode.h12 bool ath10k_tm_event_wmi(struct ath10k *ar, u32 cmd_id, struct sk_buff *skb);
23 struct sk_buff *skb)
22 ath10k_tm_event_wmi(struct ath10k *ar, u32 cmd_id, struct sk_buff *skb) argument
/linux-master/include/linux/
H A Derrqueue.h12 #define SKB_EXT_ERR(skb) ((struct sock_exterr_skb *) ((skb)->cb))
/linux-master/net/x25/
H A Dx25_subr.c53 struct sk_buff *skb; local
62 skb = skb_dequeue(&x25->ack_queue);
63 kfree_skb(skb);
70 struct sk_buff *skb, *skb_prev = NULL; local
77 while ((skb = skb_dequeue(&x25_sk(sk)->ack_queue)) != NULL) {
79 skb_queue_head(&sk->sk_write_queue, skb);
81 skb_append(skb_prev, skb, &sk->sk_write_queue);
82 skb_prev = skb;
112 struct sk_buff *skb; local
152 if ((skb
260 x25_decode(struct sock *sk, struct sk_buff *skb, int *ns, int *nr, int *q, int *d, int *m) argument
[all...]
/linux-master/include/net/netfilter/
H A Dnf_reject.h8 static inline bool nf_reject_verify_csum(struct sk_buff *skb, int dataoff, argument
20 udp_hdr = skb_header_pointer(skb, dataoff,
/linux-master/drivers/net/ethernet/huawei/hinic/
H A Dhinic_tx.c52 #define TRANSPORT_OFFSET(l4_hdr, skb) ((u32)((l4_hdr) - (skb)->data))
125 * tx_map_skb - dma mapping for skb and return sges
127 * @skb: the skb
132 static int tx_map_skb(struct hinic_dev *nic_dev, struct sk_buff *skb, argument
142 dma_addr = dma_map_single(&pdev->dev, skb->data, skb_headlen(skb),
145 dev_err(&pdev->dev, "Failed to map Tx skb data\n");
149 hinic_set_sge(&sges[0], dma_addr, skb_headlen(skb));
183 tx_unmap_skb(struct hinic_dev *nic_dev, struct sk_buff *skb, struct hinic_sge *sges) argument
199 get_inner_l3_l4_type(struct sk_buff *skb, union hinic_l3 *ip, union hinic_l4 *l4, enum hinic_offload_type offload_type, enum hinic_l3_offload_type *l3_type, u8 *l4_proto) argument
228 get_inner_l4_info(struct sk_buff *skb, union hinic_l4 *l4, enum hinic_offload_type offload_type, u8 l4_proto, enum hinic_l4_offload_type *l4_offload, u32 *l4_len, u32 *offset) argument
273 offload_tso(struct hinic_sq_task *task, u32 *queue_info, struct sk_buff *skb) argument
353 offload_csum(struct hinic_sq_task *task, u32 *queue_info, struct sk_buff *skb) argument
448 hinic_tx_offload(struct sk_buff *skb, struct hinic_sq_task *task, u32 *queue_info) argument
491 hinic_lb_xmit_frame(struct sk_buff *skb, struct net_device *netdev) argument
552 hinic_xmit_frame(struct sk_buff *skb, struct net_device *netdev) argument
653 tx_free_skb(struct hinic_dev *nic_dev, struct sk_buff *skb, struct hinic_sge *sges) argument
671 struct sk_buff *skb; local
708 struct sk_buff *skb; local
[all...]
/linux-master/net/dsa/
H A Dtag_8021q.h13 struct sk_buff *dsa_8021q_xmit(struct sk_buff *skb, struct net_device *netdev,
16 void dsa_8021q_rcv(struct sk_buff *skb, int *source_port, int *switch_id,
/linux-master/net/bridge/netfilter/
H A Debtable_broute.c46 static unsigned int ebt_broute(void *priv, struct sk_buff *skb, argument
49 struct net_bridge_port *p = br_port_get_rcu(skb->dev);
61 ret = ebt_do_table(priv, skb, &state);
66 * skb should be routed, not bridged.
72 BR_INPUT_SKB_CB(skb)->br_netfilter_broute = 1;
77 dest = eth_hdr(skb)->h_dest;
78 if (skb->pkt_type == PACKET_HOST &&
79 !ether_addr_equal(skb->dev->dev_addr, dest) &&
81 skb->pkt_type = PACKET_OTHERHOST;
/linux-master/security/selinux/include/
H A Dxfrm.h41 int selinux_xfrm_sock_rcv_skb(u32 sk_sid, struct sk_buff *skb,
43 int selinux_xfrm_postroute_last(u32 sk_sid, struct sk_buff *skb,
45 int selinux_xfrm_decode_session(struct sk_buff *skb, u32 *sid, int ckall);
46 int selinux_xfrm_skb_sid(struct sk_buff *skb, u32 *sid);
63 static inline int selinux_xfrm_sock_rcv_skb(u32 sk_sid, struct sk_buff *skb, argument
69 static inline int selinux_xfrm_postroute_last(u32 sk_sid, struct sk_buff *skb, argument
76 static inline int selinux_xfrm_decode_session(struct sk_buff *skb, u32 *sid, argument
87 static inline int selinux_xfrm_skb_sid(struct sk_buff *skb, u32 *sid) argument
/linux-master/arch/um/os-Linux/drivers/
H A Dethertap_kern.c39 static int etap_read(int fd, struct sk_buff *skb, struct uml_net_private *lp) argument
43 len = net_recvfrom(fd, skb_mac_header(skb),
44 skb->dev->mtu + 2 + ETH_HEADER_ETHERTAP);
48 skb_pull(skb, 2);
53 static int etap_write(int fd, struct sk_buff *skb, struct uml_net_private *lp) argument
55 skb_push(skb, 2);
56 return net_send(fd, skb->data, skb->len);
/linux-master/drivers/net/wireless/ath/ath6kl/
H A Dtxrx.c42 static u8 ath6kl_ibss_map_epid(struct sk_buff *skb, struct net_device *dev, argument
51 datap = skb->data;
104 struct sk_buff *skb,
109 struct ethhdr *datap = (struct ethhdr *) skb->data;
158 skb_queue_tail(&conn->apsdq, skb);
177 struct sk_buff *skb,
194 skb_queue_tail(&conn->psq, skb);
209 static bool ath6kl_powersave_ap(struct ath6kl_vif *vif, struct sk_buff *skb, argument
212 struct ethhdr *datap = (struct ethhdr *) skb->data;
239 skb_queue_tail(&ar->mcastpsq, skb);
102 ath6kl_process_uapsdq(struct ath6kl_sta *conn, struct ath6kl_vif *vif, struct sk_buff *skb, u32 *flags) argument
175 ath6kl_process_psq(struct ath6kl_sta *conn, struct ath6kl_vif *vif, struct sk_buff *skb, u32 *flags) argument
286 ath6kl_control_tx(void *devt, struct sk_buff *skb, enum htc_endpoint_id eid) argument
356 ath6kl_data_tx(struct sk_buff *skb, struct net_device *dev) argument
686 struct sk_buff *skb; local
827 ath6kl_deliver_frames_to_nw_stack(struct net_device *dev, struct sk_buff *skb) argument
847 struct sk_buff *skb; local
862 struct sk_buff *skb = NULL; local
877 struct sk_buff *skb; local
919 struct sk_buff *skb; local
990 aggr_slice_amsdu(struct aggr_info *p_aggr, struct rxtid *rxtid, struct sk_buff *skb) argument
1049 struct sk_buff *skb; local
1111 struct sk_buff *skb; local
1238 struct sk_buff *skb = NULL; local
1304 struct sk_buff *skb = packet->pkt_cntxt; local
[all...]

Completed in 455 milliseconds

<<11121314151617181920>>