ethdev: fix non-reconfigurable pmd init
authorThomas Monjalon <thomas.monjalon@6wind.com>
Fri, 13 Sep 2013 12:14:02 +0000 (14:14 +0200)
committerDavid Marchand <david.marchand@6wind.com>
Wed, 26 Feb 2014 10:07:28 +0000 (11:07 +0100)
commitbc786a4e413bcf221fafb9769251fafe3f8392ec
tree0500a8387d23efa9fff1601b619aabe6201afb8c
parente659b6b43928c33de7625cd62540cdfc55792f01
ethdev: fix non-reconfigurable pmd init

Some Poll-Mode Drivers (PMD) are not reconfigurable and,
thus, do not implement (rx|tx)_queue_release functions.
For these drivers, the functions rte_eth_dev_(rx|tx)_queue_config
must return an ENOTSUP error only when reconfiguring,
but not at initial configuration.

Move the FUNC_PTR_OR_ERR_RET check into the case of reconfiguration.

Signed-off-by: Thomas Monjalon <thomas.monjalon@6wind.com>
Acked-by: Ivan Boule <ivan.boule@6wind.com>
lib/librte_ether/rte_ethdev.c