From: Filippos Giannakos Date: Thu, 30 Aug 2012 09:25:44 +0000 (+0300) Subject: add portno to port struct X-Git-Tag: debian/0.3.1~211 X-Git-Url: https://code.grnet.gr/git/archipelago/commitdiff_plain/6f2e0b3a025c0a4deb6230b9c69582b67711cae2 add portno to port struct --- diff --git a/xseg/xseg/xseg.c b/xseg/xseg/xseg.c index 501f490..d557090 100644 --- a/xseg/xseg/xseg.c +++ b/xseg/xseg/xseg.c @@ -1172,6 +1172,7 @@ struct xseg_port *xseg_bind_port(struct xseg *xseg, uint32_t req) break; port->peer_type = (uint64_t)driver; port->owner = id; + port->portno = portno; xseg->ports[portno] = XPTR_MAKE(port, xseg->segment); goto out; } diff --git a/xseg/xseg/xseg.h b/xseg/xseg/xseg.h index e9ad38a..a179e9a 100644 --- a/xseg/xseg/xseg.h +++ b/xseg/xseg/xseg.h @@ -113,6 +113,7 @@ struct xseg_port { uint64_t owner; volatile uint64_t waitcue; uint64_t peer_type; + uint32_t portno; }; struct xseg_request; @@ -328,7 +329,7 @@ struct xseg_request * xseg_accept ( struct xseg * xseg, static inline uint32_t xseg_portno(struct xseg *xseg, struct xseg_port *port) { - return port - xseg->ports; + return port->portno; } #endif