[<prev] [next>] [day] [month] [year] [list]
Message-Id: <1214557114.8011.539.camel@pasglop>
Date: Fri, 27 Jun 2008 18:58:34 +1000
From: Benjamin Herrenschmidt <benh@...nel.crashing.org>
To: SathyaNarayanan <sathyan@...mf1.com>
Cc: Stefan Roese <sr@...x.de>, linuxppc-dev@...abs.org,
netdev@...r.kernel.org
Subject: Re: [PATCH] ibm_newemac: Fixes entry of short packets
>
>
> Actually , short packets are not allowed to flow through the higher
> layers, If any of the layer tried to use the extra room available may
> hit wit crash .
> Since it is a invalid packet it has to be dropped and freed in driver.
> Actually if you see in code, the other invalid packets are also
> handelled similar.
My point is they should not. The rx skb should be kept in the ring for
further rx (ie, the data ignored and re-use the skb). A bit like we do
when we decide the packet is small enough to be copied to a new skb.
Ie. Move you test above the threshold test and recycle the skb.
We need to fix the usage of the dma operations in this driver anyway
and this will make it easier as we'll be able to avoid re-mapping an
skb we just recycle. (the current driver never unmaps which means it
can't be used with an iommu, which is a problem on some cell based
platforms).
Ben.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists