[ovs-git] [openvswitch/ovs] dcb9f9: netdev-dpdk: Fix using uninitialized link_status.

GitHub noreply at github.com
Fri Jun 24 21:44:49 UTC 2016

  Branch: refs/heads/branch-2.5
  Home:   https://github.com/openvswitch/ovs
  Commit: dcb9f93609ef537ab423d5690548a01950c445c5
  Author: Ilya Maximets <i.maximets at samsung.com>
  Date:   2016-06-24 (Fri, 24 Jun 2016)

  Changed paths:
    M lib/netdev-dpdk.c

  Log Message:
  netdev-dpdk: Fix using uninitialized link_status.

'rte_eth_link_get_nowait()' works only with physical ports.
In case of vhost-user port, 'link' will stay uninitialized and there
will be random messages in log about link status.

|dpdk(dpdk_watchdog2)|DBG|Port -1 Link Up - speed 10000 Mbps - full-duplex

Fix that by calling 'check_link_status()' only for physical ports.

Signed-off-by: Ilya Maximets <i.maximets at samsung.com>
Acked-by: Aaron Conole <aconole at redhat.com>
Acked-by: Daniele Di Proietto <diproiettod at vmware.com>

More information about the git mailing list