diff options
author | Daniele Di Proietto <diproiettod@vmware.com> | 2015-07-16 19:48:23 +0100 |
---|---|---|
committer | Ethan Jackson <ethan@nicira.com> | 2015-07-21 12:01:37 -0700 |
commit | 4b8df0378747a83ec2478ded1e9cefe64d6a9f86 (patch) | |
tree | e8109d69ac527bfe62781d7ca15f9beafe8f748b /lib/dpif-netlink.c | |
parent | 24496b4ac2dda14f99fc64e7f68c19b7af27a4c1 (diff) | |
download | openvswitch-4b8df0378747a83ec2478ded1e9cefe64d6a9f86.tar.gz |
netdev-dpdk: Restore txq/rxq number if initialization fails.
netdev_dpdk_set_multiq() should not set the number of configured rxq
and txq if the driver initialization fails (meaning that the driver
failed to setup the queues). Otherwise, on a subsequent call to
netdev_dpdk_set_multiq(), the code may believe that the queues have
already been setup and there's no work to be done.
This commit fixes the problem by restoring the old values if
dpdk_eth_dev_init() fails.
Reported-by: Ian Stokes <ian.stokes@intel.com>
Tested-by: Ian Stokes <ian.stokes@intel.com>
Signed-off-by: Daniele Di Proietto <diproiettod@vmware.com>
Signed-off-by: Ethan Jackson <ethan@nicira.com>
Acked-by: Ethan Jackson <ethan@nicira.com>
Diffstat (limited to 'lib/dpif-netlink.c')
0 files changed, 0 insertions, 0 deletions