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

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


  Branch: refs/heads/branch-2.4
  Home:   https://github.com/openvswitch/ovs
  Commit: 0bb0da3e6d10bddeb99d196e173e36cb18bd3328
      https://github.com/openvswitch/ovs/commit/0bb0da3e6d10bddeb99d196e173e36cb18bd3328
  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.

Ex.:
|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