Home
last modified time | relevance | path

Searched refs:ptype (Results 1 – 22 of 22) sorted by relevance

/net/core/
A Dgso.c17 struct packet_offload *ptype; in skb_eth_gso_segment() local
20 list_for_each_entry_rcu(ptype, &net_hotdata.offload_base, list) { in skb_eth_gso_segment()
21 if (ptype->type == type && ptype->callbacks.gso_segment) { in skb_eth_gso_segment()
22 segs = ptype->callbacks.gso_segment(skb, features); in skb_eth_gso_segment()
41 struct packet_offload *ptype; in skb_mac_gso_segment() local
51 list_for_each_entry_rcu(ptype, &net_hotdata.offload_base, list) { in skb_mac_gso_segment()
52 if (ptype->type == type && ptype->callbacks.gso_segment) { in skb_mac_gso_segment()
53 segs = ptype->callbacks.gso_segment(skb, features); in skb_mac_gso_segment()
A Dgro.c256 struct packet_offload *ptype; in gro_complete() local
269 if (ptype->type != type || !ptype->callbacks.gro_complete) in gro_complete()
280 WARN_ON(&ptype->list == head); in gro_complete()
466 struct packet_offload *ptype; in dev_gro_receive() local
479 if (ptype->type == type && ptype->callbacks.gro_receive) in dev_gro_receive()
571 struct packet_offload *ptype; in gro_find_receive_by_type() local
574 if (ptype->type != type || !ptype->callbacks.gro_receive) in gro_find_receive_by_type()
576 return ptype; in gro_find_receive_by_type()
585 struct packet_offload *ptype; in gro_find_complete_by_type() local
588 if (ptype->type != type || !ptype->callbacks.gro_complete) in gro_find_complete_by_type()
[all …]
A Ddev.c2484 if (ptype->type != type) in deliver_ptype_list_skb()
2488 pt_prev = ptype; in deliver_ptype_list_skb()
2495 if (!ptype->af_packet_priv || !skb->sk) in skb_loop_sk()
2498 if (ptype->id_match) in skb_loop_sk()
2499 return ptype->id_match(ptype, skb->sk); in skb_loop_sk()
2544 if (skb_loop_sk(ptype, skb)) in dev_queue_xmit_nit()
2549 pt_prev = ptype; in dev_queue_xmit_nit()
2576 pt_prev = ptype; in dev_queue_xmit_nit()
5753 struct packet_type *ptype, *pt_prev; in __netif_receive_skb_core() local
5815 pt_prev = ptype; in __netif_receive_skb_core()
[all …]
A Dsock_map.c86 int sock_map_prog_detach(const union bpf_attr *attr, enum bpf_prog_type ptype) in sock_map_prog_detach() argument
104 if (prog->type != ptype) { in sock_map_prog_detach()
/net/ipv4/
A Dgre_offload.c131 struct packet_offload *ptype; in gre_gro_receive() local
164 ptype = gro_find_receive_by_type(type); in gre_gro_receive()
165 if (!ptype) in gre_gro_receive()
227 pp = call_gro_receive(ptype->callbacks.gro_receive, head, skb); in gre_gro_receive()
239 struct packet_offload *ptype; in gre_gro_complete() local
254 ptype = gro_find_complete_by_type(type); in gre_gro_complete()
255 if (ptype) in gre_gro_complete()
256 err = ptype->callbacks.gro_complete(skb, nhoff + grehlen); in gre_gro_complete()
A Darp.c301 static void arp_send_dst(int type, int ptype, __be32 dest_ip, in arp_send_dst() argument
314 skb = arp_create(type, ptype, dest_ip, dev, src_ip, in arp_send_dst()
323 void arp_send(int type, int ptype, __be32 dest_ip, in arp_send() argument
328 arp_send_dst(type, ptype, dest_ip, dev, src_ip, dest_hw, src_hw, in arp_send()
545 struct sk_buff *arp_create(int type, int ptype, __be32 dest_ip, in arp_create() argument
578 if (dev_hard_header(skb, dev, ptype, dest_hw, src_hw, skb->len) < 0) in arp_create()
/net/ethernet/
A Deth.c395 const struct packet_offload *ptype; in eth_gro_receive() local
424 ptype = gro_find_receive_by_type(type); in eth_gro_receive()
425 if (ptype == NULL) { in eth_gro_receive()
433 pp = indirect_call_gro_receive_inet(ptype->callbacks.gro_receive, in eth_gro_receive()
448 struct packet_offload *ptype; in eth_gro_complete() local
454 ptype = gro_find_complete_by_type(type); in eth_gro_complete()
455 if (ptype != NULL) in eth_gro_complete()
456 err = INDIRECT_CALL_INET(ptype->callbacks.gro_complete, in eth_gro_complete()
/net/sched/
A Dact_skbedit.c85 skb->pkt_type = params->ptype; in tcf_skbedit_act()
128 u16 *queue_mapping = NULL, *ptype = NULL; in tcf_skbedit_init() local
161 ptype = nla_data(tb[TCA_SKBEDIT_PTYPE]); in tcf_skbedit_init()
162 if (!skb_pkt_type_ok(*ptype)) in tcf_skbedit_init()
257 params_new->ptype = *ptype; in tcf_skbedit_init()
313 nla_put_u16(skb, TCA_SKBEDIT_PTYPE, params->ptype)) in tcf_skbedit_dump()
378 entry->ptype = tcf_skbedit_ptype(act); in tcf_skbedit_offload_act_setup()
A Dact_gact.c90 if (p_parm->ptype >= MAX_RAND) in tcf_gact_init()
135 gact->tcfg_ptype = p_parm->ptype; in tcf_gact_init()
158 u32 ptype = READ_ONCE(gact->tcfg_ptype); in tcf_gact_act() local
160 if (ptype) in tcf_gact_act()
161 action = gact_rand[ptype](gact); in tcf_gact_act()
206 .ptype = gact->tcfg_ptype, in tcf_gact_dump()
/net/8021q/
A Dvlan_core.c467 const struct packet_offload *ptype; in vlan_gro_receive() local
485 ptype = gro_find_receive_by_type(type); in vlan_gro_receive()
486 if (!ptype) in vlan_gro_receive()
505 pp = indirect_call_gro_receive_inet(ptype->callbacks.gro_receive, in vlan_gro_receive()
519 struct packet_offload *ptype; in vlan_gro_complete() local
522 ptype = gro_find_complete_by_type(type); in vlan_gro_complete()
523 if (ptype) in vlan_gro_complete()
524 err = INDIRECT_CALL_INET(ptype->callbacks.gro_complete, in vlan_gro_complete()
/net/nfc/
A Dllcp_core.c787 if (ptype == LLCP_PDU_I) in nfc_llcp_tx_work()
1071 u8 dsap, ssap, ptype, ns, nr; in nfc_llcp_recv_hdlc() local
1073 ptype = nfc_llcp_ptype(skb); in nfc_llcp_recv_hdlc()
1095 if (ptype == LLCP_PDU_I) { in nfc_llcp_recv_hdlc()
1141 if (ptype == LLCP_PDU_RR) in nfc_llcp_recv_hdlc()
1410 u8 ptype; in nfc_llcp_recv_agf() local
1433 if (ptype == LLCP_PDU_SYMM || ptype == LLCP_PDU_AGF) in nfc_llcp_recv_agf()
1454 u8 dsap, ssap, ptype; in nfc_llcp_rx_skb() local
1456 ptype = nfc_llcp_ptype(skb); in nfc_llcp_rx_skb()
1462 if (ptype != LLCP_PDU_SYMM) in nfc_llcp_rx_skb()
[all …]
A Dllcp_commands.c284 u8 dsap, u8 ssap, u8 ptype) in llcp_add_header() argument
288 pr_debug("ptype 0x%x dsap 0x%x ssap 0x%x\n", ptype, dsap, ssap); in llcp_add_header()
290 header[0] = (u8)((dsap << 2) | (ptype >> 2)); in llcp_add_header()
291 header[1] = (u8)((ptype << 6) | ssap); in llcp_add_header()
/net/ax25/
A Dax25_in.c184 const ax25_address *dev_addr, struct packet_type *ptype) in ax25_rcv() argument
434 struct packet_type *ptype, struct net_device *orig_dev) in ax25_kiss_rcv() argument
450 return ax25_rcv(skb, dev, (const ax25_address *)dev->dev_addr, ptype); in ax25_kiss_rcv()
/net/x25/
A Dx25_dev.c95 struct packet_type *ptype, struct net_device *orig_dev) in x25_lapb_receive_frame() argument
/net/batman-adv/
A Dmain.c423 struct packet_type *ptype, in batadv_batman_skb_recv() argument
431 hard_iface = container_of(ptype, struct batadv_hard_iface, in batadv_batman_skb_recv()
A Dmain.h246 struct packet_type *ptype,
/net/bridge/netfilter/
A Debt_arp.c36 NF_INVF(info, EBT_ARP_PTYPE, info->ptype != ah->ar_pro)) in ebt_arp_mt()
/net/ncsi/
A Dncsi-manage.c1800 ndp->ptype.type = cpu_to_be16(ETH_P_NCSI); in ncsi_register_dev()
1801 ndp->ptype.func = ncsi_rcv_rsp; in ncsi_register_dev()
1802 ndp->ptype.dev = dev; in ncsi_register_dev()
1803 dev_add_pack(&ndp->ptype); in ncsi_register_dev()
1961 dev_remove_pack(&ndp->ptype); in ncsi_unregister_dev()
A Dinternal.h340 struct packet_type ptype; /* NCSI packet Rx handler */ member
/net/netfilter/ipvs/
A Dip_vs_sync.c1104 int ptype; in ip_vs_proc_sync_conn() local
1109 ptype = *(p++); in ip_vs_proc_sync_conn()
1115 switch (ptype & ~IPVS_OPT_F_PARAM) { in ip_vs_proc_sync_conn()
1137 if (!(ptype & IPVS_OPT_F_PARAM)) { in ip_vs_proc_sync_conn()
1139 ptype & ~IPVS_OPT_F_PARAM); in ip_vs_proc_sync_conn()
/net/phonet/
A Dpep.c45 static unsigned char *pep_get_sb(struct sk_buff *skb, u8 *ptype, u8 *plen, in pep_get_sb() argument
59 *ptype = ph->sb_type; in pep_get_sb()
/net/packet/
A Daf_packet.c1599 static bool match_fanout_group(struct packet_type *ptype, struct sock *sk) in match_fanout_group() argument
1604 return ptype->af_packet_priv == pkt_sk(sk)->fanout; in match_fanout_group()

Completed in 92 milliseconds