• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/linux/linux-2.6/drivers/net/qlcnic/

Lines Matching refs:eswitch

795 					struct qlcnic_eswitch *eswitch)
815 eswitch->port = arg1 & 0xf;
816 eswitch->active_vports = LSB(arg2);
817 eswitch->max_ucast_filters = MSB(arg2);
818 eswitch->max_active_vlans = LSB(MSW(arg2));
820 eswitch->flags |= QLCNIC_SWITCH_VLAN_FILTERING;
822 eswitch->flags |= QLCNIC_SWITCH_PROMISC_MODE;
824 eswitch->flags |= QLCNIC_SWITCH_PORT_MIRRORING;
827 "Failed to get eswitch capabilities%d\n", err);
833 /* Get current status of eswitch */
835 struct qlcnic_eswitch *eswitch)
855 eswitch->port = arg1 & 0xf;
856 eswitch->active_vports = LSB(arg2);
857 eswitch->active_ucast_filters = MSB(arg2);
858 eswitch->active_vlans = LSB(MSW(arg2));
860 eswitch->flags |= QLCNIC_SWITCH_VLAN_FILTERING;
862 eswitch->flags |= QLCNIC_SWITCH_PORT_MIRRORING;
866 "Failed to get eswitch status%d\n", err);
877 struct qlcnic_eswitch *eswitch;
882 eswitch = &adapter->eswitch[id];
883 if (!eswitch)
886 arg1 = eswitch->port | (enable ? BIT_4 : 0);
887 arg2 = eswitch->active_vports | (eswitch->max_ucast_filters << 8) |
888 (eswitch->max_active_vlans << 16);
899 "Failed to enable eswitch%d\n", eswitch->port);
900 eswitch->flags &= ~QLCNIC_SWITCH_ENABLE;
903 eswitch->flags |= QLCNIC_SWITCH_ENABLE;
905 "Enabled eSwitch for port %d\n", eswitch->port);
919 !(adapter->eswitch[id].flags & QLCNIC_SWITCH_ENABLE))
935 "Failed to configure port mirroring%d on eswitch:%d\n",
953 struct qlcnic_eswitch *eswitch;
958 eswitch = &adapter->eswitch[id];
959 if (!(eswitch->flags & QLCNIC_SWITCH_ENABLE))
962 arg1 = eswitch->port | (discard_tagged ? BIT_4 : 0);
978 "Failed to configure eswitch port%d\n", eswitch->port);
981 "Configured eSwitch for port %d\n", eswitch->port);