/linux-master/net/core/ |
H A D | timestamping.c | 13 static unsigned int classify(const struct sk_buff *skb) argument 15 if (likely(skb->dev && skb->dev->phydev && 16 skb->dev->phydev->mii_ts)) 17 return ptp_classify_raw(skb); 22 void skb_clone_tx_timestamp(struct sk_buff *skb) argument 28 if (!skb->sk) 31 type = classify(skb); 35 mii_ts = skb->dev->phydev->mii_ts; 37 clone = skb_clone_sk(skb); 45 skb_defer_rx_timestamp(struct sk_buff *skb) argument [all...] |
H A D | netdev-genl-gen.h | 17 int netdev_nl_dev_get_doit(struct sk_buff *skb, struct genl_info *info); 18 int netdev_nl_dev_get_dumpit(struct sk_buff *skb, struct netlink_callback *cb); 19 int netdev_nl_page_pool_get_doit(struct sk_buff *skb, struct genl_info *info); 20 int netdev_nl_page_pool_get_dumpit(struct sk_buff *skb, 22 int netdev_nl_page_pool_stats_get_doit(struct sk_buff *skb, 24 int netdev_nl_page_pool_stats_get_dumpit(struct sk_buff *skb, 26 int netdev_nl_queue_get_doit(struct sk_buff *skb, struct genl_info *info); 27 int netdev_nl_queue_get_dumpit(struct sk_buff *skb, 29 int netdev_nl_napi_get_doit(struct sk_buff *skb, struct genl_info *info); 30 int netdev_nl_napi_get_dumpit(struct sk_buff *skb, struc [all...] |
/linux-master/net/devlink/ |
H A D | netlink_gen.h | 21 int devlink_nl_pre_doit(const struct genl_split_ops *ops, struct sk_buff *skb, 24 struct sk_buff *skb, struct genl_info *info); 26 struct sk_buff *skb, struct genl_info *info); 28 struct sk_buff *skb, 31 devlink_nl_post_doit(const struct genl_split_ops *ops, struct sk_buff *skb, 35 struct sk_buff *skb, struct genl_info *info); 37 int devlink_nl_get_doit(struct sk_buff *skb, struct genl_info *info); 38 int devlink_nl_get_dumpit(struct sk_buff *skb, struct netlink_callback *cb); 39 int devlink_nl_port_get_doit(struct sk_buff *skb, struct genl_info *info); 40 int devlink_nl_port_get_dumpit(struct sk_buff *skb, [all...] |
/linux-master/include/linux/ |
H A D | netfilter_bridge.h | 17 int br_handle_frame_finish(struct net *net, struct sock *sk, struct sk_buff *skb); 19 static inline void br_drop_fake_rtable(struct sk_buff *skb) argument 21 struct dst_entry *dst = skb_dst(skb); 24 skb_dst_drop(skb); 28 nf_bridge_info_get(const struct sk_buff *skb) argument 30 return skb_ext_find(skb, SKB_EXT_BRIDGE_NF); 33 static inline bool nf_bridge_info_exists(const struct sk_buff *skb) argument 35 return skb_ext_exist(skb, SKB_EXT_BRIDGE_NF); 38 static inline int nf_bridge_get_physinif(const struct sk_buff *skb) argument 40 const struct nf_bridge_info *nf_bridge = nf_bridge_info_get(skb); 48 nf_bridge_get_physoutif(const struct sk_buff *skb) argument 59 nf_bridge_get_physindev(const struct sk_buff *skb, struct net *net) argument 67 nf_bridge_get_physoutdev(const struct sk_buff *skb) argument 74 nf_bridge_in_prerouting(const struct sk_buff *skb) argument 82 nf_bridge_in_prerouting(const struct sk_buff *skb) argument [all...] |
/linux-master/net/mpls/ |
H A D | mpls_gso.c | 20 static struct sk_buff *mpls_gso_segment(struct sk_buff *skb, argument 24 u16 mac_offset = skb->mac_header; 26 u16 mac_len = skb->mac_len; 30 if (!skb_inner_network_header_was_set(skb)) 33 skb_reset_network_header(skb); 34 mpls_hlen = skb_inner_network_header(skb) - skb_network_header(skb); 37 if (unlikely(!pskb_may_pull(skb, mpls_hlen))) 41 mpls_protocol = skb->protocol; 42 skb [all...] |
/linux-master/include/net/ |
H A D | llc_c_ev.h | 123 static __inline__ struct llc_conn_state_ev *llc_conn_ev(struct sk_buff *skb) argument 125 return (struct llc_conn_state_ev *)skb->cb; 128 typedef int (*llc_conn_ev_t)(struct sock *sk, struct sk_buff *skb); 129 typedef int (*llc_conn_ev_qfyr_t)(struct sock *sk, struct sk_buff *skb); 131 int llc_conn_ev_conn_req(struct sock *sk, struct sk_buff *skb); 132 int llc_conn_ev_data_req(struct sock *sk, struct sk_buff *skb); 133 int llc_conn_ev_disc_req(struct sock *sk, struct sk_buff *skb); 134 int llc_conn_ev_rst_req(struct sock *sk, struct sk_buff *skb); 135 int llc_conn_ev_local_busy_detected(struct sock *sk, struct sk_buff *skb); 136 int llc_conn_ev_local_busy_cleared(struct sock *sk, struct sk_buff *skb); 218 llc_conn_space(struct sock *sk, struct sk_buff *skb) argument [all...] |
H A D | llc_c_ac.h | 97 typedef int (*llc_conn_action_t)(struct sock *sk, struct sk_buff *skb); 99 int llc_conn_ac_clear_remote_busy(struct sock *sk, struct sk_buff *skb); 100 int llc_conn_ac_conn_ind(struct sock *sk, struct sk_buff *skb); 101 int llc_conn_ac_conn_confirm(struct sock *sk, struct sk_buff *skb); 102 int llc_conn_ac_data_ind(struct sock *sk, struct sk_buff *skb); 103 int llc_conn_ac_disc_ind(struct sock *sk, struct sk_buff *skb); 104 int llc_conn_ac_rst_ind(struct sock *sk, struct sk_buff *skb); 105 int llc_conn_ac_rst_confirm(struct sock *sk, struct sk_buff *skb); 107 struct sk_buff *skb); 109 struct sk_buff *skb); [all...] |
H A D | udplite.h | 22 int len, int odd, struct sk_buff *skb) 31 static inline int udplite_checksum_init(struct sk_buff *skb, struct udphdr *uh) argument 47 else if (cscov < 8 || cscov > skb->len) { 52 cscov, skb->len); 55 } else if (cscov < skb->len) { 56 UDP_SKB_CB(skb)->partial_cov = 1; 57 UDP_SKB_CB(skb)->cscov = cscov; 58 if (skb->ip_summed == CHECKSUM_COMPLETE) 59 skb->ip_summed = CHECKSUM_NONE; 60 skb 21 udplite_getfrag(void *from, char *to, int offset, int len, int odd, struct sk_buff *skb) argument 67 udplite_csum(struct sk_buff *skb) argument [all...] |
/linux-master/net/ipv4/ |
H A D | xfrm4_input.c | 24 struct sk_buff *skb) 26 return dst_input(skb); 30 struct sk_buff *skb) 32 if (!skb_dst(skb)) { 33 const struct iphdr *iph = ip_hdr(skb); 35 if (ip_route_input_noref(skb, iph->daddr, iph->saddr, 36 iph->tos, skb->dev)) 40 if (xfrm_trans_queue(skb, xfrm4_rcv_encap_finish2)) 45 kfree_skb(skb); 49 int xfrm4_transport_finish(struct sk_buff *skb, in argument 23 xfrm4_rcv_encap_finish2(struct net *net, struct sock *sk, struct sk_buff *skb) argument 29 xfrm4_rcv_encap_finish(struct net *net, struct sock *sk, struct sk_buff *skb) argument 81 __xfrm4_udp_encap_rcv(struct sock *sk, struct sk_buff *skb, bool pull) argument 161 xfrm4_udp_encap_rcv(struct sock *sk, struct sk_buff *skb) argument 179 xfrm4_gro_udp_encap_rcv(struct sock *sk, struct list_head *head, struct sk_buff *skb) argument 219 xfrm4_rcv(struct sk_buff *skb) argument [all...] |
H A D | gre_offload.c | 16 static struct sk_buff *gre_gso_segment(struct sk_buff *skb, argument 19 int tnl_hlen = skb_inner_mac_header(skb) - skb_transport_header(skb); 22 u16 mac_offset = skb->mac_header; 23 __be16 protocol = skb->protocol; 24 u16 mac_len = skb->mac_len; 27 if (!skb->encapsulation) 33 if (unlikely(!pskb_may_pull(skb, tnl_hlen))) 36 /* setup inner skb. */ 37 skb 122 gre_gro_receive(struct list_head *head, struct sk_buff *skb) argument 236 gre_gro_complete(struct sk_buff *skb, int nhoff) argument [all...] |
/linux-master/net/llc/ |
H A D | llc_output.c | 18 * @skb: Address of the frame to initialize its MAC header 25 int llc_mac_hdr_init(struct sk_buff *skb, argument 30 switch (skb->dev->type) { 33 rc = dev_hard_header(skb, skb->dev, ETH_P_802_2, da, sa, 34 skb->len); 47 * @skb: packet to send 58 int llc_build_and_send_ui_pkt(struct llc_sap *sap, struct sk_buff *skb, argument 62 llc_pdu_header_init(skb, LLC_PDU_TYPE_U, sap->laddr.lsap, 64 llc_pdu_init_as_ui_cmd(skb); [all...] |
/linux-master/tools/testing/selftests/bpf/progs/ |
H A D | freplace_global_func.c | 6 int test_ctx_global_func(struct __sk_buff *skb) argument 13 int new_test_pkt_access(struct __sk_buff *skb) argument 15 return test_ctx_global_func(skb);
|
H A D | test_global_func8.c | 8 __noinline int foo(struct __sk_buff *skb) argument 15 int global_func8(struct __sk_buff *skb) argument 17 if (!foo(skb))
|
H A D | tailcall_bpf2bpf2.c | 14 int subprog_tail(struct __sk_buff *skb) argument 16 if (load_byte(skb, 0)) 17 bpf_tail_call_static(skb, &jmp_table, 1); 19 bpf_tail_call_static(skb, &jmp_table, 0); 26 int classifier_0(struct __sk_buff *skb) argument 29 return subprog_tail(skb); 33 int entry(struct __sk_buff *skb) argument 35 bpf_tail_call_static(skb, &jmp_table, 0);
|
H A D | empty_skb.c | 12 int redirect_ingress(struct __sk_buff *skb) argument 14 ret = bpf_clone_redirect(skb, ifindex, BPF_F_INGRESS); 19 int redirect_egress(struct __sk_buff *skb) argument 21 ret = bpf_clone_redirect(skb, ifindex, 0); 26 int tc_redirect_ingress(struct __sk_buff *skb) argument 28 ret = bpf_clone_redirect(skb, ifindex, BPF_F_INGRESS); 33 int tc_redirect_egress(struct __sk_buff *skb) argument 35 ret = bpf_clone_redirect(skb, ifindex, 0);
|
H A D | tailcall_bpf2bpf4.c | 31 int subprog_tail_2(struct __sk_buff *skb) argument 35 bpf_tail_call_static(skb, &jmp_table, 2); 36 return skb->len * 3; 40 int subprog_tail_1(struct __sk_buff *skb) argument 42 bpf_tail_call_static(skb, &jmp_table, 1); 43 return skb->len * 2; 47 int subprog_tail(struct __sk_buff *skb) argument 49 bpf_tail_call_static(skb, &jmp_table, 0); 50 return skb->len; 54 int classifier_1(struct __sk_buff *skb) argument 60 classifier_2(struct __sk_buff *skb) argument 67 classifier_0(struct __sk_buff *skb) argument 73 entry(struct __sk_buff *skb) argument [all...] |
/linux-master/include/linux/can/ |
H A D | skb.h | 3 * linux/can/skb.h 20 int can_put_echo_skb(struct sk_buff *skb, struct net_device *dev, 38 bool can_dropped_invalid_skb(struct net_device *dev, struct sk_buff *skb); 52 * @skbcnt: atomic counter to have an unique id together with skb pointer 54 * @cf: align to the following CAN frame at skb->data 63 static inline struct can_skb_priv *can_skb_prv(struct sk_buff *skb) argument 65 return (struct can_skb_priv *)(skb->head); 68 static inline void can_skb_reserve(struct sk_buff *skb) argument 70 skb_reserve(skb, sizeof(struct can_skb_priv)); 73 static inline void can_skb_set_owner(struct sk_buff *skb, struc argument 89 can_create_echo_skb(struct sk_buff *skb) argument 104 can_is_can_skb(const struct sk_buff *skb) argument 112 can_is_canfd_skb(const struct sk_buff *skb) argument 120 can_is_canxl_skb(const struct sk_buff *skb) argument 135 can_skb_get_len_val(struct sk_buff *skb) argument 147 can_skb_get_data_len(struct sk_buff *skb) argument [all...] |
/linux-master/drivers/bluetooth/ |
H A D | h4_recv.h | 17 int (*recv)(struct hci_dev *hdev, struct sk_buff *skb); 42 struct sk_buff *skb, 49 if (IS_ERR(skb)) 50 skb = NULL; 55 if (!skb) { 60 skb = bt_skb_alloc((&pkts[i])->maxlen, 62 if (!skb) 65 hci_skb_pkt_type(skb) = (&pkts[i])->type; 66 hci_skb_expect(skb) = (&pkts[i])->hlen; 71 if (!skb) 41 h4_recv_buf(struct hci_dev *hdev, struct sk_buff *skb, const unsigned char *buffer, int count, const struct h4_recv_pkt *pkts, int pkts_count) argument [all...] |
/linux-master/drivers/net/ethernet/sfc/ |
H A D | tx.h | 21 /* What TXQ type will satisfy the checksum offloads required for this skb? */ 22 static inline unsigned int efx_tx_csum_type_skb(struct sk_buff *skb) argument 24 if (skb->ip_summed != CHECKSUM_PARTIAL) 27 if (skb->encapsulation && 28 skb_checksum_start_offset(skb) == skb_inner_transport_offset(skb)) { 35 if (skb_shinfo(skb)->gso_segs > 1 && 36 !(skb_shinfo(skb)->gso_type & SKB_GSO_PARTIAL) && 37 (skb_shinfo(skb)->gso_type & SKB_GSO_UDP_TUNNEL_CSUM))
|
/linux-master/net/mac80211/tests/ |
H A D | elems.c | 20 struct sk_buff *skb; local 24 skb = alloc_skb(1024, GFP_KERNEL); 25 KUNIT_ASSERT_NOT_NULL(test, skb); 27 if (skb_pad(skb, skb_tailroom(skb))) { 28 KUNIT_FAIL(test, "failed to pad skb"); 33 skb_put_u8(skb, WLAN_EID_EXTENSION); 34 len_mle = skb_put(skb, 1); 35 skb_put_u8(skb, WLAN_EID_EXT_EHT_MULTI_LINK); 38 skb_put(skb, [all...] |
/linux-master/net/nsh/ |
H A D | nsh.c | 15 int nsh_push(struct sk_buff *skb, const struct nshhdr *pushed_nh) argument 21 if (skb->mac_len) { 24 next_proto = tun_p_from_eth_p(skb->protocol); 30 if (skb_cow_head(skb, length) < 0) 33 skb_push(skb, length); 34 nh = (struct nshhdr *)(skb->data); 37 skb_postpush_rcsum(skb, nh, length); 39 skb->protocol = htons(ETH_P_NSH); 40 skb_reset_mac_header(skb); 41 skb_reset_network_header(skb); 48 nsh_pop(struct sk_buff *skb) argument 77 nsh_gso_segment(struct sk_buff *skb, netdev_features_t features) argument [all...] |
/linux-master/samples/bpf/ |
H A D | tcbpf1_kern.c | 16 static inline void set_dst_mac(struct __sk_buff *skb, char *mac) argument 18 bpf_skb_store_bytes(skb, 0, mac, ETH_ALEN, 1); 24 static inline void set_ip_tos(struct __sk_buff *skb, __u8 new_tos) argument 26 __u8 old_tos = load_byte(skb, TOS_OFF); 28 bpf_l3_csum_replace(skb, IP_CSUM_OFF, htons(old_tos), htons(new_tos), 2); 29 bpf_skb_store_bytes(skb, TOS_OFF, &new_tos, sizeof(new_tos), 0); 37 static inline void set_tcp_ip_src(struct __sk_buff *skb, __u32 new_ip) argument 39 __u32 old_ip = _htonl(load_word(skb, IP_SRC_OFF)); 41 bpf_l4_csum_replace(skb, TCP_CSUM_OFF, old_ip, new_ip, IS_PSEUDO | sizeof(new_ip)); 42 bpf_l3_csum_replace(skb, IP_CSUM_OF 47 set_tcp_dest_port(struct __sk_buff *skb, __u16 new_port) argument 56 bpf_prog1(struct __sk_buff *skb) argument 70 _redirect_xmit(struct __sk_buff *skb) argument 75 _redirect_recv(struct __sk_buff *skb) argument 80 _clone_redirect_xmit(struct __sk_buff *skb) argument 86 _clone_redirect_recv(struct __sk_buff *skb) argument [all...] |
/linux-master/tools/testing/selftests/bpf/prog_tests/ |
H A D | skb_ctx.c | 7 struct __sk_buff skb = { local 26 .ctx_in = &skb, 27 .ctx_size_in = sizeof(skb), 28 .ctx_out = &skb, 29 .ctx_size_out = sizeof(skb), 44 tattr.ctx_size_in = sizeof(skb); 51 tattr.ctx_size_out = sizeof(skb); 55 skb.len = 1; 58 skb.len = 0; 60 skb [all...] |
/linux-master/net/bridge/ |
H A D | br_forward.c | 22 const struct sk_buff *skb) 27 return ((p->flags & BR_HAIRPIN_MODE) || skb->dev != p->dev) && 28 p->state == BR_STATE_FORWARDING && br_allowed_egress(vg, skb) && 29 nbp_switchdev_allowed_egress(p, skb) && 30 !br_skb_isolated(p, skb); 33 int br_dev_queue_push_xmit(struct net *net, struct sock *sk, struct sk_buff *skb) argument 35 skb_push(skb, ETH_HLEN); 36 if (!is_skb_forwardable(skb->dev, skb)) 39 br_drop_fake_rtable(skb); 21 should_deliver(const struct net_bridge_port *p, const struct sk_buff *skb) argument 63 br_forward_finish(struct net *net, struct sock *sk, struct sk_buff *skb) argument 73 __br_forward(const struct net_bridge_port *to, struct sk_buff *skb, bool local_orig) argument 120 deliver_clone(const struct net_bridge_port *prev, struct sk_buff *skb, bool local_orig) argument 144 br_forward(const struct net_bridge_port *to, struct sk_buff *skb, bool local_rcv, bool local_orig) argument 175 maybe_deliver( struct net_bridge_port *prev, struct net_bridge_port *p, struct sk_buff *skb, bool local_orig) argument 200 br_flood(struct net_bridge *br, struct sk_buff *skb, enum br_pkt_type pkt_type, bool local_rcv, bool local_orig, u16 vid) argument 256 maybe_deliver_addr(struct net_bridge_port *p, struct sk_buff *skb, const unsigned char *addr, bool local_orig) argument 287 br_multicast_flood(struct net_bridge_mdb_entry *mdst, struct sk_buff *skb, struct net_bridge_mcast *brmctx, bool local_rcv, bool local_orig) argument [all...] |
/linux-master/drivers/net/ethernet/qualcomm/rmnet/ |
H A D | rmnet_handlers.c | 22 static void rmnet_set_skb_proto(struct sk_buff *skb) argument 24 switch (skb->data[0] & 0xF0) { 26 skb->protocol = htons(ETH_P_IP); 29 skb->protocol = htons(ETH_P_IPV6); 32 skb->protocol = htons(ETH_P_MAP); 40 rmnet_deliver_skb(struct sk_buff *skb) argument 42 struct rmnet_priv *priv = netdev_priv(skb->dev); 44 skb_reset_transport_header(skb); 45 skb_reset_network_header(skb); 46 rmnet_vnd_rx_fixup(skb, sk 56 __rmnet_map_ingress_handler(struct sk_buff *skb, struct rmnet_port *port) argument 109 rmnet_map_ingress_handler(struct sk_buff *skb, struct rmnet_port *port) argument 133 rmnet_map_egress_handler(struct sk_buff *skb, struct rmnet_port *port, u8 mux_id, struct net_device *orig_dev) argument 183 rmnet_bridge_handler(struct sk_buff *skb, struct net_device *bridge_dev) argument 202 struct sk_buff *skb = *pskb; local 242 rmnet_egress_handler(struct sk_buff *skb) argument [all...] |