1. 23 10月, 2019 31 次提交
  2. 22 10月, 2019 9 次提交
    • J
      Merge branch '1GbE' of git://git.kernel.org/pub/scm/linux/kernel/git/jkirsher/next-queue · 39438490
      Jakub Kicinski 提交于
      Jeff Kirsher says:
      
      ====================
      1GbE Intel Wired LAN Driver Updates 2019-10-21
      
      This series contains updates to e1000e and igc only.
      
      Sasha adds stream control transmission protocol (SCTP) CRC checksum
      support for igc.  Also added S0ix support to the e1000e driver.  Then
      added multicast support by adding the address list to the MTA table and
      providing the option for IPv6 address for igc.  In addition, added
      receive checksum support to igc as well.  Lastly, cleaned up some code
      that was not fully implemented yet for the VLAN filter table array.
      
      v2: Dropped patch 1 & 2 from the original series.  Patch 1 is being sent
          to 'net' tree as a fix and patch 2 implementation needs to be
          re-worked.  Updated the patch to add support for S0ix to fix the
          reverse Xmas tree issues and made the entry/exit functions void
          since they constantly returned success.  All based on community
          feedback.
      v3: Cleaned up patch 4 of the series based on feedback from the
          community.  Cleaned up a stray comma in a code comment and removed
          the 'inline' of a function that would be inlined by the compiler
          anyways.
      ====================
      Signed-off-by: NJakub Kicinski <jakub.kicinski@netronome.com>
      39438490
    • D
      net/sched: act_police: re-use tcf_tm_dump() · 985fd98a
      Davide Caratti 提交于
      Use tcf_tm_dump(), instead of an open coded variant (no functional change
      in this patch).
      Signed-off-by: NDavide Caratti <dcaratti@redhat.com>
      Acked-by: NJiri Pirko <jiri@mellanox.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      985fd98a
    • D
      Merge branch 'phy-marvell-support-downshift-as-PHY-tunable' · 3e78815f
      David S. Miller 提交于
      Heiner Kallweit says:
      
      ====================
      net: phy: marvell: support downshift as PHY tunable
      
      So far downshift is implemented for one small use case only and can't
      be controlled from userspace. So let's implement this feature properly
      as a PHY tunable so that it can be controlled via ethtool.
      ====================
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      3e78815f
    • H
      net: phy: marvell: remove superseded function marvell_set_downshift · e2d861cc
      Heiner Kallweit 提交于
      Instead of superseded function marvell_set_downshift() we can use new
      function m88e1111_set_downshift() in m88e1116r_config_init().
      For this m88e1116r_config_init() has to be moved in the code.
      Signed-off-by: NHeiner Kallweit <hkallweit1@gmail.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      e2d861cc
    • H
      net: phy: marvell: support downshift as PHY tunable · a3bdfce7
      Heiner Kallweit 提交于
      So far downshift is implemented for one small use case only and can't
      be controlled from userspace. So let's implement this feature properly
      as a PHY tunable so that it can be controlled via ethtool.
      More Marvell PHY's may support downshift, but I restricted it for now
      to the ones where I have the datasheet.
      Signed-off-by: NHeiner Kallweit <hkallweit1@gmail.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      a3bdfce7
    • R
      tc-testing: updated pedit TDC tests · a8fad545
      Roman Mashak 提交于
      Added test cases for IP header operations:
      - set tos/precedence
      - add value to tos/precedence
      - clear tos/precedence
      - invert tos/precedence
      Signed-off-by: NRoman Mashak <mrv@mojatatu.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      a8fad545
    • D
      Merge branch 'mvneta-xdp' · 7170debe
      David S. Miller 提交于
      Lorenzo Bianconi says:
      
      ====================
      add XDP support to mvneta driver
      
      Add XDP support to mvneta driver for devices that rely on software
      buffer management. Supported verdicts are:
      - XDP_DROP
      - XDP_PASS
      - XDP_REDIRECT
      - XDP_TX
      Moreover set ndo_xdp_xmit net_device_ops function pointer in order
      to support redirecting from other device (e.g. virtio-net).
      Convert mvneta driver to page_pool API.
      This series is based on previous work done by Jesper and Ilias.
      We will send follow-up patches to reduce DMA-sync operations.
      
      Changes since v4:
      - reset page_pool pointer to NULL in mvneta_rxq_drop_pkts and in
        mvneta_create_page_pool error path
      - move dma sync in mvneta_rx_refill() in patch 2/7
      - verify bpf prog pointer in mvneta_xdp_setup to double-check if
        stop/start is really necessary
      - coding style fixes
      
      Changes since v3:
      - rename MVNETA_XDP_CONSUMED in MVNETA_XDP_DROPPED
      - squash patch 4/8 and patch 3/8
      - fix dma sync for XDP_TX verdict
      - fix queue_index in xdp_rxq_info_reg
      - cosmetics
      
      Changes since v2:
      - rely on page_pool_recycle_direct instead of xdp_return_buff for XDP_DROP
      - define xdp buffer in mvneta_rx_swbm and avoid default initializations
      - use dma_sync_single_for_cpu instead of dma_sync_single_range_for_cpu
      - run page_pool_release_page in mvneta_swbm_add_rx_fragment even if
        the buffer contains just ETH_FCS
      
      Changes since v1:
      - sync dma buffers before refilling hw queues
      - fix stats accounting
      
      Changes since RFC:
      - implement XDP_TX
      - make tx pending buffer list agnostic
      - code refactoring
      - check if device is running in mvneta_xdp_setup
      ====================
      Reviewed-by: NJakub Kicinski <jakub.kicinski@netronome.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      7170debe
    • L
      net: mvneta: add XDP_TX support · b0a43db9
      Lorenzo Bianconi 提交于
      Implement XDP_TX verdict and ndo_xdp_xmit net_device_ops function
      pointer
      Signed-off-by: NLorenzo Bianconi <lorenzo@kernel.org>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      b0a43db9
    • L
      net: mvneta: make tx buffer array agnostic · 9e58c8b4
      Lorenzo Bianconi 提交于
      Allow tx buffer array to contain both skb and xdp buffers in order to
      enable xdp frame recycling adding XDP_TX verdict support
      Signed-off-by: NLorenzo Bianconi <lorenzo@kernel.org>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      9e58c8b4