1. 24 6月, 2017 11 次提交
  2. 23 6月, 2017 14 次提交
  3. 22 6月, 2017 15 次提交
    • Y
      samples/bpf: fix a build problem · 00a3855d
      Yonghong Song 提交于
      tracex5_kern.c build failed with the following error message:
        ../samples/bpf/tracex5_kern.c:12:10: fatal error: 'syscall_nrs.h' file not found
        #include "syscall_nrs.h"
      The generated file syscall_nrs.h is put in build/samples/bpf directory,
      but this directory is not in include path, hence build failed.
      
      The fix is to add $(obj) into the clang compilation path.
      Signed-off-by: NYonghong Song <yhs@fb.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      00a3855d
    • D
      Merge branch 'rds-tcp-fixes' · 2de18105
      David S. Miller 提交于
      Sowmini Varadhan says:
      
      ====================
      rds: tcp: fixes
      
      Patch1 is a bug fix for correct reconnect when a connection
      is restarted. Patch 2 accelerates cleanup by setting linger
      to 1 and sending a RST to the peer.
      ====================
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      2de18105
    • S
      rds: tcp: set linger to 1 when unloading a rds-tcp · c14b0366
      Sowmini Varadhan 提交于
      If we are unloading the rds_tcp module, we can set linger to 1
      and drop pending packets to accelerate reconnect. The peer will
      end up resetting the connection based on new generation numbers
      of the new incarnation, so hanging on to unsent TCP packets via
      linger is mostly pointless in this case.
      Signed-off-by: NSowmini Varadhan <sowmini.varadhan@oracle.com>
      Tested-by: NJenny Xu <jenny.x.xu@oracle.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      c14b0366
    • S
      rds: tcp: send handshake ping-probe from passive endpoint · 69b92b5b
      Sowmini Varadhan 提交于
      The RDS handshake ping probe added by commit 5916e2c1
      ("RDS: TCP: Enable multipath RDS for TCP") is sent from rds_sendmsg()
      before the first data packet is sent to a peer. If the conversation
      is not bidirectional  (i.e., one side is always passive and never
      invokes rds_sendmsg()) and the passive side restarts its rds_tcp
      module, a new HS ping probe needs to be sent, so that the number
      of paths can be re-established.
      
      This patch achieves that by sending a HS ping probe from
      rds_tcp_accept_one() when c_npaths is 0 (i.e., we have not done
      a handshake probe with this peer yet).
      Signed-off-by: NSowmini Varadhan <sowmini.varadhan@oracle.com>
      Tested-by: NJenny Xu <jenny.x.xu@oracle.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      69b92b5b
    • N
      ibmvnic: Correct return code checking for ibmvnic_init during probe · 6d659237
      Nathan Fontenot 提交于
      The update to ibmvnic_init to allow an EAGAIN return code broke
      the calling of ibmvnic_init from ibmvnic_probe. The code now
      will return from this point in the probe routine if anything
      other than EAGAIN is returned. The check should be to see if rc
      is non-zero and not equal to EAGAIN.
      
      Without this fix, the vNIC driver can return 0 (success) from
      its probe routine due to ibmvnic_init returning zero, but before
      completing the probe process and registering with the netdev layer.
      
      Fixes: 6a2fb0e9 (ibmvnic: driver initialization for kdump/kexec)
      Signed-off-by: NNathan Fontenot <nfont@linux.vnet.ibm.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      6d659237
    • D
      Merge branch 'ibmvnic-Correct-long-term-mapped-buffer-error-handling' · 9995bac5
      David S. Miller 提交于
      Thomas Falcon says:
      
      ====================
      ibmvnic: Correct long-term-mapped buffer error handling
      
      This patch set fixes the error-handling of long-term-mapped buffers
      during adapter initialization and reset. The first patch fixes a bug
      in an incorrectly defined descriptor that was keeping the return
      codes from the VIO server from being properly checked. The second patch
      fixes and cleans up the error-handling implementation.
      ====================
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      9995bac5
    • T
      ibmvnic: Fix error handling when registering long-term-mapped buffers · f3be0cbc
      Thomas Falcon 提交于
      The patch stores the return code of the REQUEST_MAP_RSP sub-CRQ command
      in the private data structure, where it can be later checked during
      device open or a reset.
      
      In the case of a reset, the mapping request to the vNIC Server may fail,
      especially in the case of a partition migration. The driver attempts to
      handle this by re-allocating the buffer and re-sending the mapping request.
      
      The original error handling implementation was removed. The separate
      function handling the REQUEST_MAP response message was also removed,
      since it is now simple enough to be handled in the ibmvnic_handle_crq
      function.
      Signed-off-by: NThomas Falcon <tlfalcon@linux.vnet.ibm.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      f3be0cbc
    • T
      ibmvnic: Fix incorrectly defined ibmvnic_request_map_rsp structure · 288ccb75
      Thomas Falcon 提交于
      This reserved area should be eight bytes in length instead of four.
      As a result, the return codes in the REQUEST_MAP_RSP descriptors
      were not being properly handled.
      Signed-off-by: NThomas Falcon <tlfalcon@linux.vnet.ibm.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      288ccb75
    • C
      tcp: Add a tcp_filter hook before handle ack packet · 8fac365f
      Chenbo Feng 提交于
      Currently in both ipv4 and ipv6 code path, the ack packet received when
      sk at TCP_NEW_SYN_RECV state is not filtered by socket filter or cgroup
      filter since it is handled from tcp_child_process and never reaches the
      tcp_filter inside tcp_v4_rcv or tcp_v6_rcv. Adding a tcp_filter hooks
      here can make sure all the ingress tcp packet can be correctly filtered.
      Signed-off-by: NChenbo Feng <fengc@google.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      8fac365f
    • A
      net: phy: smsc: fix buffer overflow in memcpy · 2da55390
      Arnd Bergmann 提交于
      The memcpy annotation triggers for a fixed-length buffer copy:
      
      In file included from /git/arm-soc/arch/arm64/include/asm/processor.h:30:0,
                       from /git/arm-soc/arch/arm64/include/asm/spinlock.h:21,
                       from /git/arm-soc/include/linux/spinlock.h:87,
                       from /git/arm-soc/include/linux/seqlock.h:35,
                       from /git/arm-soc/include/linux/time.h:5,
                       from /git/arm-soc/include/linux/stat.h:21,
                       from /git/arm-soc/include/linux/module.h:10,
                       from /git/arm-soc/drivers/net/phy/smsc.c:20:
      In function 'memcpy',
          inlined from 'smsc_get_strings' at /git/arm-soc/drivers/net/phy/smsc.c:166:3:
      /git/arm-soc/include/linux/string.h:309:4: error: call to '__read_overflow2' declared with attribute error: detected read beyond size of object passed as 2nd parameter
      
      Using strncpy instead of memcpy should do the right thing here.
      
      Fixes: 030a8902 ("net: phy: smsc: Implement PHY statistics")
      Signed-off-by: NArnd Bergmann <arnd@arndb.de>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      2da55390
    • M
      net/mlx5e: Use device ID defines · bbad7c21
      Myron Stowe 提交于
      Use Mellanox device ID definitions in the driver's mlx5 ID table so tools
      such as 'grep' and 'cscope' can be used to help find correlated material
      (such as INTx Masking quirks: d76d2fe0 PCI: Convert Mellanox broken
      INTx quirks to be for listed devices only).
      
      No functional change intended.
      Signed-off-by: NMyron Stowe <myron.stowe@redhat.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      bbad7c21
    • D
      liquidio: stop using huge static buffer, save 4096k in .data · b381f783
      Denys Vlasenko 提交于
      Only compile-tested - I don't have the hardware.
      
      >From code inspection, octeon_pci_write_core_mem() appears to be safe wrt
      unaligned source. In any case, u8 fbuf[] was not guaranteed to be aligned
      anyway.
      Signed-off-by: NDenys Vlasenko <dvlasenk@redhat.com>
      CC: Felix Manlunas <felix.manlunas@cavium.com>
      CC: Prasad Kanneganti <prasad.kanneganti@cavium.com>
      CC: Derek Chickles <derek.chickles@cavium.com>
      CC: David Miller <davem@davemloft.net>
      CC: netdev@vger.kernel.org
      CC: linux-kernel@vger.kernel.org
      Acked-by: NFelix Manlunas <felix.manlunas@cavium.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      b381f783
    • D
      Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net · 3d091982
      David S. Miller 提交于
      Two entries being added at the same time to the IFLA
      policy table, whilst parallel bug fixes to decnet
      routing dst handling overlapping with the dst gc removal
      in net-next.
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      3d091982
    • L
      Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net · 48b6bbef
      Linus Torvalds 提交于
      Pull networking fixes from David Miller:
      
       1) Fix refcounting wrt timers which hold onto inet6 address objects,
          from Xin Long.
      
       2) Fix an ancient bug in wireless wext ioctls, from Johannes Berg.
      
       3) Firmware handling fixes in brcm80211 driver, from Arend Van Spriel.
      
       4) Several mlx5 driver fixes (firmware readiness, timestamp cap
          reporting, devlink command validity checking, tc offloading, etc.)
          From Eli Cohen, Maor Dickman, Chris Mi, and Or Gerlitz.
      
       5) Fix dst leak in IP/IP6 tunnels, from Haishuang Yan.
      
       6) Fix dst refcount bug in decnet, from Wei Wang.
      
       7) Netdev can be double freed in register_vlan_device(). Fix from Gao
          Feng.
      
       8) Don't allow object to be destroyed while it is being dumped in SCTP,
          from Xin Long.
      
       9) Fix dpaa_eth build when modular, from Madalin Bucur.
      
      10) Fix throw route leaks, from Serhey Popovych.
      
      11) IFLA_GROUP missing from if_nlmsg_size() and ifla_policy[] table,
          also from Serhey Popovych.
      
      12) Fix premature TX SKB free in stmmac, from Niklas Cassel.
      
      * git://git.kernel.org/pub/scm/linux/kernel/git/davem/net: (36 commits)
        igmp: add a missing spin_lock_init()
        net: stmmac: free an skb first when there are no longer any descriptors using it
        sfc: remove duplicate up_write on VF filter_sem
        rtnetlink: add IFLA_GROUP to ifla_policy
        ipv6: Do not leak throw route references
        dt-bindings: net: sms911x: Add missing optional VDD regulators
        dpaa_eth: reuse the dma_ops provided by the FMan MAC device
        fsl/fman: propagate dma_ops
        net/core: remove explicit do_softirq() from busy_poll_stop()
        fib_rules: Resolve goto rules target on delete
        sctp: ensure ep is not destroyed before doing the dump
        net/hns:bugfix of ethtool -t phy self_test
        net: 8021q: Fix one possible panic caused by BUG_ON in free_netdev
        cxgb4: notify uP to route ctrlq compl to rdma rspq
        ip6_tunnel: Correct tos value in collect_md mode
        decnet: always not take dst->__refcnt when inserting dst into hash table
        ip6_tunnel: fix potential issue in __ip6_tnl_rcv
        ip_tunnel: fix potential issue in ip_tunnel_rcv
        brcmfmac: fix uninitialized warning in brcmf_usb_probe_phase2()
        net/mlx5e: Avoid doing a cleanup call if the profile doesn't have it
        ...
      48b6bbef
    • D
      Merge branch 'qed-File-split-and-rename-towards-iWARP-support' · 52f80dca
      David S. Miller 提交于
      Michal Kalderon says:
      
      ====================
      qed*: File split and rename towards iWARP support
      
      This patch series makes a few more infrastructure changes towards adding
      iWARP support. Hopefully this is the last infrastructure change
      prior to the iWARP RFC.
      
      Patch #1-3 take care of taking all the common iWARP/RoCE code out of
      qed_roce.[ch] and placing it in qed_rdma.[ch]
      Patch #4 renames the roce interface file as it is common for
      RoCE and iWARP. This patch touches qedr as well.
      ====================
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      52f80dca