examples/ethtool: fix driver information
authorQiming Yang <qiming.yang@intel.com>
Tue, 22 Nov 2016 01:41:24 +0000 (09:41 +0800)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Tue, 20 Dec 2016 17:22:03 +0000 (18:22 +0100)
commitbcb5b1af485bc2c3c327a5550cb3ca0f3d5c768b
treef528e1c4145272e36e742499de1971f2364c2093
parent6c66be9a769fdfeee3ca1d4c0d444e23402ce073
examples/ethtool: fix driver information

Function pcmd_drvinfo_callback uses struct info to get
the ethtool information of each port. Struct info will
store the information of previous port until this
information be updated. This patch fixes this issue.

Fixes: bda68ab9d1e7 ("examples/ethtool: add user-space ethtool sample application")

Signed-off-by: Qiming Yang <qiming.yang@intel.com>
Acked-by: Remy Horton <remy.horton@intel.com>
examples/ethtool/ethtool-app/ethapp.c