[dpdk-dev] [PATCH v3 1/2] ethdev: Introduce if_index field to struct rte_eth_dev_info

Thomas Monjalon thomas.monjalon at 6wind.com
Fri Jan 17 18:33:02 CET 2014


what about this title?
"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 at enea.com>
> 
[...]
> +	unsigned int if_index; /**< Index to bounded host interface, or 0 if
> none. Use if_indextoname() to translate into an interface name. */

I'd split this long line like this:
+	unsigned if_index; /**< Index to bounded host interface, or 0 if none.
+	         Use if_indextoname() to translate into an interface name. */

-- 
Thomas


More information about the dev mailing list