1. 15 Dec, 2017 5 commits
    • Salil Mehta's avatar
      net: hns3: Add HNS3 VF IMP(Integrated Management Proc) cmd interface · fedd0c15
      Salil Mehta authored
      This patch adds support of command interface for communication with
      the IMP(Integrated Management Processor) for HNS3 Virtual Function
      Driver.
      
      Each VF has support of CQP(Command Queue Pair) ring interface.
      Each CQP consis of send queue CSQ and receive queue CRQ.
      There are various commands a VF may support, like to query frimware
      version, TQP management, statistics, interrupt related, mailbox etc.
      
      This also contains code to initialize the command queue, manage the
      command queue descriptors and Rx/Tx protocol with the command processor
      in the form of various commands/results and acknowledgements.
      Signed-off-by: default avatarSalil Mehta <salil.mehta@huawei.com>
      Signed-off-by: default avatarlipeng <lipeng321@huawei.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      fedd0c15
    • David S. Miller's avatar
      Merge branch 'dsa-MT7530-vlan' · be17bbec
      David S. Miller authored
      Sean Wang says:
      
      ====================
      add VLAN support to DSA MT7530
      
      Changes sicne v2:
      update to the latest code base from net-next and fix up all building
      errors with -Werror.
      
      Changes since v1:
      - fix up the typo
      - prefer ordering declarations longest to shortest
      - update that vlan_prepare callback should not change any state
      - use lower case letter for function naming
      
      The patchset extends DSA MT7530 to VLAN support through filling required
      callbacks in patch 1 and merging the special tag with VLAN tag in patch 2
      for allowing that the hardware can handle these packets with VID from the
      CPU port.
      ====================
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      be17bbec
    • Sean Wang's avatar
      net: dsa: mediatek: update MAINTAINERS entry with MediaTek switch driver · 423d1290
      Sean Wang authored
      I work for MediaTek and maintain SoC targeting to home gateway and
      also will keep extending and testing the function from MediaTek
      switch.
      Signed-off-by: default avatarSean Wang <sean.wang@mediatek.com>
      Reviewed-by: default avatarAndrew Lunn <andrew@lunn.ch>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      423d1290
    • Sean Wang's avatar
      net: dsa: mediatek: combine MediaTek tag with VLAN tag · f0af3431
      Sean Wang authored
      In order to let MT7530 switch can recognize well those egress packets
      having both special tag and VLAN tag, the information about the special
      tag should be carried on the existing VLAN tag. On the other hand, it's
      unnecessary for extra handling for ingress packets when VLAN tag is
      present since it is able to put the VLAN tag after the special tag and
      then follow the existing way to parse.
      Signed-off-by: default avatarSean Wang <sean.wang@mediatek.com>
      Reviewed-by: default avatarAndrew Lunn <andrew@lunn.ch>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      f0af3431
    • Sean Wang's avatar
      net: dsa: mediatek: add VLAN support for MT7530 · 83163f7d
      Sean Wang authored
      MT7530 can treat each port as either VLAN-unaware port or VLAN-aware port
      through the implementation of port matrix mode or port security mode on
      the ingress port, respectively. On one hand, Each port has been acting as
      the VLAN-unaware one whenever the device is created in the initial or
      certain port joins or leaves into/from the bridge at the runtime. On the
      other hand, the patch just filling the required callbacks for VLAN
      operations is achieved via extending the port to be into port security
      mode when the port is configured as VLAN-aware port. Which mode can make
      the port be able to recognize VID from incoming packets and look up VLAN
      table to validate and judge which port it should be going to. And the
      range for VID from 1 to 4094 is valid for the hardware.
      Signed-off-by: default avatarSean Wang <sean.wang@mediatek.com>
      Reviewed-by: default avatarAndrew Lunn <andrew@lunn.ch>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      83163f7d
  2. 13 Dec, 2017 35 commits