1. 02 4月, 2017 38 次提交
  2. 31 3月, 2017 2 次提交
    • P
      sock: avoid dirtying sk_stamp, if possible · 6c7c98ba
      Paolo Abeni 提交于
      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: NPaolo Abeni <pabeni@redhat.com>
      Acked-by: NEric Dumazet <edumazet@google.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      6c7c98ba
    • D
      Merge branch 'ibmvnic-cleanup-resource-handling' · 7801a322
      David S. Miller 提交于
      Nathan Fontenot says:
      
      ====================
      ibmvnic: Cleanup resource handling
      
      In order to better manage the resources of the ibmvnic driver, this set of
      patches creates a set of initialization and release routines for the
      drivers resources. Additionally, some patches do some re-naming of the
      affected routines so that there is a common naming scheme in the driver.
      ====================
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      7801a322