Searched refs:port (Results 1 - 25 of 71) sorted by relevance

123

/tldk/lib/libtle_l4p/
H A Dport_bitmap.h49 tle_pbm_set(struct tle_pbm *pbm, uint16_t port) argument
53 i = PORT_BLK(port);
54 b = 1 << PORT_IDX(port);
61 tle_pbm_clear(struct tle_pbm *pbm, uint16_t port) argument
65 i = PORT_BLK(port);
66 b = 1 << PORT_IDX(port);
74 tle_pbm_check(const struct tle_pbm *pbm, uint16_t port) argument
78 i = PORT_BLK(port);
79 v = pbm->bm[i] >> PORT_IDX(port);
H A Dstream_table.h42 union l4_ports port; member in struct:stbl4_key
47 union l4_ports port; member in struct:stbl6_key
52 union l4_ports port; member in struct:stbl_key
67 .port.raw = 0,
70 k->port = pi->port;
154 .port.raw = 0,
157 k->port = s->port;
H A Dsyncookie.h31 union l4_ports port; member in struct:sync_in4
77 in4.port = pi->port;
110 return rte_jhash_3words(v0, seq, pi->port.raw, v1);
115 port_seq[0] = pi->port.raw;
/tldk/app/nginx/src/core/
H A Dngx_proxy_protocol.c16 u_char ch, *p, *addr, *port; local
85 port = p;
97 len = p - port - 1;
99 n = ngx_atoi(port, len);
130 ngx_uint_t port, lport; local
164 port = ngx_inet_get_port(c->sockaddr);
167 return ngx_slprintf(buf, last, " %ui %ui" CRLF, port, lport);
H A Dngx_inet.c182 ngx_uint_t port)
201 if (port) {
219 if (port) {
225 if (port) {
621 ngx_int_t rc, port; local
657 port = ngx_atoi(p, plen);
659 if (port < 1 || port > 65535) {
671 ngx_inet_set_port(addr->sockaddr, (in_port_t) port);
779 u_char *p, *host, *port, *las local
181 ngx_sock_ntop(struct sockaddr *sa, socklen_t socklen, u_char *text, size_t len, ngx_uint_t port) argument
975 u_char *p, *host, *port, *last, *uri; local
1105 in_port_t port; local
1251 in_port_t port; local
1467 ngx_inet_set_port(struct sockaddr *sa, in_port_t port) argument
[all...]
H A Dngx_inet.h86 in_port_t port; member in struct:__anon35
113 size_t len, ngx_uint_t port);
126 void ngx_inet_set_port(struct sockaddr *sa, in_port_t port);
/tldk/app/nginx/src/mail/
H A Dngx_mail.c231 ngx_mail_conf_port_t *port; local
237 port = ports->elts;
239 if (p == port[i].port && sa->sa_family == port[i].family) {
241 /* a port is already in the port list */
243 port = &port[i];
248 /* add a port t
284 ngx_mail_conf_port_t *port; local
[all...]
/tldk/app/nginx/conf/
H A Dnginx-tldk.conf53 port 0 rx_offload 0xf tx_offload 0xf ipv4 192.168.1.60;
68 dev 0 port 0 queue 0;
81 dev 0 port 0 queue 1;
/tldk/examples/l4fwd/
H A Dfwdtbl.h20 uint32_t port; member in struct:fwd4_key
25 uint32_t port; member in struct:fwd6_key
45 key->k4.port = sin4->sin_port;
50 key->k6.port = sin6->sin6_port;
H A Dlcore.h135 /* search by queue for the local port */
137 if (laddr->s_addr == bc->prtq[j].port.ipv4) {
161 /* search by queue for the local port */
201 /* search by queue for the local port */
203 if (memcmp(laddr, &bc->prtq[j].port.ipv6,
228 /* search by queue for the local port */
303 dprm.rx_offload = lc->prtq[prtqid].port.rx_offload;
304 dprm.tx_offload = lc->prtq[prtqid].port.tx_offload;
305 dprm.local_addr4.s_addr = lc->prtq[prtqid].port.ipv4;
306 memcpy(&dprm.local_addr6, &lc->prtq[prtqid].port
[all...]
H A Dpkt.c234 handle_arp(struct rte_mbuf *m, struct netbe_lcore *lc, dpdk_port_t port, argument
251 abuf = &lc->prtq[port].arp_buf;
262 dpdk_port_t port)
285 return handle_arp(m, lc, port, l2_len);
435 dpdk_port_t port, uint32_t proto)
443 l3cs = lc->prtq[port].port.rx_offload & DEV_RX_OFFLOAD_IPV4_CKSUM;
521 pkt[j] = reassemble(pkt[j], lc, cts, port, (proto)); \
530 type0_tcp_rx_callback(__rte_unused dpdk_port_t port, argument
599 type0_udp_rx_callback(dpdk_port_t port, __rte_unuse argument
261 fill_eth_tcp_arp_hdr_len(struct rte_mbuf *m, struct netbe_lcore *lc, dpdk_port_t port) argument
434 reassemble(struct rte_mbuf *m, struct netbe_lcore *lc, uint64_t tms, dpdk_port_t port, uint32_t proto) argument
685 type1_tcp_rx_callback(__rte_unused dpdk_port_t port, __rte_unused uint16_t queue, struct rte_mbuf *pkt[], uint16_t nb_pkts, __rte_unused uint16_t max_pkts, void *user_param) argument
740 type1_udp_rx_callback(dpdk_port_t port, __rte_unused uint16_t queue, struct rte_mbuf *pkt[], uint16_t nb_pkts, __rte_unused uint16_t max_pkts, void *user_param) argument
810 typen_tcp_arp_rx_callback(dpdk_port_t port, uint16_t queue, struct rte_mbuf *pkt[], uint16_t nb_pkts, uint16_t max_pkts, void *user_param) argument
837 typen_tcp_rx_callback(__rte_unused dpdk_port_t port, __rte_unused uint16_t queue, struct rte_mbuf *pkt[], uint16_t nb_pkts, __rte_unused uint16_t max_pkts, void *user_param) argument
858 typen_udp_rx_callback(dpdk_port_t port, __rte_unused uint16_t queue, struct rte_mbuf *pkt[], uint16_t nb_pkts, __rte_unused uint16_t max_pkts, void *user_param) argument
[all...]
H A Dcommon.h171 * Helper functions, verify the queue for corresponding UDP port.
178 align_nb_q = rte_align32pow2(prtq->port.nb_lcore);
179 qid = (lport % align_nb_q) % prtq->port.nb_lcore;
243 "%s:%u(port=%u, q=%u, proto=%s, dev=%p)\n",
244 __func__, i, lc->prtq[i].port.id, lc->prtq[i].rxqid,
247 rc = setup_rx_cb(&lc->prtq[i].port, lc, lc->prtq[i].rxqid,
271 RTE_LOG(NOTICE, USER1, "%s:%u(port=%u, q=%u, lcore=%u, dev=%p) "
276 __func__, i, lc->prtq[i].port.id, lc->prtq[i].rxqid,
315 RTE_LOG(NOTICE, USER1, "%s(lcore=%u,port=%u,dev=%p,"
319 __func__, lc->id, dst->port, l
[all...]
/tldk/app/nginx/src/stream/
H A Dngx_stream.c387 ngx_stream_conf_port_t *port; local
393 port = ports->elts;
396 if (p == port[i].port
397 && listen->type == port[i].type
398 && sa->sa_family == port[i].family)
400 /* a port is already in the port list */
402 port = &port[
444 ngx_stream_conf_port_t *port; local
[all...]
H A Dngx_stream_handler.c29 ngx_stream_port_t *port; local
41 /* find the server configuration for the address:port */
43 port = c->listening->servers;
45 if (port->naddrs > 1) {
48 * There are several addresses on this port and one of them
49 * is the "*:port" wildcard so getsockname() is needed to determine
68 addr6 = port->addrs;
72 for (i = 0; i < port->naddrs - 1; i++) {
86 addr = port->addrs;
90 for (i = 0; i < port
[all...]
H A Dngx_stream_realip_module.c323 ngx_uint_t port; local
341 port = ngx_inet_get_port(sa);
343 if (port > 0 && port < 65536) {
344 v->len = ngx_sprintf(v->data, "%ui", port) - v->data;
H A Dngx_stream_upstream.h81 in_port_t port; member in struct:ngx_stream_upstream_srv_conf_s
103 in_port_t port; member in struct:__anon469
/tldk/test/gtest/
H A Dtest_common.cpp19 port_init(dpdk_port_t port, struct rte_mempool *mbuf_pool) argument
27 socket_id = rte_eth_dev_socket_id(port);
33 retval = rte_eth_dev_configure(port, rx_rings, tx_rings, &port_conf);
37 /* Allocate and set up 1 RX queue per Ethernet port. */
39 retval = rte_eth_rx_queue_setup(port, q, RX_RING_SIZE,
45 /* Allocate and set up 1 TX queue per Ethernet port. */
47 retval = rte_eth_tx_queue_setup(port, q, TX_RING_SIZE,
53 /* Start the Ethernet port. */
54 retval = rte_eth_dev_start(port);
59 rte_eth_promiscuous_enable(port);
243 typen_rx_callback(dpdk_port_t port, __rte_unused uint16_t queue, struct rte_mbuf *pkt[], uint16_t nb_pkts, __rte_unused uint16_t max_pkts, void *user_param) argument
[all...]
H A Dtest_common.h57 int port_init(dpdk_port_t port, struct rte_mempool *mbuf_pool);
96 typen_rx_callback(dpdk_port_t port, __rte_unused uint16_t queue,
/tldk/app/nginx/src/tldk/
H A Dbe.h54 void be_stop_port(uint32_t port);
H A Dbe.c171 * Initialise DPDK port.
184 "port#%u supported/requested RX offloads don't match, "
192 "port#%u supported/requested TX offloads don't match, "
306 port_id = ctx->dev[i].port;
352 dpf = &cf->port[i];
356 "%s: port=%u init failed with error code: %d\n",
519 /* fetch the port conf for the port
522 port_id = tcx->dev[l].cf.port;
523 pcf = &cf->port[port_i
861 type0_tcp_rx_callback(__rte_unused dpdk_port_t port, __rte_unused uint16_t queue, struct rte_mbuf *pkt[], uint16_t nb_pkts, __rte_unused uint16_t max_pkts, __rte_unused void *user_param) argument
926 type1_tcp_rx_callback(__rte_unused dpdk_port_t port, __rte_unused uint16_t queue, struct rte_mbuf *pkt[], uint16_t nb_pkts, __rte_unused uint16_t max_pkts, void *user_param) argument
976 typen_tcp_rx_callback(__rte_unused dpdk_port_t port, __rte_unused uint16_t queue, struct rte_mbuf *pkt[], uint16_t nb_pkts, __rte_unused uint16_t max_pkts, __rte_unused void *user_param) argument
1198 be_stop_port(uint32_t port) argument
[all...]
/tldk/app/nginx/src/http/
H A Dngx_http_header_filter_module.c162 ngx_uint_t status, i, port; local
345 port = ngx_inet_get_port(c->local_sockaddr);
355 port = (port == 443) ? 0 : port;
358 port = (port == 80) ? 0 : port;
361 port = 0;
364 if (port) {
[all...]
H A Dngx_http.c22 ngx_http_core_srv_conf_t *cscf, ngx_http_conf_port_t *port,
25 ngx_http_core_srv_conf_t *cscf, ngx_http_conf_port_t *port,
59 ngx_http_conf_port_t *port);
1150 ngx_http_conf_port_t *port; local
1166 port = cmcf->ports->elts;
1169 if (p != port[i].port || sa->sa_family != port[i].family) {
1173 /* a port is already in the port lis
1194 ngx_http_add_addresses(ngx_conf_t *cf, ngx_http_core_srv_conf_t *cscf, ngx_http_conf_port_t *port, ngx_http_listen_opt_t *lsopt) argument
1290 ngx_http_add_address(ngx_conf_t *cf, ngx_http_core_srv_conf_t *cscf, ngx_http_conf_port_t *port, ngx_http_listen_opt_t *lsopt) argument
1382 ngx_http_conf_port_t *port; local
1627 ngx_http_init_listening(ngx_conf_t *cf, ngx_http_conf_port_t *port) argument
[all...]
/tldk/app/nginx/src/event/modules/
H A Dngx_eventport_module.c42 ushort_t portev_pad; /* port internal use */
48 int portnfy_port; /* bind request(s) to port */
69 int port_associate(int port, int source, uintptr_t object, int events,
72 int port_associate(int port, int source, uintptr_t object, int events, argument
79 int port_dissociate(int port, int source, uintptr_t object);
81 int port_dissociate(int port, int source, uintptr_t object) argument
87 int port_getn(int port, port_event_t list[], uint_t max, uint_t *nget,
90 int port_getn(int port, port_event_t list[], uint_t max, uint_t *nget, argument
96 int port_send(int port, int events, void *user);
98 int port_send(int port, in argument
[all...]
/tldk/app/nginx/src/event/
H A Dngx_event_connect.c25 in_port_t port; local
94 port = ngx_inet_get_port(pc->local->sockaddr);
99 if (pc->sockaddr->sa_family != AF_UNIX && port == 0) {
125 if (pc->type == SOCK_DGRAM && port != 0) {
/tldk/app/nginx/src/os/unix/
H A Dngx_solaris_config.h82 #include <port.h>

Completed in 20 milliseconds

123