From owner-freebsd-wireless@FreeBSD.ORG Mon Sep 2 17:56:14 2013 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 2A6088AE for ; Mon, 2 Sep 2013 17:56:14 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-pb0-x229.google.com (mail-pb0-x229.google.com [IPv6:2607:f8b0:400e:c01::229]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id EB1D92685 for ; Mon, 2 Sep 2013 17:56:13 +0000 (UTC) Received: by mail-pb0-f41.google.com with SMTP id rp2so5006554pbb.14 for ; Mon, 02 Sep 2013 10:56:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=BFWKhQY3EzJjAh1io/55Am6b5O3Q/+TVC+HoOo6EE8k=; b=h7O61O0Lh+tweN3JKAjki8U5FxI9ENvVo3ZQkmnEO7HvRC6GsVh4FACx1rHC8EmNkK uhehw+MVnVrbdrhnw0LS8BVrleT2RFf4s2DFiUX5WuDJsbicV4ILf3SGRGisMxMIXtPj RcfAADJIca0pAtKoU7cuuPn0qSgtwr6erHr21yOEVU/Kif9PAGSxDEfbW3hwRcacI3xJ 8NPrU2rSTGYVmt1tMmFud5FGoX5DvBVC4KokFQheAz+sjR0hOQr3664kabLOeTVbJ0/o VcesYgx+Iu5JVAQv/LmnB8ysoDvrACxomeRMVXVKpdk2djuzBSr9rSK2moBLqF8X6VZT 6O9g== MIME-Version: 1.0 X-Received: by 10.68.254.166 with SMTP id aj6mr3181746pbd.193.1378144573322; Mon, 02 Sep 2013 10:56:13 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.70.126.71 with HTTP; Mon, 2 Sep 2013 10:56:13 -0700 (PDT) In-Reply-To: References: Date: Mon, 2 Sep 2013 10:56:13 -0700 X-Google-Sender-Auth: CpSxqoa811K_IWSLC6movD97Z40 Message-ID: Subject: Re: Chenchong's work on net80211_ratectl From: Adrian Chadd To: Chenchong Qin Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 Cc: "freebsd-wireless@freebsd.org" X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 02 Sep 2013 17:56:14 -0000 Hi! You can declare an mbuf tag and use that. Look at M_TXCB in net80211 and how mbuf tags are added. I've long thought about adding a net80211 mbuf tag to represent -all- of the tx related state - TX callback, rate control, rate completion, aggregation state, retry count, etc. That way all the drivers can use it. -adrian