11 years agojme: Support WoL after shutdown bp-1.0.7
Guo-Fu Tseng [Fri, 22 Oct 2010 01:01:27 +0000 (09:01 +0800)]
jme: Support WoL after shutdown

Adding shutdown function that setup wake if wol is enabled.
Add jme_phy_on in jme_set_100m_half in case it is shutting down
or suspending when interface is down(phy_off by default).

Reported-and-helped-by: –°tac <>
11 years agojme: Update CHANGELOG
Guo-Fu Tseng [Mon, 18 Oct 2010 23:08:30 +0000 (07:08 +0800)]
jme: Update CHANGELOG

11 years agojme: Advance version number
Guo-Fu Tseng [Mon, 18 Oct 2010 22:52:41 +0000 (06:52 +0800)]
jme: Advance version number

Advance version number and update copyright info

11 years agojme: Adding mii-tool support
Guo-Fu Tseng [Mon, 18 Oct 2010 21:39:39 +0000 (05:39 +0800)]
jme: Adding mii-tool support

Adding mii-tool support for some distribution only have mii-tool
installed by default.

11 years agojme: Prevent possible read re-order error
Guo-Fu Tseng [Mon, 18 Oct 2010 11:56:20 +0000 (19:56 +0800)]
jme: Prevent possible read re-order error

Adding read memory barrier in between flag reading and data reading of
receive descriptors. This prevents the data being read before hardware
complete writing informations.

Reported-by: Stefan Hajnoczi <>
11 years agojme: Add comment in jme_set_settings
Guo-Fu Tseng [Mon, 18 Oct 2010 11:52:27 +0000 (19:52 +0800)]
jme: Add comment in jme_set_settings

Explains what `fdc` variable is for.

11 years agojme: Fix PHY power-off error
Guo-Fu Tseng [Mon, 18 Oct 2010 05:58:49 +0000 (13:58 +0800)]
jme: Fix PHY power-off error

Adding phy_on in opposition to phy_off.

11 years agoAdd .gitignore
Guo-Fu Tseng [Mon, 18 Oct 2010 20:04:30 +0000 (04:04 +0800)]
Add .gitignore

11 years agodrivers/net/jme: Use pr_<level>
Joe Perches [Sat, 4 Sep 2010 22:21:05 +0000 (22:21 +0000)]
drivers/net/jme: Use pr_<level>

Add #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
Convert jeprintk to pr_err
Remove jeprintk macro define
Remove periods from end of logging messages
Coalesce format strings

Signed-off-by: Joe Perches <>
Signed-off-by: David S. Miller <>
11 years agoFix version.h include order
Guo-Fu Tseng [Sun, 3 Oct 2010 13:35:47 +0000 (21:35 +0800)]
Fix version.h include order

11 years agodrivers/net: avoid some skb->ip_summed initializations
Eric Dumazet [Thu, 2 Sep 2010 20:07:41 +0000 (13:07 -0700)]
drivers/net: avoid some skb->ip_summed initializations

fresh skbs have ip_summed set to CHECKSUM_NONE (0)

We can avoid setting again skb->ip_summed to CHECKSUM_NONE in drivers.

Introduce skb_checksum_none_assert() helper so that we keep this
assertion documented in driver sources.

Change most occurrences of :

skb->ip_summed = CHECKSUM_NONE;

by :


Signed-off-by: Eric Dumazet <>
Signed-off-by: David S. Miller <>
11 years ago[CentOS] Fix CentOS 5 compile error
Guo-Fu Tseng [Sun, 12 Sep 2010 23:00:27 +0000 (07:00 +0800)]
[CentOS] Fix CentOS 5 compile error

{ip|ipv6|tcp}_hdr helpers have back-ported to CentOS 5 kernel.

Reported-by: "Aries Lee" <>
Fixed-by: "Aries Lee" <>
Modified-by: "Guo-Fu Tseng" <>
11 years agoAdding eeprom info bash script
Guo-Fu Tseng [Tue, 17 Aug 2010 06:06:34 +0000 (14:06 +0800)]
Adding eeprom info bash script

11 years agodrivers/net: remove useless semicolons
Joe Perches [Tue, 18 May 2010 05:47:34 +0000 (22:47 -0700)]
drivers/net: remove useless semicolons

switch and while statements don't need semicolons at end of statement

[ Fixup minor conflicts with recent wimax merge... -DaveM ]

Signed-off-by: Joe Perches <>
Signed-off-by: David S. Miller <>
11 years agodrivers/net: Remove unnecessary returns from void function()s
Joe Perches [Fri, 14 May 2010 07:19:28 +0000 (00:19 -0700)]
drivers/net: Remove unnecessary returns from void function()s

This patch removes from drivers/net/ all the unnecessary
return; statements that precede the last closing brace of
void functions.

It does not remove the returns that are immediately
preceded by a label as gcc doesn't like that.

It also does not remove null void functions with return.

Done via:
$ grep -rP --include=*.[ch] -l "return;\n}" net/ | \
  xargs perl -i -e 'local $/ ; while (<>) { s/\n[ \t\n]+return;\n}/\n}/g; print; }'

with some cleanups by hand.

Compile tested x86 allmodconfig only.

Signed-off-by: Joe Perches <>
Signed-off-by: David S. Miller <>
11 years agonet: convert multicast list to list_head
Jiri Pirko [Thu, 1 Apr 2010 21:22:57 +0000 (21:22 +0000)]
net: convert multicast list to list_head

Converts the list and the core manipulating with it to be the same as uc_list.

+uses two functions for adding/removing mc address (normal and "global"
 variant) instead of a function parameter.
+removes dev_mcast.c completely.
+exposes netdev_hw_addr_list_* macros along with __hw_addr_* functions for
 manipulation with lists on a sandbox (used in bonding and 80211 drivers)

Signed-off-by: Jiri Pirko <>
Signed-off-by: David S. Miller <>
11 years agoinclude cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit...
Tejun Heo [Wed, 24 Mar 2010 08:04:11 +0000 (17:04 +0900)]
include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit 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.

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

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

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

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 <>
Guess-its-ok-by: Christoph Lameter <>
Cc: Ingo Molnar <>
Cc: Lee Schermerhorn <>
11 years ago[jme] Add checklog jmebp-
Guo-Fu Tseng [Tue, 3 Aug 2010 09:31:34 +0000 (17:31 +0800)]
[jme] Add checklog

11 years ago[jme] Protect vlgrp structure by pause RX actions.
Guo-Fu Tseng [Tue, 3 Aug 2010 09:30:28 +0000 (17:30 +0800)]
[jme] Protect vlgrp structure by pause RX actions.

11 years agoImport jme 1.0.6-backport source jmebp-1.0.6
Guo-Fu Tseng [Tue, 3 Aug 2010 09:21:35 +0000 (17:21 +0800)]
Import jme 1.0.6-backport source

11 years agoImport jme 1.0.5-backport source
Guo-Fu Tseng [Tue, 3 Aug 2010 09:20:41 +0000 (17:20 +0800)]
Import jme 1.0.5-backport source

11 years agoImport jme 1.0.4-backport source
Guo-Fu Tseng [Tue, 3 Aug 2010 09:19:37 +0000 (17:19 +0800)]
Import jme 1.0.4-backport source

11 years agoImport jme 1.0.3-backport source
Guo-Fu Tseng [Tue, 3 Aug 2010 09:18:21 +0000 (17:18 +0800)]
Import jme 1.0.3-backport source

11 years agoImport jme 1.0.2-backport source
Guo-Fu Tseng [Tue, 3 Aug 2010 09:12:50 +0000 (17:12 +0800)]
Import jme 1.0.2-backport source

11 years agoImport jme 1.0.1-backport source
Guo-Fu Tseng [Tue, 3 Aug 2010 09:12:02 +0000 (17:12 +0800)]
Import jme 1.0.1-backport source

11 years agoImport jme 1.0-backport source
Guo-Fu Tseng [Tue, 3 Aug 2010 09:08:39 +0000 (17:08 +0800)]
Import jme 1.0-backport source

11 years agoImport jme 1.0 source jme-1.0
Guo-Fu Tseng [Tue, 3 Aug 2010 09:07:28 +0000 (17:07 +0800)]
Import jme 1.0 source

11 years agoImport jme 0.9e source jme-0.9e
Guo-Fu Tseng [Tue, 3 Aug 2010 08:59:25 +0000 (16:59 +0800)]
Import jme 0.9e source

11 years agoImport jme 0.9d source jme-0.9d
Guo-Fu Tseng [Tue, 3 Aug 2010 08:55:59 +0000 (16:55 +0800)]
Import jme 0.9d source

11 years agoImport jme 0.9c source jme-0.9c
Guo-Fu Tseng [Tue, 3 Aug 2010 08:55:51 +0000 (16:55 +0800)]
Import jme 0.9c source

11 years agoImport jme 0.9b source jme-0.9b
Guo-Fu Tseng [Tue, 3 Aug 2010 08:55:44 +0000 (16:55 +0800)]
Import jme 0.9b source

11 years agoImport jme 0.9a source jme-0.9a
Guo-Fu Tseng [Tue, 3 Aug 2010 08:55:36 +0000 (16:55 +0800)]
Import jme 0.9a source

11 years agoImport jme 0.9 source jme-0.9
Guo-Fu Tseng [Tue, 3 Aug 2010 08:55:18 +0000 (16:55 +0800)]
Import jme 0.9 source

11 years agoImport jme 0.8 source jme-0.8
Guo-Fu Tseng [Tue, 3 Aug 2010 08:55:10 +0000 (16:55 +0800)]
Import jme 0.8 source

11 years agoImport jme 0.7 source jme-0.7
Guo-Fu Tseng [Tue, 3 Aug 2010 08:54:57 +0000 (16:54 +0800)]
Import jme 0.7 source

11 years agoImport jme 0.6 source jme-0.6
Guo-Fu Tseng [Tue, 3 Aug 2010 08:54:48 +0000 (16:54 +0800)]
Import jme 0.6 source

11 years agoImport jme 0.5 source jme-0.5
Guo-Fu Tseng [Tue, 3 Aug 2010 08:54:40 +0000 (16:54 +0800)]
Import jme 0.5 source

11 years agoImport jme 0.4 source jme-0.4
Guo-Fu Tseng [Tue, 3 Aug 2010 08:54:32 +0000 (16:54 +0800)]
Import jme 0.4 source

11 years agoImport jme 0.3 source jme-0.3
Guo-Fu Tseng [Tue, 3 Aug 2010 08:54:20 +0000 (16:54 +0800)]
Import jme 0.3 source

11 years agoImport jme 0.2 source jme-0.2
Guo-Fu Tseng [Tue, 3 Aug 2010 08:54:07 +0000 (16:54 +0800)]
Import jme 0.2 source

11 years agoImport jme 0.1 source jme-0.1
Guo-Fu Tseng [Tue, 3 Aug 2010 08:52:12 +0000 (16:52 +0800)]
Import jme 0.1 source