]> git.proxmox.com Git - mirror_ovs.git/blame - datapath-windows/ovsext/PacketIO.h
datapath-windows: Fix conntrack event handler
[mirror_ovs.git] / datapath-windows / ovsext / PacketIO.h
CommitLineData
c803536e
SS
1/*
2 * Copyright (c) 2014 VMware, Inc.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at:
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
fa1324c9
SG
17#ifndef __PACKETIO_H_
18#define __PACKETIO_H_ 1
c803536e
SS
19
20typedef union _OVS_PACKET_HDR_INFO OVS_PACKET_HDR_INFO;
21
22/*
23 * Data structures and utility functions to help manage a list of packets to be
24 * completed (dropped).
25 */
26typedef struct OvsCompletionList {
27 PNET_BUFFER_LIST dropNbl;
28 PNET_BUFFER_LIST *dropNblNext;
29 POVS_SWITCH_CONTEXT switchContext;
30 ULONG sendCompleteFlags;
31} OvsCompletionList;
32
33VOID OvsInitCompletionList(OvsCompletionList *completionList,
34 POVS_SWITCH_CONTEXT switchContext,
35 ULONG sendCompleteFlags);
36VOID OvsAddPktCompletionList(OvsCompletionList *completionList,
37 BOOLEAN incoming,
38 NDIS_SWITCH_PORT_ID sourcePort,
39 PNET_BUFFER_LIST netBufferList,
40 UINT32 netBufferListCount,
41 PNDIS_STRING filterReason);
42
43
44/*
45 * Functions related to packet processing.
46 */
47VOID OvsSendNBLIngress(POVS_SWITCH_CONTEXT switchContext,
48 PNET_BUFFER_LIST netBufferLists,
49 ULONG sendFlags);
50
fa1324c9 51#endif /* __PACKETIO_H_ */