[ovs-git] [openvswitch/ovs] 7c305c: dpif-netdev: Skip invoking qsort on empty list.

GitHub noreply at github.com
Tue Jun 20 02:35:03 UTC 2017


  Branch: refs/heads/branch-2.7
  Home:   https://github.com/openvswitch/ovs
  Commit: 7c305c9c57ba33f699bd3657f28c7bdc10d0afa2
      https://github.com/openvswitch/ovs/commit/7c305c9c57ba33f699bd3657f28c7bdc10d0afa2
  Author: Bhanuprakash Bodireddy <bhanuprakash.bodireddy at intel.com>
  Date:   2017-06-20 (Tue, 20 Jun 2017)

  Changed paths:
    M lib/dpif-netdev.c

  Log Message:
  -----------
  dpif-netdev: Skip invoking qsort on empty list.

sorted_poll_list() returns the sorted list of rxqs mapped to PMD thread
along with the rxq count. Skip sorting the list if there are no rxqs
mapped to the PMD thread. This can be reproduced with manual pinning and
'dpif-netdev/pmd-rxq-show' command.

Also Clang reports that null argument is passed to qsort in this case.

Signed-off-by: Bhanuprakash Bodireddy <bhanuprakash.bodireddy at intel.com>
Signed-off-by: Ben Pfaff <blp at ovn.org>


  Commit: dd737eae4063d404b0f1bc932ef930c6318537a7
      https://github.com/openvswitch/ovs/commit/dd737eae4063d404b0f1bc932ef930c6318537a7
  Author: Bhanuprakash Bodireddy <bhanuprakash.bodireddy at intel.com>
  Date:   2017-06-20 (Tue, 20 Jun 2017)

  Changed paths:
    M lib/dpctl.c

  Log Message:
  -----------
  dpctl: Skip invoking qsort on empty list

Clang reports "Argument with 'nonnull' attribute passed null" warning.

Signed-off-by: Bhanuprakash Bodireddy <bhanuprakash.bodireddy at intel.com>
Signed-off-by: Ben Pfaff <blp at ovn.org>


Compare: https://github.com/openvswitch/ovs/compare/c6fda16450d5...dd737eae4063


More information about the git mailing list