mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-12-25 08:51:09 +02:00
generic: ar8216: allow to use more ports
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@31010 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
3f02078b26
commit
a79728bb5c
@ -35,6 +35,7 @@
|
|||||||
/* size of the vlan table */
|
/* size of the vlan table */
|
||||||
#define AR8X16_MAX_VLANS 128
|
#define AR8X16_MAX_VLANS 128
|
||||||
#define AR8X16_PROBE_RETRIES 10
|
#define AR8X16_PROBE_RETRIES 10
|
||||||
|
#define AR8X16_MAX_PORTS 8
|
||||||
|
|
||||||
struct ar8216_priv;
|
struct ar8216_priv;
|
||||||
|
|
||||||
@ -75,7 +76,7 @@ struct ar8216_priv {
|
|||||||
u16 vlan_id[AR8X16_MAX_VLANS];
|
u16 vlan_id[AR8X16_MAX_VLANS];
|
||||||
u8 vlan_table[AR8X16_MAX_VLANS];
|
u8 vlan_table[AR8X16_MAX_VLANS];
|
||||||
u8 vlan_tagged;
|
u8 vlan_tagged;
|
||||||
u16 pvid[AR8216_NUM_PORTS];
|
u16 pvid[AR8X16_MAX_PORTS];
|
||||||
};
|
};
|
||||||
|
|
||||||
#define to_ar8216(_dev) container_of(_dev, struct ar8216_priv, dev)
|
#define to_ar8216(_dev) container_of(_dev, struct ar8216_priv, dev)
|
||||||
@ -736,7 +737,7 @@ static int
|
|||||||
ar8216_sw_hw_apply(struct switch_dev *dev)
|
ar8216_sw_hw_apply(struct switch_dev *dev)
|
||||||
{
|
{
|
||||||
struct ar8216_priv *priv = to_ar8216(dev);
|
struct ar8216_priv *priv = to_ar8216(dev);
|
||||||
u8 portmask[AR8216_NUM_PORTS];
|
u8 portmask[AR8X16_MAX_PORTS];
|
||||||
int i, j;
|
int i, j;
|
||||||
|
|
||||||
mutex_lock(&priv->reg_mutex);
|
mutex_lock(&priv->reg_mutex);
|
||||||
|
Loading…
Reference in New Issue
Block a user