]> git.proxmox.com Git - mirror_ovs.git/commit
netdev-dpdk: Add link speed to get_status().
authorIan Stokes <ian.stokes@intel.com>
Thu, 25 Oct 2018 11:03:57 +0000 (12:03 +0100)
committerIan Stokes <ian.stokes@intel.com>
Fri, 2 Nov 2018 15:17:47 +0000 (15:17 +0000)
commit31154f9523f532373c539e7cfb544bda78402f26
tree773982a4d26057c67701de8b79001e54e45d8fac
parentdfcb5b8ad55ddf5e24d3c8976f9279f7e13c4f00
netdev-dpdk: Add link speed to get_status().

Report the link speed of the device in netdev_dpdk_get_status()
function.

Link speed is already reported as part of the netdev_get_features()
function. However only link speeds defined in the OpenFlow specs are
supported so speeds such as 25 Gbps etc. are not shown. The link
speed for the device is available in Mbps in rte_eth_link.
This commit converts the link speed for a given dpdk device to an
easy to read string and reports it in get_status().

Suggested-by: Flavio Leitner <fbl@sysclose.org>
Acked-by: Ilya Maximets <i.maximets@samsung.com>
Signed-off-by: Ian Stokes <ian.stokes@intel.com>
lib/netdev-dpdk.c