[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <47FF5EB9.2010108@trash.net>
Date: Fri, 11 Apr 2008 14:51:05 +0200
From: Patrick McHardy <kaber@...sh.net>
To: Jesper Dangaard Brouer <hawk@...u.dk>
CC: Stephen Hemminger <stephen.hemminger@...tta.com>,
netdev <netdev@...r.kernel.org>,
"David S. Miller" <davem@...emloft.net>
Subject: Re: [PATCH 2/7] ATM cell alignment.
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)<<cell_log);
> 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?
--
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