qcacmn: Add support in DP for enabling multiqueue support
Enable multiqueue on VAP with 4 Tx and Rx queues in lithium. In Rx path set the rx queue of skb based on the reo ring id on which it is received. In Tx path use the queue_mapping of skb to map to the hardware Tx ring on which it has to be transmitted. Change-Id: I103a21e91d1ed5c0e1d8441863d4fcd273b7bed9
This commit is contained in:

committed by
nshrivas

parent
9bb99acfca
commit
02ed94801a
@@ -23,6 +23,20 @@
|
||||
#include "dp_tx.h"
|
||||
#include "dp_internal.h"
|
||||
|
||||
#ifdef TX_PER_PDEV_DESC_POOL
|
||||
#ifdef QCA_LL_TX_FLOW_CONTROL_V2
|
||||
#define DP_TX_GET_DESC_POOL_ID(vdev) (vdev->vdev_id)
|
||||
#else /* QCA_LL_TX_FLOW_CONTROL_V2 */
|
||||
#define DP_TX_GET_DESC_POOL_ID(vdev) (vdev->pdev->pdev_id)
|
||||
#endif /* QCA_LL_TX_FLOW_CONTROL_V2 */
|
||||
#define DP_TX_GET_RING_ID(vdev) (vdev->pdev->pdev_id)
|
||||
#else
|
||||
#ifdef TX_PER_VDEV_DESC_POOL
|
||||
#define DP_TX_GET_DESC_POOL_ID(vdev) (vdev->vdev_id)
|
||||
#define DP_TX_GET_RING_ID(vdev) (vdev->pdev->pdev_id)
|
||||
#endif /* TX_PER_VDEV_DESC_POOL */
|
||||
#endif /* TX_PER_PDEV_DESC_POOL */
|
||||
|
||||
/**
|
||||
* 21 bits cookie
|
||||
* 2 bits pool id 0 ~ 3,
|
||||
|
Reference in New Issue
Block a user