From: Aurelio <sk...@us...> - 2007-08-20 16:25:48
|
Update of /cvsroot/zyxel630-11/amedyn2/module In directory sc8-pr-cvs10.sourceforge.net:/tmp/cvs-serv21811 Modified Files: usbatm.c Log Message: >From Linux Kernel: [SK_BUFF]: Introduce skb_copy_from_linear_data{_offset} To clearly state the intent of copying from linear sk_buffs, _offset being a overly long variant but interesting for the sake of saving some bytes. http://git.kernel.org/?p=linux/kernel/git/stable/linux-2.6.22.y.git;a=commitdiff;h=d626f62b11e00c16e81e4308ab93d3f13551812a Index: usbatm.c =================================================================== RCS file: /cvsroot/zyxel630-11/amedyn2/module/usbatm.c,v retrieving revision 1.21 retrieving revision 1.22 diff -C2 -d -r1.21 -r1.22 *** usbatm.c 20 Aug 2007 16:16:16 -0000 1.21 --- usbatm.c 20 Aug 2007 16:25:49 -0000 1.22 *************** *** 557,561 **** ptr += ATM_CELL_HEADER; ! memcpy(ptr, skb->data, data_len); ptr += data_len; __skb_pull(skb, data_len); --- 557,561 ---- ptr += ATM_CELL_HEADER; ! skb_copy_from_linear_data(skb, ptr, data_len); ptr += data_len; __skb_pull(skb, data_len); |