ethdev: introduce if_index in device info
authorMats Liljegren <mats.liljegren@enea.com>
Fri, 24 Jan 2014 13:24:14 +0000 (14:24 +0100)
committerDavid Marchand <david.marchand@6wind.com>
Wed, 26 Feb 2014 10:07:28 +0000 (11:07 +0100)
commita12f21157afad0dc4c3d3618d5a664a54e9b6607
tree63e831b77e67a0cc2792a5a7c1b1a21944040a0f
parentbc786a4e413bcf221fafb9769251fafe3f8392ec
ethdev: introduce if_index in device info

This field is intended for pcap to describe the name of the interface
as known to Linux. It is an interface index, but can be translated into
an interface name using if_indextoname() function.

When using pcap, interrupt affinity becomes important, and this field
gives the application a chance to ensure that interrupt affinity is set
to the lcore handling the device.

Signed-off-by: Mats Liljegren <mats.liljegren@enea.com>
Reviewed-by: Stephen Hemminger <stephen@networkplumber.org>
Acked-by: Thomas Monjalon <thomas.monjalon@6wind.com>
lib/librte_ether/rte_ethdev.c
lib/librte_ether/rte_ethdev.h