Realtek 8168 with kernel 3.2.*

Since kernel version 3.2 my network driver doesn’t compile anymore. I downloaded the latest version from Realtek and made the following change in r8168_n.c:

addr = ((void *) page_address(frag->page)) + frag->page_offset;

to

addr = ((void *) page_address(&frag->page)) + frag->page_offset;

After this change the driver compiled and worked again.

 

Leave a Comment