Skip to content
  1. Oct 19, 2021
  2. Oct 18, 2021
    • Erik Ekman's avatar
      sfc: Fix reading non-legacy supported link modes · 041c6148
      Erik Ekman authored
      
      
      Everything except the first 32 bits was lost when the pause flags were
      added. This makes the 50000baseCR2 mode flag (bit 34) not appear.
      
      I have tested this with a 10G card (SFN5122F-R7) by modifying it to
      return a non-legacy link mode (10000baseCR).
      
      Signed-off-by: default avatarErik Ekman <erik@kryo.se>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      041c6148
    • Ansuel Smith's avatar
      net: dsa: qca8k: fix delay applied to wrong cpu in parse_port_config · 06dd34a6
      Ansuel Smith authored
      
      
      Fix delay settings applied to wrong cpu in parse_port_config. The delay
      values is set to the wrong index as the cpu_port_index is incremented
      too early. Start the cpu_port_index to -1 so the correct value is
      applied to address also the case with invalid phy mode and not available
      port.
      
      Signed-off-by: default avatarAnsuel Smith <ansuelsmth@gmail.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      06dd34a6
    • David S. Miller's avatar
      Merge git://git.kernel.org/pub/scm/linux/kernel/git/pablo/nf-next · 7adaf56e
      David S. Miller authored
      
      
      Pablo Neira Ayuso says:
      
      ====================
      Netfilter/IPVS updates for net-next
      
      The following patchset contains Netfilter/IPVS for net-next:
      
      1) Add new run_estimation toggle to IPVS to stop the estimation_timer
         logic, from Dust Li.
      
      2) Relax superfluous dynset check on NFT_SET_TIMEOUT.
      
      3) Add egress hook, from Lukas Wunner.
      
      4) Nowadays, almost all hook functions in x_table land just call the hook
         evaluation loop. Remove remaining hook wrappers from iptables and IPVS.
         From Florian Westphal.
      ====================
      
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      7adaf56e
    • David S. Miller's avatar
      Merge branch 'rtl8365mb-vc-support' · c87350ce
      David S. Miller authored
      Alvin Šipraga says:
      
      ====================
      net: dsa: add support for RTL8365MB-VC
      
      This series adds support for Realtek's RTL8365MB-VC, a 4+1 port
      10/100/1000M Ethernet switch. The driver - rtl8365mb - was developed by
      Michael Ramussen and myself.
      
      This version of the driver is relatively slim, implementing only the
      standalone port functionality and no offload capabilities. It is based
      on a previous RFC series [1] from August, and the main difference is the
      removal of some spurious VLAN operations. Otherwise I have simply
      addressed most of the feedback. Please see the respective patches for
      more detail.
      
      In parallel I am working on offloading the bridge layer capabilities,
      but I would like to get the basic stuff upstreamed as soon as possible.
      
      v3 -> v4:
        - get irq before setting virq parents (fixes kernel test robot
          warning)
        - remove pad-to-72-bytes logic in tagger xmit (fixes DENG Qingfang's
          suggestion); no longer needed as we set CPU minimum RX size to 64
          bytes
        - use mutex to protect MIB counter access instead of a spinlock (fixes
          Jakub's feedback on v3 statistics refactoring)
      
      v2 -> v3:
        - move IRQ setup earlier in probe per Florian's suggestion
        - fix compilation error on some archs due to FIELD_PREP use in v1
        - follow Jakub's suggestion and use the standard ethtool stats API;
          NOTE: new patch in the series for relevant DSA plumbing
        - following the stats change, it became apparent that the rtl8366
          helper library is no longer that helpful; scrap it and implement
          the ethtool ops specifically for this chip
      
      v1 -> v2:
        - drop DSA port type checks during MAC configuration
        - use OF properties to configure RGMII TX/RX delay
        - don't set default fwd_offload_mark if packet is trapped to CPU
        - remove port mapping macros
        - update device tree bindings documentation with an example
        - cosmetic changes to the tagging driver using FIELD_* macros
      
      [1] https://lore.kernel.org/netdev/20210822193145.1312668-1-alvin@pqrs.dk/
      
      
      ====================
      
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      c87350ce
    • Alvin Šipraga's avatar
      net: phy: realtek: add support for RTL8365MB-VC internal PHYs · 2ca2969a
      Alvin Šipraga authored
      
      
      The RTL8365MB-VC ethernet switch controller has 4 internal PHYs for its
      user-facing ports. All that is needed is to let the PHY driver core
      pick up the IRQ made available by the switch driver.
      
      Signed-off-by: default avatarAlvin Šipraga <alsi@bang-olufsen.dk>
      Reviewed-by: default avatarFlorian Fainelli <f.fainelli@gmail.com>
      Reviewed-by: default avatarLinus Walleij <linus.walleij@linaro.org>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      2ca2969a
    • Alvin Šipraga's avatar
      net: dsa: realtek-smi: add rtl8365mb subdriver for RTL8365MB-VC · 4af2950c
      Alvin Šipraga authored
      
      
      This patch adds a realtek-smi subdriver for the RTL8365MB-VC 4+1 port
      10/100/1000M switch controller. The driver has been developed based on a
      GPL-licensed OS-agnostic Realtek vendor driver known as rtl8367c found
      in the OpenWrt source tree.
      
      Despite the name, the RTL8365MB-VC has an entirely different register
      layout to the already-supported RTL8366RB ASIC. Notwithstanding this,
      the structure of the rtl8365mb subdriver is loosely based on the rtl8366rb
      subdriver. Like the 'rb, it establishes its own irqchip to handle
      cascaded PHY link status interrupts.
      
      The RTL8365MB-VC switch is capable of offloading a large number of
      features from the software, but this patch introduces only the most
      basic DSA driver functionality. The ports always function as standalone
      ports, with bridging handled in software.
      
      One more thing. Realtek's nomenclature for switches makes it hard to
      know exactly what other ASICs might be supported by this driver. The
      vendor driver goes by the name rtl8367c, but as far as I can tell, no
      chip actually exists under this name. As such, the subdriver is named
      rtl8365mb to emphasize the potentially limited support. But it is clear
      from the vendor sources that a number of other more advanced switches
      share a similar register layout, and further support should not be too
      hard to add given access to the relevant hardware. With this in mind,
      the subdriver has been written with as few assumptions about the
      particular chip as is reasonable. But the RTL8365MB-VC is the only
      hardware I have available, so some further work is surely needed.
      
      Co-developed-by: default avatarMichael Rasmussen <mir@bang-olufsen.dk>
      Signed-off-by: default avatarMichael Rasmussen <mir@bang-olufsen.dk>
      Signed-off-by: default avatarAlvin Šipraga <alsi@bang-olufsen.dk>
      Reviewed-by: default avatarVladimir Oltean <olteanv@gmail.com>
      Reviewed-by: default avatarLinus Walleij <linus.walleij@linaro.org>
      Reviewed-by: default avatarFlorian Fainelli <f.fainelli@gmail.com>
      Tested-by: default avatarArınç ÜNAL <arinc.unal@arinc9.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      4af2950c