Received: with ECARTIS (v1.0.0; list netdev); Sat, 18 Dec 2004 13:01:26 -0800 (PST) Received: from b.mx.projectdream.org (eth0-0.arisu.projectdream.org [194.158.4.191]) by oss.sgi.com (8.13.0/8.13.0) with ESMTP id iBIL0wHs013062 for ; Sat, 18 Dec 2004 13:01:18 -0800 Received: from postel.suug.ch (unknown [195.134.158.23]) (using TLSv1 with cipher EDH-RSA-DES-CBC3-SHA (168/168 bits)) (No client certificate requested) by b.mx.projectdream.org (Postfix) with ESMTP id 3B704F; Sat, 18 Dec 2004 22:00:12 +0100 (CET) Received: by postel.suug.ch (Postfix, from userid 10001) id 087411C0EA; Sat, 18 Dec 2004 22:00:54 +0100 (CET) Date: Sat, 18 Dec 2004 22:00:54 +0100 From: Thomas Graf To: "David S. Miller" Cc: netdev@oss.sgi.com Subject: Re: [PATCH] PKT_SCHED: dsmark must take care of shared/cloned skbs Message-ID: <20041218210054.GI17998@postel.suug.ch> References: <20041218170017.GH17998@postel.suug.ch> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20041218170017.GH17998@postel.suug.ch> X-Virus-Scanned: ClamAV 0.80/627/Sun Dec 12 11:53:11 2004 clamav-milter version 0.80j on 127.0.0.1 X-Virus-Status: Clean X-archive-position: 12861 X-ecartis-version: Ecartis v1.0.0 Sender: netdev-bounce@oss.sgi.com Errors-to: netdev-bounce@oss.sgi.com X-original-sender: tgraf@suug.ch Precedence: bulk X-list: netdev > Correctly handle shared and cloned skbs by copying them before writing > and dequeue unwriteable skbs unchanged. Assumes that IP/IPv6 header > is always linear so no pulling required. Hmm.. OTOH, setting skb->tc_index in enqueue() might need a pskb_copy() in some cases. I'm not aware of such a path though, does anyone know about a path where it would be required? If so it would be better to make the skb writeable in enqueue() to safe a copy.