[dpdk-dev] [PATCH 03/10] igb_uio: dont wrap pci_num_vf function needlessly

2014-07-23 Thread Thomas Monjalon
2014-07-18 09:14, Stephen Hemminger: > /* sriov sysfs */ > -int local_pci_num_vf(struct pci_dev *dev) > -{ > #if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,34) > +static int pci_num_vf(struct pci_dev *dev) > struct iov { > int pos; > int nres; A brace is missing he

[dpdk-dev] [PATCH 03/10] igb_uio: dont wrap pci_num_vf function needlessly

2014-07-18 Thread Stephen Hemminger
It is better style to just use the pci_num_vf directly, rather than wrapping it with a local (but globally named) function with the same effect. Signed-off-by: Stephen Hemminger --- a/lib/librte_eal/linuxapp/igb_uio/igb_uio.c 2014-06-19 14:29:57.587687790 -0700 +++ b/lib/librte_eal/linuxapp/ig