1. 16 12月, 2017 31 次提交
  2. 15 12月, 2017 9 次提交
    • F
      net: dsa: bcm_sf2: Update compatible string for 7278B0 · 3b07d788
      Florian Fainelli 提交于
      Update the compatible string and Device Tree binding document for
      7278B0.
      Signed-off-by: NFlorian Fainelli <f.fainelli@gmail.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      3b07d788
    • D
      Merge branch 'hnx3-vf' · 020929d6
      David S. Miller 提交于
      Salil Mehta says:
      
      ====================
      Hisilicon Network Subsystem 3 VF Ethernet Driver
      
      This patch-set contains the support of the HNS3 (Hisilicon Network Subsystem 3)
      Virtual Function Ethernet driver for hip08 family of SoCs. The Physical Function
      driver is already part of the Linux mainline.
      
      This VF driver has its Hardware Compatibility Layer and has commom/unified ENET
      layer/client/ethtool code with the PF driver. It also has support of mailbox to
      communicate with the HNS3 PF driver. The basic architecture of VF driver is
      derivative of the PF driver. Just like PF driver, this driver is also PCI
      Express based.
      
      This driver is the ongoing development work and HNS3 VF Ethernet driver would be
      incrementally enhanced with more new features.
      
      High Level Architecture:
      
                           [ Ethtool ]
      	                 |
                       [ Ethernet Client ] ... [ RoCE Client ]
                               |                     |
                         [ HNAE Device ]             |________
                               |                     |       |
          ---------------------------------------------      |
                                                             |
           [ HNAE3 Framework (Register/unregister) ]         |
                                                             |
          ---------------------------------------------      |
                               |                             |
                       [ VF HCLGE Layer ]                    |
                        |             |                      |
                        |             |                      |
                        |             |                      |
                        |     [ VF Mailbox (To PF via IMP) ] |
                        |             |                      |
                   [ IMP command Interface ]  [ IMP command Interface ]
                              |                              |
                              |                              |
                 (A B O V E  R U N S  O N  G U E S T  S Y S T E M)
          -------------------------------------------------------------
                    Q E M U / V F I O / K V M (on Host System)
          -------------------------------------------------------------
                  HIP08  H A R D W A R E (limited to VF by SMMU)
      
         [ IMP/Mgmt Processor (hardware common to system/cmd based) ]
      
                      Fig 1.   HNS3 Virtual Function Driver
      
          	[ dcbnl ]  [ Ethtool ]
                  |          |
         	[  Ethernet Client  ]  [ ODP/UIO Client ] . . .[ RoCE Client ]
                    |_____________________|                 |
                               |                   _________|
                         [ HNAE Device ]           |        |
                               |                   |        |
          ---------------------------------------------     |
                                                            |
           [ HNAE3 Framework (Register/unregister) ]        |
                                                            |
          ---------------------------------------------     |
                               |                            |
                        [ HCLGE Layer ]                     |
               ________________|_________________           |
              |                |                 |          |
           [ DCB ]             |                 |          |
              |                |                 |          |
        [ Scheduler/Shaper ] [ MDIO ]      [ PF Mailbox ]   |
              |                |                 |          |
              |________________|_________________|          |
                               |                            |
                   [ IMP command Interface ]     [ IMP command Interface ]
          ----------------------------------------------------------------
                    HIP08  H A R D W A R E
      
        [ IMP/Mgmt Processor (hardware common to system/cmd based) ]
      
                     Fig 2.    Existing HNS3 PF Driver (added with mailbox)
      
      Change Log Summary:
      Patch V4: Addressed SPDX related comment by Philippe Ombredanne
      Patch V3: Addressed SPDX change requested by Philippe Ombredanne
      Patch V2: 1. Addressed some comments by David Miller.
      	  2. Addressed some internal comments on various patches
      Patch V1: Initial Submit
      ====================
      Acked-by: NPhilippe Ombredanne <pombredanne@nexb.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      020929d6
    • S
      net: hns3: Add mailbox interrupt handling to PF driver · c1a81619
      Salil Mehta 提交于
      All PF mailbox events are conveyed through a common interrupt
      (vector 0). This interrupt vector is shared by reset and mailbox.
      
      This patch adds the handling of mailbox interrupt event and its
      deferred processing in context to a separate mailbox task.
      Signed-off-by: NSalil Mehta <salil.mehta@huawei.com>
      Signed-off-by: Nlipeng <lipeng321@huawei.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      c1a81619
    • S
      net: hns3: Change PF to add ring-vect binding & resetQ to mailbox · 84e095d6
      Salil Mehta 提交于
      This patch is required to support ring-vector binding and reset
      of TQPs requested by the VF driver to the PF driver. Mailbox
      handler is added with corresponding VF commands/messages to
      handle the request.
      Signed-off-by: NSalil Mehta <salil.mehta@huawei.com>
      Signed-off-by: Nlipeng <lipeng321@huawei.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      84e095d6
    • S
      net: hns3: Add mailbox support to PF driver · dde1a86e
      Salil Mehta 提交于
      Command queue provides the provision of Mailbox command which
      can be used for communication between PF and VF. PF handles
      messages from various VFs for fetching various information like,
      queue, vlan, link status related etc. It also handles the request
      from various VFs to perform certain privileged operations.
      
      This patch adds the support of a message handler for handling
      such various command requests from VF.
      Signed-off-by: NSalil Mehta <salil.mehta@huawei.com>
      Signed-off-by: Nlipeng <lipeng321@huawei.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      dde1a86e
    • S
      net: hns3: Unified HNS3 {VF|PF} Ethernet Driver for hip08 SoC · 424eb834
      Salil Mehta 提交于
      Most of the NAPI handling interface, skb buffer management,
      management of the RX/TX descriptors, ethool interface etc.
      has quite a bit of code which is common to VF and PF driver.
      
      This patch makes the exisitng PF's HNS3 ENET driver as the
      common ENET driver for both Virtual & Physical Function. This
      will help in reduction of redundancy and better management of
      code.
      Signed-off-by: NSalil Mehta <salil.mehta@huawei.com>
      Signed-off-by: Nlipeng <lipeng321@huawei.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      424eb834
    • S
      net: hns3: Add HNS3 VF driver to kernel build framework · e963cb78
      Salil Mehta 提交于
      This patch introduces the new Makefiles and updates existing
      Makefiles required to build the HNS3 Virtual Function driver.
      This also updates the Kconfig for introduction of new menuconfig
      entries related to VF driver.
      Signed-off-by: NSalil Mehta <salil.mehta@huawei.com>
      Signed-off-by: Nlipeng <lipeng321@huawei.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      e963cb78
    • S
      net: hns3: Add HNS3 VF HCL(Hardware Compatibility Layer) Support · e2cb1dec
      Salil Mehta 提交于
      This patch adds the support of hardware compatibiltiy layer to the
      HNS3 VF Driver. This layer implements various {set|get} operations
      over MAC address for a virtual port, RSS related configuration,
      fetches the link status info from PF, does various VLAN related
      configuration over the virtual port, queries the statistics from
      the hardware etc.
      
      This layer can directly interact with hardware through the
      IMP(Integrated Mangement Processor) interface or can use mailbox
      to interact with the PF driver.
      Signed-off-by: NSalil Mehta <salil.mehta@huawei.com>
      Signed-off-by: Nlipeng <lipeng321@huawei.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      e2cb1dec
    • S
      net: hns3: Add mailbox support to VF driver · b11a0bb2
      Salil Mehta 提交于
      This patch adds the support of the mailbox to the VF driver. The
      mailbox shall be used as an interface to communicate with the
      PF driver for various purposes like {set|get} MAC related
      operations, reset, link status etc. The mailbox supports both
      synchronous and asynchronous command send to PF driver.
      Signed-off-by: NSalil Mehta <salil.mehta@huawei.com>
      Signed-off-by: Nlipeng <lipeng321@huawei.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      b11a0bb2