summaryrefslogtreecommitdiff
path: root/drivers/net/qede/qede_rxtx.c
diff options
context:
space:
mode:
authorRasesh Mody <rasesh.mody@cavium.com>2017-09-18 18:29:47 -0700
committerFerruh Yigit <ferruh.yigit@intel.com>2017-10-06 02:49:48 +0200
commit6e4fcea92f40de2306dcd9e0668cae90947823ae (patch)
tree3a734ecc8e0cff74fd68abc76245e1d72d56a17c /drivers/net/qede/qede_rxtx.c
parenta90c566f43a57aca64d359b252ee167a39ad6c4a (diff)
downloaddpdk-6e4fcea92f40de2306dcd9e0668cae90947823ae.zip
dpdk-6e4fcea92f40de2306dcd9e0668cae90947823ae.tar.gz
dpdk-6e4fcea92f40de2306dcd9e0668cae90947823ae.tar.xz
net/qede/base: interchangeably use SB between PF and VF
Status Block reallocation - allow a PF and its child VF to change SB between them using new base driver APIs. The changes that are inside base driver flows are: New APIs ecore_int_igu_reset_cam() and ecore_int_igu_reset_cam_default() added to reset IGU CAM. a. During hw_prepare(), driver would re-initialize the IGU CAM. b. During hw_stop(), driver would initialize the IGU CAM to default. Use igu_sb_id instead of sb_idx [protocol index] to allow setting of the timer-resolution in CAU[coalescing algorithm unit] for all SBs, sb_idx could limit SBs 0-11 only to be able change their timer-resolution. Signed-off-by: Rasesh Mody <rasesh.mody@cavium.com>
Diffstat (limited to 'drivers/net/qede/qede_rxtx.c')
-rw-r--r--drivers/net/qede/qede_rxtx.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/qede/qede_rxtx.c b/drivers/net/qede/qede_rxtx.c
index 5c3613c..8ce89e5 100644
--- a/drivers/net/qede/qede_rxtx.c
+++ b/drivers/net/qede/qede_rxtx.c
@@ -555,7 +555,7 @@ qede_rx_queue_start(struct rte_eth_dev *eth_dev, uint16_t rx_queue_id)
params.queue_id = rx_queue_id / edev->num_hwfns;
params.vport_id = 0;
params.stats_id = params.vport_id;
- params.sb = fp->sb_info->igu_sb_id;
+ params.p_sb = fp->sb_info;
DP_INFO(edev, "rxq %u igu_sb_id 0x%x\n",
fp->rxq->queue_id, fp->sb_info->igu_sb_id);
params.sb_idx = RX_PI;
@@ -614,7 +614,7 @@ qede_tx_queue_start(struct rte_eth_dev *eth_dev, uint16_t tx_queue_id)
params.queue_id = tx_queue_id / edev->num_hwfns;
params.vport_id = 0;
params.stats_id = params.vport_id;
- params.sb = fp->sb_info->igu_sb_id;
+ params.p_sb = fp->sb_info;
DP_INFO(edev, "txq %u igu_sb_id 0x%x\n",
fp->txq->queue_id, fp->sb_info->igu_sb_id);
params.sb_idx = TX_PI(0); /* tc = 0 */