1. 08 Dec, 2022 9 commits
  2. 07 Dec, 2022 18 commits
  3. 06 Dec, 2022 7 commits
  4. 05 Dec, 2022 6 commits
    • Michael Walle's avatar
      net: phy: mxl-gpy: rename MMD_VEND1 macros to match datasheet · 343a5d35
      Michael Walle authored
      Rename the temperature sensors macros to match the names in the
      datasheet.
      Signed-off-by: default avatarMichael Walle <michael@walle.cc>
      Reviewed-by: default avatarAndrew Lunn <andrew@lunn.ch>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      343a5d35
    • Diana Wang's avatar
      nfp: add support for multicast filter · de624864
      Diana Wang authored
      Rewrite nfp_net_set_rx_mode() to implement interface to delivery
      mc address and operations to firmware by using general mailbox
      for filtering multicast packets.
      
      The operations include add mc address and delete mc address.
      And the limitation of mc addresses number is 1024 for each net
      device.
      
      User triggers adding mc address by using command below:
      ip maddress add <mc address> dev <interface name>
      
      User triggers deleting mc address by using command below:
      ip maddress del <mc address> dev <interface name>
      Signed-off-by: default avatarDiana Wang <na.wang@corigine.com>
      Signed-off-by: default avatarSimon Horman <simon.horman@corigine.com>
      Reviewed-by: default avatarLeon Romanovsky <leonro@nvidia.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      de624864
    • ye xingchen's avatar
      net: ipa: use sysfs_emit() to instead of scnprintf() · 38db82e2
      ye xingchen authored
      Follow the advice of the Documentation/filesystems/sysfs.rst and show()
      should only use sysfs_emit() or sysfs_emit_at() when formatting the
      value to be returned to user space.
      Signed-off-by: default avatarye xingchen <ye.xingchen@zte.com.cn>
      Reviewed-by: default avatarAlex Elder <elder@linaro.org>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      38db82e2
    • David S. Miller's avatar
      Merge tag 'rxrpc-next-20221201-b' of... · 27e521c5
      David S. Miller authored
      Merge tag 'rxrpc-next-20221201-b' of git://git.kernel.org/pub/scm/linux/kernel/git/dhowells/linux-fs
      
      David Howells says:
      
      ====================
      rxrpc: Increasing SACK size and moving away from softirq, parts 2 & 3
      
      Here are the second and third parts of patches in the process of moving
      rxrpc from doing a lot of its stuff in softirq context to doing it in an
      I/O thread in process context and thereby making it easier to support a
      larger SACK table.
      
      The full description is in the description for the first part[1] which is
      already in net-next.
      
      The second part includes some cleanups, adds some testing and overhauls
      some tracing:
      
       (1) Remove declaration of rxrpc_kernel_call_is_complete() as the
           definition is no longer present.
      
       (2) Remove the knet() and kproto() macros in favour of using tracepoints.
      
       (3) Remove handling of duplicate packets from recvmsg.  The input side
           isn't now going to insert overlapping/duplicate packets into the
           recvmsg queue.
      
       (4) Don't use the rxrpc_conn_parameters struct in the rxrpc_connection or
           rxrpc_bundle structs - rather put the members in directly.
      
       (5) Extract the abort code from a received abort packet right up front
           rather than doing it in multiple places later.
      
       (6) Use enums and symbol lists rather than __builtin_return_address() to
           indicate where a tracepoint was triggered for local, peer, conn, call
           and skbuff tracing.
      
       (7) Add a refcount tracepoint for the rxrpc_bundle struct.
      
       (8) Implement an in-kernel server for the AFS rxperf testing program to
           talk to (enabled by a Kconfig option).
      
      This is tagged as rxrpc-next-20221201-a.
      
      The third part introduces the I/O thread and switches various bits over to
      running there:
      
       (1) Fix call timers and call and connection workqueues to not hold refs on
           the rxrpc_call and rxrpc_connection structs to thereby avoid messy
           cleanup when the last ref is put in softirq mode.
      
       (2) Split input.c so that the call packet processing bits are separate
           from the received packet distribution bits.  Call packet processing
           gets bumped over to the call event handler.
      
       (3) Create a per-local endpoint I/O thread.  Barring some tiny bits that
           still get done in softirq context, all packet reception, processing
           and transmission is done in this thread.  That will allow a load of
           locking to be removed.
      
       (4) Perform packet processing and error processing from the I/O thread.
      
       (5) Provide a mechanism to process call event notifications in the I/O
           thread rather than queuing a work item for that call.
      
       (6) Move data and ACK transmission into the I/O thread.  ACKs can then be
           transmitted at the point they're generated rather than getting
           delegated from softirq context to some process context somewhere.
      
       (7) Move call and local processor event handling into the I/O thread.
      
       (8) Move cwnd degradation to after packets have been transmitted so that
           they don't shorten the window too quickly.
      
      A bunch of simplifications can then be done:
      
       (1) The input_lock is no longer necessary as exclusion is achieved by
           running the code in the I/O thread only.
      
       (2) Don't need to use sk->sk_receive_queue.lock to guard socket state
           changes as the socket mutex should suffice.
      
       (3) Don't take spinlocks in RCU callback functions as they get run in
           softirq context and thus need _bh annotations.
      
       (4) RCU is then no longer needed for the peer's error_targets list.
      
       (5) Simplify the skbuff handling in the receive path by dropping the ref
           in the basic I/O thread loop and getting an extra ref as and when we
           need to queue the packet for recvmsg or another context.
      
       (6) Get the peer address earlier in the input process and pass it to the
           users so that we only do it once.
      
      This is tagged as rxrpc-next-20221201-b.
      
      Changes:
      ========
      ver #2)
       - Added a patch to change four assertions into warnings in rxrpc_read()
         and fixed a checker warning from a __user annotation that should have
         been removed..
       - Change a min() to min_t() in rxperf as PAGE_SIZE doesn't seem to match
         type size_t on i386.
       - Three error handling issues in rxrpc_new_incoming_call():
         - If not DATA or not seq #1, should drop the packet, not abort.
         - Fix a goto that went to the wrong place, dropping a non-held lock.
         - Fix an rcu_read_lock that should've been an unlock.
      Tested-by: default avatarMarc Dionne <marc.dionne@auristor.com>
      Tested-by: kafs-testing+fedora36_64checkkafs-build-144@auristor.com
      Link: https://lore.kernel.org/r/166794587113.2389296.16484814996876530222.stgit@warthog.procyon.org.uk/ [1]
      Link: https://lore.kernel.org/r/166982725699.621383.2358362793992993374.stgit@warthog.procyon.org.uk/ # v1
      ====================
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      27e521c5
    • Bhadram Varka's avatar
      net: stmmac: tegra: Add MGBE support · d8ca1137
      Bhadram Varka authored
      Add support for the Multi-Gigabit Ethernet (MGBE/XPCS) IP found on
      NVIDIA Tegra234 SoCs.
      Signed-off-by: default avatarThierry Reding <treding@nvidia.com>
      Signed-off-by: default avatarBhadram Varka <vbhadram@nvidia.com>
      Co-developed-by: default avatarRevanth Kumar Uppala <ruppala@nvidia.com>
      Signed-off-by: default avatarRevanth Kumar Uppala <ruppala@nvidia.com>
      Signed-off-by: default avatarJon Hunter <jonathanh@nvidia.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      d8ca1137
    • Revanth Kumar Uppala's avatar
      net: stmmac: Power up SERDES after the PHY link · a46e9010
      Revanth Kumar Uppala authored
      The Tegra MGBE ethernet controller requires that the SERDES link is
      powered-up after the PHY link is up, otherwise the link fails to
      become ready following a resume from suspend. Add a variable to indicate
      that the SERDES link must be powered-up after the PHY link.
      Signed-off-by: default avatarRevanth Kumar Uppala <ruppala@nvidia.com>
      Signed-off-by: default avatarJon Hunter <jonathanh@nvidia.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      a46e9010