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

GitHub noreply at github.com
Fri Jun 24 21:45:05 UTC 2016


  Branch: refs/heads/master
  Home:   https://github.com/openvswitch/ovs
  Commit: 1f5b157ece72c6ed346a48309b29ea0a2e1c0c63
      https://github.com/openvswitch/ovs/commit/1f5b157ece72c6ed346a48309b29ea0a2e1c0c63
  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