05 Oct, 2015

31 commits


04 Oct, 2015

1 commit

  • Before letting request sockets being put in TCP/DCCP regular
    ehash table, we need to add either :

    - SLAB_DESTROY_BY_RCU flag to their kmem_cache
    - add RCU grace period before freeing them.

    Since we carefully respected the SLAB_DESTROY_BY_RCU protocol
    like ESTABLISH and TIMEWAIT sockets, use it here.

    req_prot_init() being only used by TCP and DCCP, I did not add
    a new slab_flags into their rsk_prot, but reuse prot->slab_flags

    Since all reqsk_alloc() users are correctly dealing with a failure,
    add the __GFP_NOWARN flag to avoid traces under pressure.

    Fixes: 079096f103fa ("tcp/dccp: install syn_recv requests into ehash table")
    Signed-off-by: Eric Dumazet
    Signed-off-by: David S. Miller

    Eric Dumazet
     

03 Oct, 2015

8 commits

  • Jeff Kirsher says:

    ====================
    Intel Wired LAN Driver Updates 2015-09-30

    This series contains updates to i40e and i40evf only.

    Vasily Averin provides a couple of rtnl lock/unlock fixes for both i40e
    and i40evf.

    Shannon provides several updates and fixes, first fixes up a type clash
    in i40e_aq_rc_to_posix(), where the error codes are signed values, so we
    need to treat them as such. Then fixes up a padding issue where an
    extra byte is added in i40e_aqc_get_cee_dcb_cfg_v1_resp to directly
    acknowledge the padding. Updated i40e to keep debugfs register read
    and writes from accessing outside of the io-remapped space. Added
    support and device id for another 20 GbE device.

    Jesse fixes the transmit hand workaround code for ARM that was causing
    Tx hangs to still occur occasionally when there really was no hang. Then
    fixed the receive dropped counter to show up in netstat interface.
    Refactor the interrupt enable function since it was always making the
    caller add the base_vector from the VSI struct which is already passed
    to the function. Fix kbuild warnings found in 0day build infrastructure
    by adding a harmless cast to a dev_info(), also fix 32 bit build
    warnings found by sparse.

    Greg fixed a configuration error that results if a port VLAN is set
    for a VF before the VF driver is loaded, so that when the VF driver is
    loaded the port VLAN is ignored.

    Mitch fixes the use of QOS field consistently in
    i40e_ndo_set_vf_port_vlan(). Modified the init timing of the driver
    to increase stability on load/unload and SR-IOV enable/disable cycles.

    Anjali updates i40e to not collect VEB stats if they are disabled in the
    hardware for performance reasons.
    ====================

    Signed-off-by: David S. Miller

    David S. Miller
     
  • Simon Horman says:

    ====================
    ravb: Add support for r8a7795 SoC

    please consider this series for net-next.
    It enhances the ravb driver to support the r8a7795 SoC.

    Changes:

    * Dropped RFC prefix
    * Details in changelog of individual patches

    Base:

    * net-next/master

    Availability:

    To aid review of this in conjunction with other EtherAVB changes
    the following branches are available in my renesas tree on kernel.org.

    * me/r8a7795-ravb-driver-v4: this series
    * me/r8a7795-ravb-pfc-v2: r8a7795 sh-pfc update for EthernetAVB
    * me/r8a7795-ravb-integration-v4: enable EthernetAVB on r8a7795
    * me/r8a7795-ravb-driver-and-integration-v4.runtime:
    the above three branches with their runtime dependencies
    ====================

    Signed-off-by: David S. Miller

    David S. Miller
     
  • This patch supports the r8a7795 SoC by:
    - Using two interrupts
    + One for E-MAC
    + One for everything else
    + Both can be handled by the existing common interrupt handler, which
    affords a simpler update to support the new SoC. In future some
    consideration may be given to implementing multiple interrupt handlers
    - Limiting the phy speed to 100Mbit/s for the new SoC;
    at this time it is not clear how this restriction may be lifted
    but I hope it will be possible as more information comes to light

    Signed-off-by: Kazuya Mizuguchi
    [horms: reworked]
    Signed-off-by: Simon Horman
    Signed-off-by: David S. Miller

    Kazuya Mizuguchi
     
  • This patch updates the ravb binding to support the r8a7795 SoC by:
    - Adding a compat string for the new hardware
    - Adding 25 named interrupts to binding for the new SoC;
    older SoCs continue to use a single multiplexed interrupt

    The example is also updated to reflect the r8a7795 as this is the
    more complex case.

    Based on work by Kazuya Mizuguchi and others.

    Signed-off-by: Simon Horman
    Acked-by: Geert Uytterhoeven
    Signed-off-by: David S. Miller

    Kazuya Mizuguchi
     
  • This patch is in preparation for using this driver on arm64 where the
    implementation of __dma_alloc_coherent fails if a device parameter is not
    provided.

    Signed-off-by: Kazuya Mizuguchi
    Signed-off-by: Yoshihiro Shimoda
    Signed-off-by: Masaru Nagai
    [horms: squashed into a single patch]
    Signed-off-by: Simon Horman
    Signed-off-by: David S. Miller

    Kazuya Mizuguchi
     
  • Add a helper to allow ethernet drivers to limit the speed of a phy
    (that they are attached to).

    This mainly involves factoring out the business-end of
    of_set_phy_supported() and exporting a new symbol.

    This code seems to be open coded in several places, in several different
    variants.

    It is is envisaged that this will be used in situations where setting the
    "max-speed" property in DT is not appropriate, e.g. because the maximum
    speed is not a property of the phy hardware.

    Signed-off-by: Simon Horman
    Signed-off-by: David S. Miller

    Simon Horman
     
  • Daniel Borkmann says:

    ====================
    BPF updates

    Some minor updates to {cls,act}_bpf to retrieve routing realms
    and to make skb->priority writable.

    Thanks!

    v1 -> v2:
    - Dropped preclassify patch for now from the series as the
    rest is pretty much independent of it
    - Rest unchanged, only rebased and already posted Acked-by's kept
    ====================

    Signed-off-by: David S. Miller

    David S. Miller
     
  • {cls,act}_bpf can now set the skb->priority from an eBPF program based
    on various critera, so that for example classful qdiscs like multiq can
    update the skb's priority during enqueue time and further push it down
    into subsequent qdiscs.

    Signed-off-by: Daniel Borkmann
    Acked-by: Alexei Starovoitov
    Signed-off-by: David S. Miller

    Daniel Borkmann