03 Oct, 2014

2 commits


29 Sep, 2014

3 commits


24 Sep, 2014

1 commit


20 Sep, 2014

3 commits


15 Jul, 2014

1 commit


20 Jun, 2014

2 commits

  • Done as task 10 of the eudyptula challenge.

    Signed-off-by: Nicolas Koch
    Signed-off-by: Greg Kroah-Hartman

    Nicolas Koch
     
  • This prevents PHY not found types of errors for PHY drivers that are
    probed after the Ethernet driver is probed, because the ifconfig UP is
    done from userspace after all drivers have been probed.

    Also avoid the cvmx-helper-board.c PHY code if a real PHY driver is
    present, this allows a bootloader supplied device tree to specify the
    PHY information rather than having to modify the code for each
    different board.

    Tested-by: Alex Smith
    Signed-off-by: David Daney
    Signed-off-by: Alex Smith
    Cc: devel@driverdev.osuosl.org
    Signed-off-by: Greg Kroah-Hartman

    David Daney
     

14 May, 2014

1 commit

  • net: get rid of SET_ETHTOOL_OPS

    Dave Miller mentioned he'd like to see SET_ETHTOOL_OPS gone.
    This does that.

    Mostly done via coccinelle script:
    @@
    struct ethtool_ops *ops;
    struct net_device *dev;
    @@
    - SET_ETHTOOL_OPS(dev, ops);
    + dev->ethtool_ops = ops;

    Compile tested only, but I'd seriously wonder if this broke anything.

    Suggested-by: Dave Miller
    Signed-off-by: Wilfried Klaebe
    Acked-by: Felipe Balbi
    Signed-off-by: David S. Miller

    Wilfried Klaebe
     

03 Apr, 2014

1 commit

  • Pull networking updates from David Miller:
    "Here is my initial pull request for the networking subsystem during
    this merge window:

    1) Support for ESN in AH (RFC 4302) from Fan Du.

    2) Add full kernel doc for ethtool command structures, from Ben
    Hutchings.

    3) Add BCM7xxx PHY driver, from Florian Fainelli.

    4) Export computed TCP rate information in netlink socket dumps, from
    Eric Dumazet.

    5) Allow IPSEC SA to be dumped partially using a filter, from Nicolas
    Dichtel.

    6) Convert many drivers to pci_enable_msix_range(), from Alexander
    Gordeev.

    7) Record SKB timestamps more efficiently, from Eric Dumazet.

    8) Switch to microsecond resolution for TCP round trip times, also
    from Eric Dumazet.

    9) Clean up and fix 6lowpan fragmentation handling by making use of
    the existing inet_frag api for it's implementation.

    10) Add TX grant mapping to xen-netback driver, from Zoltan Kiss.

    11) Auto size SKB lengths when composing netlink messages based upon
    past message sizes used, from Eric Dumazet.

    12) qdisc dumps can take a long time, add a cond_resched(), From Eric
    Dumazet.

    13) Sanitize netpoll core and drivers wrt. SKB handling semantics.
    Get rid of never-used-in-tree netpoll RX handling. From Eric W
    Biederman.

    14) Support inter-address-family and namespace changing in VTI tunnel
    driver(s). From Steffen Klassert.

    15) Add Altera TSE driver, from Vince Bridgers.

    16) Optimizing csum_replace2() so that it doesn't adjust the checksum
    by checksumming the entire header, from Eric Dumazet.

    17) Expand BPF internal implementation for faster interpreting, more
    direct translations into JIT'd code, and much cleaner uses of BPF
    filtering in non-socket ocntexts. From Daniel Borkmann and Alexei
    Starovoitov"

    * git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next: (1976 commits)
    netpoll: Use skb_irq_freeable to make zap_completion_queue safe.
    net: Add a test to see if a skb is freeable in irq context
    qlcnic: Fix build failure due to undefined reference to `vxlan_get_rx_port'
    net: ptp: move PTP classifier in its own file
    net: sxgbe: make "core_ops" static
    net: sxgbe: fix logical vs bitwise operation
    net: sxgbe: sxgbe_mdio_register() frees the bus
    Call efx_set_channels() before efx->type->dimension_resources()
    xen-netback: disable rogue vif in kthread context
    net/mlx4: Set proper build dependancy with vxlan
    be2net: fix build dependency on VxLAN
    mac802154: make csma/cca parameters per-wpan
    mac802154: allow only one WPAN to be up at any given time
    net: filter: minor: fix kdoc in __sk_run_filter
    netlink: don't compare the nul-termination in nla_strcmp
    can: c_can: Avoid led toggling for every packet.
    can: c_can: Simplify TX interrupt cleanup
    can: c_can: Store dlc private
    can: c_can: Reduce register access
    can: c_can: Make the code readable
    ...

    Linus Torvalds
     

25 Mar, 2014

1 commit


19 Mar, 2014

2 commits


17 Mar, 2014

1 commit


08 Mar, 2014

3 commits


05 Mar, 2014

5 commits


18 Dec, 2013

1 commit


30 Oct, 2013

1 commit


15 Oct, 2013

2 commits


12 Oct, 2013

3 commits


07 Oct, 2013

2 commits


26 Sep, 2013

1 commit


17 Sep, 2013

3 commits

  • Enable only those interrupts that we can handle & acknowledge in the
    interrupt handler.

    At least on EdgeRouter Lite, the hardware may occasionally interrupt with
    some error condition when the physical link status changes frequently.
    Since the interrupt condition is not acked properly, this leads to the
    following warning and the IRQ gets disabled completely:

    [ 41.324700] eth0: Link down
    [ 44.324721] eth0: 1000 Mbps Full duplex, port 0, queue 0
    [ 44.885590] irq 117: nobody cared (try booting with the "irqpoll" option)
    [ 44.892397] CPU: 0 PID: 0 Comm: swapper/0 Not tainted 3.11.0-rc5-edge-los.git-27d042f-dirty-00950-gaa42f2d-dirty #8
    [ 44.902825] Stack : ffffffff815c0000 0000000000000004 0000000000000003 0000000000000000
    ffffffff81fd0000 ffffffff815c0000 0000000000000004 ffffffff8118530c
    ffffffff815c0000 ffffffff811858d8 0000000000000000 0000000000000000
    ffffffff81fd0000 ffffffff81fc0000 ffffffff8152f3a0 ffffffff815b7bf7
    ffffffff81fc6688 ffffffff815b8060 0000000000000000 0000000000000000
    0000000000000000 ffffffff815346c8 ffffffff815346b0 ffffffff814a6a18
    ffffffff8158b848 ffffffff81145614 ffffffff81593800 ffffffff81187174
    ffffffff815b7d00 ffffffff8158b760 0000000000000000 ffffffff814a9184
    0000000000000000 0000000000000000 0000000000000000 0000000000000000
    0000000000000000 ffffffff811203b8 0000000000000000 0000000000000000
    ...
    [ 44.968408] Call Trace:
    [ 44.970873] [] show_stack+0x68/0x80
    [ 44.975937] [] dump_stack+0x78/0xb8
    [ 44.980999] [] __report_bad_irq+0x44/0x108
    [ 44.986662] [] note_interrupt+0x248/0x2a0
    [ 44.992240] [] handle_irq_event_percpu+0x144/0x200
    [ 44.998598] [] handle_irq_event+0x54/0x90
    [ 45.004176] [] handle_level_irq+0xd0/0x148
    [ 45.009839] [] generic_handle_irq+0x34/0x50
    [ 45.015589] [] do_IRQ+0x18/0x30
    [ 45.020301] [] plat_irq_dispatch+0x74/0xb8
    [ 45.025958]
    [ 45.027451] handlers:
    [ 45.029731] [] cvm_oct_rgmii_rml_interrupt
    [ 45.035397] Disabling IRQ #117
    [ 45.038742] Port 0 receive error code 13, packet dropped
    [ 46.324719] eth0: Link down
    [ 48.324733] eth0: 1000 Mbps Full duplex, port 0, queue 0

    Reported-by: "Jason A. Donenfeld"
    Signed-off-by: Aaro Koskinen
    Acked-by: David Daney
    Cc: Greg Kroah-Hartman
    Cc: devel@driverdev.osuosl.org
    Cc: linux-mips@linux-mips.org
    Cc: Jason A. Donenfeld
    Cc: richard@nod.at
    Patchwork: https://patchwork.linux-mips.org/patch/5810/
    Signed-off-by: Ralf Baechle

    Aaro Koskinen
     
  • Remove skb allocation failure warnings. They will trigger a page
    allocation warning already. Also, one of the warnings was not ratelimited,
    causing the box to lock up under heavy traffic & low memory.

    Signed-off-by: Aaro Koskinen
    Acked-by: David Daney
    Cc: Greg Kroah-Hartman
    Cc: devel@driverdev.osuosl.org
    Cc: linux-mips@linux-mips.org
    Cc: Jason A. Donenfeld
    Cc: richard@nod.at
    Cc: Aaro Koskinen
    Patchwork: https://patchwork.linux-mips.org/patch/5811/
    Signed-off-by: Ralf Baechle

    Aaro Koskinen
     
  • We should count also dropped packets, otherwise the NAPI handler may
    end up running too long.

    Signed-off-by: Aaro Koskinen
    Cc: Greg Kroah-Hartman
    Cc: devel@driverdev.osuosl.org
    Cc: linux-mips@linux-mips.org
    Cc: David Daney
    Cc: Jason A. Donenfeld
    Cc: richard@nod.at
    Patchwork: https://patchwork.linux-mips.org/patch/5809/
    Signed-off-by: Ralf Baechle

    Aaro Koskinen
     

11 Jun, 2013

1 commit

  • CAVIUM_OCTEON_SOC most place we used to use CPU_CAVIUM_OCTEON. This
    allows us to CPU_CAVIUM_OCTEON in places where we have no OCTEON SOC.

    Remove CAVIUM_OCTEON_SIMULATOR as it doesn't really do anything, we can
    get the same configuration with CAVIUM_OCTEON_SOC.

    Signed-off-by: David Daney
    Cc: linux-mips@linux-mips.org
    Cc: linux-ide@vger.kernel.org
    Cc: linux-edac@vger.kernel.org
    Cc: linux-i2c@vger.kernel.org
    Cc: netdev@vger.kernel.org
    Cc: spi-devel-general@lists.sourceforge.net
    Cc: devel@driverdev.osuosl.org
    Cc: linux-usb@vger.kernel.org
    Acked-by: Greg Kroah-Hartman
    Acked-by: Wolfram Sang
    Acked-by: Mauro Carvalho Chehab
    Patchwork: https://patchwork.linux-mips.org/patch/5295/
    Signed-off-by: Ralf Baechle

    David Daney