[ovs-git] [openvswitch/ovs] d07ac9: datapath-windows: Remove all duplicate checks for ...

GitHub noreply at github.com
Fri Nov 14 22:10:39 UTC 2014


  Branch: refs/heads/master
  Home:   https://github.com/openvswitch/ovs
  Commit: d07ac93e1e154b8a5c031ed2bad97ca8b95d7fc4
      https://github.com/openvswitch/ovs/commit/d07ac93e1e154b8a5c031ed2bad97ca8b95d7fc4
  Author: Sorin Vinturis <svinturis at cloudbasesolutions.com>
  Date:   2014-11-14 (Fri, 14 Nov 2014)

  Changed paths:
    M datapath-windows/ovsext/Datapath.c
    M datapath-windows/ovsext/Flow.c
    M datapath-windows/ovsext/User.c
    M datapath-windows/ovsext/Vport.c

  Log Message:
  -----------
  datapath-windows: Remove all duplicate checks for NULL.

Right now the gOvsSwitchContext pointer is checked against NULL
in a lot of places of the OVS extension code. This check should
be done only once to avoid wasteful checks. Thus I have added the
check in the dispatch routine, before doing any processing, and
removed all other checks from the rest of the code.

Signed-off-by: Sorin Vinturis <svinturis at cloudbasesolutions.com>
Acked-by: Eitan Eliahu <eliahue at vmware.com>
Signed-off-by: Ben Pfaff <blp at nicira.com>




More information about the git mailing list