03 Oct, 2014
2 commits
-
This patch fixes "quoted string split across lines" checkpatch.pl
warning in ethernet-rx.cSigned-off-by: Gulsah Kose
Signed-off-by: Greg Kroah-Hartman -
This patch fixes "quoted string split across lines" checkpatch.pl
warning in ethernet-rgmii.cSigned-off-by: Gulsah Kose
Signed-off-by: Greg Kroah-Hartman
29 Sep, 2014
3 commits
-
Fixes "Missing a blank line after declarations" checkpatch.pl warning in
ethernet-rgmii.cSigned-off-by: Melike Yurtoglu
Signed-off-by: Greg Kroah-Hartman -
This patch fixes "else is not generally useful after a break or return"
checkpatch.pl warning ethernet-util.hSigned-off-by: Dilek Uzulmez
Acked-by: Daniel Baluta
Signed-off-by: Greg Kroah-Hartman -
The following patch fixes the checpatch.pl warning:
WARNING: line over 80 charactersSigned-off-by: Esra Altintas
Signed-off-by: Greg Kroah-Hartman
24 Sep, 2014
1 commit
-
Fixes "Missing a blank line after declarations"
checkpatch.pl warning in ethernet-xaui.cSigned-off-by: Aybuke Ozdemir
Signed-off-by: Greg Kroah-Hartman
20 Sep, 2014
3 commits
-
This patch fixes "quoted string split across lines" checkpatch.pl
warning in ethernet.cSigned-off-by: Gulsah Kose
Signed-off-by: Greg Kroah-Hartman -
Fixes "Missing a blank line after declarations" checkpatch.pl warning in
ethernet.cSigned-off-by: Gulsah Kose
Signed-off-by: Greg Kroah-Hartman -
Fix checkpatch.pl issues with missing a blank
line after declarations in ethernet-sgmii.cSigned-off-by: Aybuke Ozdemir
Signed-off-by: Greg Kroah-Hartman
15 Jul, 2014
1 commit
-
This patch fixes checkpatch.pl warning. Add blank line after
declaration.Signed-off-by: Rahul Bedarkar
Signed-off-by: Greg Kroah-Hartman
20 Jun, 2014
2 commits
-
Done as task 10 of the eudyptula challenge.
Signed-off-by: Nicolas Koch
Signed-off-by: Greg Kroah-Hartman -
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
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
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
...
25 Mar, 2014
1 commit
-
Replace dev_kfree_skb with dev_kfree_skb_any in cvm_oct_xmit_pow which
can be called in hard irq and other contexts, on the code paths that
drop packets.Replace dev_kfree_skb with dev_consume_skb_any in cvm_oct_xmit_pow which
can be called in hard irq and other contexts, on the code path where
the packet is transmitted successfully.Signed-off-by: "Eric W. Biederman"
19 Mar, 2014
2 commits
-
checkpatch.pl issues with line over
80 characters in ethernet-rgmii.cSigned-off-by: Aybuke Ozdemir
Signed-off-by: Greg Kroah-Hartman -
The patch fixes the following checkpatch.pl warnings:
WARNING: Unnecessary space after function pointer name.Signed-off-by: Aybuke Ozdemir
Signed-off-by: Greg Kroah-Hartman
17 Mar, 2014
1 commit
-
Fix checkpatch.pl issue with
line over 80 characters in ethernet-mdio.cSigned-off-by: Aybuke Ozdemir
Signed-off-by: Peter P Waskiewicz Jr
08 Mar, 2014
3 commits
-
This patch removes unnecessary braces to fix a checkpatch.pl warning.
Signed-off-by: bahar sahin
Reviewed-by: Sarah Sharp
Signed-off-by: Greg Kroah-Hartman -
This patch fixes the checkpatch.pl warning :
Prefer pr_warn(... to pr_warning(...Signed-off-by: Himangi Saraogi
Signed-off-by: Greg Kroah-Hartman -
This patch fixes the checkpatch warning : space prohibited after
that open parenthesis '('.Signed-off-by: Himangi Saraogi
Signed-off-by: Greg Kroah-Hartman
05 Mar, 2014
5 commits
-
ethernet-mem was missing its own include file, causing sparse to complain
about undeclared global functions.Signed-off-by: Aaro Koskinen
Signed-off-by: Greg Kroah-Hartman -
Make global_register_lock static to eliminate a sparse warning.
Signed-off-by: Aaro Koskinen
Signed-off-by: Greg Kroah-Hartman -
Make cvm_oct_free_tx_skbs static to eliminate a sparse warning.
Signed-off-by: Aaro Koskinen
Signed-off-by: Greg Kroah-Hartman -
Make num_packet_buffers static to eliminate a sparse warning.
Signed-off-by: Aaro Koskinen
Signed-off-by: Greg Kroah-Hartman -
We don't have such Kconfig option, so the current code is dead and
the documentation is wrong. Users can adjust this setting by using
module parameter or kernel command line, so we can delete this code.Signed-off-by: Aaro Koskinen
Signed-off-by: Greg Kroah-Hartman
18 Dec, 2013
1 commit
-
None of these files are actually using any __init type directives
and hence don't need to include . Most are just a
left over from __devinit and __cpuinit removal, or simply due to
code getting copied from one driver to the next.Signed-off-by: Paul Gortmaker
Signed-off-by: Greg Kroah-Hartman
30 Oct, 2013
1 commit
-
Checking if MAC address is valid using is_valid_ether_addr() is already done in
of_get_mac_address().Signed-off-by: Luka Perkov
Signed-off-by: Greg Kroah-Hartman
15 Oct, 2013
2 commits
-
Removed unnecessary space at start of line
to fix checkpatch.pl warning.Signed-off-by: Nandini Hanumanthagowda
Signed-off-by: Greg Kroah-Hartman -
Fixed the line over 80 characters warning
to comply with linux cidung styleSigned-off-by: Nandini Hanumanthagowda
Signed-off-by: Greg Kroah-Hartman
12 Oct, 2013
3 commits
-
Fix checkpatch.pl issues with line over 80
characters in ethernet-tx.cSigned-off-by: Ebru Akagunduz
Reviewed-by: Josh Triplett
Signed-off-by: Greg Kroah-Hartman -
Fix checkpatch.pl issues with quoted string split
across lines in ethernet-tx.cSigned-off-by: Ebru Akagunduz
Reviewed-by: Josh Triplett
Signed-off-by: Greg Kroah-Hartman -
Fix checkpatch.pl issues with quoted string split
across lines in ethernet-spi.cSigned-off-by: Ebru Akagunduz
Signed-off-by: Greg Kroah-Hartman
07 Oct, 2013
2 commits
-
Module parameter max_rx_cpus has off-by-one error. Fix that.
Signed-off-by: Aaro Koskinen
Signed-off-by: Greg Kroah-Hartman -
Currently the driver assumes that CPU 0 is handling all the hard IRQs.
This is wrong in Linux SMP systems where user is allowed to assign to
hardware IRQs to any CPU. The driver will stop working if user sets
smp_affinity so that interrupts end up being handled by other than CPU
0. The patch fixes that.Signed-off-by: Aaro Koskinen
Signed-off-by: Greg Kroah-Hartman
26 Sep, 2013
1 commit
-
Correct spelling typo in staging/octeon
Signed-off-by: Masanari Iida
Signed-off-by: Greg Kroah-Hartman
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 0Reported-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 -
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 -
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
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