Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add RSS #1

Open
coolstar opened this issue May 5, 2024 · 0 comments
Open

Add RSS #1

coolstar opened this issue May 5, 2024 · 0 comments

Comments

@coolstar
Copy link
Owner

coolstar commented May 5, 2024

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];
        }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant