18 Apr, 2008

11 commits

  • datalen is unsigned so it can never be less than zero,
    but that's ok because the attribute passed to nla_len()
    has been validated and therefore a negative return
    value is impossible.

    Signed-off-by: Patrick McHardy
    Signed-off-by: David S. Miller

    Patrick McHardy
     
  • This deblats ~200 bytes when ipv6 and dccp are 'y'.

    Besides, this will ease compilation issues for patches
    I'm working on to make inet hash tables more scalable
    wrt net namespaces.

    Signed-off-by: Pavel Emelyanov
    Signed-off-by: David S. Miller

    Pavel Emelyanov
     
  • As I can see from the code, two places (tcp_v6_syn_recv_sock and
    dccp_v6_request_recv_sock) that call this one already run with
    BHs disabled, so it's safe to call __inet_inherit_port there.

    Besides (in case I missed smth with code review) the calltrace
    tcp_v6_syn_recv_sock
    `- tcp_v4_syn_recv_sock
    `- __inet_inherit_port
    and the similar for DCCP are valid, but assumes BHs to be disabled.

    Signed-off-by: Pavel Emelyanov
    Signed-off-by: David S. Miller

    Pavel Emelyanov
     
  • According to RFC4960 7.2.2,
    When all of the data transmitted by the sender has
    been acknowledged by the recerver, partial_bytes_acked is initialized to 0.

    This patch conforms to rfc requirement.
    Without this fix, cwnd might be error incremented.

    Signed-off-by: Gui Jianfeng
    Acked-by: Vlad Yasevich
    Signed-off-by: David S. Miller

    Gui Jianfeng
     
  • David S. Miller
     
  • * remove changelog from source; its kept in git repository

    * consolidate descriptor version tests using nv_optimized()

    * consolidate NIC DMA start, stop and drain into
    nv_start_txrx(), nv_stop_txrx(), nv_drain_txrx()

    Signed-off-by: Jeff Garzik

    Jeff Garzik
     
  • We were already doing what amounts to a get_phy_id from within
    get_phy_device, and rather than duplicate this for the TBIPA
    probing, we might as well just factor it out and make it available
    instead.

    Signed-off-by: Paul Gortmaker
    Acked-by: Andy Fleming
    Signed-off-by: Jeff Garzik

    Paul Gortmaker
     
  • The BCM5464 can be used with the current broadcom PHY driver
    by just adding the appropriate chip ID and using the existing
    support within.

    Signed-off-by: Paul Gortmaker
    Signed-off-by: Jeff Garzik

    Paul Gortmaker
     
  • Fix the warning:
    drivers/net/cxgb3/cxgb3_main.c: In function ‘offload_open’:
    drivers/net/cxgb3/cxgb3_main.c:936: warning: ignoring return value of
    ‘sysfs_create_group’, declared with attribute warn_unused_result

    Now the return value is checked; if sysfs_create_group() returns failure,
    a warning is printed using dev_dbg, and the code continues as before. Use
    of dev_dbg ensures printk is not needlessly included unless desired for
    debugging.

    Signed-off-by: Dan Noe
    Signed-off-by: Jeff Garzik

    Dan Noe
     
  • On Sat, 12 Apr 2008 05:00:49 -0400, Jeff Garzik wrote:
    > applied 1-6

    Thanks.

    Could you apply this too, or hopufully fold into Andy Fleming's "phy:
    Change mii_bus id field to a string" patch (commit c69fedae) ?

    ------------------------------------------------------
    Subject: [PATCH] tc35815: build fix

    Fix build failure caused by Andy Fleming's "phy: Change mii_bus id
    field to a string" patch.

    Signed-off-by: Atsushi Nemoto
    Signed-off-by: Jeff Garzik

    Atsushi Nemoto
     
  • The driver stores the PCI resource address into 'unsigned long' variable before
    calling ioremap() on it. This warrants a kernel oops when the registers are
    accessed on PPC 44x platforms which (being 32-bit) have PCI memory space mapped
    beyond 4 GB.

    The arch/ppc/ kernel has a fixup in ioremap() that creates an illusion of the
    PCI memory resources are mapped below 4 GB, but arch/powerpc/ code got rid of
    this trick, having instead CONFIG_RESOURCES_64BIT enabled.

    Signed-off-by: Sergei Shtylyov
    Signed-off-by: Jeff Garzik

    Sergei Shtylyov
     

17 Apr, 2008

29 commits