[lng-odp] [RFC 15/15] linux-generic: packet_io: use generic interface for all pktio implementations

2015-07-03 Thread Nicolas Morey-Chaisemartin
Each packet_io type now implements a pktio_if_ops_t structure which serves as the only interface use by odp_packet_io.c. The type of a device is retrieved by calling the pktio_XX open function in enum order and by stopping on the first successful order Signed-off-by: Clément Leger

Re: [lng-odp] [RFC 15/15] linux-generic: packet_io: use generic interface for all pktio implementations

2015-07-03 Thread Maxim Uvarov
On 07/03/15 10:06, Nicolas Morey-Chaisemartin wrote: Each packet_io type now implements a pktio_if_ops_t structure which serves as the only interface use by odp_packet_io.c. The type of a device is retrieved by calling the pktio_XX open function in enum order and by stopping on the first

Re: [lng-odp] [RFC 15/15] linux-generic: packet_io: use generic interface for all pktio implementations

2015-07-03 Thread Nicolas Morey-Chaisemartin
On 07/03/2015 12:22 PM, Maxim Uvarov wrote: On 07/03/15 10:06, Nicolas Morey-Chaisemartin wrote: In that patch I would name all functions with same prefix, then postfix. Like loopback_mac_addr_get(). In that case function will be close to each other when you do search by tags. Maxim.