1. 26 Apr, 2021 9 commits
    • Jethro Beekman's avatar
      macvlan: Add nodst option to macvlan type source · 427f0c8c
      Jethro Beekman authored
      The default behavior for source MACVLAN is to duplicate packets to
      appropriate type source devices, and then do the normal destination MACVLAN
      flow. This patch adds an option to skip destination MACVLAN processing if
      any matching source MACVLAN device has the option set.
      
      This allows setting up a "catch all" device for source MACVLAN: create one
      or more devices with type source nodst, and one device with e.g. type vepa,
      and incoming traffic will be received on exactly one device.
      
      v2: netdev wants non-standard line length
      Signed-off-by: default avatarJethro Beekman <kernel@jbeekman.nl>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      427f0c8c
    • David S. Miller's avatar
      Merge tag 'mlx5-updates-2021-04-21' of git://git.kernel.org/pub/scm/linux/kernel/git/saeed/linux · 1e5e4acb
      David S. Miller authored
      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: default avatarDavid S. Miller <davem@davemloft.net>
      1e5e4acb
    • Linus Walleij's avatar
      net: ethernet: ixp4xx: Support device tree probing · 95aafe91
      Linus Walleij authored
      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: default avatarLinus Walleij <linus.walleij@linaro.org>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      95aafe91
    • Linus Walleij's avatar
      net: ethernet: ixp4xx: Retire ancient phy retrieveal · 3e8047a9
      Linus Walleij authored
      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: default avatarAndrew Lunn <andrew@lunn.ch>
      Reviewed-by: default avatarAndrew Lunn <andrew@lunn.ch>
      Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      3e8047a9
    • Linus Walleij's avatar
      net: ethernet: ixp4xx: Add DT bindings · 48ac0b58
      Linus Walleij authored
      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: default avatarLinus Walleij <linus.walleij@linaro.org>
      Reviewed-by: default avatarAndrew Lunn <andrew@lunn.ch>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      48ac0b58
    • Hayes Wang's avatar
      r8152: remove some bit operations · 9c68011b
      Hayes Wang authored
      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: default avatarHayes Wang <hayeswang@realtek.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      9c68011b
    • Dexuan Cui's avatar
      hv_netvsc: Make netvsc/VF binding check both MAC and serial number · 64ff412a
      Dexuan Cui authored
      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: default avatarHaiyang Zhang <haiyangz@microsoft.com>
      Signed-off-by: default avatarHaiyang Zhang <haiyangz@microsoft.com>
      Co-developed-by: default avatarShachar Raindel <shacharr@microsoft.com>
      Signed-off-by: default avatarShachar Raindel <shacharr@microsoft.com>
      Acked-by: default avatarStephen Hemminger <stephen@networkplumber.org>
      Signed-off-by: default avatarDexuan Cui <decui@microsoft.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      64ff412a
    • Jiapeng Chong's avatar
      ch_ktls: Remove redundant variable result · bf7d20cd
      Jiapeng Chong authored
      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: default avatarAbaci Robot <abaci@linux.alibaba.com>
      Signed-off-by: default avatarJiapeng Chong <jiapeng.chong@linux.alibaba.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      bf7d20cd
    • David S. Miller's avatar
      Merge git://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-next · 5f6c2f53
      David S. Miller authored
      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: default avatarDavid S. Miller <davem@davemloft.net>
      5f6c2f53
  2. 24 Apr, 2021 12 commits
  3. 23 Apr, 2021 19 commits