Skip to content
  1. Mar 26, 2021
  2. Mar 25, 2021
    • Potnuri Bharat Teja's avatar
      RDMA/cxgb4: Fix adapter LE hash errors while destroying ipv6 listening server · 3408be14
      Potnuri Bharat Teja authored
      Not setting the ipv6 bit while destroying ipv6 listening servers may
      result in potential fatal adapter errors due to lookup engine memory hash
      errors. Therefore always set ipv6 field while destroying ipv6 listening
      servers.
      
      Fixes: 830662f6 ("RDMA/cxgb4: Add support for active and passive open connection with IPv6 address")
      Link: https://lore.kernel.org/r/20210324190453.8171-1-bharat@chelsio.com
      
      
      Signed-off-by: default avatarPotnuri Bharat Teja <bharat@chelsio.com>
      Reviewed-by: default avatarLeon Romanovsky <leonro@nvidia.com>
      Signed-off-by: default avatarJason Gunthorpe <jgg@nvidia.com>
      3408be14
    • Rich Wiley's avatar
      arm64: kernel: disable CNP on Carmel · 20109a85
      Rich Wiley authored
      
      
      On NVIDIA Carmel cores, CNP behaves differently than it does on standard
      ARM cores. On Carmel, if two cores have CNP enabled and share an L2 TLB
      entry created by core0 for a specific ASID, a non-shareable TLBI from
      core1 may still see the shared entry. On standard ARM cores, that TLBI
      will invalidate the shared entry as well.
      
      This causes issues with patchsets that attempt to do local TLBIs based
      on cpumasks instead of broadcast TLBIs. Avoid these issues by disabling
      CNP support for NVIDIA Carmel cores.
      
      Signed-off-by: default avatarRich Wiley <rwiley@nvidia.com>
      Link: https://lore.kernel.org/r/20210324002809.30271-1-rwiley@nvidia.com
      
      
      [will: Fix pre-existing whitespace issue]
      Signed-off-by: default avatarWill Deacon <will@kernel.org>
      20109a85
    • Maninder Singh's avatar
      arm64/process.c: fix Wmissing-prototypes build warnings · baa96377
      Maninder Singh authored
      Fix GCC warnings reported when building with "-Wmissing-prototypes":
      
        arch/arm64/kernel/process.c:261:6: warning: no previous prototype for '__show_regs' [-Wmissing-prototypes]
            261 | void __show_regs(struct pt_regs *regs)
                |      ^~~~~~~~~~~
        arch/arm64/kernel/process.c:307:6: warning: no previous prototype for '__show_regs_alloc_free' [-Wmissing-prototypes]
            307 | void __show_regs_alloc_free(struct pt_regs *regs)
                |      ^~~~~~~~~~~~~~~~~~~~~~
        arch/arm64/kernel/process.c:365:5: warning: no previous prototype for 'arch_dup_task_struct' [-Wmissing-prototypes]
            365 | int arch_dup_task_struct(struct task_struct *dst, struct task_struct *src)
                |     ^~~~~~~~~~~~~~~~~~~~
        arch/arm64/kernel/process.c:546:41: warning: no previous prototype for '__switch_to' [-Wmissing-prototypes]
            546 | __notrace_funcgraph struct task_struct *__switch_to(struct task_struct *prev,
                |                                         ^~~~~~~~~~~
        arch/arm64/kernel/process.c:710:25: warning: no previous prototype for 'arm64_preempt_schedule_irq' [-Wmissing-prototypes]
            710 | asmlinkage void __sched arm64_preempt_schedule_irq(void)
                |                         ^~~~~~~~~~~~~~~~~~~~~~~~~~
      
      Link: https://lore.kernel.org/lkml/202103192250.AennsfXM-lkp@intel.com
      
      
      Reported-by: default avatarkernel test robot <lkp@intel.com>
      Signed-off-by: default avatarManinder Singh <maninder1.s@samsung.com>
      Link: https://lore.kernel.org/r/1616568899-986-1-git-send-email-maninder1.s@samsung.com
      
      
      Signed-off-by: default avatarWill Deacon <will@kernel.org>
      baa96377
    • Linus Torvalds's avatar
      Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net · e1381380
      Linus Torvalds authored
      Pull networking fixes from David Miller:
       "Various fixes, all over:
      
         1) Fix overflow in ptp_qoriq_adjfine(), from Yangbo Lu.
      
         2) Always store the rx queue mapping in veth, from Maciej
            Fijalkowski.
      
         3) Don't allow vmlinux btf in map_create, from Alexei Starovoitov.
      
         4) Fix memory leak in octeontx2-af from Colin Ian King.
      
         5) Use kvalloc in bpf x86 JIT for storing jit'd addresses, from
            Yonghong Song.
      
         6) Fix tx ptp stats in mlx5, from Aya Levin.
      
         7) Check correct ip version in tun decap, fropm Roi Dayan.
      
         8) Fix rate calculation in mlx5 E-Switch code, from arav Pandit.
      
         9) Work item memork leak in mlx5, from Shay Drory.
      
        10) Fix ip6ip6 tunnel crash with bpf, from Daniel Borkmann.
      
        11) Lack of preemptrion awareness in macvlan, from Eric Dumazet.
      
        12) Fix data race in pxa168_eth, from Pavel Andrianov.
      
        13) Range validate stab in red_check_params(), from Eric Dumazet.
      
        14) Inherit vlan filtering setting properly in b53 driver, from
            Florian Fainelli.
      
        15) Fix rtnl locking in igc driver, from Sasha Neftin.
      
        16) Pause handling fixes in igc driver, from Muhammad Husaini
            Zulkifli.
      
        17) Missing rtnl locking in e1000_reset_task, from Vitaly Lifshits.
      
        18) Use after free in qlcnic, from Lv Yunlong.
      
        19) fix crash in fritzpci mISDN, from Tong Zhang.
      
        20) Premature rx buffer reuse in igb, from Li RongQing.
      
        21) Missing termination of ip[a driver message handler arrays, from
            Alex Elder.
      
        22) Fix race between "x25_close" and "x25_xmit"/"x25_rx" in hdlc_x25
            driver, from Xie He.
      
        23) Use after free in c_can_pci_remove(), from Tong Zhang.
      
        24) Uninitialized variable use in nl80211, from Jarod Wilson.
      
        25) Off by one size calc in bpf verifier, from Piotr Krysiuk.
      
        26) Use delayed work instead of deferrable for flowtable GC, from
            Yinjun Zhang.
      
        27) Fix infinite loop in NPC unmap of octeontx2 driver, from
            Hariprasad Kelam.
      
        28) Fix being unable to change MTU of dwmac-sun8i devices due to lack
            of fifo sizes, from Corentin Labbe.
      
        29) DMA use after free in r8169 with WoL, fom Heiner Kallweit.
      
        30) Mismatched prototypes in isdn-capi, from Arnd Bergmann.
      
        31) Fix psample UAPI breakage, from Ido Schimmel"
      
      * git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net: (171 commits)
        psample: Fix user API breakage
        math: Export mul_u64_u64_div_u64
        ch_ktls: fix enum-conversion warning
        octeontx2-af: Fix memory leak of object buf
        ptp_qoriq: fix overflow in ptp_qoriq_adjfine() u64 calcalation
        net: bridge: don't notify switchdev for local FDB addresses
        net/sched: act_ct: clear post_ct if doing ct_clear
        net: dsa: don't assign an error value to tag_ops
        isdn: capi: fix mismatched prototypes
        net/mlx5: SF, do not use ecpu bit for vhca state processing
        net/mlx5e: Fix division by 0 in mlx5e_select_queue
        net/mlx5e: Fix error path for ethtool set-priv-flag
        net/mlx5e: Offload tuple rewrite for non-CT flows
        net/mlx5e: Allow to match on MPLS parameters only for MPLS over UDP
        net/mlx5: Add back multicast stats for uplink representor
        net: ipconfig: ic_dev can be NULL in ic_close_devs
        MAINTAINERS: Combine "QLOGIC QLGE 10Gb ETHERNET DRIVER" sections into one
        docs: networking: Fix a typo
        r8169: fix DMA being used after buffer free if WoL is enabled
        net: ipa: fix init header command validation
        ...
      e1381380
    • Arnd Bergmann's avatar
      hinic: avoid gcc -Wrestrict warning · 84c7f6c3
      Arnd Bergmann authored
      
      
      With extra warnings enabled, gcc complains that snprintf should not
      take the same buffer as source and destination:
      
      drivers/net/ethernet/huawei/hinic/hinic_ethtool.c: In function 'hinic_set_settings_to_hw':
      drivers/net/ethernet/huawei/hinic/hinic_ethtool.c:480:9: error: 'snprintf' argument 4 overlaps destination object 'set_link_str' [-Werror=restrict]
        480 |   err = snprintf(set_link_str, SET_LINK_STR_MAX_LEN,
            |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        481 |           "%sspeed %d ", set_link_str, speed);
            |           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      drivers/net/ethernet/huawei/hinic/hinic_ethtool.c:464:7: note: destination object referenced by 'restrict'-qualified argument 1 was declared here
        464 |  char set_link_str[SET_LINK_STR_MAX_LEN] = {0};
      
      Rewrite this to avoid the nested sprintf and instead use separate
      buffers, which is simpler.
      
      Cc: Rasmus Villemoes <linux@rasmusvillemoes.dk>
      Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      Reviewed-by: default avatarRasmus Villemoes <linux@rasmusvillemoes.dk>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      84c7f6c3
    • Ong Boon Leong's avatar
      net: stmmac: support FPE link partner hand-shaking procedure · 5a558611
      Ong Boon Leong authored
      
      
      In order to discover whether remote station supports frame preemption,
      local station sends verify mPacket and expects response mPacket in
      return from the remote station.
      
      So, we add the functions to send and handle event when verify mPacket
      and response mPacket are exchanged between the networked stations.
      
      The mechanism to handle different FPE states between local and remote
      station (link partner) is implemented using workqueue which starts a
      task each time there is some sign of verify & response mPacket exchange
      as check in FPE IRQ event. The task retries couple of times to try to
      spot the states that both stations are ready to enter FPE ON. This allows
      different end points to enable FPE at different time and verify-response
      mPacket can happen asynchronously. Ultimately, the task will only turn
      FPE ON when local station have both exchange response in both directions.
      
      Thanks to Voon Weifeng for implementing the core functions for detecting
      FPE events and send mPacket and phylink related change.
      
      Signed-off-by: default avatarOng Boon Leong <boon.leong.ong@intel.com>
      Co-developed-by: default avatarVoon Weifeng <weifeng.voon@intel.com>
      Signed-off-by: default avatarVoon Weifeng <weifeng.voon@intel.com>
      Co-developed-by: default avatarTan Tee Min <tee.min.tan@intel.com>
      Signed-off-by: default avatarTan Tee Min <tee.min.tan@intel.com>
      Co-developed-by: default avatarMohammad Athari Bin Ismail <mohammad.athari.ismail@intel.com>
      Signed-off-by: default avatarMohammad Athari Bin Ismail <mohammad.athari.ismail@intel.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      5a558611
    • Wang Hai's avatar
      6lowpan: Fix some typos in nhc_udp.c · da1da87f
      Wang Hai authored
      
      
      s/Orignal/Original/
      s/infered/inferred/
      
      Reported-by: default avatarHulk Robot <hulkci@huawei.com>
      Signed-off-by: default avatarWang Hai <wanghai38@huawei.com>
      Acked-by: default avatarRandy Dunlap <rdunlap@infradead.org>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      da1da87f
    • Wang Hai's avatar
      net/packet: Fix a typo in af_packet.c · 0e4161d0
      Wang Hai authored
      
      
      s/sequencially/sequentially/
      
      Reported-by: default avatarHulk Robot <hulkci@huawei.com>
      Signed-off-by: default avatarWang Hai <wanghai38@huawei.com>
      Acked-by: default avatarRandy Dunlap <rdunlap@infradead.org>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      0e4161d0
    • Wang Hai's avatar
      net/tls: Fix a typo in tls_device.c · 72a0f6d0
      Wang Hai authored
      
      
      s/beggining/beginning/
      
      Reported-by: default avatarHulk Robot <hulkci@huawei.com>
      Signed-off-by: default avatarWang Hai <wanghai38@huawei.com>
      Acked-by: default avatarRandy Dunlap <rdunlap@infradead.org>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      72a0f6d0
    • Zhichao Cai's avatar
      Simplify the code by using module_platform_driver macro · d280a2c2
      Zhichao Cai authored
      
      
      for ftmac100
      
      Signed-off-by: default avatarZhichao Cai <caizhichao@yulong.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      d280a2c2
    • David S. Miller's avatar
      Merge branch 'ipa-versions-and-registers' · 69cdfb53
      David S. Miller authored
      
      
      Alex Elder says:
      
      ====================
      net: ipa: versions and registers
      
      Version 2 of this series adds kernel-doc descriptions for all
      members of the ipa_version enumerated type in patch 2.
      
      The original description of the series is below.
      
      					-Alex
      
      This series is sort of a mix of things, generally related to
      updating IPA versions and register definitions.
      
      The first patch fixes some version-related tests throughout the code
      so the conditions are valid for IPA versions other than the two that
      are currently supported.  Support for additional versions is
      forthcoming, and this is a preparatory step.
      
      The second patch adds to the set of defined IPA versions, to include
      all versions between 3.0 and 4.11.
      
      The next defines an endpoint initialization register that was
      previously not being configured.  We now initialize that register
      (so that NAT is explicitly disabled) on all AP endpoints.
      
      The fourth adds support for an extra bit in a field in a register,
      which is present starting at IPA v4.5.
      
      The last two are sort of standalone.  One just moves a function
      definition and makes it private.  The other increases the number of
      GSI channels and events supported by the driver, sufficient for IPA
      v4.5.
      ====================
      
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      69cdfb53
    • Alex Elder's avatar
      net: ipa: increase channels and events · 810a2e1f
      Alex Elder authored
      
      
      Increase the maximum number of channels and event rings supported by
      the driver, to allow the maximum available on the SDX55.
      
      Signed-off-by: default avatarAlex Elder <elder@linaro.org>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      810a2e1f
    • Alex Elder's avatar
      net: ipa: move ipa_aggr_granularity_val() · 1910494e
      Alex Elder authored
      
      
      We only use ipa_aggr_granularity_val() inside "ipa_main.c", so it
      doesn't really need to be defined in a header file.  It makes some
      sense to be grouped with the register definitions, but it is unlike
      the other inline functions now defined in "ipa_reg.h".  So move it
      into "ipa_main.c" where it's used.  TIMER_FREQUENCY is used only
      by that function, so move that definition as well.
      
      Signed-off-by: default avatarAlex Elder <elder@linaro.org>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      1910494e
    • Alex Elder's avatar
      net: ipa: limit local processing context address · e6e49e43
      Alex Elder authored
      
      
      Not all of the bits of the LOCAL_PKT_PROC_CNTXT register are valid.
      Until IPA v4.5, there are 17 valid bits (though the bottom three
      must be zero).  Starting with IPA v4.5, 18 bits are valid.
      
      Introduce proc_cntxt_base_addr_encoded() to encode the base address
      for use in the register using only the valid bits.
      
      Shorten the name of the register (omit "_BASE") to avoid the need to
      wrap the line in the one place it's used.
      
      Signed-off-by: default avatarAlex Elder <elder@linaro.org>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      e6e49e43
    • Alex Elder's avatar
      net: ipa: define the ENDP_INIT_NAT register · 647a05f3
      Alex Elder authored
      
      
      Define the ENDP_INIT_NAT register for setting up the NAT
      configuration for an endpoint.  We aren't using NAT at this
      time, so explicitly set the type to BYPASS for all endpoints.
      
      Signed-off-by: default avatarAlex Elder <elder@linaro.org>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      647a05f3
    • Alex Elder's avatar
      net: ipa: update version definitions · eb09457c
      Alex Elder authored
      
      
      Add IPA version definitions for all IPA v3.x and v4.x.  Fix the GSI
      version associated with IPA version 4.1.
      
      Signed-off-by: default avatarAlex Elder <elder@linaro.org>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      eb09457c
    • Alex Elder's avatar
      net: ipa: reduce IPA version assumptions · d7f3087b
      Alex Elder authored
      
      
      Modify conditional tests throughout the IPA code so they do not
      assume that IPA v3.5.1 is the oldest version supported.  Also remove
      assumptions that IPA v4.5 is the newest version of IPA supported.
      
      Augment versions in comments with "+", to be clearer that the
      comment applies to a version and subsequent versions.  (E.g.,
      "present for IPA v4.2+" instead of just "present for v4.2".)
      
      Signed-off-by: default avatarAlex Elder <elder@linaro.org>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      d7f3087b