Home
last modified time | relevance | path

Searched refs:skb (Results 151 – 175 of 3472) sorted by relevance

12345678910>>...139

/openbmc/linux/net/ipv6/netfilter/
H A Dnf_conntrack_reasm.c195 skb->csum = csum_sub(skb->csum, in nf_ct_frag6_queue()
238 if (!pskb_pull(skb, (u8 *) (fhdr + 1) - skb->data)) { in nf_ct_frag6_queue()
248 dev = skb->dev; in nf_ct_frag6_queue()
297 skb_orphan(skb); in nf_ct_frag6_queue()
331 payload_len = ((skb->data - skb_network_header(skb)) - in nf_ct_frag6_reasm()
343 memmove(skb->head + sizeof(struct frag_hdr), skb->head, in nf_ct_frag6_reasm()
344 (skb->data - skb->head) - sizeof(struct frag_hdr)); in nf_ct_frag6_reasm()
353 skb->dev = dev; in nf_ct_frag6_reasm()
361 skb->csum = csum_partial(skb_network_header(skb), in nf_ct_frag6_reasm()
363 skb->csum); in nf_ct_frag6_reasm()
[all …]
/openbmc/linux/net/dsa/
H A Dtag.h60 return skb; in dsa_untag_bridge_pvid()
64 return skb; in dsa_untag_bridge_pvid()
67 if (!skb_vlan_tag_present(skb) && skb->protocol == htons(proto)) { in dsa_untag_bridge_pvid()
68 skb = skb_vlan_untag(skb); in dsa_untag_bridge_pvid()
69 if (!skb) in dsa_untag_bridge_pvid()
74 return skb; in dsa_untag_bridge_pvid()
83 return skb; in dsa_untag_bridge_pvid()
86 return skb; in dsa_untag_bridge_pvid()
99 return skb; in dsa_untag_bridge_pvid()
103 return skb; in dsa_untag_bridge_pvid()
[all …]
/openbmc/linux/tools/testing/selftests/bpf/prog_tests/
H A Dskb_ctx.c7 struct __sk_buff skb = { in test_skb_ctx() local
26 .ctx_in = &skb, in test_skb_ctx()
27 .ctx_size_in = sizeof(skb), in test_skb_ctx()
28 .ctx_out = &skb, in test_skb_ctx()
55 skb.len = 1; in test_skb_ctx()
58 skb.len = 0; in test_skb_ctx()
60 skb.tc_index = 1; in test_skb_ctx()
63 skb.tc_index = 0; in test_skb_ctx()
67 skb.hash = 1; in test_skb_ctx()
70 skb.hash = 0; in test_skb_ctx()
[all …]
/openbmc/linux/include/net/
H A Dtc_wrapper.h54 return tcf_gact_act(skb, a, res); in tc_act()
62 return tcf_pedit_act(skb, a, res); in tc_act()
78 return tcf_bpf_act(skb, a, res); in tc_act()
86 return tcf_csum_act(skb, a, res); in tc_act()
90 return tcf_ct_act(skb, a, res); in tc_act()
98 return tcf_gate_act(skb, a, res); in tc_act()
106 return tcf_nat_act(skb, a, res); in tc_act()
118 return tcf_ife_act(skb, a, res); in tc_act()
122 return tcf_ipt_act(skb, a, res); in tc_act()
134 return a->ops->act(skb, a, res); in tc_act()
[all …]
/openbmc/linux/include/linux/
H A Dip.h19 static inline struct iphdr *ip_hdr(const struct sk_buff *skb) in ip_hdr() argument
21 return (struct iphdr *)skb_network_header(skb); in ip_hdr()
24 static inline struct iphdr *inner_ip_hdr(const struct sk_buff *skb) in inner_ip_hdr() argument
26 return (struct iphdr *)skb_inner_network_header(skb); in inner_ip_hdr()
29 static inline struct iphdr *ipip_hdr(const struct sk_buff *skb) in ipip_hdr() argument
31 return (struct iphdr *)skb_transport_header(skb); in ipip_hdr()
36 return ntohs(ip_hdr(skb)->tot_len) - skb_network_header_len(skb); in ip_transport_len()
43 return (len || !skb_is_gso(skb) || !skb_is_gso_tcp(skb)) ? in iph_totlen()
44 len : skb->len - skb_network_offset(skb); in iph_totlen()
47 static inline unsigned int skb_ip_totlen(const struct sk_buff *skb) in skb_ip_totlen() argument
[all …]
/openbmc/linux/tools/testing/selftests/bpf/progs/
H A Dtest_tc_dtime.c150 switch (skb->protocol) { in skb_get_type()
218 skb_type = skb_get_type(skb); in egress_host()
226 skb->tstamp) in egress_host()
232 skb->tstamp) in egress_host()
249 skb_type = skb_get_type(skb); in ingress_host()
270 skb_type = skb_get_type(skb); in ingress_fwdns_prio100()
283 skb->tstamp = 0; in ingress_fwdns_prio100()
294 skb_type = skb_get_type(skb); in egress_fwdns_prio100()
309 skb->tstamp = 0; in egress_fwdns_prio100()
329 if (skb->tstamp_type) { in ingress_fwdns_prio101()
[all …]
H A Dbpf_flow.c97 void *data = (void *)(long)skb->data; in bpf_flow_dissect_get_header()
98 __u16 thoff = skb->flow_keys->thoff; in bpf_flow_dissect_get_header()
144 int _dissect(struct __sk_buff *skb) in _dissect() argument
269 return parse_ip_proto(skb, nexthdr); in parse_ipv6_proto()
275 PROG(IP)(struct __sk_buff *skb) in PROG()
279 void *data = (void *)(long)skb->data; in PROG()
324 PROG(IPV6)(struct __sk_buff *skb) in PROG()
346 PROG(IPV6OP)(struct __sk_buff *skb) in PROG()
364 PROG(IPV6FR)(struct __sk_buff *skb) in PROG()
392 PROG(MPLS)(struct __sk_buff *skb) in PROG()
[all …]
H A Dtest_global_func4.c9 int f1(struct __sk_buff *skb) in f1() argument
11 return skb->len; in f1()
17 return f1(skb) + val; in f2()
23 return f2(var, skb) + val; in f3()
27 int f4(struct __sk_buff *skb) in f4() argument
29 return f3(1, skb, 2); in f4()
33 int f5(struct __sk_buff *skb) in f5() argument
35 return f4(skb); in f5()
41 return f5(skb); in f6()
47 return f6(skb); in f7()
[all …]
H A Dtest_global_func2.c11 int f0(int var, struct __sk_buff *skb) in f0() argument
13 return skb->len; in f0()
17 int f1(struct __sk_buff *skb) in f1() argument
23 return f0(0, skb) + skb->len; in f1()
26 int f3(int, struct __sk_buff *skb, int);
29 int f2(int val, struct __sk_buff *skb) in f2() argument
31 return f1(skb) + f3(val, skb, 1); in f2()
35 int f3(int val, struct __sk_buff *skb, int var) in f3() argument
41 return skb->ifindex * val * var; in f3()
46 int global_func2(struct __sk_buff *skb) in global_func2() argument
[all …]
H A Dtest_global_func1.c11 int f0(int var, struct __sk_buff *skb) in f0() argument
15 return skb->len; in f0()
19 int f1(struct __sk_buff *skb) in f1() argument
25 return f0(0, skb) + skb->len; in f1()
28 int f3(int, struct __sk_buff *skb, int);
31 int f2(int val, struct __sk_buff *skb) in f2() argument
33 return f1(skb) + f3(val, skb, 1); in f2()
37 int f3(int val, struct __sk_buff *skb, int var) in f3() argument
43 return skb->ifindex * val * var; in f3()
48 int global_func1(struct __sk_buff *skb) in global_func1() argument
[all …]
/openbmc/linux/drivers/net/ethernet/chelsio/inline_crypto/chtls/
H A Dchtls_io.c71 return set_ivs_imm(sk, skb) ? (nos_ivs(sk, skb->len) * in ivs_size()
97 if (!skb) in create_flowc_wr_skb()
103 return skb; in create_flowc_wr_skb()
119 if (!skb) in send_flowc_wr()
133 if (!skb) in send_flowc_wr()
563 if (skb->peeked || skb->len > MAX_IMM_ULPTX_WR_LEN) in is_ofld_imm()
846 return skb; in get_tx_skb()
865 return skb; in get_record_skb()
1289 if (!skb) in send_rx_credits()
1379 if (skb) in chtls_pt_recvmsg()
[all …]
/openbmc/linux/drivers/net/usb/
H A Dgl620a.c94 skb_pull(skb, 4); in genelink_rx_fixup()
125 skb_pull(skb, 4); in genelink_rx_fixup()
129 skb->len); in genelink_rx_fixup()
139 int length = skb->len; in genelink_tx_fixup()
151 skb->data = memmove(skb->head + (4 + 4*1), in genelink_tx_fixup()
152 skb->data, skb->len); in genelink_tx_fixup()
153 skb_set_tail_pointer(skb, skb->len); in genelink_tx_fixup()
159 skb = skb2; in genelink_tx_fixup()
160 if (!skb) in genelink_tx_fixup()
173 skb_put(skb, 1); in genelink_tx_fixup()
[all …]
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/
H A Den_tx.c74 struct sk_buff *skb) in mlx5e_calc_min_inline() argument
82 hlen = eth_get_headlen(skb->dev, skb->data, skb_headlen(skb)); in mlx5e_calc_min_inline()
272 if (skb_is_gso(skb)) { in mlx5e_sq_xmit_prepare()
280 .num_bytes = skb->len + (skb_shinfo(skb)->gso_segs - 1) * ihs, in mlx5e_sq_xmit_prepare()
385 .skb = skb, in mlx5e_txwqe_complete()
418 skb_get(skb); in mlx5e_txwqe_complete()
505 dev_kfree_skb_any(skb); in mlx5e_sq_xmit_wqe()
511 return !skb_is_nonlinear(skb) && !skb_vlan_tag_present(skb) && !attr->ihs && in mlx5e_tx_skb_supports_mpwqe()
585 .skb = NULL, in mlx5e_tx_mpwqe_session_complete()
608 txd.data = skb->data; in mlx5e_sq_xmit_mpwqe()
[all …]
/openbmc/linux/drivers/net/wireless/marvell/libertas/
H A Drx.c47 struct sk_buff *skb);
66 BUG_ON(!skb); in lbs_process_rxed_packet()
88 dev_kfree_skb(skb); in lbs_process_rxed_packet()
149 skb->protocol = eth_type_trans(skb, dev); in lbs_process_rxed_packet()
150 netif_rx(skb); in lbs_process_rxed_packet()
207 struct sk_buff *skb) in process_rxed_802_11_packet() argument
225 kfree_skb(skb); in process_rxed_802_11_packet()
230 skb->len, sizeof(struct rxpd), skb->len - sizeof(struct rxpd)); in process_rxed_802_11_packet()
251 kfree_skb(skb); in process_rxed_802_11_packet()
264 skb->protocol = eth_type_trans(skb, priv->dev); in process_rxed_802_11_packet()
[all …]
/openbmc/linux/net/nfc/nci/
H A Drsp.c36 if (skb->len != 1) { in nci_core_reset_rsp_packet()
178 __u8 status = skb->data[0]; in nci_rf_disc_map_rsp_packet()
189 __u8 status = skb->data[0]; in nci_rf_disc_rsp_packet()
219 __u8 status = skb->data[0]; in nci_rf_disc_select_rsp_packet()
231 __u8 status = skb->data[0]; in nci_rf_deactivate_rsp_packet()
249 if (skb->len != 2) { in nci_nfcee_discover_rsp_packet()
264 __u8 status = skb->data[0]; in nci_nfcee_mode_set_rsp_packet()
273 __u8 status = skb->data[0]; in nci_core_conn_create_rsp_packet()
353 nci_pbf(skb->data), in nci_rsp_packet()
356 nci_plen(skb->data)); in nci_rsp_packet()
[all …]
/openbmc/linux/drivers/misc/sgi-xp/
H A Dxpnet.c171 if (!skb) { in xpnet_receive()
187 skb_reserve(skb, (L1_CACHE_BYTES - ((u64)skb->data & in xpnet_receive()
235 (void *)skb->data, skb_tail_pointer(skb), skb_end_pointer(skb), in xpnet_receive()
236 skb->len); in xpnet_receive()
238 skb->protocol = eth_type_trans(skb, xpnet_device); in xpnet_receive()
244 (void *)skb->head, (void *)skb->data, skb_tail_pointer(skb), in xpnet_receive()
245 skb_end_pointer(skb), skb->len); in xpnet_receive()
250 netif_rx(skb); in xpnet_receive()
421 (void *)skb->data, skb_tail_pointer(skb), skb_end_pointer(skb), in xpnet_dev_hard_start_xmit()
422 skb->len); in xpnet_dev_hard_start_xmit()
[all …]
/openbmc/linux/net/bluetooth/
H A Dmgmt_util.c40 if (!skb) in create_monitor_ctrl_event()
56 return skb; in create_monitor_ctrl_event()
65 if (!skb) in mgmt_alloc_skb()
66 return skb; in mgmt_alloc_skb()
72 return skb; in mgmt_alloc_skb()
82 if (!skb) in mgmt_send_event_skb()
85 len = skb->len; in mgmt_send_event_skb()
94 skb->data, skb->len, in mgmt_send_event_skb()
117 if (!skb) in mgmt_send_event()
136 if (!skb) in mgmt_cmd_status()
[all …]
/openbmc/linux/net/nfc/hci/
H A Dllc_shdlc.c105 16, 1, skb->data, skb->len, 0); \
133 if (skb) in llc_shdlc_alloc_skb()
136 return skb; in llc_shdlc_alloc_skb()
149 if (skb == NULL) in llc_shdlc_send_s_frame()
156 kfree_skb(skb); in llc_shdlc_send_s_frame()
174 kfree_skb(skb); in llc_shdlc_send_u_frame()
194 kfree_skb(skb); in llc_shdlc_reset_t2()
244 if (skb->len) { in llc_shdlc_rcv_i_frame()
246 skb = NULL; in llc_shdlc_rcv_i_frame()
258 kfree_skb(skb); in llc_shdlc_rcv_i_frame()
[all …]
/openbmc/linux/net/ipv4/
H A Dip_vti.c71 kfree_skb(skb); in vti_input()
86 return vti_input(skb, ip_hdr(skb)->protocol, spi, 0, update_skb_dev); in vti_rcv()
138 skb_scrub_packet(skb, !net_eq(tunnel->net, dev_net(skb->dev))); in vti_rcv_cb()
139 skb->dev = dev; in vti_rcv_cb()
259 skb->dev = skb_dst(skb)->dev; in vti_xmit()
261 err = dst_output(tunnel->net, skb->sk, skb); in vti_xmit()
271 kfree_skb(skb); in vti_xmit()
290 memset(IPCB(skb), 0, sizeof(*IPCB(skb))); in vti_tunnel_xmit()
294 memset(IP6CB(skb), 0, sizeof(*IP6CB(skb))); in vti_tunnel_xmit()
308 kfree_skb(skb); in vti_tunnel_xmit()
[all …]
/openbmc/linux/drivers/net/wan/
H A Dhdlc_fr.c299 *(__be16 *)(skb->data + 8) = skb->protocol; in fr_hard_header()
415 skb = skb2; in pvc_xmit()
418 skb->dev = dev; in pvc_xmit()
434 kfree_skb(skb); in pvc_xmit()
477 if (!skb) in fr_lmi_send()
543 skb->dev = dev; in fr_lmi_send()
795 dlci = (skb->data[i] << 8) | skb->data[i + 1]; in fr_lmi_recv()
875 skb->protocol = eth_type_trans(skb, pvc->ether); in fr_snap_parse()
940 skb = skb_share_check(skb, GFP_ATOMIC); in fr_rx()
941 if (!skb) { in fr_rx()
[all …]
/openbmc/linux/drivers/net/wireless/ath/ath6kl/
H A Dwmi.c715 if (!skb) in ath6kl_wmi_get_new_buf()
733 if (!skb) in ath6kl_wmi_simple_cmd()
767 if (!skb) in ath6kl_wmi_set_roam_lrssi_cmd()
789 if (!skb) in ath6kl_wmi_force_roam_cmd()
809 if (!skb) in ath6kl_wmi_ap_set_beacon_intvl_cmd()
825 if (!skb) in ath6kl_wmi_ap_set_dtim_cmd()
841 if (!skb) in ath6kl_wmi_set_roam_mode_cmd()
1398 if (!skb) in ath6kl_wmi_send_rssi_threshold_params()
1614 if (!skb) in ath6kl_wmi_set_txe_notify()
1796 skb->data, skb->len); in ath6kl_wmi_cmd_send()
[all …]
/openbmc/linux/net/dccp/
H A Doptions.c49 struct sk_buff *skb) in dccp_parse_options() argument
299 to = skb_push(skb, len + 2); in dccp_insert_option()
314 if (dccp_non_data_packet(skb)) in dccp_insert_option_ndp()
329 ptr = skb_push(skb, len); in dccp_insert_option_ndp()
354 struct sk_buff *skb) in dccp_insert_option_timestamp_echo() argument
378 to = skb_push(skb, len); in dccp_insert_option_timestamp_echo()
429 to = skb_push(skb, len); in dccp_insert_option_ackvec()
485 DCCP_SKB_CB(skb)->dccpd_opt_len++; in dccp_insert_option_mandatory()
525 to = skb_push(skb, tot_len); in dccp_insert_fn_opt()
588 dccp_insert_option_padding(skb); in dccp_insert_options()
[all …]
/openbmc/linux/drivers/net/ethernet/sfc/
H A Def100_tx.c62 if (!skb_is_gso_tcp(skb)) in ef100_tx_can_tso()
97 buffer->skb = skb; in ef100_tx_can_tso()
140 if (!skb || skb->ip_summed != CHECKSUM_PARTIAL) in ef100_set_tx_csum_partial()
181 skb && skb_vlan_tag_present(skb)) in ef100_make_send_desc()
186 const struct sk_buff *skb, in ef100_make_tso_desc() argument
208 len = skb->len - buffer->len; in ef100_make_tso_desc()
291 if (!skb) in ef100_tx_make_descriptors()
388 dev_kfree_skb_any(skb); in __ef100_enqueue_skb()
392 segments = skb_is_gso(skb) ? skb_shinfo(skb)->gso_segs : 0; in __ef100_enqueue_skb()
500 if (!IS_ERR_OR_NULL(skb)) in __ef100_enqueue_skb()
[all …]
/openbmc/linux/net/ethtool/
H A Dcabletest.c21 struct sk_buff *skb; in ethnl_cable_test_started() local
26 if (!skb) in ethnl_cable_test_started()
29 ehdr = ethnl_bcastmsg_put(skb, cmd); in ethnl_cable_test_started()
45 genlmsg_end(skb, ehdr); in ethnl_cable_test_started()
50 nlmsg_free(skb); in ethnl_cable_test_started()
111 if (!phydev->skb) in ethnl_cable_test_alloc()
140 nlmsg_free(phydev->skb); in ethnl_cable_test_alloc()
141 phydev->skb = NULL; in ethnl_cable_test_alloc()
148 nlmsg_free(phydev->skb); in ethnl_cable_test_free()
149 phydev->skb = NULL; in ethnl_cable_test_free()
[all …]
/openbmc/linux/drivers/target/iscsi/cxgbit/
H A Dcxgbit_target.c38 if (!skb) in __cxgbit_alloc_skb()
45 skb->len += len; in __cxgbit_alloc_skb()
52 if (!skb) in __cxgbit_alloc_skb()
64 return skb; in __cxgbit_alloc_skb()
120 if (skb_tail_pointer(skb) != skb_transport_header(skb)) in cxgbit_calc_tx_flits_ofld()
239 csk, skb->len, skb->data_len, in cxgbit_push_tx_frames()
250 csk, skb->len, skb->data_len, credits_needed, in cxgbit_push_tx_frames()
783 if (!skb) in cxgbit_put_login_tx()
1372 csk->skb = skb; in cxgbit_process_iscsi_pdu()
1392 skb, skb->head, skb->data, skb->len, skb->data_len, in cxgbit_lro_skb_dump()
[all …]

12345678910>>...139