mirror of
https://github.com/openwrt/openwrt.git
synced 2025-02-06 11:09:31 +00:00
kernel: set vlan mc for rtl8367d family chips
Set vlan mc for rtl8367d family chips Co-authored-by: Serge Vasilugin <vasilugin@yandex.ru> Signed-off-by: Mieczyslaw Nalewaj <namiltd@yahoo.com> Link: https://github.com/openwrt/openwrt/pull/14804 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
This commit is contained in:
parent
fe71f37bc1
commit
035bb34f26
@ -1040,7 +1040,7 @@ static int rtl8367b_set_vlan_mc(struct rtl8366_smi *smi, u32 index,
|
|||||||
vlanmc->priority > RTL8367B_PRIORITYMAX ||
|
vlanmc->priority > RTL8367B_PRIORITYMAX ||
|
||||||
vlanmc->member > RTL8367B_VLAN_MC0_MEMBER_MASK ||
|
vlanmc->member > RTL8367B_VLAN_MC0_MEMBER_MASK ||
|
||||||
vlanmc->untag > RTL8367B_UNTAG_MASK ||
|
vlanmc->untag > RTL8367B_UNTAG_MASK ||
|
||||||
vlanmc->fid > RTL8367B_FIDMAX)
|
vlanmc->fid > ((smi->rtl8367b_chip >= RTL8367B_CHIP_RTL8367S_VB) ? RTL8367D_FIDMAX : RTL8367B_FIDMAX))
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
|
|
||||||
data[0] = (vlanmc->member & RTL8367B_VLAN_MC0_MEMBER_MASK) <<
|
data[0] = (vlanmc->member & RTL8367B_VLAN_MC0_MEMBER_MASK) <<
|
||||||
|
Loading…
x
Reference in New Issue
Block a user