1. 26 4月, 2021 8 次提交
    • D
      Merge tag 'mlx5-updates-2021-04-21' of git://git.kernel.org/pub/scm/linux/kernel/git/saeed/linux · 1e5e4acb
      David S. Miller 提交于
      Saeed Mahameed says:
      
      ====================
      mlx5-updates-2021-04-21
      
      devlink external port attribute for SF (Sub-Function) port flavour
      
      This adds the support to instantiate Sub-Functions on external hosts
      E.g when Eswitch manager is enabled on the ARM SmarNic SoC CPU, users
      are now able to spawn new Sub-Functions on the Host server CPU.
      
      Parav Pandit Says:
      ==================
      
      This series introduces and uses external attribute for the SF port to
      indicate that a SF port belongs to an external controller.
      
      This is needed to generate unique phys_port_name when PF and SF numbers
      are overlapping between local and external controllers.
      For example two controllers 0 and 1, both of these controller have a SF.
      having PF number 0, SF number 77. Here, phys_port_name has duplicate
      entry which doesn't have controller number in it.
      
      Hence, add controller number optionally when a SF port is for an
      external controller. This extension is similar to existing PF and VF
      eswitch ports of the external controller.
      
      When a SF is for external controller an example view of external SF
      port and config sequence:
      
      On eswitch system:
      $ devlink dev eswitch set pci/0033:01:00.0 mode switchdev
      
      $ devlink port show
      pci/0033:01:00.0/196607: type eth netdev enP51p1s0f0np0 flavour physical port 0 splittable false
      pci/0033:01:00.0/131072: type eth netdev eth0 flavour pcipf controller 1 pfnum 0 external true splittable false
        function:
          hw_addr 00:00:00:00:00:00
      
      $ devlink port add pci/0033:01:00.0 flavour pcisf pfnum 0 sfnum 77 controller 1
      pci/0033:01:00.0/163840: type eth netdev eth1 flavour pcisf controller 1 pfnum 0 sfnum 77 splittable false
        function:
          hw_addr 00:00:00:00:00:00 state inactive opstate detached
      
      phys_port_name construction:
      $ cat /sys/class/net/eth1/phys_port_name
      c1pf0sf77
      
      Patch summary:
      First 3 patches prepares the eswitch to handle vports in more generic
      way using xarray to lookup vport from its unique vport number.
      Patch-1 returns maximum eswitch ports only when eswitch is enabled
      Patch-2 prepares eswitch to return eswitch max ports from a struct
      Patch-3 uses xarray for vport and representor lookup
      Patch-4 considers SF for an additioanl range of SF vports
      Patch-5 relies on SF hw table to check SF support
      Patch-6 extends SF devlink port attribute for external flag
      Patch-7 stores the per controller SF allocation attributes
      Patch-8 uses SF function id for filtering events
      Patch-9 uses helper for allocation and free
      Patch-10 splits hw table into per controller table and generic one
      Patch-11 extends sf table for additional range
      
      ==================
      
      ====================
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      1e5e4acb
    • L
      net: ethernet: ixp4xx: Support device tree probing · 95aafe91
      Linus Walleij 提交于
      This adds device tree probing to the IXP4xx ethernet
      driver.
      
      Add a platform data bool to tell us whether to
      register an MDIO bus for the device or not, as well
      as the corresponding NPE.
      
      We need to drop the memory region request as part of
      this since the OF core will request the memory for the
      device.
      
      Cc: Zoltan HERPAI <wigyori@uid0.hu>
      Cc: Raylynn Knight <rayknight@me.com>
      Signed-off-by: NLinus Walleij <linus.walleij@linaro.org>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      95aafe91
    • L
      net: ethernet: ixp4xx: Retire ancient phy retrieveal · 3e8047a9
      Linus Walleij 提交于
      This driver was using a really dated way of obtaining the
      phy by printing a string and using it with phy_connect().
      Switch to using more reasonable modern interfaces.
      Suggested-by: NAndrew Lunn <andrew@lunn.ch>
      Reviewed-by: NAndrew Lunn <andrew@lunn.ch>
      Signed-off-by: NLinus Walleij <linus.walleij@linaro.org>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      3e8047a9
    • L
      net: ethernet: ixp4xx: Add DT bindings · 48ac0b58
      Linus Walleij 提交于
      This adds device tree bindings for the IXP4xx ethernet
      controller with optional MDIO bridge.
      
      Cc: Zoltan HERPAI <wigyori@uid0.hu>
      Cc: Raylynn Knight <rayknight@me.com>
      Cc: devicetree@vger.kernel.org
      Signed-off-by: NLinus Walleij <linus.walleij@linaro.org>
      Reviewed-by: NAndrew Lunn <andrew@lunn.ch>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      48ac0b58
    • H
      r8152: remove some bit operations · 9c68011b
      Hayes Wang 提交于
      Remove DELL_TB_RX_AGG_BUG and LENOVO_MACPASSTHRU flags of rtl8152_flags.
      They are only set when initializing and wouldn't be change. It is enough
      to record them with variables.
      Signed-off-by: NHayes Wang <hayeswang@realtek.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      9c68011b
    • D
      hv_netvsc: Make netvsc/VF binding check both MAC and serial number · 64ff412a
      Dexuan Cui 提交于
      Currently the netvsc/VF binding logic only checks the PCI serial number.
      
      The Microsoft Azure Network Adapter (MANA) supports multiple net_device
      interfaces (each such interface is called a "vPort", and has its unique
      MAC address) which are backed by the same VF PCI device, so the binding
      logic should check both the MAC address and the PCI serial number.
      
      The change should not break any other existing VF drivers, because
      Hyper-V NIC SR-IOV implementation requires the netvsc network
      interface and the VF network interface have the same MAC address.
      Co-developed-by: NHaiyang Zhang <haiyangz@microsoft.com>
      Signed-off-by: NHaiyang Zhang <haiyangz@microsoft.com>
      Co-developed-by: NShachar Raindel <shacharr@microsoft.com>
      Signed-off-by: NShachar Raindel <shacharr@microsoft.com>
      Acked-by: NStephen Hemminger <stephen@networkplumber.org>
      Signed-off-by: NDexuan Cui <decui@microsoft.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      64ff412a
    • J
      ch_ktls: Remove redundant variable result · bf7d20cd
      Jiapeng Chong 提交于
      Variable result is being assigned a value from a calculation
      however the variable is never read, so this redundant variable
      can be removed.
      
      Cleans up the following clang-analyzer warning:
      
      drivers/net/ethernet/chelsio/inline_crypto/ch_ktls/chcr_ktls.c:1488:2:
      warning: Value stored to 'pos' is never read
      [clang-analyzer-deadcode.DeadStores].
      
      drivers/net/ethernet/chelsio/inline_crypto/ch_ktls/chcr_ktls.c:876:3:
      warning: Value stored to 'pos' is never read
      [clang-analyzer-deadcode.DeadStores].
      
      drivers/net/ethernet/chelsio/inline_crypto/ch_ktls/chcr_ktls.c:36:3:
      warning: Value stored to 'start' is never read
      [clang-analyzer-deadcode.DeadStores].
      Reported-by: NAbaci Robot <abaci@linux.alibaba.com>
      Signed-off-by: NJiapeng Chong <jiapeng.chong@linux.alibaba.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      bf7d20cd
    • D
      Merge git://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-next · 5f6c2f53
      David S. Miller 提交于
      Alexei Starovoitov says:
      
      ====================
      pull-request: bpf-next 2021-04-23
      
      The following pull-request contains BPF updates for your *net-next* tree.
      
      We've added 69 non-merge commits during the last 22 day(s) which contain
      a total of 69 files changed, 3141 insertions(+), 866 deletions(-).
      
      The main changes are:
      
      1) Add BPF static linker support for extern resolution of global, from Andrii.
      
      2) Refine retval for bpf_get_task_stack helper, from Dave.
      
      3) Add a bpf_snprintf helper, from Florent.
      
      4) A bunch of miscellaneous improvements from many developers.
      ====================
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      5f6c2f53
  2. 24 4月, 2021 32 次提交