1. 26 3月, 2021 25 次提交
  2. 25 3月, 2021 15 次提交
    • P
      RDMA/cxgb4: Fix adapter LE hash errors while destroying ipv6 listening server · 3408be14
      Potnuri Bharat Teja 提交于
      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.comSigned-off-by: NPotnuri Bharat Teja <bharat@chelsio.com>
      Reviewed-by: NLeon Romanovsky <leonro@nvidia.com>
      Signed-off-by: NJason Gunthorpe <jgg@nvidia.com>
      3408be14
    • R
      arm64: kernel: disable CNP on Carmel · 20109a85
      Rich Wiley 提交于
      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: NRich 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: NWill Deacon <will@kernel.org>
      20109a85
    • M
      arm64/process.c: fix Wmissing-prototypes build warnings · baa96377
      Maninder Singh 提交于
      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.comReported-by: Nkernel test robot <lkp@intel.com>
      Signed-off-by: NManinder Singh <maninder1.s@samsung.com>
      Link: https://lore.kernel.org/r/1616568899-986-1-git-send-email-maninder1.s@samsung.comSigned-off-by: NWill Deacon <will@kernel.org>
      baa96377
    • L
      Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net · e1381380
      Linus Torvalds 提交于
      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
    • A
      hinic: avoid gcc -Wrestrict warning · 84c7f6c3
      Arnd Bergmann 提交于
      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: NArnd Bergmann <arnd@arndb.de>
      Reviewed-by: NRasmus Villemoes <linux@rasmusvillemoes.dk>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      84c7f6c3
    • O
      net: stmmac: support FPE link partner hand-shaking procedure · 5a558611
      Ong Boon Leong 提交于
      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: NOng Boon Leong <boon.leong.ong@intel.com>
      Co-developed-by: NVoon Weifeng <weifeng.voon@intel.com>
      Signed-off-by: NVoon Weifeng <weifeng.voon@intel.com>
      Co-developed-by: NTan Tee Min <tee.min.tan@intel.com>
      Signed-off-by: NTan Tee Min <tee.min.tan@intel.com>
      Co-developed-by: NMohammad Athari Bin Ismail <mohammad.athari.ismail@intel.com>
      Signed-off-by: NMohammad Athari Bin Ismail <mohammad.athari.ismail@intel.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      5a558611
    • W
      6lowpan: Fix some typos in nhc_udp.c · da1da87f
      Wang Hai 提交于
      s/Orignal/Original/
      s/infered/inferred/
      Reported-by: NHulk Robot <hulkci@huawei.com>
      Signed-off-by: NWang Hai <wanghai38@huawei.com>
      Acked-by: NRandy Dunlap <rdunlap@infradead.org>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      da1da87f
    • W
      net/packet: Fix a typo in af_packet.c · 0e4161d0
      Wang Hai 提交于
      s/sequencially/sequentially/
      Reported-by: NHulk Robot <hulkci@huawei.com>
      Signed-off-by: NWang Hai <wanghai38@huawei.com>
      Acked-by: NRandy Dunlap <rdunlap@infradead.org>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      0e4161d0
    • W
      net/tls: Fix a typo in tls_device.c · 72a0f6d0
      Wang Hai 提交于
      s/beggining/beginning/
      Reported-by: NHulk Robot <hulkci@huawei.com>
      Signed-off-by: NWang Hai <wanghai38@huawei.com>
      Acked-by: NRandy Dunlap <rdunlap@infradead.org>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      72a0f6d0
    • Z
      Simplify the code by using module_platform_driver macro · d280a2c2
      Zhichao Cai 提交于
      for ftmac100
      Signed-off-by: NZhichao Cai <caizhichao@yulong.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      d280a2c2
    • D
      Merge branch 'ipa-versions-and-registers' · 69cdfb53
      David S. Miller 提交于
      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: NDavid S. Miller <davem@davemloft.net>
      69cdfb53
    • A
      net: ipa: increase channels and events · 810a2e1f
      Alex Elder 提交于
      Increase the maximum number of channels and event rings supported by
      the driver, to allow the maximum available on the SDX55.
      Signed-off-by: NAlex Elder <elder@linaro.org>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      810a2e1f
    • A
      net: ipa: move ipa_aggr_granularity_val() · 1910494e
      Alex Elder 提交于
      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: NAlex Elder <elder@linaro.org>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      1910494e
    • A
      net: ipa: limit local processing context address · e6e49e43
      Alex Elder 提交于
      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: NAlex Elder <elder@linaro.org>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      e6e49e43
    • A
      net: ipa: define the ENDP_INIT_NAT register · 647a05f3
      Alex Elder 提交于
      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: NAlex Elder <elder@linaro.org>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      647a05f3