In message <20030305125230.B525@almesberger.net>,Werner Almesberger writes:
>native ATM VCs, owned by atmarpd. When atmarpd clears them for IP
>traffic, all the data that has been queued so far (i.e. any ATMARP
>messages, and any IP - typically I'd expect to find a SYN there)
>is removed from the native ATM VC's queue, and fed into the non-ATM
>part of the stack, for de-encapsulation, etc.
while you could make skb_migrate() generic, in this case it doesnt
really need to be. since the dest list is on the stack you wouldn't
need to lock it -- only the source list. however, this whole migrate
thing makes me a bit nervous. you copy the pending data and then
requeue the data. what keeps data from arriving on the vcc while
you are reprocessing -- this could lead to out of order packet
arrival.
perhaps the recvq could be locked (to prevent new arrivals) and then
go through and feed the ip traffic to clip_vcc() leaving the atmarp
traffic in the queue. then, unlock and wakeup the vcc to force atmarp
to get the data pending for it (if any). this would prevent get
around the need to 'migrate' the data back and forth.
-
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/
This archive was generated by hypermail 2b29 : Fri Mar 07 2003 - 22:00:33 EST