[ovs-git] [openvswitch/ovs] 57966b: datapath-windows: Release WFP allocated objects

GitHub noreply at github.com
Thu Jan 1 17:11:51 UTC 2015


  Branch: refs/heads/master
  Home:   https://github.com/openvswitch/ovs
  Commit: 57966ba360fcdc04ba3410c6e296300a2e8a6f64
      https://github.com/openvswitch/ovs/commit/57966ba360fcdc04ba3410c6e296300a2e8a6f64
  Author: Sorin Vinturis <svinturis at cloudbasesolutions.com>
  Date:   2015-01-01 (Thu, 01 Jan 2015)

  Changed paths:
    M datapath-windows/ovsext/TunnelFilter.c

  Log Message:
  -----------
  datapath-windows: Release WFP allocated objects

Filter and sublayer WFP objects are created when the filter attach routine
is called and the tunnel filter is initialized, and they are released
in the uninitialize part. But the release part is done indirectly, through
the FwpmEngineClose function call which releases the latter objects when
the tunnel is uninitialized at filter detach.

We need to properly release the created objects and not rely that
FwpmEngineClose function does this for us, because if we decide to keep
the engine opened passed the filter detach those objects will continue to
exist.

Even though the FwpmEngineClose function releases the latter objects, we
still need this and the reason will became obvious in the next patch.

Signed-off-by: Sorin Vinturis <svinturis at cloudbasesolutions.com>
Acked-by: Nithin Raju <nithin at vmware.com>
Signed-off-by: Ben Pfaff <blp at nicira.com>




More information about the git mailing list