summaryrefslogtreecommitdiff
path: root/network/netadaptercx/netvadapterlibrary/code/queue.h
blob: becb72ce48d9ae4dc728bd86a24a148d4b0735fd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
// Copyright (c) Microsoft Corporation. All rights reserved

#pragma once

class NetvAdapter;
struct ENLP_QUEUE;

class NetvQueue
{

public:

    NetvQueue(
        NETPACKETQUEUE Handle,
        NetvAdapter & Adapter,
        NET_RING_COLLECTION const * Rings
    );

    NET_RING *
    GetPacketRing(
        void
    );

    NET_RING *
    GetFragmentRing(
        void
    );

    NETPACKETQUEUE const
        m_handle{WDF_NO_HANDLE};

    NetvAdapter &
        m_adapter;

    NET_RING_COLLECTION const *
        m_rings;

    ENLP_QUEUE *
        EnlQueueHandle;

};