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

This patch fixes sink 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: eb5f4119b2bc ("port: add pcap file dump")

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