From owner-freebsd-net@FreeBSD.ORG Fri Feb 1 00:48:34 2013 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id EF7DF300 for ; Fri, 1 Feb 2013 00:48:34 +0000 (UTC) (envelope-from ksramanujan@gmail.com) Received: from mail-ia0-x22d.google.com (ia-in-x022d.1e100.net [IPv6:2607:f8b0:4001:c02::22d]) by mx1.freebsd.org (Postfix) with ESMTP id 9A193E9E for ; Fri, 1 Feb 2013 00:48:34 +0000 (UTC) Received: by mail-ia0-f173.google.com with SMTP id h37so326310iak.32 for ; Thu, 31 Jan 2013 16:48:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; bh=Nks55rUYdCOKBp7LLxv/hOB4ltYNSBUINtZZv5bkzNg=; b=mXaDa88f6XAThowof1GGUZu7Y53ty5nawoNJqxmORm6ipsHF0W4yMeJGmizdrlxnwK RKfqfe3Y5DjjIrDii7ZNHI1sm3WjK7xXRLhhM0QH/+5XsZhebAqXSAdCSLUMZBR1rjes p+1d4kSPjX0N9LiA+/f/TcXLvZfANc2qZM6hMBVJqFfGwV3n2aRk2yOPcr6UpUqG9b2A 9fvQxjIwww2N3gaYzZRLzS6+YN2SHyymfVfAldA1ZTGJxkozhdlIoymm0P3jVgkf2enx acJvyvzI38QNt06IMa+FS3kW/V6bo1G0IEc7IV1Rc9HyXQWc+cPoUpr0CB38ASe5z60l ZqeQ== MIME-Version: 1.0 X-Received: by 10.50.42.200 with SMTP id q8mr2684015igl.102.1359679714138; Thu, 31 Jan 2013 16:48:34 -0800 (PST) Received: by 10.64.53.100 with HTTP; Thu, 31 Jan 2013 16:48:33 -0800 (PST) In-Reply-To: References: Date: Thu, 31 Jan 2013 19:48:33 -0500 Message-ID: Subject: Re: Block ACK in Ralink RT2860 From: Ramanujan Seshadri To: PseudoCylon Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 Cc: freebsd-net@freebsd.org X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Feb 2013 00:48:35 -0000 I am testing the driver code witht he ralink nic. Yes the frame aggregation works, since i get higher throughput. I am actually tryign to know how many frames (MPDU's) are aggregated each time in an AMPDU. Regarding the MPDU density - i was wondering how it should affect the Frame aggregation. Since MPDU density is the time duration between each MPDU sent within the AMPDU. So, how does this matter to the hardware for aggregating the number of frames. It just sends MPDU's with the set interval. The other two limits make sense, the BAWinSize and the MAX_LEN_CFG. Ram On Wed, Jan 30, 2013 at 5:45 PM, PseudoCylon wrote: > On Wed, Jan 30, 2013 at 1:20 PM, Ramanujan Seshadri > wrote: > > Thank you. I also wanted to know the function where the Block ACK Window > > will be decided. is it decided during the ADDBA session establishment or > > does it change dynamically. > > The hardware will aggregate packets until any of following limits hit max > http://fxr.watson.org/fxr/source/dev/ral/rt2860reg.h#L782 > * rt2860_txwi.flags > RT2860_TX_MPDU_DSITY_SHIFT > 000 == no restriction > 001 == 1/4 us > 010 == 1/2 us > ... > 111 == 16 us > * rt2860_txwi.xflags > RT2860_TX_BAWINSIZE_SHIFT (frame count) > > http://fxr.watson.org/fxr/source/dev/ral/rt2860reg.h#L93 > * RT2860_MAX_LEN_CFG bit 12:13 > 00 == 8k bytes > 01 == 16k > 10 == 32k > 11 == 64k > > At a quick look, none of them is set in current code. Also, > RT2860_TX_AMPDU flag need to be set to make the h/w aggregate packets. > > How is ampdu working on ral(4)? I cannot test because I do not have > any ral(4) nic (only have run(4) nics). > > > AK > > > > > > > On Thu, Jan 24, 2013 at 5:13 PM, PseudoCylon > > wrote: > >> > >> > Message: 6 > >> > Date: Thu, 24 Jan 2013 12:23:55 -0500 > >> > From: Ramanujan Seshadri > >> > To: freebsd-net@freebsd.org > >> > Subject: Block ACK in Ralink RT2860 > >> > Message-ID: > >> > > >> > > >> > Content-Type: text/plain; charset=ISO-8859-1 > >> > > >> > Hi all, > >> > I am trying to read the contents of block ack's in a Ralink RT2860 > >> > driver. > >> > Can you please help me to know which function i should be looking > into ? > >> > >> At default, all BA packets are dropped by h/w. Clear RT2860_DROP_BA flag > >> at > >> http://fxr.watson.org/fxr/source/dev/ral/rt2860.c#L3559 > >> > >> Then, the diver should receive BA packets, and you can read them. > >> > >> > >> AK > > > > >