nvethernet: T264 Enable 20 VDMA channel support

Ported from -
https://git-master.nvidia.com/r/c/nvethernet-docs/+/2940794

Bug 4043836

Change-Id: I763bfdaa78082de035219e10ef1c131bdbba5e35
Signed-off-by: Mahesh Patil <maheshp@nvidia.com>
This commit is contained in:
Mahesh Patil
2023-07-21 16:49:59 -07:00
committed by Bhadram Varka
parent e44802987e
commit 5edac49a28
5 changed files with 208 additions and 58 deletions

View File

@@ -562,9 +562,11 @@ static int ether_config_l2_filters(struct net_device *dev,
return ret;
}
if (osi_core->use_virtualization == OSI_DISABLE) {
dev_err(pdata->dev, "%s Ethernet virualization is not enabled\n", __func__);
return ret;
if (osi_core->pre_sil != OSI_ENABLE) {
if (osi_core->use_virtualization == OSI_DISABLE) {
dev_err(pdata->dev, "%s Ethernet virualization is not enabled\n", __func__);
return ret;
}
}
if (copy_from_user(&u_l2_filter, (void __user *)ifdata->ptr,
sizeof(struct ether_l2_filter)) != 0U) {