Re: can i increase alloc_skb size in TCP layer?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, May 09, 2004 at 08:59:39AM -0000, bunty  wrote:
>   hi,
>       i want to increase skbuff size can it be possible? there is
> skb = alloc_skb(size, GFP_KERNEL);
>   statement in kernel source. i want to change size variable by increasing its
> value.
>       i have not yet tried it. cause i want suggestions fron kernelnewbies if
> any body has done it already.
> 

I have done it before and it works.

The main thing to check, at least on the platform I worked with the
allocation came from the slabs and thus was limited to a power of 2, so
if you pass the 2048 Byte you got 4096. I don't remember if that is
also the case on i386 (or whatever platform you are working on) so you
should check that (although if you are not doing embedded it shouldn't
be much of a issue).

> regards,
> parag
> 
> 
> 
> _[_h_t_t_p_:_/_/_a_d_s_._r_e_d_i_f_f_._c_o_m_/_R_e_a_l_M_e_d_i_a_/_a_d_s_/_a_d_s_t_r_e_a_m___n_x_._c_g_i_/_w_w_w_._r_e_d_i_f_f_m_a_i_l_._c_o_m_/
> _i_n_b_o_x_._h_t_m_@_B_o_t_t_o_m_]
> +++++++++++++++++++++++++++++++++++++++++++
> This Mail Was Scanned By Mail-seCure System
> at the Tel-Aviv University CC.

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/



[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux