08 Dec, 2011

1 commit


10 Nov, 2011

1 commit


25 Oct, 2011

1 commit


27 Sep, 2011

1 commit

  • Icmp packets with wrong checksum are never dropped since skb->ip_summed is
    set to CHECKSUM_UNNECESSARY.

    When icmp packets with wrong checksum pass through the octeon net driver,
    the not_IP, IP_exc, L4_error hardware indicators show no error. so the
    driver sets CHECKSUM_UNNECESSARY on skb->ip_summed.

    L4_error only works for TCP/UDP, not for ICMP.

    Signed-off-by: Roy.Li
    To: linux-mips@linux-mips.org
    Cc: netdev@vger.kernel.org
    Cc: ralf@linux-mips.org
    Patchwork: https://patchwork.linux-mips.org/patch/2798/
    Acked-by: David Daney
    Cc: Greg KH

    Roy.Li
     

22 Sep, 2011

1 commit

  • Conflicts:
    MAINTAINERS
    drivers/net/Kconfig
    drivers/net/ethernet/broadcom/bnx2x/bnx2x_link.c
    drivers/net/ethernet/broadcom/tg3.c
    drivers/net/wireless/iwlwifi/iwl-pci.c
    drivers/net/wireless/iwlwifi/iwl-trans-tx-pcie.c
    drivers/net/wireless/rt2x00/rt2800usb.c
    drivers/net/wireless/wl12xx/main.c

    David S. Miller
     

24 Aug, 2011

1 commit


18 Aug, 2011

1 commit


27 Jul, 2011

1 commit

  • This allows us to move duplicated code in
    (atomic_inc_not_zero() for now) to

    Signed-off-by: Arun Sharma
    Reviewed-by: Eric Dumazet
    Cc: Ingo Molnar
    Cc: David Miller
    Cc: Eric Dumazet
    Acked-by: Mike Frysinger
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Arun Sharma
     

29 Jun, 2011

1 commit


26 Apr, 2011

1 commit


31 Mar, 2011

1 commit


05 Feb, 2011

1 commit


29 Oct, 2010

1 commit


15 Oct, 2010

1 commit

  • Remove functions and definitions that refer to USB since the driver
    doesn't support USB and it's not planned to add USB support to that
    driver. So the code is just dead code which can be removed.

    Cc: David Daney
    Signed-off-by: Bernhard Walle
    Signed-off-by: Greg Kroah-Hartman

    Bernhard Walle
     

08 Oct, 2010

1 commit


30 Sep, 2010

1 commit


21 Sep, 2010

1 commit


17 Sep, 2010

1 commit


05 Sep, 2010

1 commit


04 Sep, 2010

1 commit

  • OCTEON_ETHERNET should depend on NETDEVICES.

    Fixes this kconfig warning:

    warning: (NET_DSA && NET && EXPERIMENTAL && NETDEVICES && !S390 || ...
    || OCTEON_ETHERNET && STAGING && !STAGING_EXCLUDE_BUILD && CPU_CAVIUM_OCTEON) selects PHYLIB which has unmet direct dependencies (!S390 && NETDEVICES)

    Reported-by: Arnaud Lacombe
    Signed-off-by: Randy Dunlap
    Cc: support@caviumnetworks.com
    Signed-off-by: Greg Kroah-Hartman

    Randy Dunlap
     

06 Aug, 2010

1 commit


03 Aug, 2010

1 commit


23 Jul, 2010

1 commit


19 Jul, 2010

1 commit

  • The phy_mii_ioctl() function unnecessarily throws away the original ifreq.
    We need access to the ifreq in order to support PHYs that can perform
    hardware time stamping.

    Two maverick drivers filter the ioctl commands passed to phy_mii_ioctl().
    This is unnecessary since phylib will check the command in any case.

    Signed-off-by: Richard Cochran
    Signed-off-by: David S. Miller

    Richard Cochran
     

23 Jun, 2010

1 commit


01 May, 2010

1 commit


30 Mar, 2010

1 commit

  • …it slab.h inclusion from percpu.h

    percpu.h is included by sched.h and module.h and thus ends up being
    included when building most .c files. percpu.h includes slab.h which
    in turn includes gfp.h making everything defined by the two files
    universally available and complicating inclusion dependencies.

    percpu.h -> slab.h dependency is about to be removed. Prepare for
    this change by updating users of gfp and slab facilities include those
    headers directly instead of assuming availability. As this conversion
    needs to touch large number of source files, the following script is
    used as the basis of conversion.

    http://userweb.kernel.org/~tj/misc/slabh-sweep.py

    The script does the followings.

    * Scan files for gfp and slab usages and update includes such that
    only the necessary includes are there. ie. if only gfp is used,
    gfp.h, if slab is used, slab.h.

    * When the script inserts a new include, it looks at the include
    blocks and try to put the new include such that its order conforms
    to its surrounding. It's put in the include block which contains
    core kernel includes, in the same order that the rest are ordered -
    alphabetical, Christmas tree, rev-Xmas-tree or at the end if there
    doesn't seem to be any matching order.

    * If the script can't find a place to put a new include (mostly
    because the file doesn't have fitting include block), it prints out
    an error message indicating which .h file needs to be added to the
    file.

    The conversion was done in the following steps.

    1. The initial automatic conversion of all .c files updated slightly
    over 4000 files, deleting around 700 includes and adding ~480 gfp.h
    and ~3000 slab.h inclusions. The script emitted errors for ~400
    files.

    2. Each error was manually checked. Some didn't need the inclusion,
    some needed manual addition while adding it to implementation .h or
    embedding .c file was more appropriate for others. This step added
    inclusions to around 150 files.

    3. The script was run again and the output was compared to the edits
    from #2 to make sure no file was left behind.

    4. Several build tests were done and a couple of problems were fixed.
    e.g. lib/decompress_*.c used malloc/free() wrappers around slab
    APIs requiring slab.h to be added manually.

    5. The script was run on all .h files but without automatically
    editing them as sprinkling gfp.h and slab.h inclusions around .h
    files could easily lead to inclusion dependency hell. Most gfp.h
    inclusion directives were ignored as stuff from gfp.h was usually
    wildly available and often used in preprocessor macros. Each
    slab.h inclusion directive was examined and added manually as
    necessary.

    6. percpu.h was updated not to include slab.h.

    7. Build test were done on the following configurations and failures
    were fixed. CONFIG_GCOV_KERNEL was turned off for all tests (as my
    distributed build env didn't work with gcov compiles) and a few
    more options had to be turned off depending on archs to make things
    build (like ipr on powerpc/64 which failed due to missing writeq).

    * x86 and x86_64 UP and SMP allmodconfig and a custom test config.
    * powerpc and powerpc64 SMP allmodconfig
    * sparc and sparc64 SMP allmodconfig
    * ia64 SMP allmodconfig
    * s390 SMP allmodconfig
    * alpha SMP allmodconfig
    * um on x86_64 SMP allmodconfig

    8. percpu.h modifications were reverted so that it could be applied as
    a separate patch and serve as bisection point.

    Given the fact that I had only a couple of failures from tests on step
    6, I'm fairly confident about the coverage of this conversion patch.
    If there is a breakage, it's likely to be something in one of the arch
    headers which should be easily discoverable easily on most builds of
    the specific arch.

    Signed-off-by: Tejun Heo <tj@kernel.org>
    Guess-its-ok-by: Christoph Lameter <cl@linux-foundation.org>
    Cc: Ingo Molnar <mingo@redhat.com>
    Cc: Lee Schermerhorn <Lee.Schermerhorn@hp.com>

    Tejun Heo
     

01 Mar, 2010

1 commit


27 Feb, 2010

11 commits

  • This file shouldn't be in /proc, so we remove it.

    Signed-off-by: David Daney
    To: linux-mips@linux-mips.org
    To: netdev@vger.kernel.org
    To: gregkh@suse.de
    Patchwork: http://patchwork.linux-mips.org/patch/970/
    Signed-off-by: Ralf Baechle

    David Daney
     
  • Many of the comments didn't follow kerneldoc guidlines.

    Signed-off-by: David Daney
    To: linux-mips@linux-mips.org
    To: netdev@vger.kernel.org
    To: gregkh@suse.de
    Patchwork: http://patchwork.linux-mips.org/patch/971/
    Signed-off-by: Ralf Baechle

    David Daney
     
  • If we wait for the once-per-second cleanup to free transmit SKBs,
    sockets with small transmit buffer sizes might spend most of their
    time blocked waiting for the cleanup.

    Normally we do a cleanup for each transmitted packet. We add a
    watchdog type timer so that we also schedule a timeout for 150uS after
    a packet is transmitted. The watchdog is reset for each transmitted
    packet, so for high packet rates, it never expires. At these high
    rates, the cleanups are done for each packet so the extra watchdog
    initiated cleanups are neither needed nor triggered.

    Signed-off-by: David Daney
    To: linux-mips@linux-mips.org
    To: netdev@vger.kernel.org
    To: gregkh@suse.de
    Cc: Eric Dumazet
    Patchwork: http://patchwork.linux-mips.org/patch/968/
    Signed-off-by: Ralf Baechle

    This version has spelling and comment changes based on feedback from
    Eric Dumazet.

    David Daney
     
  • When directly accessing a phy, we must acquire the mdio bus lock. To
    do that we cannot be in interrupt context, so we need to move these
    operations to a workqueue.

    Signed-off-by: David Daney
    To: linux-mips@linux-mips.org
    To: netdev@vger.kernel.org
    To: gregkh@suse.de
    Patchwork: http://patchwork.linux-mips.org/patch/965/
    Signed-off-by: Ralf Baechle

    David Daney
     
  • Signed-off-by: David Daney
    To: linux-mips@linux-mips.org
    To: netdev@vger.kernel.org
    To: gregkh@suse.de
    Patchwork: http://patchwork.linux-mips.org/patch/964/
    Signed-off-by: Ralf Baechle

    David Daney
     
  • Signed-off-by: David Daney
    To: linux-mips@linux-mips.org
    To: gregkh@suse.de
    Patchwork: http://patchwork.linux-mips.org/patch/837/
    Signed-off-by: Ralf Baechle

    David Daney
     
  • Octeon ethernet hardware can handle NETIF_F_SG, so we enable it.

    A gather list of up to six fragments will fit in the SKB's CB
    structure, so no extra memory is required. If a SKB has more than six
    fragments, we must linearize it.

    Signed-off-by: David Daney
    To: linux-mips@linux-mips.org
    To: gregkh@suse.de
    Patchwork: http://patchwork.linux-mips.org/patch/838/
    Signed-off-by: Ralf Baechle

    David Daney
     
  • Convert the driver to be a reasonably well behaved NAPI citizen.

    There is one NAPI instance per CPU shared between all input ports. As
    receive backlog increases, NAPI is scheduled on additional CPUs.

    Receive buffer refill code factored out so it can also be called from
    the periodic timer. This is needed to recover from temporary buffer
    starvation conditions.

    Signed-off-by: David Daney
    To: linux-mips@linux-mips.org
    To: gregkh@suse.de
    Patchwork: http://patchwork.linux-mips.org/patch/839/
    Signed-off-by: Ralf Baechle

    David Daney
     
  • Stop the queue if too many packets are queued. Restart it from a high
    resolution timer.

    Rearrange and simplify locking and SKB freeing code

    Signed-off-by: David Daney
    To: linux-mips@linux-mips.org
    To: gregkh@suse.de
    Patchwork: http://patchwork.linux-mips.org/patch/843/
    Signed-off-by: Ralf Baechle

    David Daney
     
  • After aligning the blocks returned by kmalloc, we need to save the original
    pointer so they can be correctly freed.

    There are no guarantees about the alignment of SKB data, so we need to
    handle worst case alignment.

    Since right shifts over subtraction have no distributive property, we need
    to fix the back pointer calculation.

    Signed-off-by: David Daney
    To: linux-mips@linux-mips.org
    Patchwork: http://patchwork.linux-mips.org/patch/884/
    Signed-off-by: Ralf Baechle

    David Daney
     
  • Remove unused code, reindent, and join some spilt strings.

    Signed-off-by: David Daney
    To: linux-mips@linux-mips.org
    To: gregkh@suse.de
    Patchwork: http://patchwork.linux-mips.org/patch/842/
    Signed-off-by: Ralf Baechle

    David Daney
     

19 Feb, 2010

1 commit