1. 21 2月, 2019 13 次提交
  2. 20 2月, 2019 3 次提交
    • L
      Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net · 40e196a9
      Linus Torvalds 提交于
      Pull networking fixes from David Miller:
      
       1) Fix suspend and resume in mt76x0u USB driver, from Stanislaw
          Gruszka.
      
       2) Missing memory barriers in xsk, from Magnus Karlsson.
      
       3) rhashtable fixes in mac80211 from Herbert Xu.
      
       4) 32-bit MIPS eBPF JIT fixes from Paul Burton.
      
       5) Fix for_each_netdev_feature() on big endian, from Hauke Mehrtens.
      
       6) GSO validation fixes from Willem de Bruijn.
      
       7) Endianness fix for dwmac4 timestamp handling, from Alexandre Torgue.
      
       8) More strict checks in tcp_v4_err(), from Eric Dumazet.
      
       9) af_alg_release should NULL out the sk after the sock_put(), from Mao
          Wenan.
      
      10) Missing unlock in mac80211 mesh error path, from Wei Yongjun.
      
      11) Missing device put in hns driver, from Salil Mehta.
      
      * git://git.kernel.org/pub/scm/linux/kernel/git/davem/net: (44 commits)
        sky2: Increase D3 delay again
        vhost: correctly check the return value of translate_desc() in log_used()
        net: netcp: Fix ethss driver probe issue
        net: hns: Fixes the missing put_device in positive leg for roce reset
        net: stmmac: Fix a race in EEE enable callback
        qed: Fix iWARP syn packet mac address validation.
        qed: Fix iWARP buffer size provided for syn packet processing.
        r8152: Add support for MAC address pass through on RTL8153-BD
        mac80211: mesh: fix missing unlock on error in table_path_del()
        net/mlx4_en: fix spelling mistake: "quiting" -> "quitting"
        net: crypto set sk to NULL when af_alg_release.
        net: Do not allocate page fragments that are not skb aligned
        mm: Use fixed constant in page_frag_alloc instead of size + 1
        tcp: tcp_v4_err() should be more careful
        tcp: clear icsk_backoff in tcp_write_queue_purge()
        net: mv643xx_eth: disable clk on error path in mv643xx_eth_shared_probe()
        qmi_wwan: apply SET_DTR quirk to Sierra WP7607
        net: stmmac: handle endianness in dwmac4_get_timestamp
        doc: Mention MSG_ZEROCOPY implementation for UDP
        mlxsw: __mlxsw_sp_port_headroom_set(): Fix a use of local variable
        ...
      40e196a9
    • K
      sky2: Increase D3 delay again · 1765f5dc
      Kai-Heng Feng 提交于
      Another platform requires even longer delay to make the device work
      correctly after S3.
      
      So increase the delay to 300ms.
      
      BugLink: https://bugs.launchpad.net/bugs/1798921Signed-off-by: NKai-Heng Feng <kai.heng.feng@canonical.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      1765f5dc
    • J
      vhost: correctly check the return value of translate_desc() in log_used() · 816db766
      Jason Wang 提交于
      When fail, translate_desc() returns negative value, otherwise the
      number of iovs. So we should fail when the return value is negative
      instead of a blindly check against zero.
      
      Detected by CoverityScan, CID# 1442593:  Control flow issues  (DEADCODE)
      
      Fixes: cc5e7107 ("vhost: log dirty page correctly")
      Acked-by: NMichael S. Tsirkin <mst@redhat.com>
      Reported-by: NStephen Hemminger <stephen@networkplumber.org>
      Signed-off-by: NJason Wang <jasowang@redhat.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      816db766
  3. 19 2月, 2019 21 次提交
  4. 18 2月, 2019 3 次提交
    • L
      Linux 5.0-rc7 · a3b22b9f
      Linus Torvalds 提交于
      a3b22b9f
    • D
      Merge branch 'netdev-page_frag_alloc-fixes' · 254a1a2b
      David S. Miller 提交于
      Alexander Duyck says:
      
      ====================
      Address recent issues found in netdev page_frag_alloc usage
      
      This patch set addresses a couple of issues that I had pointed out to Jann
      Horn in response to a recent patch submission.
      
      The first issue is that I wanted to avoid the need to read/modify/write the
      size value in order to generate the value for pagecnt_bias. Instead we can
      just use a fixed constant which reduces the need for memory read operations
      and the overall number of instructions to update the pagecnt bias values.
      
      The other, and more important issue is, that apparently we were letting tun
      access the napi_alloc_cache indirectly through netdev_alloc_frag and as a
      result letting it create unaligned accesses via unaligned allocations. In
      order to prevent this I have added a call to SKB_DATA_ALIGN for the fragsz
      field so that we will keep the offset in the napi_alloc_cache
      SMP_CACHE_BYTES aligned.
      ====================
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      254a1a2b
    • A
      net: Do not allocate page fragments that are not skb aligned · 3bed3cc4
      Alexander Duyck 提交于
      This patch addresses the fact that there are drivers, specifically tun,
      that will call into the network page fragment allocators with buffer sizes
      that are not cache aligned. Doing this could result in data alignment
      and DMA performance issues as these fragment pools are also shared with the
      skb allocator and any other devices that will use napi_alloc_frags or
      netdev_alloc_frags.
      
      Fixes: ffde7328 ("net: Split netdev_alloc_frag into __alloc_page_frag and add __napi_alloc_frag")
      Reported-by: NJann Horn <jannh@google.com>
      Signed-off-by: NAlexander Duyck <alexander.h.duyck@linux.intel.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      3bed3cc4
新手
引导
客服 返回
顶部