port: fix pcap source parameter check
authorFan Zhang <roy.fan.zhang@intel.com>
Fri, 1 Apr 2016 13:41:55 +0000 (14:41 +0100)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Fri, 1 Apr 2016 21:08:25 +0000 (23:08 +0200)
commite1535fb7b8bf693fd9b703b1ead418bba8fd8fe1
tree4d89acbac920dd2589792d89ece105960b1cc987
parentb2feed01d6675e7918740db2028a0037e9af1c2d
port: fix pcap source parameter check

This patch fixes source port parameter checking logic.
Originally, if user set field "file_name" with meaning value
but leave PCAP support feature disabled, the program simply
ignores this field without notifying the user.

Fixes: d4b42133d85b ("port: add pcap file source")

Signed-off-by: Fan Zhang <roy.fan.zhang@intel.com>
Acked-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com>
lib/librte_port/rte_port_source_sink.c