/linux-master/drivers/net/ethernet/chelsio/inline_crypto/chtls/ |
H A D | chtls_cm.h | 53 /* for TX: a skb must have a headroom of at least TX_HEADER_LEN bytes */ 77 typedef void (*defer_handler_t)(struct chtls_dev *dev, struct sk_buff *skb); 86 #define DEFERRED_SKB_CB(skb) ((struct deferred_skb_cb *)(skb)->cb) 88 #define WR_SKB_CB(skb) ((struct wr_skb_cb *)(skb)->cb) 101 #define skb_ulp_tls_inline(skb) (ULP_SKB_CB(skb)->ulp.tls.ofld) 102 #define skb_ulp_tls_iv_imm(skb) (ULP_SKB_CB(skb) 172 chtls_free_skb(struct sock *sk, struct sk_buff *skb) argument 179 chtls_kfree_skb(struct sock *sk, struct sk_buff *skb) argument 192 enqueue_wr(struct chtls_sock *csk, struct sk_buff *skb) argument 208 struct sk_buff *skb = NULL; local [all...] |
H A D | chtls_io.c | 35 static int data_sgl_len(const struct sk_buff *skb) argument 39 cnt = skb_shinfo(skb)->nr_frags; 50 static int set_ivs_imm(struct sock *sk, const struct sk_buff *skb) argument 52 int ivs_size = nos_ivs(sk, skb->len) * CIPHER_BLOCK_SIZE; 53 int hlen = TLS_WR_CPL_LEN + data_sgl_len(skb); 57 ULP_SKB_CB(skb)->ulp.tls.iv = 1; 60 ULP_SKB_CB(skb)->ulp.tls.iv = 0; 69 static int ivs_size(struct sock *sk, const struct sk_buff *skb) argument 71 return set_ivs_imm(sk, skb) ? (nos_ivs(sk, skb 94 struct sk_buff *skb; local 111 struct sk_buff *skb; local 219 tls_copy_ivs(struct sock *sk, struct sk_buff *skb) argument 276 tls_copy_tx_key(struct sock *sk, struct sk_buff *skb) argument 310 is_sg_request(const struct sk_buff *skb) argument 319 skb_urgent(struct sk_buff *skb) argument 340 tls_tx_data_wr(struct sock *sk, struct sk_buff *skb, int dlen, int tls_immd, u32 credits, int expn, int pdus) argument 479 make_tlstx_data_wr(struct sock *sk, struct sk_buff *skb, int tls_tx_imm, int tls_len, u32 credits) argument 508 make_tx_data_wr(struct sock *sk, struct sk_buff *skb, unsigned int immdlen, int len, u32 credits, u32 compl) argument 540 chtls_wr_size(struct chtls_sock *csk, const struct sk_buff *skb, bool size) argument 559 is_ofld_imm(struct chtls_sock *csk, const struct sk_buff *skb) argument 579 calc_tx_flits(const struct sk_buff *skb, unsigned int immdlen) argument 591 arp_failure_discard(void *handle, struct sk_buff *skb) argument 600 struct sk_buff *skb; local 713 mark_urg(struct tcp_sock *tp, int flags, struct sk_buff *skb) argument 771 struct sk_buff *skb = skb_peek_tail(&csk->txq); local 819 skb_entail(struct sock *sk, struct sk_buff *skb, int flags) argument 838 struct sk_buff *skb; local 852 struct sk_buff *skb; local 868 tx_skb_finalize(struct sk_buff *skb) argument 885 chtls_skb_copy_to_page_nocache(struct sock *sk, struct iov_iter *from, struct sk_buff *skb, struct page *page, int off, int copy) argument 1015 struct sk_buff *skb; local 1286 struct sk_buff *skb; local 1365 struct sk_buff *skb; local 1543 struct sk_buff *skb; local 1703 struct sk_buff *skb; local [all...] |
/linux-master/net/rose/ |
H A D | rose_link.c | 95 static int rose_send_frame(struct sk_buff *skb, struct rose_neigh *neigh) argument 106 neigh->ax25 = ax25_send_frame(skb, 260, rose_call, &neigh->callsign, neigh->digipeat, neigh->dev); 139 void rose_link_rx_restart(struct sk_buff *skb, struct rose_neigh *neigh, unsigned short frametype) argument 147 neigh->dce_mode = (skb->data[3] == ROSE_DTE_ORIGINATED); 157 pr_warn("ROSE: received diagnostic #%d - %3ph\n", skb->data[3], 158 skb->data + 4); 178 struct sk_buff *skb; local 184 if ((skb = alloc_skb(len, GFP_ATOMIC)) == NULL) 187 skb_reserve(skb, AX25_BPQ_HEADER_LEN + AX25_MAX_HEADER_LEN); 189 dptr = skb_put(skb, ROSE_MIN_LE 207 struct sk_buff *skb; local 235 struct sk_buff *skb; local 262 rose_transmit_link(struct sk_buff *skb, struct rose_neigh *neigh) argument [all...] |
/linux-master/net/netfilter/ |
H A D | nf_conntrack_proto_udp.c | 37 static void udp_error_log(const struct sk_buff *skb, argument 41 nf_l4proto_log_invalid(skb, state, IPPROTO_UDP, "%s", msg); 44 static bool udp_error(struct sk_buff *skb, argument 48 unsigned int udplen = skb->len - dataoff; 53 hdr = skb_header_pointer(skb, dataoff, sizeof(_hdr), &_hdr); 55 udp_error_log(skb, state, "short packet"); 61 udp_error_log(skb, state, "truncated/malformed packet"); 75 nf_checksum(skb, state->hook, dataoff, IPPROTO_UDP, state->pf)) { 76 udp_error_log(skb, state, "bad checksum"); 85 struct sk_buff *skb, 84 nf_conntrack_udp_packet(struct nf_conn *ct, struct sk_buff *skb, unsigned int dataoff, enum ip_conntrack_info ctinfo, const struct nf_hook_state *state) argument 133 udplite_error_log(const struct sk_buff *skb, const struct nf_hook_state *state, const char *msg) argument 140 udplite_error(struct sk_buff *skb, unsigned int dataoff, const struct nf_hook_state *state) argument 183 nf_conntrack_udplite_packet(struct nf_conn *ct, struct sk_buff *skb, unsigned int dataoff, enum ip_conntrack_info ctinfo, const struct nf_hook_state *state) argument 247 udp_timeout_obj_to_nlattr(struct sk_buff *skb, const void *data) argument [all...] |
/linux-master/net/ipv4/ |
H A D | ip_tunnel_core.c | 50 void iptunnel_xmit(struct sock *sk, struct rtable *rt, struct sk_buff *skb, argument 54 int pkt_len = skb->len - skb_inner_network_offset(skb); 56 struct net_device *dev = skb->dev; 60 skb_scrub_packet(skb, xnet); 62 skb_clear_hash_if_not_l4(skb); 63 skb_dst_set(skb, &rt->dst); 64 memset(IPCB(skb), 0, sizeof(*IPCB(skb))); 67 skb_push(skb, sizeo 92 __iptunnel_pull_header(struct sk_buff *skb, int hdr_len, __be16 inner_proto, bool raw_proto, bool xnet) argument 157 iptunnel_handle_offloads(struct sk_buff *skb, int gso_type_mask) argument 196 iptunnel_pmtud_build_icmp(struct sk_buff *skb, int mtu) argument 262 iptunnel_pmtud_check_icmp(struct sk_buff *skb, int mtu) argument 289 iptunnel_pmtud_build_icmpv6(struct sk_buff *skb, int mtu) argument 355 iptunnel_pmtud_check_icmpv6(struct sk_buff *skb, int mtu) argument 408 skb_tunnel_check_pmtu(struct sk_buff *skb, struct dst_entry *encap_dst, int headroom, bool reply) argument 737 ip_tun_fill_encap_opts_geneve(struct sk_buff *skb, struct ip_tunnel_info *tun_info) argument 765 ip_tun_fill_encap_opts_vxlan(struct sk_buff *skb, struct ip_tunnel_info *tun_info) argument 785 ip_tun_fill_encap_opts_erspan(struct sk_buff *skb, struct ip_tunnel_info *tun_info) argument 816 ip_tun_fill_encap_opts(struct sk_buff *skb, int type, struct ip_tunnel_info *tun_info) argument 845 ip_tun_fill_encap_info(struct sk_buff *skb, struct lwtunnel_state *lwtstate) argument 1015 ip6_tun_fill_encap_info(struct sk_buff *skb, struct lwtunnel_state *lwtstate) argument 1082 ip_tunnel_parse_protocol(const struct sk_buff *skb) argument [all...] |
H A D | tcp_output.c | 29 * David S. Miller : Charge memory using the right skb 67 static void tcp_event_new_data_sent(struct sock *sk, struct sk_buff *skb) argument 73 WRITE_ONCE(tp->snd_nxt, TCP_SKB_CB(skb)->end_seq); 75 __skb_unlink(skb, &sk->sk_write_queue); 76 tcp_rbtree_insert(&sk->tcp_rtx_queue, skb); 79 tp->highest_sack = skb; 81 tp->packets_out += tcp_skb_pcount(skb); 86 tcp_skb_pcount(skb)); 320 static void tcp_ecn_send_synack(struct sock *sk, struct sk_buff *skb) argument 324 TCP_SKB_CB(skb) 333 tcp_ecn_send_syn(struct sock *sk, struct sk_buff *skb) argument 357 tcp_ecn_clear_syn(struct sock *sk, struct sk_buff *skb) argument 376 tcp_ecn_send(struct sock *sk, struct sk_buff *skb, struct tcphdr *th, int tcp_header_len) argument 403 tcp_init_nondata_skb(struct sk_buff *skb, u32 seq, u8 flags) argument 470 bpf_skops_write_hdr_opt_arg0(struct sk_buff *skb, enum tcp_synack_type synack_type) argument 483 bpf_skops_hdr_opt_len(struct sock *sk, struct sk_buff *skb, struct request_sock *req, struct sk_buff *syn_skb, enum tcp_synack_type synack_type, struct tcp_out_options *opts, unsigned int *remaining) argument 546 bpf_skops_write_hdr_opt(struct sock *sk, struct sk_buff *skb, struct request_sock *req, struct sk_buff *syn_skb, enum tcp_synack_type synack_type, struct tcp_out_options *opts) argument 590 bpf_skops_hdr_opt_len(struct sock *sk, struct sk_buff *skb, struct request_sock *req, struct sk_buff *syn_skb, enum tcp_synack_type synack_type, struct tcp_out_options *opts, unsigned int *remaining) argument 599 bpf_skops_write_hdr_opt(struct sock *sk, struct sk_buff *skb, struct request_sock *req, struct sk_buff *syn_skb, enum tcp_synack_type synack_type, struct tcp_out_options *opts) argument 814 tcp_syn_options(struct sock *sk, struct sk_buff *skb, struct tcp_out_options *opts, struct tcp_key *key) argument 897 tcp_synack_options(const struct sock *sk, struct request_sock *req, unsigned int mss, struct sk_buff *skb, struct tcp_out_options *opts, const struct tcp_key *key, struct tcp_fastopen_cookie *foc, enum tcp_synack_type synack_type, struct sk_buff *syn_skb) argument 973 tcp_established_options(struct sock *sk, struct sk_buff *skb, struct tcp_out_options *opts, struct tcp_key *key) argument 1188 tcp_wfree(struct sk_buff *skb) argument 1246 tcp_update_skb_after_send(struct sock *sk, struct sk_buff *skb, u64 prior_wstamp) argument 1285 __tcp_transmit_skb(struct sock *sk, struct sk_buff *skb, int clone_it, gfp_t gfp_mask, u32 rcv_nxt) argument 1481 tcp_transmit_skb(struct sock *sk, struct sk_buff *skb, int clone_it, gfp_t gfp_mask) argument 1493 tcp_queue_skb(struct sock *sk, struct sk_buff *skb) argument 1506 tcp_set_skb_tso_segs(struct sk_buff *skb, unsigned int mss_now) argument 1527 tcp_adjust_pcount(struct sock *sk, const struct sk_buff *skb, int decr) argument 1552 tcp_has_tx_tstamp(const struct sk_buff *skb) argument 1558 tcp_fragment_tstamp(struct sk_buff *skb, struct sk_buff *skb2) argument 1575 tcp_skb_fragment_eor(struct sk_buff *skb, struct sk_buff *skb2) argument 1582 tcp_insert_write_queue_after(struct sk_buff *skb, struct sk_buff *buff, struct sock *sk, enum tcp_queue tcp_queue) argument 1598 tcp_fragment(struct sock *sk, enum tcp_queue tcp_queue, struct sk_buff *skb, u32 len, unsigned int mss_now, gfp_t gfp) argument 1693 __pskb_trim_head(struct sk_buff *skb, int len) argument 1726 tcp_trim_head(struct sock *sk, struct sk_buff *skb, u32 len) argument 1977 tcp_minshall_update(struct tcp_sock *tp, unsigned int mss_now, const struct sk_buff *skb) argument 2047 tcp_mss_split_point(const struct sock *sk, const struct sk_buff *skb, unsigned int mss_now, unsigned int max_segs, int nonagle) argument 2101 tcp_init_tso_segs(struct sk_buff *skb, unsigned int mss_now) argument 2115 tcp_nagle_test(const struct tcp_sock *tp, const struct sk_buff *skb, unsigned int cur_mss, int nonagle) argument 2138 tcp_snd_wnd_test(const struct tcp_sock *tp, const struct sk_buff *skb, unsigned int cur_mss) argument 2157 tso_fragment(struct sock *sk, struct sk_buff *skb, unsigned int len, unsigned int mss_now, gfp_t gfp) argument 2209 tcp_tso_should_defer(struct sock *sk, struct sk_buff *skb, bool *is_cwnd_limited, bool *is_rwnd_limited, u32 max_segs) argument 2338 struct sk_buff *skb, *next; local 2361 const struct sk_buff *skb; local 2435 struct sk_buff *skb, *nskb, *next; local 2604 tcp_small_queue_check(struct sock *sk, const struct sk_buff *skb, unsigned int factor) argument 2696 tcp_grow_skb(struct sock *sk, struct sk_buff *skb, int amount) argument 2740 struct sk_buff *skb; local 2919 skb_still_in_host_queue(struct sock *sk, const struct sk_buff *skb) argument 2940 struct sk_buff *skb; local 3024 struct sk_buff *skb = tcp_send_head(sk); local 3204 tcp_skb_collapse_tstamp(struct sk_buff *skb, const struct sk_buff *next_skb) argument 3220 tcp_collapse_retrans(struct sock *sk, struct sk_buff *skb) argument 3261 tcp_can_collapse(const struct sock *sk, const struct sk_buff *skb) argument 3281 struct sk_buff *skb = to, *tmp; local 3318 __tcp_retransmit_skb(struct sock *sk, struct sk_buff *skb, int segs) argument 3445 tcp_retransmit_skb(struct sock *sk, struct sk_buff *skb, int segs) argument 3478 struct sk_buff *skb, *rtx_head, *hole = NULL; local 3577 struct sk_buff *skb, *tskb, *tail = tcp_write_queue_tail(sk); local 3629 struct sk_buff *skb; local 3663 struct sk_buff *skb; local 3715 struct sk_buff *skb; local 3946 tcp_connect_queue_skb(struct sock *sk, struct sk_buff *skb) argument 4296 struct sk_buff *skb; local 4329 struct sk_buff *skb; local [all...] |
/linux-master/net/x25/ |
H A D | x25_in.c | 32 static int x25_queue_rx_frame(struct sock *sk, struct sk_buff *skb, int more) argument 34 struct sk_buff *skbo, *skbn = skb; 38 x25->fraglen += skb->len; 39 skb_queue_tail(&x25->fragment_queue, skb); 40 skb_set_owner_r(skb, sk); 45 int len = x25->fraglen + skb->len; 48 kfree_skb(skb); 52 skb_queue_tail(&x25->fragment_queue, skb); 87 static int x25_state1_machine(struct sock *sk, struct sk_buff *skb, int frametype) argument 107 if (!pskb_may_pull(skb, X25_STD_MIN_LE 175 x25_state2_machine(struct sock *sk, struct sk_buff *skb, int frametype) argument 208 x25_state3_machine(struct sock *sk, struct sk_buff *skb, int frametype, int ns, int nr, int q, int d, int m) argument 344 x25_state4_machine(struct sock *sk, struct sk_buff *skb, int frametype) argument 390 x25_state5_machine(struct sock *sk, struct sk_buff *skb, int frametype) argument 415 x25_process_rx_frame(struct sock *sk, struct sk_buff *skb) argument 448 x25_backlog_rcv(struct sock *sk, struct sk_buff *skb) argument [all...] |
/linux-master/drivers/net/wireless/mediatek/mt76/ |
H A D | mcu.c | 13 struct sk_buff *skb; local 18 skb = alloc_skb(len, gfp); 19 if (!skb) 22 memset(skb->head, 0, len); 23 skb_reserve(skb, ops->headroom); 26 skb_put_data(skb, data, data_len); 28 return skb; 49 void mt76_mcu_rx_event(struct mt76_dev *dev, struct sk_buff *skb) argument 51 skb_queue_tail(&dev->mcu.res_q, skb); 59 struct sk_buff *skb; local 72 mt76_mcu_skb_send_and_get_msg(struct mt76_dev *dev, struct sk_buff *skb, int cmd, bool wait_resp, struct sk_buff **ret_skb) argument [all...] |
/linux-master/tools/testing/selftests/bpf/progs/ |
H A D | test_tc_neigh.c | 39 static __always_inline bool is_remote_ep_v4(struct __sk_buff *skb, argument 42 void *data_end = ctx_ptr(skb->data_end); 43 void *data = ctx_ptr(skb->data); 56 static __always_inline bool is_remote_ep_v6(struct __sk_buff *skb, argument 59 void *data_end = ctx_ptr(skb->data_end); 60 void *data = ctx_ptr(skb->data); 74 int tc_chk(struct __sk_buff *skb) argument 76 void *data_end = ctx_ptr(skb->data_end); 77 void *data = ctx_ptr(skb->data); 87 int tc_dst(struct __sk_buff *skb) argument 112 tc_src(struct __sk_buff *skb) argument [all...] |
H A D | test_btf_skc_cls_ingress.c | 23 struct __sk_buff *skb) 29 data_end = (void *)(long)(skb->data_end); 63 static int handle_ip6_tcp(struct ipv6hdr *ip6h, struct __sk_buff *skb) argument 71 data_end = (void *)(long)(skb->data_end); 88 bpf_skc = bpf_skc_lookup_tcp(skb, tuple, tuple_len, 104 if (bpf_sk_assign(skb, req_sk, 0)) { 122 if (bpf_sk_assign(skb, tp, 0)) { 129 test_syncookie_helper(ip6h, th, tp, skb); 134 if (bpf_sk_assign(skb, bpf_skc, 0)) 143 int cls_ingress(struct __sk_buff *skb) argument 21 test_syncookie_helper(struct ipv6hdr *ip6h, struct tcphdr *th, struct tcp_sock *tp, struct __sk_buff *skb) argument [all...] |
/linux-master/net/phonet/ |
H A D | pep.c | 45 static unsigned char *pep_get_sb(struct sk_buff *skb, u8 *ptype, u8 *plen, argument 55 ph = skb_header_pointer(skb, 0, 2, &h); 56 if (ph == NULL || ph->sb_len < 2 || !pskb_may_pull(skb, ph->sb_len)) 64 data = skb_header_pointer(skb, 2, buflen, buf); 65 __skb_pull(skb, 2 + ph->sb_len); 72 struct sk_buff *skb = alloc_skb(MAX_PNPIPE_HEADER + len, priority); local 73 if (!skb) 75 skb_set_owner_w(skb, sk); 77 skb_reserve(skb, MAX_PNPIPE_HEADER); 78 __skb_put(skb, le 90 struct sk_buff *skb; local 112 struct sk_buff *skb; local 133 struct sk_buff *skb; local 159 pep_accept_conn(struct sock *sk, struct sk_buff *skb) argument 180 pep_reject_conn(struct sock *sk, struct sk_buff *skb, u8 code, gfp_t priority) argument 194 struct sk_buff *skb; local 252 pipe_rcv_status(struct sock *sk, struct sk_buff *skb) argument 304 pipe_rcv_created(struct sock *sk, struct sk_buff *skb) argument 333 pipe_do_rcv(struct sock *sk, struct sk_buff *skb) argument 482 pep_connresp_rcv(struct sock *sk, struct sk_buff *skb) argument 524 pep_enableresp_rcv(struct sock *sk, struct sk_buff *skb) argument 549 pipe_handler_do_rcv(struct sock *sk, struct sk_buff *skb) argument 654 pep_do_rcv(struct sock *sk, struct sk_buff *skb) argument 719 struct sk_buff *skb; local 767 struct sk_buff *skb; local 924 struct sk_buff *skb; local 1107 pipe_skb_send(struct sock *sk, struct sk_buff *skb) argument 1140 struct sk_buff *skb; local 1223 pep_write(struct sock *sk, struct sk_buff *skb) argument 1256 struct sk_buff *skb = skb_dequeue(&sk->sk_receive_queue); local 1266 struct sk_buff *skb; local [all...] |
/linux-master/drivers/net/ethernet/netronome/nfp/bpf/ |
H A D | cmsg.c | 20 struct sk_buff *skb; local 22 skb = nfp_app_ctrl_msg_alloc(bpf->app, size, GFP_KERNEL); 23 skb_put(skb, size); 25 return skb; 86 struct sk_buff *skb; local 90 skb = nfp_bpf_cmsg_alloc(bpf, sizeof(*req)); 91 if (!skb) 94 req = (void *)skb->data; 101 skb = nfp_ccm_communicate(&bpf->ccm, skb, NFP_CCM_TYPE_BPF_MAP_ALLO 124 struct sk_buff *skb; local 262 nfp_bpf_ctrl_op_cache_put(struct nfp_bpf_map *nfp_map, enum nfp_ccm_type op, struct sk_buff *skb, u32 cache_gen) argument 301 struct sk_buff *skb; local 442 nfp_bpf_ctrl_msg_rx(struct nfp_app *app, struct sk_buff *skb) argument [all...] |
/linux-master/net/ipv6/ |
H A D | xfrm6_protocol.c | 46 static int xfrm6_rcv_cb(struct sk_buff *skb, u8 protocol, int err) argument 56 if ((ret = handler->cb_handler(skb, err)) <= 0) 62 int xfrm6_rcv_encap(struct sk_buff *skb, int nexthdr, __be32 spi, argument 69 XFRM_TUNNEL_SKB_CB(skb)->tunnel.ip6 = NULL; 70 XFRM_SPI_SKB_CB(skb)->family = AF_INET6; 71 XFRM_SPI_SKB_CB(skb)->daddroff = offsetof(struct ipv6hdr, daddr); 76 if (!skb_dst(skb)) { 77 const struct ipv6hdr *ip6h = ipv6_hdr(skb); 81 .flowi6_iif = skb->dev->ifindex, 85 .flowi6_mark = skb 109 xfrm6_esp_rcv(struct sk_buff *skb) argument 126 xfrm6_esp_err(struct sk_buff *skb, struct inet6_skb_parm *opt, u8 type, u8 code, int offset, __be32 info) argument 138 xfrm6_ah_rcv(struct sk_buff *skb) argument 155 xfrm6_ah_err(struct sk_buff *skb, struct inet6_skb_parm *opt, u8 type, u8 code, int offset, __be32 info) argument 167 xfrm6_ipcomp_rcv(struct sk_buff *skb) argument 184 xfrm6_ipcomp_err(struct sk_buff *skb, struct inet6_skb_parm *opt, u8 type, u8 code, int offset, __be32 info) argument [all...] |
H A D | ndisc.c | 79 static void ndisc_solicit(struct neighbour *neigh, struct sk_buff *skb); 80 static void ndisc_error_report(struct neighbour *neigh, struct sk_buff *skb); 83 static void pndisc_redo(struct sk_buff *skb); 146 void __ndisc_fill_addr_option(struct sk_buff *skb, int type, const void *data, argument 150 u8 *opt = skb_put(skb, space); 168 static inline void ndisc_fill_addr_option(struct sk_buff *skb, int type, argument 171 __ndisc_fill_addr_option(skb, type, data, skb->dev->addr_len, 172 ndisc_addr_option_pad(skb->dev->type)); 173 ndisc_ops_fill_addr_option(skb 176 ndisc_fill_redirect_addr_option(struct sk_buff *skb, void *ha, const u8 *ops_data) argument 420 struct sk_buff *skb; local 443 ip6_nd_hdr(struct sk_buff *skb, const struct in6_addr *saddr, const struct in6_addr *daddr, int hop_limit, int len) argument 471 ndisc_send_skb(struct sk_buff *skb, const struct in6_addr *daddr, const struct in6_addr *saddr) argument 525 struct sk_buff *skb; local 607 struct sk_buff *skb; local 655 struct sk_buff *skb; local 673 struct sk_buff *skb; local 723 ndisc_error_report(struct neighbour *neigh, struct sk_buff *skb) argument 735 ndisc_solicit(struct neighbour *neigh, struct sk_buff *skb) argument 787 ndisc_recv_ns(struct sk_buff *skb) argument 992 ndisc_recv_na(struct sk_buff *skb) argument 1132 ndisc_recv_rs(struct sk_buff *skb) argument 1191 struct sk_buff *skb; local 1234 ndisc_router_discovery(struct sk_buff *skb) argument 1619 ndisc_redirect_rcv(struct sk_buff *skb) argument 1661 ndisc_fill_redirect_hdr_option(struct sk_buff *skb, struct sk_buff *orig_skb, int rd_len) argument 1676 ndisc_send_redirect(struct sk_buff *skb, const struct in6_addr *target) argument 1802 pndisc_redo(struct sk_buff *skb) argument 1814 ndisc_suppress_frag_ndisc(struct sk_buff *skb) argument 1828 ndisc_rcv(struct sk_buff *skb) argument [all...] |
/linux-master/drivers/net/can/dev/ |
H A D | rx-offload.c | 16 can_rx_offload_get_cb(struct sk_buff *skb) argument 18 BUILD_BUG_ON(sizeof(struct can_rx_offload_cb) > sizeof(skb->cb)); 20 return (struct can_rx_offload_cb *)skb->cb; 49 struct sk_buff *skb; local 53 (skb = skb_dequeue(&offload->skb_queue))) { 54 struct can_frame *cf = (struct can_frame *)skb->data; 62 netif_receive_skb(skb); 129 * length (struct can_rx_offload::skb_queue_len_max) or no skb can be 134 * Return: A pointer to skb containing the CAN frame on success. 143 struct sk_buff *skb; local 184 struct sk_buff *skb; local 204 struct sk_buff *skb; local 222 can_rx_offload_queue_timestamp(struct can_rx_offload *offload, struct sk_buff *skb, u32 timestamp) argument 250 struct sk_buff *skb; local 268 can_rx_offload_queue_tail(struct can_rx_offload *offload, struct sk_buff *skb) argument 290 struct sk_buff *skb; local [all...] |
/linux-master/net/sctp/ |
H A D | ulpevent.c | 37 /* Initialize an ULP event from an given skb. */ 52 struct sk_buff *skb; local 54 skb = alloc_skb(size, gfp); 55 if (!skb) 58 event = sctp_skb2event(skb); 59 sctp_ulpevent_init(event, msg_flags, skb->truesize); 80 struct sk_buff *skb; local 86 skb = sctp_event2skb(event); 89 sctp_skb_set_owner_r(skb, asoc->base.sk); 121 struct sk_buff *skb; local 248 struct sk_buff *skb; local 381 struct sk_buff *skb; local 436 struct sk_buff *skb; local 539 struct sk_buff *skb; local 583 struct sk_buff *skb; local 645 struct sk_buff *skb; local 680 struct sk_buff *skb = chunk->skb; local 778 struct sk_buff *skb; local 831 struct sk_buff *skb; local 869 struct sk_buff *skb; local 894 struct sk_buff *skb; local 923 struct sk_buff *skb; local 950 struct sk_buff *skb; local 977 struct sk_buff *skb; local 1040 __sctp_ulpevent_read_nxtinfo(const struct sctp_ulpevent *event, struct msghdr *msghdr, const struct sk_buff *skb) argument 1063 struct sk_buff *skb; local 1069 msghdr, skb); local 1081 struct sk_buff *skb, *frag; local 1106 struct sk_buff *skb, *frag; local 1139 struct sk_buff *skb, *frag; local 1177 struct sk_buff *skb; local [all...] |
/linux-master/net/mac80211/ |
H A D | s1g.c | 20 bool ieee80211_s1g_is_twt_setup(struct sk_buff *skb) argument 22 struct ieee80211_mgmt *mgmt = (struct ieee80211_mgmt *)skb->data; 40 struct sk_buff *skb; local 42 skb = dev_alloc_skb(local->hw.extra_tx_headroom + len); 43 if (!skb) 46 skb_reserve(skb, local->hw.extra_tx_headroom); 47 mgmt = skb_put_zero(skb, len); 58 IEEE80211_SKB_CB(skb)->flags |= IEEE80211_TX_INTFL_DONT_ENCRYPT | 61 ieee80211_tx_skb(sdata, skb); 70 struct sk_buff *skb; local 97 ieee80211_s1g_rx_twt_setup(struct ieee80211_sub_if_data *sdata, struct sta_info *sta, struct sk_buff *skb) argument 125 ieee80211_s1g_rx_twt_teardown(struct ieee80211_sub_if_data *sdata, struct sta_info *sta, struct sk_buff *skb) argument 135 ieee80211_s1g_tx_twt_setup_fail(struct ieee80211_sub_if_data *sdata, struct sta_info *sta, struct sk_buff *skb) argument 150 ieee80211_s1g_rx_twt_action(struct ieee80211_sub_if_data *sdata, struct sk_buff *skb) argument 175 ieee80211_s1g_status_twt_action(struct ieee80211_sub_if_data *sdata, struct sk_buff *skb) argument [all...] |
/linux-master/net/xfrm/ |
H A D | xfrm_device.c | 23 static void __xfrm_transport_prep(struct xfrm_state *x, struct sk_buff *skb, argument 26 struct xfrm_offload *xo = xfrm_offload(skb); 28 skb_reset_mac_len(skb); 30 skb->transport_header -= x->props.header_len; 32 pskb_pull(skb, skb_transport_offset(skb) + x->props.header_len); 35 static void __xfrm_mode_tunnel_prep(struct xfrm_state *x, struct sk_buff *skb, argument 39 struct xfrm_offload *xo = xfrm_offload(skb); 42 skb->transport_header = skb 48 __xfrm_mode_beet_prep(struct xfrm_state *x, struct sk_buff *skb, unsigned int hsize) argument 68 xfrm_outer_mode_prep(struct xfrm_state *x, struct sk_buff *skb) argument 101 xmit_xfrm_check_overflow(struct sk_buff *skb) argument 113 validate_xmit_xfrm(struct sk_buff *skb, netdev_features_t features, bool *again) argument 409 xfrm_dev_offload_ok(struct sk_buff *skb, struct xfrm_state *x) argument 441 xfrm_dev_resume(struct sk_buff *skb) argument 472 struct sk_buff *skb; local [all...] |
/linux-master/include/net/ |
H A D | netlink.h | 38 * nlmsg_put() add a netlink message to an skb 93 * nla_reserve(skb, type, len) reserve room for an attribute 94 * nla_reserve_nohdr(skb, len) reserve room for an attribute w/o hdr 95 * nla_put(skb, type, len, data) add attribute to skb 96 * nla_put_nohdr(skb, len, data) add attribute w/o hdr 97 * nla_append(skb, len, data) append data to skb 100 * nla_put_u8(skb, type, value) add u8 attribute to skb 955 nlmsg_put(struct sk_buff *skb, u32 portid, u32 seq, int type, int payload, int flags) argument 974 nlmsg_append(struct sk_buff *skb, u32 size) argument 996 nlmsg_put_answer(struct sk_buff *skb, struct netlink_callback *cb, int type, int payload, int flags) argument 1041 nlmsg_end(struct sk_buff *skb, struct nlmsghdr *nlh) argument 1052 nlmsg_get_pos(struct sk_buff *skb) argument 1064 nlmsg_trim(struct sk_buff *skb, const void *mark) argument 1080 nlmsg_cancel(struct sk_buff *skb, struct nlmsghdr *nlh) argument 1089 nlmsg_free(struct sk_buff *skb) argument 1098 nlmsg_consume(struct sk_buff *skb) argument 1115 nlmsg_multicast_filtered(struct sock *sk, struct sk_buff *skb, u32 portid, unsigned int group, gfp_t flags, netlink_filter_fn filter, void *filter_data) argument 1141 nlmsg_multicast(struct sock *sk, struct sk_buff *skb, u32 portid, unsigned int group, gfp_t flags) argument 1154 nlmsg_unicast(struct sock *sk, struct sk_buff *skb, u32 portid) argument 1349 nla_put_u8(struct sk_buff *skb, int attrtype, u8 value) argument 1363 nla_put_u16(struct sk_buff *skb, int attrtype, u16 value) argument 1376 nla_put_be16(struct sk_buff *skb, int attrtype, __be16 value) argument 1389 nla_put_net16(struct sk_buff *skb, int attrtype, __be16 value) argument 1402 nla_put_le16(struct sk_buff *skb, int attrtype, __le16 value) argument 1415 nla_put_u32(struct sk_buff *skb, int attrtype, u32 value) argument 1428 nla_put_uint(struct sk_buff *skb, int attrtype, u64 value) argument 1444 nla_put_be32(struct sk_buff *skb, int attrtype, __be32 value) argument 1457 nla_put_net32(struct sk_buff *skb, int attrtype, __be32 value) argument 1470 nla_put_le32(struct sk_buff *skb, int attrtype, __le32 value) argument 1484 nla_put_u64_64bit(struct sk_buff *skb, int attrtype, u64 value, int padattr) argument 1499 nla_put_be64(struct sk_buff *skb, int attrtype, __be64 value, int padattr) argument 1514 nla_put_net64(struct sk_buff *skb, int attrtype, __be64 value, int padattr) argument 1530 nla_put_le64(struct sk_buff *skb, int attrtype, __le64 value, int padattr) argument 1544 nla_put_s8(struct sk_buff *skb, int attrtype, s8 value) argument 1557 nla_put_s16(struct sk_buff *skb, int attrtype, s16 value) argument 1570 nla_put_s32(struct sk_buff *skb, int attrtype, s32 value) argument 1584 nla_put_s64(struct sk_buff *skb, int attrtype, s64 value, int padattr) argument 1598 nla_put_sint(struct sk_buff *skb, int attrtype, s64 value) argument 1614 nla_put_string(struct sk_buff *skb, int attrtype, const char *str) argument 1625 nla_put_flag(struct sk_buff *skb, int attrtype) argument 1637 nla_put_msecs(struct sk_buff *skb, int attrtype, unsigned long njiffies, int padattr) argument 1652 nla_put_in_addr(struct sk_buff *skb, int attrtype, __be32 addr) argument 1667 nla_put_in6_addr(struct sk_buff *skb, int attrtype, const struct in6_addr *addr) argument 1680 nla_put_bitfield32(struct sk_buff *skb, int attrtype, __u32 value, __u32 selector) argument 1925 nla_nest_start_noflag(struct sk_buff *skb, int attrtype) argument 1946 nla_nest_start(struct sk_buff *skb, int attrtype) argument 1961 nla_nest_end(struct sk_buff *skb, struct nlattr *start) argument 1975 nla_nest_cancel(struct sk_buff *skb, struct nlattr *start) argument 2028 nla_need_padding_for_64bit(struct sk_buff *skb) argument 2054 nla_align_64bit(struct sk_buff *skb, int padattr) argument [all...] |
/linux-master/drivers/net/usb/ |
H A D | lg-vl600.c | 96 static int vl600_rx_fixup(struct usbnet *dev, struct sk_buff *skb) argument 102 struct sk_buff *buf = skb; 116 if (skb->len + s->current_rx_buf->len > 124 skb_put_data(buf, skb->data, skb->len); 125 } else if (skb->len < 4) { 144 s->current_rx_buf = skb_copy_expand(skb, 0, 175 ethhdr = (struct ethhdr *) skb->data; 231 struct sk_buff *skb, gfp_t flags) 237 int orig_len = skb 230 vl600_tx_fixup(struct usbnet *dev, struct sk_buff *skb, gfp_t flags) argument [all...] |
/linux-master/drivers/net/wireless/ath/carl9170/ |
H A D | tx.c | 65 struct sk_buff *skb) 67 return __carl9170_get_queue(ar, skb_get_queue_mapping(skb)); 76 static void carl9170_tx_accounting(struct ar9170 *ar, struct sk_buff *skb) argument 83 queue = skb_get_queue_mapping(skb); 108 struct sk_buff *skb) 110 struct _carl9170_tx_superframe *super = (void *) skb->data; 138 static void carl9170_tx_ps_unblock(struct ar9170 *ar, struct sk_buff *skb) argument 144 sta = __carl9170_get_tx_sta(ar, skb); 156 static void carl9170_tx_accounting_free(struct ar9170 *ar, struct sk_buff *skb) argument 160 queue = skb_get_queue_mapping(skb); 64 carl9170_get_queue(struct ar9170 *ar, struct sk_buff *skb) argument 107 __carl9170_get_tx_sta(struct ar9170 *ar, struct sk_buff *skb) argument 190 carl9170_alloc_dev_space(struct ar9170 *ar, struct sk_buff *skb) argument 226 carl9170_release_dev_space(struct ar9170 *ar, struct sk_buff *skb) argument 267 struct sk_buff *skb; local 331 carl9170_tx_get_skb(struct sk_buff *skb) argument 338 carl9170_tx_put_skb(struct sk_buff *skb) argument 379 carl9170_tx_status_process_ampdu(struct ar9170 *ar, struct sk_buff *skb, struct ieee80211_tx_info *txinfo) argument 438 carl9170_tx_bar_status(struct ar9170 *ar, struct sk_buff *skb, struct ieee80211_tx_info *tx_info) argument 477 carl9170_tx_status(struct ar9170 *ar, struct sk_buff *skb, const bool success) argument 501 carl9170_tx_callback(struct ar9170 *ar, struct sk_buff *skb) argument 517 struct sk_buff *skb; local 562 struct sk_buff *skb; local 607 struct sk_buff *skb; local 662 struct sk_buff *skb; local 873 carl9170_tx_get_rates(struct ar9170 *ar, struct ieee80211_vif *vif, struct ieee80211_sta *sta, struct sk_buff *skb) argument 890 carl9170_tx_apply_rateset(struct ar9170 *ar, struct ieee80211_tx_info *sinfo, struct sk_buff *skb) argument 960 carl9170_tx_prepare(struct ar9170 *ar, struct ieee80211_sta *sta, struct sk_buff *skb) argument 1085 carl9170_set_immba(struct ar9170 *ar, struct sk_buff *skb) argument 1093 carl9170_set_ampdu_params(struct ar9170 *ar, struct sk_buff *skb) argument 1134 struct sk_buff *skb, *first; local 1248 struct sk_buff *skb; local 1276 carl9170_tx_drop(struct ar9170 *ar, struct sk_buff *skb) argument 1289 carl9170_tx_ps_drop(struct ar9170 *ar, struct sk_buff *skb) argument 1322 carl9170_bar_check(struct ar9170 *ar, struct sk_buff *skb) argument 1344 struct sk_buff *skb; local 1397 carl9170_tx_ampdu_queue(struct ar9170 *ar, struct ieee80211_sta *sta, struct sk_buff *skb, struct ieee80211_tx_info *txinfo) argument 1473 carl9170_op_tx(struct ieee80211_hw *hw, struct ieee80211_tx_control *control, struct sk_buff *skb) argument 1573 carl9170_tx_beacon_physet(struct ar9170 *ar, struct sk_buff *skb, u32 *ht1, u32 *plcp) argument 1619 struct sk_buff *skb = NULL; local [all...] |
/linux-master/net/nfc/nci/ |
H A D | rsp.c | 29 const struct sk_buff *skb) 31 const struct nci_core_reset_rsp *rsp = (void *)skb->data; 36 if (skb->len != 1) { 48 const struct sk_buff *skb) 50 const struct nci_core_init_rsp_1 *rsp_1 = (void *)skb->data; 69 rsp_2 = (void *) (skb->data + 6 + rsp_1->num_supported_rf_interfaces); 87 const struct sk_buff *skb) 89 const struct nci_core_init_rsp_nci_ver2 *rsp = (void *)skb->data; 124 static void nci_core_init_rsp_packet(struct nci_dev *ndev, const struct sk_buff *skb) argument 129 status = nci_core_init_rsp_packet_v1(ndev, skb); 28 nci_core_reset_rsp_packet(struct nci_dev *ndev, const struct sk_buff *skb) argument 47 nci_core_init_rsp_packet_v1(struct nci_dev *ndev, const struct sk_buff *skb) argument 86 nci_core_init_rsp_packet_v2(struct nci_dev *ndev, const struct sk_buff *skb) argument 165 nci_core_set_config_rsp_packet(struct nci_dev *ndev, const struct sk_buff *skb) argument 175 nci_rf_disc_map_rsp_packet(struct nci_dev *ndev, const struct sk_buff *skb) argument 185 nci_rf_disc_rsp_packet(struct nci_dev *ndev, const struct sk_buff *skb) argument 216 nci_rf_disc_select_rsp_packet(struct nci_dev *ndev, const struct sk_buff *skb) argument 228 nci_rf_deactivate_rsp_packet(struct nci_dev *ndev, const struct sk_buff *skb) argument 244 nci_nfcee_discover_rsp_packet(struct nci_dev *ndev, const struct sk_buff *skb) argument 261 nci_nfcee_mode_set_rsp_packet(struct nci_dev *ndev, const struct sk_buff *skb) argument 270 nci_core_conn_create_rsp_packet(struct nci_dev *ndev, const struct sk_buff *skb) argument 325 nci_core_conn_close_rsp_packet(struct nci_dev *ndev, const struct sk_buff *skb) argument 345 nci_rsp_packet(struct nci_dev *ndev, struct sk_buff *skb) argument [all...] |
/linux-master/drivers/net/wireless/intel/iwlwifi/mvm/ |
H A D | time-sync.c | 15 static bool iwl_mvm_is_skb_match(struct sk_buff *skb, u8 *addr, u8 dialog_token) argument 17 struct ieee80211_mgmt *mgmt = (void *)skb->data; 20 if (ieee80211_is_timing_measurement(skb)) 36 struct sk_buff *skb; local 42 while ((skb = skb_dequeue(&mvm->time_sync.frame_list))) { 43 if (iwl_mvm_is_skb_match(skb, addr, dialog_token)) 46 kfree_skb(skb); 47 skb = NULL; 50 return skb; 66 struct sk_buff *skb local [all...] |
/linux-master/drivers/net/wan/ |
H A D | lapbether.c | 92 struct sk_buff *skb; local 96 skb = skb_dequeue(&lapbeth->rx_queue); 97 if (!skb) 99 netif_receive_skb_core(skb); 110 static int lapbeth_rcv(struct sk_buff *skb, struct net_device *dev, argument 119 skb = skb_share_check(skb, GFP_ATOMIC); 120 if (!skb) 123 if (!pskb_may_pull(skb, 2)) 134 len = skb 160 lapbeth_data_indication(struct net_device *dev, struct sk_buff *skb) argument 184 lapbeth_xmit(struct sk_buff *skb, struct net_device *dev) argument 236 lapbeth_data_transmit(struct net_device *ndev, struct sk_buff *skb) argument 266 struct sk_buff *skb = __dev_alloc_skb(1, GFP_ATOMIC | __GFP_NOMEMALLOC); local 284 struct sk_buff *skb = __dev_alloc_skb(1, GFP_ATOMIC | __GFP_NOMEMALLOC); local [all...] |
/linux-master/net/tls/ |
H A D | tls_device_fallback.c | 102 * include any of it in the output skb 174 static void update_chksum(struct sk_buff *skb, int headln) argument 176 struct tcphdr *th = tcp_hdr(skb); 177 int datalen = skb->len - headln; 184 if (likely(skb->ip_summed == CHECKSUM_PARTIAL)) 187 skb->ip_summed = CHECKSUM_PARTIAL; 188 skb->csum_start = skb_transport_header(skb) - skb->head; 189 skb 202 complete_skb(struct sk_buff *nskb, struct sk_buff *skb, int headln) argument 235 fill_sg_in(struct scatterlist *sg_in, struct sk_buff *skb, struct tls_offload_context_tx *ctx, u64 *rcd_sn, s32 *sync_size, int *resync_sgs) argument 317 tls_enc_skb(struct tls_context *tls_ctx, struct scatterlist sg_out[3], struct scatterlist *sg_in, struct sk_buff *skb, s32 sync_size, u64 rcd_sn) argument 383 tls_sw_fallback(struct sock *sk, struct sk_buff *skb) argument 433 tls_validate_xmit_skb(struct sock *sk, struct net_device *dev, struct sk_buff *skb) argument 445 tls_validate_xmit_skb_sw(struct sock *sk, struct net_device *dev, struct sk_buff *skb) argument 452 tls_encrypt_skb(struct sk_buff *skb) argument [all...] |