/net/dsa/ |
D | dsa2.c | 115 if (ds->ports[index].dn == port) in dsa_ds_find_port_dn() 176 port = &ds->ports[index]; in dsa_ds_complete() 358 port = &ds->ports[index]; in dsa_ds_apply() 390 port = &ds->ports[index]; in dsa_ds_unapply() 539 port = &ds->ports[index]; in dsa_ds_parse() 593 dp = &ds->ports[port]; in dsa_dst_parse() 608 static int dsa_parse_ports_dn(struct device_node *ports, struct dsa_switch *ds) in dsa_parse_ports_dn() argument 614 for_each_available_child_of_node(ports, port) { in dsa_parse_ports_dn() 622 ds->ports[reg].dn = port; in dsa_parse_ports_dn() 637 ds->ports[i].name = cd->port_names[i]; in dsa_parse_ports() [all …]
|
D | legacy.c | 89 ret = dsa_cpu_dsa_setup(&ds->ports[port]); in dsa_cpu_dsa_setups() 122 dst->cpu_dp = &ds->ports[i]; in dsa_switch_setup_one() 191 ds->ports[i].dn = cd->port_dn[i]; in dsa_switch_setup_one() 192 ds->ports[i].cpu_dp = dst->cpu_dp; in dsa_switch_setup_one() 197 ret = dsa_slave_create(&ds->ports[i], cd->port_names[i]); in dsa_switch_setup_one() 269 if (!ds->ports[port].netdev) in dsa_switch_destroy() 272 dsa_slave_destroy(ds->ports[port].netdev); in dsa_switch_destroy() 279 dsa_cpu_dsa_destroy(&ds->ports[port]); in dsa_switch_destroy()
|
D | tag_mtk.c | 81 if (!ds->ports[port].netdev) in mtk_tag_rcv() 87 skb->dev = ds->ports[port].netdev; in mtk_tag_rcv()
|
D | tag_lan9303.c | 114 if (!ds->ports[source_port].netdev) { in lan9303_rcv() 127 skb->dev = ds->ports[source_port].netdev; in lan9303_rcv()
|
D | tag_trailer.c | 76 if (source_port >= ds->num_ports || !ds->ports[source_port].netdev) in trailer_rcv() 85 skb->dev = ds->ports[source_port].netdev; in trailer_rcv()
|
D | tag_ksz.c | 92 if (source_port >= ds->num_ports || !ds->ports[source_port].netdev) in ksz_rcv() 100 skb->dev = ds->ports[source_port].netdev; in ksz_rcv()
|
D | tag_qca.c | 101 if (!ds->ports[port].netdev) in qca_tag_rcv() 108 skb->dev = ds->ports[port].netdev; in qca_tag_rcv()
|
D | tag_brcm.c | 121 if (source_port >= ds->num_ports || !ds->ports[source_port].netdev) in brcm_tag_rcv() 135 skb->dev = ds->ports[source_port].netdev; in brcm_tag_rcv()
|
D | dsa.c | 231 return ds->enabled_port_mask & (1 << p) && ds->ports[p].netdev; in dsa_is_port_initialized() 243 ret = dsa_slave_suspend(ds->ports[i].netdev); in dsa_switch_suspend() 270 ret = dsa_slave_resume(ds->ports[i].netdev); in dsa_switch_resume()
|
D | tag_dsa.c | 107 if (source_port >= ds->num_ports || !ds->ports[source_port].netdev) in dsa_rcv() 159 skb->dev = ds->ports[source_port].netdev; in dsa_rcv()
|
/net/netfilter/ |
D | nf_conntrack_sane.c | 43 static u_int16_t ports[MAX_PORTS]; variable 45 module_param_array(ports, ushort, &ports_c, 0400); 194 ports[ports_c++] = SANE_PORT; in nf_conntrack_sane_init() 200 SANE_PORT, ports[i], ports[i], in nf_conntrack_sane_init() 204 SANE_PORT, ports[i], ports[i], in nf_conntrack_sane_init()
|
D | nf_conntrack_tftp.c | 30 static unsigned short ports[MAX_PORTS]; variable 32 module_param_array(ports, ushort, &ports_c, 0400); 33 MODULE_PARM_DESC(ports, "Port numbers of TFTP servers"); 119 ports[ports_c++] = TFTP_PORT; in nf_conntrack_tftp_init() 123 TFTP_PORT, ports[i], i, &tftp_exp_policy, in nf_conntrack_tftp_init() 126 TFTP_PORT, ports[i], i, &tftp_exp_policy, in nf_conntrack_tftp_init()
|
D | nf_conntrack_irc.c | 29 static unsigned short ports[MAX_PORTS]; variable 51 module_param_array(ports, ushort, &ports_c, 0400); 52 MODULE_PARM_DESC(ports, "port numbers of IRC servers"); 261 ports[ports_c++] = IRC_PORT; in nf_conntrack_irc_init() 265 IRC_PORT, ports[i], i, &irc_exp_policy, in nf_conntrack_irc_init()
|
D | nf_conntrack_ftp.c | 44 static u_int16_t ports[MAX_PORTS]; variable 46 module_param_array(ports, ushort, &ports_c, 0400); 587 ports[ports_c++] = FTP_PORT; in nf_conntrack_ftp_init() 593 FTP_PORT, ports[i], ports[i], &ftp_exp_policy, in nf_conntrack_ftp_init() 596 FTP_PORT, ports[i], ports[i], &ftp_exp_policy, in nf_conntrack_ftp_init()
|
/net/core/ |
D | flow_dissector.c | 106 __be32 *ports, _ports; in __skb_flow_get_ports() local 108 ports = __skb_header_pointer(skb, thoff + poff, in __skb_flow_get_ports() 110 if (ports) in __skb_flow_get_ports() 111 return *ports; in __skb_flow_get_ports() 847 key_ports->ports = __skb_flow_get_ports(skb, nhoff, ip_proto, in __skb_flow_dissect() 963 ((__force u16)keys->ports.dst < in __flow_hash_consistentify() 964 (__force u16)keys->ports.src))) { in __flow_hash_consistentify() 966 swap(keys->ports.src, keys->ports.dst); in __flow_hash_consistentify() 975 ((__force u16)keys->ports.dst < in __flow_hash_consistentify() 976 (__force u16)keys->ports.src))) { in __flow_hash_consistentify() [all …]
|
/net/ipv6/netfilter/ |
D | nf_socket_ipv6.c | 37 __be16 *ports, _ports[2]; in extract_icmp6_fields() local 66 ports = skb_header_pointer(skb, inside_hdrlen, in extract_icmp6_fields() 68 if (ports == NULL) in extract_icmp6_fields() 75 *lport = ports[0]; in extract_icmp6_fields() 77 *rport = ports[1]; in extract_icmp6_fields()
|
/net/ipv4/netfilter/ |
D | nf_socket_ipv4.c | 31 __be16 *ports, _ports[2]; in extract_icmp4_fields() local 59 ports = skb_header_pointer(skb, outside_hdrlen + in extract_icmp4_fields() 63 if (ports == NULL) in extract_icmp4_fields() 70 *lport = ports[0]; in extract_icmp4_fields() 72 *rport = ports[1]; in extract_icmp4_fields()
|
/net/netfilter/ipvs/ |
D | ip_vs_ftp.c | 56 static unsigned short ports[IP_VS_APP_MAX_PORTS] = {21, 0}; variable 57 module_param_array(ports, ushort, &ports_count, 0444); 58 MODULE_PARM_DESC(ports, "Ports to monitor for FTP control commands"); 452 if (!ports[i]) in __ip_vs_ftp_init() 454 ret = register_ip_vs_app_inc(ipvs, app, app->protocol, ports[i]); in __ip_vs_ftp_init() 458 app->name, i, ports[i]); in __ip_vs_ftp_init()
|
D | ip_vs_sh.c | 283 __be16 _ports[2], *ports; in ip_vs_sh_get_port() local 294 ports = skb_header_pointer(skb, iph->len, sizeof(_ports), in ip_vs_sh_get_port() 296 if (unlikely(!ports)) in ip_vs_sh_get_port() 300 return ports[0]; in ip_vs_sh_get_port() 302 return ports[1]; in ip_vs_sh_get_port()
|
D | ip_vs_proto_udp.c | 39 __be16 _ports[2], *ports = NULL; in udp_conn_schedule() local 45 ports = &uh->source; in udp_conn_schedule() 47 ports = skb_header_pointer( in udp_conn_schedule() 51 if (!ports) { in udp_conn_schedule() 58 &iph->daddr, ports[1]); in udp_conn_schedule() 61 &iph->saddr, ports[0]); in udp_conn_schedule()
|
D | ip_vs_proto_sctp.c | 21 __be16 _ports[2], *ports = NULL; in sctp_conn_schedule() local 33 ports = &sh->source; in sctp_conn_schedule() 37 ports = skb_header_pointer( in sctp_conn_schedule() 41 if (!ports) { in sctp_conn_schedule() 48 &iph->daddr, ports[1]); in sctp_conn_schedule() 51 &iph->saddr, ports[0]); in sctp_conn_schedule()
|
/net/ipv6/ |
D | inet6_hashtables.c | 63 const __portpair ports = INET_COMBINED_PORTS(sport, hnum); in __inet6_lookup_established() local 76 if (!INET6_MATCH(sk, net, saddr, daddr, ports, dif, sdif)) in __inet6_lookup_established() 81 if (unlikely(!INET6_MATCH(sk, net, saddr, daddr, ports, dif, sdif))) { in __inet6_lookup_established() 197 const __portpair ports = INET_COMBINED_PORTS(inet->inet_dport, lport); in __inet6_check_established() local 212 if (likely(INET6_MATCH(sk2, net, saddr, daddr, ports, in __inet6_check_established()
|
/net/ipv4/ |
D | xfrm4_policy.c | 140 __be16 *ports; in _decode_session4() local 143 ports = (__be16 *)xprth; in _decode_session4() 145 fl4->fl4_sport = ports[!!reverse]; in _decode_session4() 146 fl4->fl4_dport = ports[!reverse]; in _decode_session4()
|
/net/hsr/ |
D | hsr_main.h | 167 struct list_head ports; member 181 list_for_each_entry_rcu((port), &(hsr)->ports, port_list)
|
/net/sched/ |
D | cls_flow.c | 102 if (flow->ports.ports) in flow_get_proto_src() 103 return ntohs(flow->ports.src); in flow_get_proto_src() 111 if (flow->ports.ports) in flow_get_proto_dst() 112 return ntohs(flow->ports.dst); in flow_get_proto_dst()
|