From mboxrd@z Thu Jan 1 00:00:00 1970 From: Roland Dreier Subject: Re: [PATCH] net: Add etun driver Date: Fri, 06 Apr 2007 13:57:25 -0700 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Jeff Garzik , Andrew Morton , David Miller , , Alexey Kuznetsov , Ben Greear , Daniel Lezcano , Dmitry Mishin , Linux Containers To: ebiederm@xmission.com (Eric W. Biederman) Return-path: Received: from sj-iport-6.cisco.com ([171.71.176.117]:7582 "EHLO sj-iport-6.cisco.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932950AbXDFU5k (ORCPT ); Fri, 6 Apr 2007 16:57:40 -0400 In-Reply-To: (Eric W. Biederman's message of "Fri, 06 Apr 2007 14:43:15 -0600") Sender: netdev-owner@vger.kernel.org List-Id: netdev.vger.kernel.org > +/* > + * The higher levels take care of making this non-reentrant (it's > + * called with bh's disabled). > + */ > +static int etun_xmit(struct sk_buff *skb, struct net_device *tx_dev) You have this comment, but then... > + dev->features = NETIF_F_FRAGLIST > + | NETIF_F_HIGHDMA > + | NETIF_F_LLTX; you set LLTX, which means that the upper layers _don't_ make sure that your xmit routine is not reentrant. It looks like the impact of multiple simultaneous xmit calls is just the possibility of screwing up the statistics, but still I think you want to drop the LLTX feature (since you have no lock of your own to try and take).