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/