[PKT_SCHED] dsmark: handle cloned and non-linear skb's
authorStephen Hemminger <shemminger@vyatta.com>
Mon, 21 Jan 2008 10:23:49 +0000 (02:23 -0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 28 Jan 2008 23:08:40 +0000 (15:08 -0800)
commit4c30719f4f550d9b3034d9c00da9cb7fb99e6c0b
treedb487b4ae184e7e6b90e2623c371f8a09edec830
parent5b0ac72bc5fdda9634fb07db4cb0237fa9b6df68
[PKT_SCHED] dsmark: handle cloned and non-linear skb's

Make dsmark work properly with non-linear and cloned skb's
Before modifying the header, it needs to check that skb header is
writeable.

Note: this makes the assumption, that if it queues a good skb
then a good skb will come out of the embedded qdisc.

Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sched/sch_dsmark.c