1. 01 Apr, 2017 15 commits
  2. 31 Mar, 2017 1 commit
    • Paolo Abeni's avatar
      sock: avoid dirtying sk_stamp, if possible · 6c7c98ba
      Paolo Abeni authored
      sock_recv_ts_and_drops() unconditionally set sk->sk_stamp for
      every packet, even if the SOCK_TIMESTAMP flag is not set in the
      related socket.
      If selinux is enabled, this cause a cache miss for every packet
      since sk->sk_stamp and sk->sk_security share the same cacheline.
      With this change sk_stamp is set only if the SOCK_TIMESTAMP
      flag is set, and is cleared for the first packet, so that the user
      perceived behavior is unchanged.
      
      This gives up to 5% speed-up under udp-flood with small packets.
      Signed-off-by: default avatarPaolo Abeni <pabeni@redhat.com>
      Acked-by: default avatarEric Dumazet <edumazet@google.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      6c7c98ba
  3. 30 Mar, 2017 16 commits
  4. 29 Mar, 2017 8 commits
    • David S. Miller's avatar
      Merge branch '40GbE' of git://git.kernel.org/pub/scm/linux/kernel/git/jkirsher/next-queue · 397df709
      David S. Miller authored
      Jeff Kirsher says:
      
      ====================
      40GbE Intel Wired LAN Driver Updates 2017-03-29
      
      This series contains updates to i40e and i40evf only.
      
      Preethi changes the default driver mode of operation to descriptor
      write-back for VF.
      
      Alex cleans up and addresses several issues in the way that i40e handles
      private flags.  Modifies the driver to use the length of the packet
      instead of the DD status bit to determine if a new descriptor is ready
      to be processed.  Refactors the driver by pulling the code responsible
      for fetching the receive buffer and synchronizing DMA into a single
      function.  Also pulled the code responsible for handling buffer
      recycling and page counting and distributed it through several functions,
      so we can commonize the bits that handle either freeing or recycling the
      buffers.  Cleans up the code in preparation for us adding support for
      build_skb().  Changed the way we handle the maximum frame size for the
      receive path so it is more consistent with other drivers.
      
      Paul enables XL722 to use the direct read/write method since it does not
      support the AQ command to read/write the control register.
      
      Christopher fixes a case where we miss an arq element if a new one is
      added before we enable interrupts and exit the loop.
      
      Jake cleans up a pointless goto statement.  Also cleaned up a flag that
      was not being used.
      
      Carolyn does round 2 for adding a delay to the receive queue to
      accommodate the hardware needs.
      ====================
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      397df709
    • David S. Miller's avatar
      Merge branch 'tipc-socketpair' · 14a98e65
      David S. Miller authored
      Parthasarathy Bhuvaragan says:
      
      ====================
      tipc: add socketpair support
      
      We add socketpair support for connection oriented sockets in
      the first patch and for connection less in the second.
      ====================
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      14a98e65
    • Erik Hugne's avatar
      tipc: allow rdm/dgram socketpairs · 66bc1e8d
      Erik Hugne authored
      for socketpairs using connectionless transport, we cache
      the respective node local TIPC portid to use in subsequent
      calls to send() in the socket's private data.
      Signed-off-by: default avatarErik Hugne <erik.hugne@gmail.com>
      Signed-off-by: default avatarParthasarathy Bhuvaragan <parthasarathy.bhuvaragan@ericsson.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      66bc1e8d
    • Erik Hugne's avatar
      tipc: add support for stream/seqpacket socketpairs · 70b03759
      Erik Hugne authored
      sockets A and B are connected back-to-back, similar to what
      AF_UNIX does.
      Signed-off-by: default avatarErik Hugne <erik.hugne@gmail.com>
      Signed-off-by: default avatarParthasarathy Bhuvaragan <parthasarathy.bhuvaragan@ericsson.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      70b03759
    • Jisheng Zhang's avatar
      net: mvneta: set rx mode during resume if interface is running · d6956ac8
      Jisheng Zhang authored
      I found a bug by:
      
      0. boot and start dhcp client
      1. echo mem > /sys/power/state
      2. resume back immediately
      3. don't touch dhcp client to renew the lease
      4. ping the gateway. No acks
      
      Usually, after step2, the DHCP lease isn't expired, so in theory we
      should resume all back. But in fact, it doesn't. It turns out
      the rx mode isn't resumed correctly. This patch fixes it by adding
      mvneta_set_rx_mode(dev) in the resume hook if interface is running.
      Signed-off-by: default avatarJisheng Zhang <jszhang@marvell.com>
      Reviewed-by: default avatarAndrew Lunn <andrew@lunn.ch>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      d6956ac8
    • Jisheng Zhang's avatar
      net: mvneta: add RGMII_RXID and RGMII_TXID support · a38d20d7
      Jisheng Zhang authored
      RGMII_RXID and RGMII_TX_ID share the same GMAC CTRL setting as RGMII
      or RGMII_ID.
      Signed-off-by: default avatarJisheng Zhang <jszhang@marvell.com>
      Reviewed-by: default avatarAndrew Lunn <andrew@lunn.ch>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      a38d20d7
    • Philippe Reynes's avatar
      net: veth: use new api ethtool_{get|set}_link_ksettings · 56607b98
      Philippe Reynes authored
      The ethtool api {get|set}_settings is deprecated.
      We move this driver to new api {get|set}_link_ksettings.
      Signed-off-by: default avatarPhilippe Reynes <tremyfr@gmail.com>
      Reviewed-by: default avatarXin Long <lucien.xin@gmail.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      56607b98
    • David S. Miller's avatar
      Merge tag 'mlx5e-pedit' of git://git.kernel.org/pub/scm/linux/kernel/git/saeed/linux · 6c225706
      David S. Miller authored
      Or Gerlitz says:
      
      ====================
      mlx5e-pedit 2017-03-28
      
      This series adds support for offloading modifications of packet headers using
      ConnectX-5 HW header re-write as an action applied during packet steering.
      
      The offloaded SW mechanism is TC's pedit action. The offloading is
      supported for E-Switch steering of VF traffic in the SRIOV
      switchdev mode and for NIC (non eswitch) RX.
      
      One use-case for this offload on virtual networks, is when the hypervisor
      implements flow based router such as Open-Stack's DVR, where L2 headers
      of guest packets re-written with routers' MAC addresses and the IP TTL
      is decremented.
      
      Another use case (which can be applied in parallel with routing) is
      stateless NAT where guest L3/L4 headers are re-written.
      
      The series is built as follows: the 1st six patches are preperations which
      don't yet add new functionality, patches 7-8 add the FW APIs (data-structures
      and commands) for header re-write, and patch nine allows offloading driver
      to access pedit keys.
      
      The 10th patch is somehow the core of the series, where we translate from
      the pedit way to represent set of header modification elements to the FW
      API for that same matter.
      
      Once a set of HW modification is established, we register it with the FW
      and get a modify header ID. When this ID is used with an action during
      packet steering, the HW applies the header modification on the packet.
      
      Patches 11 and 12 implement the above logic as an offload for pedit action
      for the NIC and E-Switch use-cases.
      
      I'd like to thanks Elijah Shakkour <elijahs@mellanox.com> for implementing
      and helping me testing this functionality on HW simulator, before it could
      be done with FW.
      ====================
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      6c225706