mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-24 10:11:26 +03:00
nvethernet: use default selection algorithm
Issue: EQOS supports SP as default algorithm where MGBE should support ETS as default algorithm. Fix: We are removing user configuration option from application. For MGBE there are CBS or ETS(default) as only options. For EQOS CBS and SP(default) is only options. Bug 3735907 Change-Id: I83ff3f59129e188335d9cec239d5eb0b2fa76412 Signed-off-by: Rakesh Goyal <rgoyal@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2757410 Reviewed-by: Bitan Biswas <bbiswas@nvidia.com> Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com> Reviewed-by: svc-mobile-cert <svc-mobile-cert@nvidia.com> GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
This commit is contained in:
committed by
Revanth Kumar Uppala
parent
99acf2912b
commit
d4e9ecf359
@@ -228,6 +228,9 @@ int ether_tc_setup_cbs(struct ether_priv_data *pdata,
|
||||
ioctl_data.avb.oper_mode = OSI_MTL_QUEUE_AVB;
|
||||
ioctl_data.avb.credit_control = OSI_ENABLE;
|
||||
} else {
|
||||
/* For EQOS harware library code use internally SP(0) and
|
||||
For MGBE harware library code use internally ETS(2) if
|
||||
algo != CBS. */
|
||||
ioctl_data.avb.algo = OSI_MTL_TXQ_AVALG_SP;
|
||||
ioctl_data.avb.oper_mode = OSI_MTL_QUEUE_ENABLE;
|
||||
ioctl_data.avb.credit_control = OSI_DISABLE;
|
||||
|
||||
@@ -377,6 +377,9 @@ static void ether_config_slot_function(struct ether_priv_data *pdata, u32 set)
|
||||
sizeof(struct osi_core_avb_algorithm));
|
||||
qinx = osi_core->mtl_queues[i];
|
||||
ioctl_data.avb.qindex = qinx;
|
||||
/* For EQOS harware library code use internally SP(0) and
|
||||
For MGBE harware library code use internally ETS(2) if
|
||||
algo != CBS. */
|
||||
ioctl_data.avb.algo = OSI_MTL_TXQ_AVALG_SP;
|
||||
ioctl_data.avb.oper_mode = (set == OSI_ENABLE) ?
|
||||
OSI_MTL_QUEUE_AVB :
|
||||
|
||||
Reference in New Issue
Block a user