Problems with skb_copy

Johnny Choque (jchoque@tlmat.unican.es)
Fri, 5 Apr 2002 18:57:47 +0200


Hi all !

I'm programming a module at kernel level. For each socket_buffer
arriving to my module, I have to create one or more new socket_buffers that
must be identical to the original one, but the original socket buffer's data
field must be divided into as many fragments as new socket buffers have to
be created. Each fragment must be copied into each new socket buffer's data
field. Then I send them by the wireless channel and finally rebuild the
original at the receiver.

To accomplish this, I have used the skb_copy function. The problem is
that when I'm sending UDP packets using the nttcp tool, only more or less
half of them achieve the transmitter pcmcia card's driver, whatever the
number of sent packets is (always over 1000 packets). And, of course, only
half of them arrive to the receiver.

I have also tried to clone the packets (using the skb_clone function)
instead of copy them, but the problem persists.

Does anyone know what the solution is? Has anyone have any problem using
either skb_copy or skb_clone functions ?

Thanks in advanced.
Best regards.

PD: Using counter variables I have notice that the packets are dropped in
the
net_device but I don't kown neither why nor where.

----------------------------------------
Johnny Choque
University of Cantabria
Department of Communications Engineering
39005 Santander - Spain

Phone: +34-942-201387
Fax : +34-942-201488

E-mail: jchoque@tlmat.unican.es
----------------------------------------

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/