From mboxrd@z Thu Jan 1 00:00:00 1970 From: Patrick McHardy Subject: Re: [PATCH 2/7] ATM cell alignment. Date: Fri, 11 Apr 2008 14:51:05 +0200 Message-ID: <47FF5EB9.2010108@trash.net> References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit Cc: Stephen Hemminger , netdev , "David S. Miller" To: Jesper Dangaard Brouer Return-path: Received: from stinky.trash.net ([213.144.137.162]:53601 "EHLO stinky.trash.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758030AbYDKMvJ (ORCPT ); Fri, 11 Apr 2008 08:51:09 -0400 In-Reply-To: Sender: netdev-owner@vger.kernel.org List-ID: Jesper Dangaard Brouer wrote: > @@ -87,6 +111,16 @@ int tc_calc_rtable(struct tc_ratespec *r, __u32 > *rtab, int cell_log, unsigned mt > unsigned sz = ((i+1)< if (sz < mpu) > sz = mpu; > + switch (linklayer) { > + case LINKLAYER_ATM: > + sz = tc_align_to_atm(sz); > + break; > + case LINKLAYER_ETHERNET: > + // No size adjustments on Ethernet > + break; Couldn't this use the ARPHRD values?