nvethernet: Add T264 changes to include 48 filters

Add support to include 48 filters for T264 from feature register

Ported from -
https://git-master.nvidia.com/r/c/linux-nv-oot/+/3148383

Bug 4291865

Change-Id: Ic3df0db74dc86bebcacff2f77238f1a6bcf38657
Signed-off-by: Mahesh Patil <maheshp@nvidia.com>
This commit is contained in:
Mahesh Patil
2023-09-20 15:41:46 -07:00
committed by Bhadram Varka
parent 0e5f26d308
commit 90a31dac49
2 changed files with 4 additions and 0 deletions

View File

@@ -6655,6 +6655,9 @@ static void init_filter_values(struct ether_priv_data *pdata)
pdata->num_mac_addr_regs = ETHER_ADDR_REG_CNT_128;
} else if (pdata->hw_feat.mac_addr32_sel == OSI_ENABLE) {
pdata->num_mac_addr_regs = ETHER_ADDR_REG_CNT_64;
} else if (pdata->hw_feat.mac_addr_sel ==
(ETHER_ADDR_REG_CNT_48 - 1U)) {
pdata->num_mac_addr_regs = ETHER_ADDR_REG_CNT_48;
} else if (pdata->hw_feat.mac_addr_sel ==
(ETHER_ADDR_REG_CNT_32 - 1U)) {
pdata->num_mac_addr_regs = ETHER_ADDR_REG_CNT_32;