An error occurred fetching the project authors.
- 21 Apr, 2010 1 commit
-
-
Chien Tung authored
nes_{read,write}_1G_phy_reg() are using phy_lock while nes_{read,write}_10G_phy_reg() leave that to the caller. Remove phy_lock from 1G routines and leave the locking to the caller. Add additional phy_lock calls around 1G read/write. Signed-off-by:
Chien Tung <chien.tin.tung@intel.com> Signed-off-by:
Roland Dreier <rolandd@cisco.com>
-
- 30 Mar, 2010 1 commit
-
-
Tejun Heo authored
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. 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>
-
- 12 Mar, 2010 1 commit
-
-
Chien Tung authored
Commit 09124e19 ("RDMA/nes: Add support for KR device id 0x0110") took out too much code and broke CX4 link detection in back-to-back configuration. Put back the code that does the link check. Signed-off-by:
Chien Tung <chien.tin.tung@intel.com> Signed-off-by:
Roland Dreier <rolandd@cisco.com>
-
- 26 Feb, 2010 1 commit
-
-
Jiri Pirko authored
Due to the loop complexicity in nes_nic.c, I'm using char* to copy mc addresses to it. Signed-off-by:
Jiri Pirko <jpirko@redhat.com> Signed-off-by:
David S. Miller <davem@davemloft.net>
-
- 25 Feb, 2010 1 commit
-
-
Chien Tung authored
Add support for KR device id 0x0110. While at it, cleanup nes_init_phy() by splitting it into nes_init_1g_phy() and nes_init_2025_phy(). Remove support for NES_PHY_TYPE_IRIS, which was used on an XFP board that was only manufactured in small quantities and given out for evals in even smaller quantities. Signed-off-by:
Chien Tung <chien.tin.tung@intel.com> Signed-off-by:
Roland Dreier <rolandd@cisco.com>
-
- 19 Feb, 2010 1 commit
-
-
Faisal Latif authored
After running long iterative MPI tests, sometimes ethtool reports a "CM Destroy Listener" count more than the "CM Create Listener" count. This inconsistency is fixed by making counter variables atomic. Signed-off-by:
Faisal Latif <faisal.latif@intel.com> Signed-off-by:
Roland Dreier <rolandd@cisco.com>
-
- 12 Feb, 2010 1 commit
-
-
Jiri Pirko authored
This patch replaces dev->mc_count in all drivers (hopefully I didn't miss anything). Used spatch and did small tweaks and conding style changes when it was suitable. Jirka Signed-off-by:
Jiri Pirko <jpirko@redhat.com> Signed-off-by:
David S. Miller <davem@davemloft.net>
-
- 09 Dec, 2009 1 commit
-
-
Chien Tung authored
Update copyright from Intel-NE, Inc. to Intel Corporation. Use proper branding string in Kconfig and simplify description. Signed-off-by:
Chien Tung <chien.tin.tung@intel.com> Signed-off-by:
Roland Dreier <rolandd@cisco.com>
-
- 05 Oct, 2009 1 commit
-
-
Ben Hutchings authored
These string query operations were supposed to be replaced by the generic get_sset_count() starting in 2007. Convert the remaining implementations. Also remove calls to these operations to initialise drvinfo->n_stats. The ethtool core code already does that. Signed-off-by:
Ben Hutchings <bhutchings@solarflare.com> Acked-by:
Eilon Greenstein <eilong@broadcom.com> Signed-off-by:
David S. Miller <davem@davemloft.net>
-
- 24 Sep, 2009 1 commit
-
-
Julia Lawall authored
The definition of nes_netdev_ops has initializations of a local function and eth_mac_addr for its ndo_set_mac_address field. This change uses only the local function. The semantic match that finds this problem is as follows: (http://coccinelle.lip6.fr/) // <smpl> @r@ identifier I, s, fld; position p0,p; expression E; @@ struct I s =@p0 { ... .fld@p = E, ...}; @s@ identifier I, s, r.fld; position r.p0,p; expression E; @@ struct I s =@p0 { ... .fld@p = E, ...}; @script:python@ p0 << r.p0; fld << r.fld; ps << s.p; pr << r.p; @@ if int(ps[0].line)!=int(pr[0].line) or int(ps[0].column)!=int(pr[0].column): cocci.print_main(fld,p0) // </smpl> Signed-off-by:
Julia Lawall <julia@diku.dk> Signed-off-by:
Roland Dreier <rolandd@cisco.com>
-
- 02 Sep, 2009 1 commit
-
-
Stephen Hemminger authored
No need to put ethtool_ops in data, they should be const. Signed-off-by:
Stephen Hemminger <shemminger@vyatta.com> Signed-off-by:
David S. Miller <davem@davemloft.net>
-
- 08 Apr, 2009 1 commit
-
-
Chien Tung authored
Add new register settings for new SFP+ PHY/firmware. Add new PHY to to nes_netdev_get/set_settings. Signed-off-by:
Chien Tung <chien.tin.tung@intel.com> Signed-off-by:
Roland Dreier <rolandd@cisco.com>
-
- 27 Mar, 2009 1 commit
-
-
Roland Dreier authored
When net-next and infiniband were merged upstream, each branch deleted one of a pair of adjacent lines from nes_nic.c, but when Linus fixed the conflict up, he brought back both of the lines. Fix up to the intended final tree state. Signed-off-by:
Roland Dreier <rolandd@cisco.com> Acked-by:
David S. Miller <davem@davemloft.net> Signed-off-by:
Linus Torvalds <torvalds@linux-foundation.org>
-
- 22 Mar, 2009 1 commit
-
-
Stephen Hemminger authored
Also, removed unnecessary memset() since alloc_netdev returns zeroed memory. Signed-off-by:
Stephen Hemminger <shemminger@vyatta.com> Signed-off-by:
David S. Miller <davem@davemloft.net>
-
- 06 Mar, 2009 2 commits
-
-
Faisal Latif authored
NETIF_F_LLTX is deprecated. Remove private TX locking from the driver and remove the NETIF_F_LLTX feature flag. This also fixes a warning in some configs that comes from doing skb_linearize() call in the hard_start_xmit method with IRQs disabled (if HIGHMEM is enabled, skb_linearize() may end up enabling BHs, which is a no-no if hard IRQs are disabled in that context). By getting rid of LLTX, we do not disable IRQs when skb_linearize() is called. Remove the sq_lock as it is not needed for non-LLTX. Fix ethtool not to show the counter for sq_lock. Reported-by: aluno3@poczta.onet.pl Signed-off-by:
Faisal Latif <faisal.latif@intel.com> Signed-off-by:
Roland Dreier <rolandd@cisco.com>
-
Chien Tung authored
Update copyright to the new legal entity, Intel-NE, Inc., an Intel company. Update copyright for the new year. Signed-off-by:
Chien Tung <chien.tin.tung@intel.com> Signed-off-by:
Roland Dreier <rolandd@cisco.com>
-
- 21 Jan, 2009 1 commit
-
-
Ben Hutchings authored
Following the removal of the unused struct net_device * parameter from the NAPI functions named *netif_rx_* in commit 908a7a16, they are exactly equivalent to the corresponding *napi_* functions and are therefore redundant. Signed-off-by:
Ben Hutchings <bhutchings@solarflare.com> Acked-by:
Neil Horman <nhorman@tuxdriver.com> Signed-off-by:
David S. Miller <davem@davemloft.net>
-
- 26 Dec, 2008 1 commit
-
-
David S. Miller authored
When we removed the network device argument from several NAPI interfaces in 908a7a16 ("net: Remove unused netdev arg from some NAPI interfaces.") several drivers now started getting unused variable warnings. This fixes those up. Signed-off-by:
David S. Miller <davem@davemloft.net>
-
- 23 Dec, 2008 1 commit
-
-
Neil Horman authored
When the napi api was changed to separate its 1:1 binding to the net_device struct, the netif_rx_[prep|schedule|complete] api failed to remove the now vestigual net_device structure parameter. This patch cleans up that api by properly removing it.. Signed-off-by:
Neil Horman <nhorman@tuxdriver.com> Signed-off-by:
David S. Miller <davem@davemloft.net>
-
- 28 Oct, 2008 1 commit
-
-
Johannes Berg authored
This converts pretty much everything to print_mac. There were a few things that had conflicts which I have just dropped for now, no harm done. I've built an allyesconfig with this and looked at the files that weren't built very carefully, but it's a huge patch. Signed-off-by:
Johannes Berg <johannes@sipsolutions.net> Signed-off-by:
David S. Miller <davem@davemloft.net>
-
- 03 Oct, 2008 1 commit
-
-
Vadim Makhervaks authored
Change management of perfect filter table to allow enhanced performance applications. Signed-off-by:
Vadim Makhervaks <vmakhervaks@neteffect.com> Signed-off-by:
Sweta Bhatt <sweta.bhatt@einfochips.com> Signed-off-by:
Chien Tung <ctung@neteffect.com> Signed-off-by:
Roland Dreier <rolandd@cisco.com>
-
- 30 Sep, 2008 5 commits
-
-
Chien Tung authored
Mask off MAC interrupts on netdev_stop to prevent spurious MAC interrupts on unload/reload of iw_nes. Signed-off-by:
Sweta Bhatt <sweta.bhatt@einfochips.com> Signed-off-by:
Chien Tung <ctung@neteffect.com> Signed-off-by:
Roland Dreier <rolandd@cisco.com>
-
Chien Tung authored
Signed-off-by:
Sweta Bhatt <sweta.bhatt@einfochips.com> Signed-off-by:
Chien Tung <ctung@neteffect.com> Signed-off-by:
Roland Dreier <rolandd@cisco.com>
-
Chien Tung authored
Fill in firmware version for ethtool_drvinfo. Signed-off-by:
Sweta Bhatt <sweta.bhatt@einfochips.com> Signed-off-by:
Chien Tung <ctung@neteffect.com> Signed-off-by:
Roland Dreier <rolandd@cisco.com>
-
Bob Sharp authored
Use correct define for max TSO fragments. Signed-off-by:
Bob Sharp <bsharp@neteffect.com> Signed-off-by:
Sweta Bhatt <sweta.bhatt@einfochips.com> Signed-off-by:
Chien Tung <ctung@neteffect.com> Signed-off-by:
Roland Dreier <rolandd@cisco.com>
-
Bob Sharp authored
Re-enable multicast and unicast after changing MTU. Signed-off-by:
Bob Sharp <bsharp@neteffect.com> Signed-off-by:
Sweta Bhatt <sweta.bhatt@einfochips.com> Signed-off-by:
Chien Tung <ctung@neteffect.com> Signed-off-by:
Roland Dreier <rolandd@cisco.com>
-
- 29 Apr, 2008 3 commits
-
-
Glenn Streiff authored
Various cleanups: - Change // to /* .. */ - Place whitespace around binary operators. - Trim down a few long lines. - Some minor alignment formatting for better readability. - Remove some silly tabs. Signed-off-by:
Glenn Streiff <gstreiff@neteffect.com> Signed-off-by:
Roland Dreier <rolandd@cisco.com>
-
Eric Schneider authored
This patch enables the iw_nes module for NetEffect RNICs to support additional PHYs including SFP+ (referred to as ARGUS in the code). Signed-off-by:
Eric Schneider <eric.schneider@neteffect.com> Signed-off-by:
Glenn Streiff <gstreiff@neteffect.com> Signed-off-by:
Roland Dreier <rolandd@cisco.com>
-
Faisal Latif authored
Signed-off-by: Faisal Latif <flatif@neteffect.com. Signed-off-by:
Glenn Streiff <gstreiff@neteffect.com> Signed-off-by:
Roland Dreier <rolandd@cisco.com>
-
- 23 Apr, 2008 1 commit
-
-
Roland Dreier authored
Removing open-coded MAC formats shrinks the source and the generated code too, eg on x86-64: add/remove: 0/0 grow/shrink: 0/4 up/down: 0/-103 (-103) function old new delta make_cm_node 932 912 -20 nes_netdev_set_mac_address 427 406 -21 nes_netdev_set_multicast_list 1148 1124 -24 nes_probe 2349 2311 -38 Acked-by:
Glenn Streiff <gstreiff@neteffect.com> Signed-off-by:
Roland Dreier <rolandd@cisco.com>
-
- 22 Apr, 2008 1 commit
-
-
Roland Dreier authored
Remove redundant static declarations of functions that are defined before they are used in the source. Signed-off-by:
Roland Dreier <rolandd@cisco.com>
-
- 17 Apr, 2008 3 commits
-
-
Harvey Harrison authored
__FUNCTION__ is gcc-specific, use __func__ instead. Signed-off-by:
Harvey Harrison <harvey.harrison@gmail.com> Signed-off-by:
Andrew Morton <akpm@linux-foundation.org> Signed-off-by:
Roland Dreier <rolandd@cisco.com>
-
Roland Dreier authored
Avoid namespace pollution and allow the compiler to optimize better. Signed-off-by:
Roland Dreier <rolandd@cisco.com>
-
Roland Dreier authored
nes_netdev_exit() has no callers, so delete it. Signed-off-by:
Roland Dreier <rolandd@cisco.com>
-
- 17 Feb, 2008 1 commit
-
-
Chien Tung authored
We need to account for the VLAN header size in nes_netdev_change_mtu() and nes_netdev_init(). Also, add spin lock/unlock during VLAN RX registration so only one process can assign VLAN group for a given interface at a time. Signed-off-by:
Chien Tung <ctung@neteffect.com> Signed-off-by:
Glenn Streiff <gstreiff@neteffect.com> Signed-off-by:
Roland Dreier <rolandd@cisco.com>
-
- 15 Feb, 2008 1 commit
-
-
Glenn Streiff authored
Only mask out MAC interrupt if necessary and re-enable on ifup. There could be multiple netdevs going through the same MAC. MAC interrupts should not be masked off until the last netdev is downed. Signed-off-by:
Chien Tung <ctung@neteffect.com> Signed-off-by:
Glenn Streiff <gstreiff@neteffect.com> Signed-off-by:
Roland Dreier <rolandd@cisco.com>
-
- 05 Feb, 2008 1 commit
-
-
Glenn Streiff authored
Add a standard NIC and RDMA/iWARP driver for NetEffect 1/10Gb ethernet adapters. Signed-off-by:
Glenn Streiff <gstreiff@neteffect.com> Signed-off-by:
Roland Dreier <rolandd@cisco.com>
-