/openwrt/target/linux/ar71xx/base-files/etc/uci-defaults/ |
H A D | 03_network-vlan-migration | 7 local vlan="$(uci -q get network.@switch_vlan[0].vlan)" 9 if [ "$dev" = "rtl8366s" ] && [ "$vlan" = 0 ]; then 10 logger -t vlan-migration "VLAN 0 is invalid for RTL8366s, changing to 1" 11 uci set network.@switch_vlan[0].vlan=1
|
/openwrt/target/linux/adm5120/files-3.18/drivers/net/ |
H A D | adm5120sw.h | 20 u16 vlan; member in struct:adm5120_sw_info
|
H A D | adm5120sw.c | 241 SW_DBG(" misc %08X%s pktlen=%04X ports=%02X vlan=%02X\n", t, 306 SW_DBG("vlan g1: %08X\n", t); 308 SW_DBG("vlan g2: %08X\n", t); 754 static void adm5120_switch_set_vlan_mac(unsigned int vlan, unsigned char *mac) argument 764 MAC_WT0_MAWC | MAC_WT0_WVE | (vlan << MAC_WT0_WVN_SHIFT) | 773 static void adm5120_switch_set_vlan_ports(unsigned int vlan, u32 ports) argument 778 if (vlan < 4) 781 vlan -= 4; 786 t &= ~(0xFF << (vlan*8)); 787 t |= (ports << (vlan* [all...] |
/openwrt/target/linux/generic/files/drivers/net/phy/ |
H A D | psb6970.c | 62 bool vlan; member in struct:psb6970_priv 86 priv->vlan = !!val->value.i; 95 val->value.i = priv->vlan; 99 static int psb6970_set_pvid(struct switch_dev *dev, int port, int vlan) argument 104 if (vlan >= dev->vlans) 107 priv->pvid[port] = vlan; 111 static int psb6970_get_pvid(struct switch_dev *dev, int port, int *vlan) argument 114 *vlan = priv->pvid[port]; 220 if (priv->vlan) { 221 /* into the vlan translatio [all...] |
H A D | mvswitch.c | 109 /* move the ethernet header 4 bytes forward, overwriting the vlan tag */ 151 int vlan = -1; local 167 /* look for the vlan matching the incoming port */ 170 vlan = i; 173 if (vlan == -1) 176 __vlan_hwaccel_put_tag(skb, htons(ETH_P_8021Q), vlan); 258 /* look for the matching vlan */ 265 /* leave port unconfigured if it's not part of a vlan */ 272 /* take port out of its own vlan destination map */ 275 /* apply vlan setting [all...] |
H A D | ar8216.c | 496 if (!priv->vlan) 521 int port, vlan; local 527 /* don't strip the header if vlan mode is disabled */ 528 if (!priv->vlan) 531 /* strip header, get vlan id */ 535 /* check for vlan header presence */ 545 /* lookup port vid from local table, the switch passes an invalid vlan id */ 546 vlan = priv->vlan_id[priv->pvid[port]]; 549 buf[14 + 2] |= vlan >> 8; 550 buf[15 + 2] = vlan 946 ar8xxx_sw_set_pvid(struct switch_dev *dev, int port, int vlan) argument 960 ar8xxx_sw_get_pvid(struct switch_dev *dev, int port, int *vlan) argument [all...] |
H A D | rtl8366_smi.h | 99 int (*is_vlan_valid)(struct rtl8366_smi *smi, unsigned vlan);
|
H A D | ip17xx.c | 462 /** Only set vlan and router flags in the switch **/ 578 * which ports are part of the same VLAN, removing vlan tags, and VLAN tag ids. 992 int vlan = val->port_vlan; local 994 if (vlan < 0 || vlan >= MAX_VLANS) 997 val->value.i = state->vlans[vlan].tag; 1004 int vlan = val->port_vlan; local 1007 if (vlan < 0 || vlan >= MAX_VLANS) 1013 state->vlans[vlan] [all...] |
H A D | adm6996.c | 384 adm6996_set_pvid(struct switch_dev *dev, int port, int vlan) argument 388 pr_devel("set_pvid port %d vlan %d\n", port, vlan); 390 if (vlan > ADM_VLAN_MAX_ID) 393 priv->pvid[port] = vlan; 399 adm6996_get_pvid(struct switch_dev *dev, int port, int *vlan) argument 404 *vlan = priv->pvid[port]; 745 /* initialize port and vlan settings */
|
H A D | ar8216.h | 31 /* size of the vlan table */ 452 bool vlan; member in struct:ar8xxx_priv 529 ar8xxx_sw_set_pvid(struct switch_dev *dev, int port, int vlan); 531 ar8xxx_sw_get_pvid(struct switch_dev *dev, int port, int *vlan);
|
H A D | rtl8366s.c | 604 static int rtl8366s_is_vlan_valid(struct rtl8366_smi *smi, unsigned vlan) argument 611 if (vlan == 0 || vlan >= max) 913 .description = "Get vlan information", 920 .description = "Get/Set vlan FID",
|
H A D | rtl8366rb.c | 594 static int rtl8366rb_is_vlan_valid(struct rtl8366_smi *smi, unsigned vlan) argument 601 if (vlan == 0 || vlan >= max) 1261 .description = "Get vlan information", 1268 .description = "Get/Set vlan FID",
|
H A D | ar8327.c | 855 else if (priv->vlan == 0) 874 if (priv->vlan) {
|
H A D | rtl8367.c | 1406 static int rtl8367_is_vlan_valid(struct rtl8366_smi *smi, unsigned vlan) argument 1413 if (vlan == 0 || vlan >= max) 1591 .description = "Get vlan information", 1598 .description = "Get/Set vlan FID",
|
H A D | rtl8367b.c | 1173 static int rtl8367b_is_vlan_valid(struct rtl8366_smi *smi, unsigned vlan) argument 1180 if (vlan == 0 || vlan >= max) 1358 .description = "Get vlan information",
|
/openwrt/package/network/config/swconfig/src/ |
H A D | uci.c | 162 /* look for port or vlan sections */ 193 char *devn, *vlan, *vlan_err = NULL; local 205 } else if (!strcmp(os->name, "vlan")) { 206 vlan = o->v.string; 209 if (!devn || !vlan || !vlan[0]) 212 vlan_n = strtoul(vlan, &vlan_err, 0);
|
H A D | cli.c | 81 printf(" --vlan\n"); 181 show_vlan(struct switch_dev *dev, int vlan, bool all) argument 186 val.port_vlan = vlan; 197 printf("VLAN %d:\n", vlan); 205 printf("swconfig dev <dev> [port <port>|vlan <vlan>] (help|set <key> <value>|get <key>|load <config>|show)\n"); 271 } else if (!strcmp(arg, "vlan") && i+1 < argc) {
|
/openwrt/target/linux/ar71xx/files/drivers/net/ethernet/atheros/ag71xx/ |
H A D | ag71xx_ar7240.c | 297 bool vlan; member in struct:ar7240sw 705 if (as->vlan) { 713 if (as->vlan) { 747 u32 vlan; local 749 vlan = vid | (mode << AR7240_PORT_VLAN_MODE_S) | 752 ar7240sw_reg_write(mii, AR7240_REG_PORT_VLAN(port), vlan); 789 ar7240_set_pvid(struct switch_dev *dev, int port, int vlan) argument 795 if (vlan >= dev->vlans) 798 as->pvid[port] = vlan; 803 ar7240_get_pvid(struct switch_dev *dev, int port, int *vlan) argument [all...] |
/openwrt/package/base-files/files/etc/init.d/ |
H A D | boot | 23 [ -f /proc/net/vlan/config ] && vconfig set_name_type DEV_PLUS_VID_NO_PAD
|
/openwrt/target/linux/generic/files/drivers/net/phy/b53/ |
H A D | b53_common.c | 422 /* clear all vlan entries */ 435 struct b53_vlan *vlan = &dev->vlans[i]; local 437 if (!vlan->members) 440 b53_set_vlan_entry(dev, i, vlan->members, vlan->untag); 681 struct b53_vlan *vlan = &priv->vlans[val->port_vlan]; local 686 if (!vlan->members) 690 if (!(vlan->members & BIT(i))) 694 if (!(vlan->untag & BIT(i))) 711 struct b53_vlan *vlan local [all...] |
/openwrt/docs/ |
H A D | network.tex | 123 Every vlan option needs to have the name vlan<n> where <n> is the VLAN number 158 section per vlan. The example below shows a typical configuration: 167 option 'vlan' '1' 172 option 'vlan' '2'
|
/openwrt/package/base-files/files/bin/ |
H A D | config_generate | 157 set network.@switch_vlan[-1].vlan='$role'
|
/openwrt/target/linux/gemini/files/drivers/net/ethernet/gemini/ |
H A D | sl351x_hw.h | 934 unsigned int vlan : 1; /* bit 20 VLAN ID enable */ member in struct:__anon164::bit_8078
|