| To: | Thomas Graf <tgraf@xxxxxxx> |
|---|---|
| Subject: | Re: [PATCH] PKT_SCHED: dsmark must take care of shared/cloned skbs |
| From: | Patrick McHardy <kaber@xxxxxxxxx> |
| Date: | Mon, 20 Dec 2004 09:06:06 +0100 |
| Cc: | jamal <hadi@xxxxxxxxxx>, "David S. Miller" <davem@xxxxxxxxxxxxx>, netdev@xxxxxxxxxxx |
| In-reply-to: | <20041219203641.GL17998@xxxxxxxxxxxxxx> |
| References: | <20041218170017.GH17998@xxxxxxxxxxxxxx> <1103487827.1048.188.camel@xxxxxxxxxxxxxxxx> <20041219203641.GL17998@xxxxxxxxxxxxxx> |
| Sender: | netdev-bounce@xxxxxxxxxxx |
| User-agent: | Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040413 Debian/1.6-5 |
Thomas Graf wrote: * jamal <1103487827.1048.188.camel@xxxxxxxxxxxxxxxx> 2004-12-19 15:23If the qdisc at that level muddies the packet thats fair game - thats what goes out on the wire. So we should leave the code as is.Agreed for egress but I think it is needed for stuff like IMQ. It's debatable whether we should take care of IMQ and alike though. You shouldn't care about IMQ, but we still need to copy the packet before modifying it if the data is shared. Otherwise we have a race on SMP with AF_PACKET sockets, depending on when the packet is read it can be either modified or not. Converting dsmark to an action sounds like the best long-term solution. Regards Patrick |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Required resources on network driver programming, linux lover |
|---|---|
| Next by Date: | Re: [PATCH] PKT_SCHED: Fix cls indev validation, Patrick McHardy |
| Previous by Thread: | Re: [PATCH] PKT_SCHED: dsmark must take care of shared/cloned skbs, Thomas Graf |
| Next by Thread: | Re: [PATCH] PKT_SCHED: dsmark must take care of shared/cloned skbs, jamal |
| Indexes: | [Date] [Thread] [Top] [All Lists] |