[ovs-git] [openvswitch/ovs] d95a8d: netdev-dpdk: Fix flow control configuration.

GitHub noreply at github.com
Wed Jan 16 12:12:57 UTC 2019


  Branch: refs/heads/branch-2.9
  Home:   https://github.com/openvswitch/ovs
  Commit: d95a8d2b0bd66d21a358c881c39c399ad465df6d
      https://github.com/openvswitch/ovs/commit/d95a8d2b0bd66d21a358c881c39c399ad465df6d
  Author: Sugesh Chandran <sugesh.chandran at intel.com>
  Date:   2019-01-16 (Wed, 16 Jan 2019)

  Changed paths:
    M lib/netdev-dpdk.c

  Log Message:
  -----------
  netdev-dpdk: Fix flow control configuration.

Currently devices that do not support configuring flow control via the eth_dev
API (e.g. SRIOV VFs) will fail during configuration setup when the interface
is added even if flow control is not requested. This is due to
rte_eth_dev_flow_ctrl_get() being called regardless of whether a flow
control configuration is required.

Fix this by moving the rte_eth_dev_flow_ctrl_get() call to be part of
the control block that avoids configuring flow control when no change
has occurred.

Fixes: 413c85a24353 ("netdev-dpdk: Fix failure to configure flow control at netdev-init.")
Reported-by: liang-min.wang at intel.com
Signed-off-by: Sugesh Chandran <sugesh.chandran at intel.com>
Co-authored-by: Ian Stokes <ian.stokes at intel.com>
Signed-off-by: Ian Stokes <ian.stokes at intel.com>
Acked-by: Tiago Lam <tiago.lam at intel.com>
Tested-by: Tiago Lam <tiago.lam at intel.com>



      **NOTE:** This service has been marked for deprecation: https://developer.github.com/changes/2018-04-25-github-services-deprecation/

      Functionality will be removed from GitHub.com on January 31st, 2019.


More information about the git mailing list