none
Sending multiple WSK_BUF to kernel socket function WsksendTo() RRS feed

  • Question

  • Hi All,

    Is there anyway to send multiple WSK_Buf to WskSendTo() function to improve performance..

    On the receive side WSK is offering WSK_DATA_INDICATION list to read multiple datagram packets in the callback, likewise i a looking on the send path.

    Thanks,

    Tuesday, June 16, 2020 5:43 PM

Answers

  • Hi, the WSK_BUF parameter's Mdl field can be a chain of MDLs.

    Wednesday, July 8, 2020 5:52 PM
  • I found the solution. 

    //
    // WSK_BUF list structure used for sending multiple datagrams
    // via a single call to WskSendMessages
    //

    typedef struct _WSK_BUF_LIST {
        struct _WSK_BUF_LIST *Next;
        WSK_BUF               Buffer;
    } WSK_BUF_LIST, *PWSK_BUF_LIST;

    Sunday, August 2, 2020 12:53 AM

All replies

  • Hi, the WSK_BUF parameter's Mdl field can be a chain of MDLs.

    Wednesday, July 8, 2020 5:52 PM
  • Hi,

    You are talking about chaining MDL. But i want to chain the WSK_BUF. So that i can issue one WSKSendTo for multiple WSK_BUF structures. Since the WSK_BUF has only one Offset and Length field, it can't be used to describe multiple MDL. 

    Saturday, August 1, 2020 9:00 PM
  • I found the solution. 

    //
    // WSK_BUF list structure used for sending multiple datagrams
    // via a single call to WskSendMessages
    //

    typedef struct _WSK_BUF_LIST {
        struct _WSK_BUF_LIST *Next;
        WSK_BUF               Buffer;
    } WSK_BUF_LIST, *PWSK_BUF_LIST;

    Sunday, August 2, 2020 12:53 AM