It looks like you have borrowed your code from the rtl8139 ethdbg so the message is quite clear: KITL wants to have a
DMA buffer with 0x10000 size while your code claims that a DMA buffer for your adapter must be at least 0x182010. This size is defined in the code as MIN_DMA_SIZE and the comments explain how it is computed. You can ...