Skip to content

Add RSS #1

@coolstar

Description

@coolstar

WIP RSS code for R8125. Different from R8168, but can add it with a check

for (size_t i = 0; i < indirectionEntries->Length; i++)
        {
            const ULONG queueId = RtGetRxQueueContext(indirectionEntries->Entries[i].PacketQueue)->QueueId;
            const UINT32 index = indirectionEntries->Entries[i].Index;

            const size_t bit = (index & 3) << 8;
            const UINT32 bitv = index & ~3;
            const UINT32 mask = ~((0xff) << bit);

            adapter->RssIndirectionTable[bitv] = (adapter->RssIndirectionTable[bitv] & mask) | (queueId << bit);
        }

        // we just blat the entire table, could be optimized further
        for (size_t i = 0; i < ARRAYSIZE(adapter->CSRAddress8125->RssIndirectionTable_8125); i++)
        {
            adapter->CSRAddress8125->RssIndirectionTable_8125[i] = adapter->RssIndirectionTable[i];
        }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions