From 9bb99acfcab15b7cc454989e7f280ba3fa2855da Mon Sep 17 00:00:00 2001 From: Prathyusha Guduri Date: Wed, 2 May 2018 22:23:25 +0530 Subject: [PATCH] qcacmn: Add skb record rx queue to qdf API Add skb_record_rx_queue() wrapper in qdf Change-Id: Ic14e0a39d7d62bb404b443cc240b1ed0e5176119 --- qdf/inc/qdf_nbuf.h | 5 +++++ qdf/linux/src/i_qdf_nbuf.h | 14 ++++++++++++++ 2 files changed, 19 insertions(+) diff --git a/qdf/inc/qdf_nbuf.h b/qdf/inc/qdf_nbuf.h index ce5dc2082e59..a19cd004bed7 100644 --- a/qdf/inc/qdf_nbuf.h +++ b/qdf/inc/qdf_nbuf.h @@ -2866,6 +2866,11 @@ static inline void qdf_nbuf_set_priority(qdf_nbuf_t buf, uint32_t p) __qdf_nbuf_set_priority(buf, p); } +static inline void qdf_nbuf_record_rx_queue(qdf_nbuf_t buf, uint32_t queue_id) +{ + __qdf_nbuf_record_rx_queue(buf, queue_id); +} + static inline uint16_t qdf_nbuf_get_queue_mapping(qdf_nbuf_t buf) { diff --git a/qdf/linux/src/i_qdf_nbuf.h b/qdf/linux/src/i_qdf_nbuf.h index b0b002873cd5..14664a620fc9 100644 --- a/qdf/linux/src/i_qdf_nbuf.h +++ b/qdf/linux/src/i_qdf_nbuf.h @@ -1809,6 +1809,20 @@ __qdf_nbuf_mark_wakeup_frame(__qdf_nbuf_t buf) buf->mark |= QDF_MARK_FIRST_WAKEUP_PACKET; } +/** + * __qdf_nbuf_record_rx_queue() - set rx queue in skb + * + * @buf: sk buff + * @queue_id: Queue id + * + * Return: void + */ +static inline void +__qdf_nbuf_record_rx_queue(struct sk_buff *skb, uint16_t queue_id) +{ + skb_record_rx_queue(skb, queue_id); +} + /** * __qdf_nbuf_get_queue_mapping() - get the queue mapping set by linux kernel *