net/i40e/base: add link speed convert function
authorQi Zhang <qi.z.zhang@intel.com>
Tue, 9 Jan 2018 20:30:07 +0000 (15:30 -0500)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 16 Jan 2018 17:47:49 +0000 (18:47 +0100)
commit71f2b5df1dcb8ac380209d21e67e4c9e3ae7cb3f
treeaf2b7dd655741ec18df12e9d9e9e32bbe19bcfdc
parent7de1dafad2159b9fc137de523eccf60760748ca1
net/i40e/base: add link speed convert function

Introduce a helper function which can convert the AdminQ link speed
definition into a virtchnl definition. This can then be used by host
driver implementations in order to safely convert to the interface
recognized by the virtual functions.

Signed-off-by: Qi Zhang <qi.z.zhang@intel.com>
Acked-by: Beilei Xing <beilei.xing@intel.com>
drivers/net/i40e/base/i40e_prototype.h