On Mon, Mar 30, 2015 at 12:23 PM, Petri Savolainen < [email protected]> wrote:
> Hash lookup is used to find the input queue for a packet. This information > is needed e.g. to setup the queue context. > > Signed-off-by: Petri Savolainen <[email protected]> > --- > include/odp/api/packet_io.h | 14 ++++++++++++++ > 1 file changed, 14 insertions(+) > > diff --git a/include/odp/api/packet_io.h b/include/odp/api/packet_io.h > index 99a5d5d..7e84fe1 100644 > --- a/include/odp/api/packet_io.h > +++ b/include/odp/api/packet_io.h > @@ -20,6 +20,7 @@ extern "C" { > > #include <odp/queue.h> > #include <odp/schedule_types.h> > +#include <odp/packet.h> > > /** @defgroup odp_packet_io ODP PACKET IO > * Operations on a packet. > @@ -149,6 +150,19 @@ odp_pktio_t odp_pktio_open(const char *dev, > odp_pool_t pool, > odp_queue_t odp_pktio_inq_create(odp_pktio_t pktio, const char *name); > > /** > + * Packet input queue hash lookup > + * > + * Find the input queue for a packet. > Shouldn't this be "for a pktio" not "for a packet"? The argument is odp_pktio_t, not odp_packet_t. > + * > + * @param pktio Packet IO handle > + * @param packet Packet handle > + * > + * @return Input queue handle > + * @retval ODP_QUEUE_INVALID on failure > + */ > +odp_queue_t odp_pktio_inq_hash_lookup(odp_pktio_t pktio, odp_packet_t > packet); > + > +/** > * Number of packet input queues > * > * @param pktio Packet IO handle > -- > 2.3.4 > > _______________________________________________ > lng-odp mailing list > [email protected] > https://lists.linaro.org/mailman/listinfo/lng-odp >
_______________________________________________ lng-odp mailing list [email protected] https://lists.linaro.org/mailman/listinfo/lng-odp
