/net/ipv4/ |
D | gre_offload.c | 120 struct packet_offload *ptype; in gre_gro_receive() local 157 ptype = gro_find_receive_by_type(type); in gre_gro_receive() 158 if (!ptype) in gre_gro_receive() 220 pp = call_gro_receive(ptype->callbacks.gro_receive, head, skb); in gre_gro_receive() 234 struct packet_offload *ptype; in gre_gro_complete() local 250 ptype = gro_find_complete_by_type(type); in gre_gro_complete() 251 if (ptype) in gre_gro_complete() 252 err = ptype->callbacks.gro_complete(skb, nhoff + grehlen); in gre_gro_complete()
|
D | arp.c | 302 static void arp_send_dst(int type, int ptype, __be32 dest_ip, in arp_send_dst() argument 315 skb = arp_create(type, ptype, dest_ip, dev, src_ip, in arp_send_dst() 324 void arp_send(int type, int ptype, __be32 dest_ip, in arp_send() argument 329 arp_send_dst(type, ptype, dest_ip, dev, src_ip, dest_hw, src_hw, in arp_send() 525 struct sk_buff *arp_create(int type, int ptype, __be32 dest_ip, in arp_create() argument 558 if (dev_hard_header(skb, dev, ptype, dest_hw, src_hw, skb->len) < 0) in arp_create()
|
/net/sched/ |
D | act_skbedit.c | 52 skb->pkt_type = d->ptype; in tcf_skbedit() 76 u16 *queue_mapping = NULL, *ptype = NULL; in tcf_skbedit_init() local 101 ptype = nla_data(tb[TCA_SKBEDIT_PTYPE]); in tcf_skbedit_init() 102 if (!skb_pkt_type_ok(*ptype)) in tcf_skbedit_init() 154 d->ptype = *ptype; in tcf_skbedit_init() 194 nla_put_u16(skb, TCA_SKBEDIT_PTYPE, d->ptype)) in tcf_skbedit_dump()
|
D | act_gact.c | 88 if (p_parm->ptype >= MAX_RAND) in tcf_gact_init() 119 gact->tcfg_ptype = p_parm->ptype; in tcf_gact_init() 135 u32 ptype = READ_ONCE(gact->tcfg_ptype); in tcf_gact() local 137 if (ptype) in tcf_gact() 138 action = gact_rand[ptype](gact); in tcf_gact() 185 .ptype = gact->tcfg_ptype, in tcf_gact_dump()
|
/net/ethernet/ |
D | eth.c | 441 const struct packet_offload *ptype; in eth_gro_receive() local 470 ptype = gro_find_receive_by_type(type); in eth_gro_receive() 471 if (ptype == NULL) { in eth_gro_receive() 478 pp = call_gro_receive(ptype->callbacks.gro_receive, head, skb); in eth_gro_receive() 493 struct packet_offload *ptype; in eth_gro_complete() local 500 ptype = gro_find_complete_by_type(type); in eth_gro_complete() 501 if (ptype != NULL) in eth_gro_complete() 502 err = ptype->callbacks.gro_complete(skb, nhoff + in eth_gro_complete()
|
/net/nfc/ |
D | llcp_core.c | 747 u8 ptype = nfc_llcp_ptype(skb); in nfc_llcp_tx_work() local 754 if (ptype == LLCP_PDU_DISC && sk != NULL && in nfc_llcp_tx_work() 761 if (ptype == LLCP_PDU_I) in nfc_llcp_tx_work() 777 if (ptype == LLCP_PDU_I && copy_skb) in nfc_llcp_tx_work() 1044 u8 dsap, ssap, ptype, ns, nr; in nfc_llcp_recv_hdlc() local 1046 ptype = nfc_llcp_ptype(skb); in nfc_llcp_recv_hdlc() 1068 if (ptype == LLCP_PDU_I) { in nfc_llcp_recv_hdlc() 1114 if (ptype == LLCP_PDU_RR) in nfc_llcp_recv_hdlc() 1116 else if (ptype == LLCP_PDU_RNR) in nfc_llcp_recv_hdlc() 1119 if (nfc_llcp_queue_i_frames(llcp_sock) == 0 && ptype == LLCP_PDU_I) in nfc_llcp_recv_hdlc() [all …]
|
D | llcp_commands.c | 294 u8 dsap, u8 ssap, u8 ptype) in llcp_add_header() argument 298 pr_debug("ptype 0x%x dsap 0x%x ssap 0x%x\n", ptype, dsap, ssap); in llcp_add_header() 300 header[0] = (u8)((dsap << 2) | (ptype >> 2)); in llcp_add_header() 301 header[1] = (u8)((ptype << 6) | ssap); in llcp_add_header()
|
/net/8021q/ |
D | vlan.c | 627 const struct packet_offload *ptype; in vlan_gro_receive() local 643 ptype = gro_find_receive_by_type(type); in vlan_gro_receive() 644 if (!ptype) in vlan_gro_receive() 662 pp = call_gro_receive(ptype->callbacks.gro_receive, head, skb); in vlan_gro_receive() 676 struct packet_offload *ptype; in vlan_gro_complete() local 680 ptype = gro_find_complete_by_type(type); in vlan_gro_complete() 681 if (ptype) in vlan_gro_complete() 682 err = ptype->callbacks.gro_complete(skb, nhoff + sizeof(*vhdr)); in vlan_gro_complete()
|
/net/core/ |
D | dev.c | 1890 struct packet_type *ptype, *pt_prev = *pt; in deliver_ptype_list_skb() local 1892 list_for_each_entry_rcu(ptype, ptype_list, list) { in deliver_ptype_list_skb() 1893 if (ptype->type != type) in deliver_ptype_list_skb() 1897 pt_prev = ptype; in deliver_ptype_list_skb() 1902 static inline bool skb_loop_sk(struct packet_type *ptype, struct sk_buff *skb) in skb_loop_sk() argument 1904 if (!ptype->af_packet_priv || !skb->sk) in skb_loop_sk() 1907 if (ptype->id_match) in skb_loop_sk() 1908 return ptype->id_match(ptype, skb->sk); in skb_loop_sk() 1909 else if ((struct sock *)ptype->af_packet_priv == skb->sk) in skb_loop_sk() 1922 struct packet_type *ptype; in dev_queue_xmit_nit() local [all …]
|
/net/ax25/ |
D | ax25_in.c | 187 ax25_address *dev_addr, struct packet_type *ptype) in ax25_rcv() argument 437 struct packet_type *ptype, struct net_device *orig_dev) in ax25_kiss_rcv() argument 453 return ax25_rcv(skb, dev, (ax25_address *)dev->dev_addr, ptype); in ax25_kiss_rcv()
|
/net/batman-adv/ |
D | main.c | 417 struct packet_type *ptype, in batadv_batman_skb_recv() argument 425 hard_iface = container_of(ptype, struct batadv_hard_iface, in batadv_batman_skb_recv()
|
D | main.h | 231 struct packet_type *ptype,
|
/net/bridge/netfilter/ |
D | ebt_arp.c | 35 NF_INVF(info, EBT_ARP_PTYPE, info->ptype != ah->ar_pro)) in ebt_arp_mt()
|
/net/x25/ |
D | x25_dev.c | 100 struct packet_type *ptype, struct net_device *orig_dev) in x25_lapb_receive_frame() argument
|
/net/ncsi/ |
D | ncsi-manage.c | 1560 ndp->ptype.type = cpu_to_be16(ETH_P_NCSI); in ncsi_register_dev() 1561 ndp->ptype.func = ncsi_rcv_rsp; in ncsi_register_dev() 1562 ndp->ptype.dev = dev; in ncsi_register_dev() 1563 dev_add_pack(&ndp->ptype); in ncsi_register_dev() 1628 dev_remove_pack(&ndp->ptype); in ncsi_unregister_dev()
|
D | internal.h | 287 struct packet_type ptype; /* NCSI packet Rx handler */ member
|
/net/netfilter/ipvs/ |
D | ip_vs_sync.c | 1110 int ptype; in ip_vs_proc_sync_conn() local 1115 ptype = *(p++); in ip_vs_proc_sync_conn() 1121 switch (ptype & ~IPVS_OPT_F_PARAM) { in ip_vs_proc_sync_conn() 1143 if (!(ptype & IPVS_OPT_F_PARAM)) { in ip_vs_proc_sync_conn() 1145 ptype & ~IPVS_OPT_F_PARAM); in ip_vs_proc_sync_conn()
|
/net/phonet/ |
D | pep.c | 58 static unsigned char *pep_get_sb(struct sk_buff *skb, u8 *ptype, u8 *plen, in pep_get_sb() argument 72 *ptype = ph->sb_type; in pep_get_sb()
|
/net/packet/ |
D | af_packet.c | 1543 static bool match_fanout_group(struct packet_type *ptype, struct sock *sk) in match_fanout_group() argument 1548 return ptype->af_packet_priv == pkt_sk(sk)->fanout; in match_fanout_group()
|