diff options
author | Sairam Venugopal <vsairam@vmware.com> | 2015-10-26 16:48:40 -0700 |
---|---|---|
committer | Gurucharan Shetty <gshetty@nicira.com> | 2015-10-27 13:48:46 -0700 |
commit | cab433d0f3d96fd143e76b6fea21449ab7b89240 (patch) | |
tree | bc6206a87a4662b99b36c7156f8eb2777888710b /datapath-windows/ovsext/Switch.c | |
parent | 9a80ee1443134fe36d15c76bc77b567315f948f9 (diff) | |
download | openvswitch-cab433d0f3d96fd143e76b6fea21449ab7b89240.tar.gz |
datapath-windows: STT - Add support for TCP Segmentation Offload
Create and initialize the background thread and buffer that
assists in defragmenting and completing a TSO packet.
Signed-off-by: Sairam Venugopal <vsairam@vmware.com>
Acked-by: Nithin Raju <nithin@vmware.com>
Signed-off-by: Gurucharan Shetty <gshetty@nicira.com>
Diffstat (limited to 'datapath-windows/ovsext/Switch.c')
-rw-r--r-- | datapath-windows/ovsext/Switch.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/datapath-windows/ovsext/Switch.c b/datapath-windows/ovsext/Switch.c index f176fa09f..2878e9192 100644 --- a/datapath-windows/ovsext/Switch.c +++ b/datapath-windows/ovsext/Switch.c @@ -212,6 +212,12 @@ OvsCreateSwitch(NDIS_HANDLE ndisFilterHandle, goto create_switch_done; } + status = OvsInitSttDefragmentation(); + if (status != STATUS_SUCCESS) { + OVS_LOG_ERROR("Exit: Failed to initialize Stt Defragmentation"); + goto create_switch_done; + } + *switchContextOut = switchContext; create_switch_done: @@ -242,6 +248,7 @@ OvsExtDetach(NDIS_HANDLE filterModuleContext) } OvsDeleteSwitch(switchContext); OvsCleanupIpHelper(); + OvsCleanupSttDefragmentation(); /* This completes the cleanup, and a new attach can be handled now. */ OVS_LOG_TRACE("Exit: OvsDetach Successfully"); |