On Thu, 2014-10-16 at 02:17 +0000, Jiafei.Pan@xxxxxxxxxxxxx wrote: > Thanks for your comments and suggestion. In my case, I want to build skb > from hardware block specified memory, I only can see two ways, one is modified > net card driver replace common skb allocation function with my specially > functions, another way is to hack common skb allocation function in which > redirect to my specially functions. My patch is just for the second way. > Except these two ways, would you please give me some advice for some other > ways for my case? Thanks I suggest you read drivers/net/ethernet numerous examples. No need to change anything in net/* or include/*, really. For a start, look at drivers/net/ethernet/intel/igb/igb_main.c Mentioning 'hack' in your mails simply should hint you are doing something very wrong. What makes you think your hardware is so special ? -- To unsubscribe from this list: send the line "unsubscribe linux-doc" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html