All of lore.kernel.org
 help / color / mirror / Atom feed
From: Aditya Shankar <aditya.shankar@microchip.com>
To: <gregkh@linuxfoundation.org>, <linux-wireless@vger.kernel.org>
Cc: <devel@driverdev.osuosl.org>, <Ganesh.Krishna@microchip.com>,
	Aditya Shankar <aditya.shankar@microchip.com>
Subject: [PATCH v2 1/8] staging: wilc1000: Add support for AC classification.
Date: Mon, 26 Jun 2017 17:13:23 +0530	[thread overview]
Message-ID: <1498477410-19518-2-git-send-email-aditya.shankar@microchip.com> (raw)
In-Reply-To: <1498477410-19518-1-git-send-email-aditya.shankar@microchip.com>

This patch adds new variables and defines for adding access
category classification

Signed-off-by: Aditya Shankar <aditya.shankar@microchip.com>
---
 drivers/staging/wilc1000/wilc_wlan.h | 25 +++++++++++++++++++++++++
 1 file changed, 25 insertions(+)

diff --git a/drivers/staging/wilc1000/wilc_wlan.h b/drivers/staging/wilc1000/wilc_wlan.h
index 7a5eba9..c97f94a 100644
--- a/drivers/staging/wilc1000/wilc_wlan.h
+++ b/drivers/staging/wilc1000/wilc_wlan.h
@@ -133,6 +133,17 @@
 
 #define MODALIAS		"WILC_SPI"
 #define GPIO_NUM		0x44
+
+#define NQUEUES			4
+#define VO_AC_COUNT_POS		25
+#define VO_AC_ACM_STAT_POS	24
+#define VI_AC_COUNT_POS		17
+#define VI_AC_ACM_STAT_POS	16
+#define BE_AC_COUNT_POS		9
+#define BE_AC_ACM_STAT_POS	8
+#define BK_AC_COUNT_POS		2
+#define BK_AC_ACM_STAT_POS	1
+#define AC_BUFFER_SIZE		1000
 /*******************************************/
 /*        E0 and later Interrupt flags.    */
 /*******************************************/
@@ -206,11 +217,25 @@ typedef void (*wilc_debug_func)(u32, char *, ...);
  *      Tx/Rx Queue Structure
  *
  ********************************************/
+struct txq_handle {
+	struct txq_entry_t *txq_head;
+	struct txq_entry_t *txq_tail;
+	u16 count;
+	u8 acm;
+};
+
+enum ip_pkt_priority {
+	AC_VO_Q = 0,
+	AC_VI_Q = 1,
+	AC_BE_Q = 2,
+	AC_BK_Q = 3
+};
 
 struct txq_entry_t {
 	struct txq_entry_t *next;
 	struct txq_entry_t *prev;
 	int type;
+	u8 q_num;
 	int tcp_pending_ack_idx;
 	u8 *buffer;
 	int buffer_size;
-- 
2.7.4

  reply	other threads:[~2017-06-26 11:44 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-06-26 11:43 [PATCH v2 0/8] Enable access category classification on Tx path Aditya Shankar
2017-06-26 11:43 ` Aditya Shankar [this message]
2017-06-26 11:43 ` [PATCH v2 2/8] staging: wilc1000: Add function to calculate ac queue limit Aditya Shankar
2017-06-26 11:43 ` [PATCH v2 3/8] staging: wilc1000: WMM classification of data Aditya Shankar
2017-06-26 11:43 ` [PATCH v2 4/8] staging: wilc1000: Add function to balance packet count Aditya Shankar
2017-06-26 11:43 ` [PATCH v2 5/8] staging: wilc1000: Add new variable for ac queue management Aditya Shankar
2017-06-29 14:38   ` Greg KH
2017-06-26 11:43 ` [PATCH v2 6/8] staging: wilc1000: Get packet count from firmware Aditya Shankar
2017-06-26 11:43 ` [PATCH v2 7/8] staging: wilc1000: Change ac based on acm status Aditya Shankar
2017-06-26 11:43 ` [PATCH v2 8/8] staging: wilc1000: Update ACM bit status Aditya Shankar

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1498477410-19518-2-git-send-email-aditya.shankar@microchip.com \
    --to=aditya.shankar@microchip.com \
    --cc=Ganesh.Krishna@microchip.com \
    --cc=devel@driverdev.osuosl.org \
    --cc=gregkh@linuxfoundation.org \
    --cc=linux-wireless@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.