eal/bsd: fix ioport write operation
authorTiwei Bie <tiwei.bie@intel.com>
Sun, 7 May 2017 13:33:33 +0000 (13:33 +0000)
committerThomas Monjalon <thomas@monjalon.net>
Wed, 10 May 2017 13:57:17 +0000 (15:57 +0200)
commit3a6a04ec794465c786f789522d733dfa88451a18
tree02a5b5dadcdc53be7cb6a8af55281195e6dea4c3
parentf48a094b6105ce88c1d08fba0f0bf7b453bdaadd
eal/bsd: fix ioport write operation

The first param of out*() on FreeBSD is port, and the second one
is data. But they are reversed in DPDK. This patch fixes it.

Fixes: 756ce64b1ecd ("eal: introduce PCI ioport API")
Cc: stable@dpdk.org
Signed-off-by: Tiwei Bie <tiwei.bie@intel.com>
Acked-by: Bruce Richardson <bruce.richardson@intel.com>
lib/librte_eal/bsdapp/eal/eal_pci.c