[E1000-devel] [PATCH net-next] ethernet: Use bool function returns of true/false instead of 1/0

2015-03-29 Thread Joe Perches
Use bool constants as the return values instead of 1 and 0. Signed-off-by: Joe Perches --- > To be honest I'd might rather get bunches of these, there has to be a ton > of them, than a slow trickle of one every few weeks/days. There aren't too many... drivers/net/etherne

[E1000-devel] [PATCH net-next 02/14] ethernet: Use eth__addr instead of memset

2015-03-02 Thread Joe Perches
Use the built-in function instead of memset. Signed-off-by: Joe Perches --- drivers/net/ethernet/amd/pcnet32.c | 2 +- drivers/net/ethernet/broadcom/bnx2x/bnx2x_ethtool.c | 2 +- drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c| 6 +++--- drivers/net/ethernet/broadcom/bnx2x

[E1000-devel] [PATCH net-next 00/14] Use eth__addr instead of memset

2015-03-02 Thread Joe Perches
Joe Perches (14): etherdevice: Add eth__addr CONFIG_HAVE_EFFICIENT_UNALIGNED_ACCESS code ethernet: Use eth__addr instead of memset net: usb: Use eth__addr instead of memset wireless: Use eth__addr instead of memset netconsole: Use eth__addr instead of memset xen: Use eth__addr instead

Re: [E1000-devel] [PATCH 0/25] Replace DEFINE_PCI_DEVICE_TABLE macro use

2014-07-18 Thread Joe Perches
On Fri, 2014-07-18 at 09:43 -0700, Greg KH wrote: > On Fri, Jul 18, 2014 at 12:22:13PM -0400, John W. Linville wrote: > > On Fri, Jul 18, 2014 at 05:26:47PM +0200, Benoit Taine wrote: > > > We should prefer `const struct pci_device_id` over > > > `DEFINE_PCI_DEVICE_TABLE` to meet kernel coding styl

[E1000-devel] [PATCH -next 12/26] intel: Use dma_zalloc_coherent

2014-06-15 Thread Joe Perches
Use the zeroing function instead of dma_alloc_coherent & memset(,0,) Signed-off-by: Joe Perches --- drivers/net/ethernet/intel/ixgb/ixgb_main.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/net/ethernet/intel/ixgb/ixgb_main.c b/drivers/net/ethernet/i

[E1000-devel] [PATCH -next 00/26] treewide: Use dma_zalloc_coherent

2014-06-15 Thread Joe Perches
Use the zeroing function instead of dma_alloc_coherent & memset(,0,) Joe Perches (26): powerpc: Use dma_zalloc_coherent sh: Use dma_zalloc_coherent ata: Use dma_zalloc_coherent block: Use dma_zalloc_coherent crypto: Use dma_zalloc_coherent dma: Use dma_zalloc_coherent gpu:

Re: [E1000-devel] [PATCH] net: ethernet: intel: ixgbe: ixgbe_main.c: Cleaning up missing null-terminate after strncpy call

2014-06-04 Thread Joe Perches
On Wed, 2014-06-04 at 23:29 +0200, Rickard Strandqvist wrote: > Added a guaranteed null-terminate after call to strncpy. Perhaps all of these should be strlcpy -- Learn Graph Databases - Download FREE O'Reilly Book "Gra

[E1000-devel] [PATCH net-next 0/7] drivers/net: Remove pointer casts to same type

2014-03-24 Thread Joe Perches
All of these are pointless... Joe Perches (7): altera: Remove casts of pointer to same type alx: Remove casts of pointer to same type intel: Remove casts of pointer to same type qlcnic: Remove casts of pointer to same type carl9170: Remove casts of pointer to same type mwifiex: Remove

[E1000-devel] [PATCH net-next 3/7] intel: Remove casts of pointer to same type

2014-03-24 Thread Joe Perches
Casting a pointer to a pointer of the same type is pointless, so remove these unnecessary casts. Done via coccinelle script: $ cat typecast_2.cocci @@ type T; T *foo; @@ - (T *)foo + foo Signed-off-by: Joe Perches --- drivers/net/ethernet/intel/i40e/i40e_ethtool.c | 4 ++-- 1

[E1000-devel] [PATCH net-next] intel: Remove addressof casts to same type

2014-03-24 Thread Joe Perches
Using addressof then casting to the original type is pointless, so remove these unnecessary casts. Done via coccinelle script: $ cat typecast.cocci @@ type T; T foo; @@ - (T *)&foo + &foo Signed-off-by: Joe Perches --- drivers/net/ethernet/intel/i40e/i40e_common

Re: [E1000-devel] [PATCH net-next 02/10] e1000e: add timeout for TX HW time stamping work

2014-03-14 Thread Joe Perches
On Fri, 2014-03-14 at 19:02 +0100, Jakub Kiciński wrote: > On Fri, 14 Mar 2014 10:48:37 -0700, Joe Perches wrote: > > On Fri, 2014-03-14 at 18:34 +0100, Jakub Kicinski wrote: > > > Hardware may fail to report time stamp e.g.: > > > - when hardware time stamping is not

Re: [E1000-devel] [PATCH net-next 02/10] e1000e: add timeout for TX HW time stamping work

2014-03-14 Thread Joe Perches
On Fri, 2014-03-14 at 18:34 +0100, Jakub Kicinski wrote: > Hardware may fail to report time stamp e.g.: > - when hardware time stamping is not enabled > - when time stamp is requested shortly after ifup trivia: > diff --git a/drivers/net/ethernet/intel/e1000e/netdev.c > b/drivers/net/ethernet/

[E1000-devel] [PATCH net-next 5/9] ixgbe: Convert uses of __constant_ to

2014-03-12 Thread Joe Perches
The use of __constant_ has been unnecessary for quite awhile now. Make these uses consistent with the rest of the kernel. Signed-off-by: Joe Perches --- drivers/net/ethernet/intel/ixgbe/ixgbe_fcoe.c | 8 +++ drivers/net/ethernet/intel/ixgbe/ixgbe_main.c | 30 +-- 2

[E1000-devel] [PATCH net-next 4/9] igbvf: Convert uses of __constant_ to

2014-03-12 Thread Joe Perches
The use of __constant_ has been unnecessary for quite awhile now. Make these uses consistent with the rest of the kernel. Signed-off-by: Joe Perches --- drivers/net/ethernet/intel/igbvf/netdev.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/ethernet/intel

[E1000-devel] [PATCH net-next 2/9] e100: Convert uses of __constant_ to

2014-03-12 Thread Joe Perches
The use of __constant_ has been unnecessary for quite awhile now. Make these uses consistent with the rest of the kernel. Signed-off-by: Joe Perches --- drivers/net/ethernet/intel/e100.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/ethernet/intel/e100.c

[E1000-devel] [PATCH net-next 3/9] igb: Convert uses of __constant_ to

2014-03-12 Thread Joe Perches
The use of __constant_ has been unnecessary for quite awhile now. Make these uses consistent with the rest of the kernel. Signed-off-by: Joe Perches --- drivers/net/ethernet/intel/igb/igb_main.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/net

[E1000-devel] [PATCH net-next 6/9] ixgbevf: Convert uses of __constant_ to

2014-03-12 Thread Joe Perches
The use of __constant_ has been unnecessary for quite awhile now. Make these uses consistent with the rest of the kernel. Signed-off-by: Joe Perches --- drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net

[E1000-devel] [PATCH net-next 0/9] drivers/net: Convert uses of __constant_ to

2014-03-12 Thread Joe Perches
Joe Perches (9): brocade: Convert uses of __constant_ to e100: Convert uses of __constant_ to igb: Convert uses of __constant_ to igbvf: Convert uses of __constant_ to ixgbe: Convert uses of __constant_ to ixgbevf: Convert uses of __constant_ to xilinx: Convert uses of

Re: [E1000-devel] [PATCH] e1000: do not allow watchdog to reenable transmits on shutdown

2014-03-07 Thread Joe Perches
On Fri, 2014-03-07 at 12:14 -0300, Marcelo Tosatti wrote: > On Thu, Mar 06, 2014 at 07:24:31PM -0800, Jeff Kirsher wrote: > > On Thu, 2014-03-06 at 23:04 -0300, Marcelo Tosatti wrote: > > > There is a race on the shutdown path of the e1000 driver > > > that allows the card to DMA into free'd memory

[E1000-devel] [PATCH net-next V2] intel: Remove unnecessary OOM messages

2014-02-11 Thread Joe Perches
Don't emit these as there's a generic OOM with a dump_stack() on allocation failures. Signed-off-by: Joe Perches --- With patch attached this time... drivers/net/ethernet/intel/i40e/i40e_ethtool.c | 5 +--- drivers/net/ethernet/intel/i40evf/i40evf_main.c| 20

[E1000-devel] [PATCH net-next] intel: Remove unnecessary OOM messages

2014-02-11 Thread Joe Perches
Don't emit these as there's a generic OOM with a dump_stack() on allocation failures. Signed-off-by: Joe Perches --- -- Android apps run on BlackBerry 10 Introducing the new BlackBerry 10.2.1 Runtime for An

[E1000-devel] [PATCH] i40e: use ether_addr_equal_64bits

2013-12-27 Thread Joe Perches
] (followed by s16 vlan) struct net_device.dev_addr (pointer to char array of MAX_ADDR_LEN) struct sockaddr.sa_data (array of 14 bytes) struct netdev_hw_addr.addr (pointer to char array of MAX_ADDR_LEN) Signed-off-by: Joe Perches --- On Fri, 2013-12-27 at 12:46 -0800, Joe Perches wrote: > On

Re: [E1000-devel] [PATCH v2 01/20] net: slight optimization of addr compare for some modules

2013-12-24 Thread Joe Perches
On Tue, 2013-12-24 at 22:35 +0800, Ding Tianhong wrote: > 于 2013/12/24 22:22, Joe Perches 写道: > > On Tue, 2013-12-24 at 19:27 +0800, Ding Tianhong wrote: > >> Use possibly more efficient ether_addr_equal_unaligned > >> and ether_addr_equal to instead of memcmp. >

Re: [E1000-devel] [PATCH v2 01/20] net: slight optimization of addr compare for some modules

2013-12-24 Thread Joe Perches
On Tue, 2013-12-24 at 19:27 +0800, Ding Tianhong wrote: > Use possibly more efficient ether_addr_equal_unaligned > and ether_addr_equal to instead of memcmp. A negative of adding so many different drivers in a single patch is that you miss sending patches to the named maintainers. Most of these b

[E1000-devel] [PATCH] ixgbevf: Fix the debugging output when device is not registered

2013-10-12 Thread Joe Perches
e format string that emits this too. Signed-off-by: Joe Perches --- drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c b/drivers/net/ethernet/intel/ixgbevf/ixgbevf_

[E1000-devel] [PATCH net-next] net:drivers/net: Miscellaneous conversions to ETH_ALEN

2013-10-01 Thread Joe Perches
Convert the memset/memcpy uses of 6 to ETH_ALEN where appropriate. Also convert some struct definitions and u8 array declarations of [6] to ETH_ALEN. Signed-off-by: Joe Perches --- drivers/net/ethernet/8390/ax88796.c| 2 +- drivers/net/ethernet/amd/atarilance.c

Re: [E1000-devel] [PATCH 02/10] intel: Remove extern from function prototypes

2013-09-24 Thread Joe Perches
On Tue, 2013-09-24 at 15:07 -0700, Jeff Kirsher wrote: > On Tue, 2013-09-24 at 14:09 -0700, Joe Perches wrote: > > There are a mix of function prototypes with and without extern > > in the kernel sources. Standardize on not using extern for > > function prototypes. > &g

[E1000-devel] [PATCH 02/10] intel: Remove extern from function prototypes

2013-09-24 Thread Joe Perches
clare automatic/local variables in a block. Signed-off-by: Joe Perches --- drivers/net/ethernet/intel/e1000/e1000.h | 32 ++--- drivers/net/ethernet/intel/e1000e/e1000.h| 45 --- drivers/net/ethernet/intel/igb/e1000_82575.h | 16 +-- drivers/net/ethernet/intel/igb/e1000_hw.h| 6 +- dr

[E1000-devel] [PATCH 00/10 - GIT PULL] drivers: net: Next block of Remove extern from function prototypes

2013-09-24 Thread Joe Perches
294da3abaa73a0b69fd54e442b0b5bd9455b7be6: irda: Remove extern from function prototypes (2013-09-24 12:54:17 -0700) Joe Perches (10): ibm/emac: Remove extern from function prototypes intel: Remove extern from function prototypes oki-semi

Re: [E1000-devel] [net 8/8] i40e: include i40e in kernel proper

2013-09-11 Thread Joe Perches
On Wed, 2013-09-11 at 07:32 -0700, Jeff Kirsher wrote: > On Wed, 2013-09-11 at 05:20 -0700, Joe Perches wrote: > > On Wed, 2013-09-11 at 02:50 -0700, Jeff Kirsher wrote: > > > New driver build option is CONFIG_I40E > > > > > diff --git a/Documentation/networkin

Re: [E1000-devel] [net 8/8] i40e: include i40e in kernel proper

2013-09-11 Thread Joe Perches
On Wed, 2013-09-11 at 07:32 -0700, Jeff Kirsher wrote: > On Wed, 2013-09-11 at 05:20 -0700, Joe Perches wrote: > > On Wed, 2013-09-11 at 02:50 -0700, Jeff Kirsher wrote: > > > New driver build option is CONFIG_I40E > > > > > diff --git a/Documentation/networkin

Re: [E1000-devel] [net v7 1/8] i40e: main driver core

2013-09-11 Thread Joe Perches
On Wed, 2013-09-11 at 02:50 -0700, Jeff Kirsher wrote: > From: Jesse Brandeburg > > This is the driver for the Intel(R) Ethernet Controller XL710 Family. trivial: > diff --git a/drivers/net/ethernet/intel/i40e/i40e_main.c > b/drivers/net/ethernet/intel/i40e/i40e_main.c [] > +int i40e_allocate_

Re: [E1000-devel] [net 8/8] i40e: include i40e in kernel proper

2013-09-11 Thread Joe Perches
On Wed, 2013-09-11 at 02:50 -0700, Jeff Kirsher wrote: > New driver build option is CONFIG_I40E > diff --git a/Documentation/networking/00-INDEX > b/Documentation/networking/00-INDEX [] > +i40e.txt > + - README for the Intel Ethernet Controller XL710 Driver (i40e). Just curious but why the X

Re: [E1000-devel] [net-next v5 8/8] i40e: include i40e in kernel proper

2013-09-06 Thread Joe Perches
On Fri, 2013-09-06 at 17:28 +, Williams, Mitch A wrote: > My goal was to make our out-of-tree driver as close as possible - > including the makefiles - to the upstream driver. Doing this makes it > simpler for us to backport and forward-port patches. It makes it less > confusing for us when we'

Re: [E1000-devel] [net-next v5 8/8] i40e: include i40e in kernel proper

2013-09-05 Thread Joe Perches
On Fri, 2013-09-06 at 06:28 +, Brandeburg, Jesse wrote: > On Sep 5, 2013, at 11:15 PM, "Stephen Hemminger" > mailto:step...@networkplumber.org>> wrote: > > Dumb question why is this named Kbuild instead of Makefile like almost > every other network driver? > > All the new kids are doing it,

Re: [E1000-devel] [PATCH 0/4] i40e: Neatening and object size reductions

2013-09-03 Thread Joe Perches
On Wed, 2013-09-04 at 01:00 +000, Nelson, Shannon wrote: > we hadn't noticed the new experimental "--fix" option before. There > are a lot of good suggestions there, but obviously it needs a lot of > reading and tweaking before it can be used. Yes, I think --fix works best on patches. When you u

Re: [E1000-devel] [net-next v3 1/8] i40e: main driver core

2013-09-03 Thread Joe Perches
On Wed, 2013-09-04 at 00:59 +, Nelson, Shannon wrote: > > -Original Message- > > From: Joe Perches [mailto:j...@perches.com] [] > Hi Joe, Hi again. > > > +/** > > > + * i40e_get_netdev_stats_struct - Get statistics for netdev interface > >

Re: [E1000-devel] [PATCH 0/4] i40e: Neatening and object size reductions

2013-09-03 Thread Joe Perches
On Wed, 2013-09-04 at 01:00 +, Nelson, Shannon wrote: Hi Shannon. > > -Original Message- > From: Joe Perches > [mailto:j...@perches.com] > Sent: Friday, August 30, 2013 4:06 PM > > > Just some potential cleanings... > > > i40e: Whitespace cleaning

[E1000-devel] [PATCH net-next] drivers/net: Convert uses of compare_ether_addr to ether_addr_equal

2013-09-01 Thread Joe Perches
; @@ - ether_addr_equal(a, b) == 0 + !ether_addr_equal(a, b) @@ expression a,b; @@ - ether_addr_equal(a, b) != 0 + ether_addr_equal(a, b) @@ expression a,b; @@ - !!ether_addr_equal(a, b) + ether_addr_equal(a, b) Signed-off-by: Joe Perches --- drivers/net/ethernet

[E1000-devel] [PATCH] i40e: Fix 32 bit shift compilation warnings

2013-08-30 Thread Joe Perches
When dma_addr_t is a 32 bit value, >> 32 emits compiler warnings Use ((addr>>16) >>16) to avoid this. I presume the macro should actually use the kernel.h macro upper_32_bits() eventually. Signed-off-by: Joe Perches --- drivers/net/ethernet/intel/i40e/i40e_hmc.h | 2 +- dr

[E1000-devel] [PATCH 4/4] i40e: Convert pf_ macros to functions

2013-08-30 Thread Joe Perches
rivers/net/ethernet/intel/i40e/built-in.o.new 177030 35867 49936 262833 402b1 drivers/net/ethernet/intel/i40e/built-in.o.old Signed-off-by: Joe Perches --- drivers/net/ethernet/intel/i40e/i40e.h | 12 drivers/net/ethernet/intel/i40e/i40e_main.c | 45 ++

[E1000-devel] [PATCH 0/4] i40e: Neatening and object size reductions

2013-08-30 Thread Joe Perches
Just some potential cleanings... Joe Perches (4): i40e: Whitespace cleaning i40e: Add and use pf_ i40e: pf_ remove "%s: " ... __func__ i40e: Convert pf_ macros to functions drivers/net/ethernet/intel/i40e/i40e.h | 149 +-- drivers/net/ethernet/intel/i40e/i40

Re: [E1000-devel] [net-next v3 1/8] i40e: main driver core

2013-08-30 Thread Joe Perches
On Fri, 2013-08-30 at 05:39 -0700, Jeff Kirsher wrote: > From: Jesse Brandeburg trivial comments only: > diff --git a/drivers/net/ethernet/intel/i40e/i40e_main.c > b/drivers/net/ethernet/intel/i40e/i40e_main.c > +#define DRV_KERN "-k" > + > +#define DRV_VERSION_MAJOR 0 > +#define DRV_VERSION_M

Re: [E1000-devel] [net-next v3 1/8] i40e: main driver core

2013-08-30 Thread Joe Perches
On Fri, 2013-08-30 at 14:40 -0400, David Miller wrote: > From: Stephen Hemminger > Date: Fri, 30 Aug 2013 11:10:29 -0700 > > > On Fri, 30 Aug 2013 09:32:48 -0700 > > Joe Perches wrote: > > > >> > +static int debug = -1; > >> > +module_p

Re: [E1000-devel] [PATCH net-next] drivers:net: Convert dma_alloc_coherent(...__GFP_ZERO) to dma_zalloc_coherent

2013-08-29 Thread Joe Perches
On Thu, 2013-08-29 at 22:09 -0400, David Miller wrote: > Applied, thanks a lot Joe. Too bad I didn't know there was a dma_zalloc_coherent the first time... cheers, Joe -- Learn the latest--Visual Studio 2012, SharePoint

[E1000-devel] [PATCH net-next] drivers:net: Convert dma_alloc_coherent(...__GFP_ZERO) to dma_zalloc_coherent

2013-08-26 Thread Joe Perches
__GFP_ZERO instead. Trivially reduces the size of the existing uses of dma_zalloc_coherent. Realign arguments as appropriate. Signed-off-by: Joe Perches --- drivers/net/ethernet/aeroflex/greth.c | 12 - drivers/net/ethernet/broadcom/bcm63xx_enet.c | 6 ++--- drivers/net

Re: [E1000-devel] [net-next 1/8] i40e: main driver core

2013-06-13 Thread Joe Perches
On Thu, 2013-06-13 at 20:55 -0700, Jeff Kirsher wrote: > From: Jesse Brandeburg > > This is the driver for the Intel(R) Ethernet Controller XL710 Family. This code looks very generic and not tailored to linux. Are you intending to fix it to be more linux-kernel like? > diff --git a/drivers/net/

Re: [E1000-devel] [PATCH v2 net-next 1/4] net: implement support for low latency socket polling

2013-05-20 Thread Joe Perches
On Mon, 2013-05-20 at 00:54 -0700, David Miller wrote: > From: Eliezer Tamir [] > > { > > struct socket *sock; > > + unsigned int poll_result; > > Please order local variable declarations from longest line to > shortest line. reverse christmas tree doesn't seem especially valuable or

[E1000-devel] [PATCH net-next] ixgbe: Remove unnecessary #ifdef CONFIG_DEBUG_FS tests

2013-04-07 Thread Joe Perches
Add some empty static inlines instead to make the code more readable. Signed-off-by: Joe Perches --- drivers/net/ethernet/intel/ixgbe/ixgbe.h | 5 + drivers/net/ethernet/intel/ixgbe/ixgbe_main.c | 10 -- 2 files changed, 5 insertions(+), 10 deletions(-) diff --git a/drivers

Re: [E1000-devel] [PATCH net-next] drivers:net: dma_alloc_coherent: use __GFP_ZERO instead of memset(, 0)

2013-03-15 Thread Joe Perches
On Fri, 2013-03-15 at 22:51 +, Abodunrin, Akeem G wrote: > -Original Message- > From: netdev-ow...@vger.kernel.org [mailto:netdev-ow...@vger.kernel.org] On > Behalf Of Joe Perches [] > Reduce the number of calls required to alloc a zeroed block of memory. [] > diff --gi

[E1000-devel] [PATCH net-next] drivers:net: dma_alloc_coherent: use __GFP_ZERO instead of memset(, 0)

2013-03-15 Thread Joe Perches
Signed-off-by: Joe Perches --- drivers/net/ethernet/aeroflex/greth.c | 8 ++-- drivers/net/ethernet/broadcom/bcm63xx_enet.c | 8 drivers/net/ethernet/broadcom/bnx2.c | 5 ++--- drivers/net/ethernet/broadcom/bnx2x/bnx2x.h| 9 +++-- drivers

[E1000-devel] [PATCH net-next] drivers:net: Remove dma_alloc_coherent OOM messages

2013-03-14 Thread Joe Perches
. Signed-off-by: Joe Perches --- drivers/net/ethernet/aeroflex/greth.c | 20 --- drivers/net/ethernet/amd/sunlance.c| 5 ++- drivers/net/ethernet/apple/macmace.c | 16 - drivers/net/ethernet/broadcom/bcm63xx_enet.c | 2 -- drivers

[E1000-devel] [PATCH] drivers: net: Remove remaining alloc/OOM messages

2013-02-07 Thread Joe Perches
alignment. Signed-off-by: Joe Perches --- Let me know if you want multiple small patches instead. drivers/net/can/usb/ems_usb.c | 4 +- drivers/net/ethernet/amd/pcnet32.c | 47 +++--- drivers/net/ethernet/freescale/gianfar.c | 25

[E1000-devel] [PATCH 3/8] ethernet: Remove unnecessary alloc/OOM messages, alloc cleanups

2013-02-04 Thread Joe Perches
to vzalloc. Remove now unused size variables. Signed-off-by: Joe Perches --- drivers/net/ethernet/atheros/atl1c/atl1c_main.c| 6 ++--- drivers/net/ethernet/atheros/atl1e/atl1e_main.c| 2 -- drivers/net/ethernet/broadcom/b44.c| 4 +--- drivers/net/ethernet/broadcom/bcm6

[E1000-devel] [PATCH 0/8] drivers/net: Remove unnecessary alloc/OOM messages

2013-02-03 Thread Joe Perches
Remove all the OOM messages that follow kernel alloc failures as there is already a generic equivalent to these messages in the mm subsystem. Joe Perches (8): caif: Remove unnecessary alloc/OOM messages can: Remove unnecessary alloc/OOM messages ethernet: Remove unnecessary alloc/OOM

[E1000-devel] [PATCH net-next 00/21] treewide: Use consistent api style for address testing

2012-10-19 Thread Joe Perches
*) ipv4_addr_(__be32) ipv6_addr_(const struct in6_addr *) Add temporary backward compatibility #defines for the old names too. Joe Perches (21): etherdevice: Rename is__ether_addr tests to eth_addr_ net: Convert is__ether_addr uses to eth_addr_ arch: Convert is__ether_addr uses to eth_addr_

[E1000-devel] [PATCH net-next 2/8] ethernet: Use eth_random_addr

2012-07-12 Thread Joe Perches
Convert the existing uses of random_ether_addr to the new eth_random_addr. Signed-off-by: Joe Perches --- drivers/net/ethernet/atheros/atl1c/atl1c_hw.c |2 +- drivers/net/ethernet/atheros/atlx/atl1.c |2 +- drivers/net/ethernet/atheros/atlx/atl2.c |2

[E1000-devel] [PATCH net-next 0/8] etherdevice: Rename random_ether_addr to eth_random_addr

2012-07-12 Thread Joe Perches
net-next commit ad7eee98be ("etherdevice: introduce eth_broadcast_addr") added a new style API. Rename random_ether_addr to eth_random_addr to create some API symmetry. Joe Perches (8): etherdevice: Rename random_ether_addr to eth_random_addr ethernet: Use eth_random_addr net

Re: [E1000-devel] Strange latency spikes/TX network stalls on Sun Fire X4150(x86) and e1000e

2012-05-30 Thread Joe Perches
On Wed, 2012-05-30 at 16:42 +0200, Eric Dumazet wrote: > On Wed, 2012-05-30 at 07:09 -0700, Joe Perches wrote: > > > Whatever evals A and B once would be better. > > Why do you believe they could be evaluated several time ? > > #define POSDIFF(A, B) max_t(int, (A) - (B)

Re: [E1000-devel] Strange latency spikes/TX network stalls on Sun Fire X4150(x86) and e1000e

2012-05-30 Thread Joe Perches
On Wed, 2012-05-30 at 13:59 +0200, Eric Dumazet wrote: > On Wed, 2012-05-30 at 04:20 -0700, Joe Perches wrote: > > On Wed, 2012-05-30 at 13:08 +0200, Eric Dumazet wrote: > > > Maybe we should change all POSDIFF(), not selected ones. > > > #define POSDIFF(A, B) ((int)((A)

Re: [E1000-devel] Strange latency spikes/TX network stalls on Sun Fire X4150(x86) and e1000e

2012-05-30 Thread Joe Perches
On Wed, 2012-05-30 at 13:08 +0200, Eric Dumazet wrote: > Maybe we should change all POSDIFF(), not selected ones. > #define POSDIFF(A, B) ((int)((A) - (B)) > 0 ? (A) - (B) : 0) maybe use an eval once statement expression macro ({ typeof (A) _a = (A); typeof (B) _b = (B); ((

[E1000-devel] [PATCH 3/4] igbvf: Use ETH_ALEN

2012-03-18 Thread Joe Perches
Remove an unnecessary #define and use memcpy instead of a loop to copy an ethernet address. Signed-off-by: Joe Perches --- drivers/net/ethernet/intel/igbvf/defines.h |4 drivers/net/ethernet/intel/igbvf/vf.c |7 ++- 2 files changed, 2 insertions(+), 9 deletions(-) diff

[E1000-devel] [PATCH 0/4] driver: net: Use ETH_ALEN

2012-03-18 Thread Joe Perches
Just some neatening Joe Perches (4): if_vlan: Remove VLAN_ETH_ALEN define and the 1 use of it atlx: Use ETH_ALEN igbvf: Use ETH_ALEN rtlwifi: Remove unused ETH_ADDR_LEN defines drivers/net/ethernet/atheros/atlx/atl2.c | 13 + drivers/net/ethernet/atheros/atlx/atl2.h

[E1000-devel] [PATCH net-next] e1000: Neaten e1000_config_dsp_after_link_change

2012-02-09 Thread Joe Perches
Separate a complicated bit of e1000_config_dsp_after_link_change into a new static function e1000_1000Mb_check_cable_length. Reduces indentation and adds a bit of clarity. Signed-off-by: Joe Perches --- drivers/net/ethernet/intel/e1000/e1000_hw.c | 156 +-- 1 files

Re: [E1000-devel] [PATCH v2] e1000e: Assign true and false to bool type variable instead of 1 and 0

2011-12-06 Thread Joe Perches
On Wed, 2011-12-07 at 07:20 +, Al Viro wrote: > On Wed, Dec 07, 2011 at 02:36:20PM +0800, Michael Wang wrote: > > On 12/07/2011 02:19 PM, Joe Perches wrote: > > [snip] > > > if (*i2cctl & IXGBE_I2C_DATA_IN) > > > - data = 1; >

Re: [E1000-devel] [PATCH v2] e1000e: Assign true and false to bool type variable instead of 1 and 0

2011-12-06 Thread Joe Perches
On Wed, 2011-12-07 at 14:08 +0800, Michael Wang wrote: > I'm not good at script, if you are interested, we can work together to > fix all the remain cases, and send out some patches. You should try coccinelle and spatch. If you run the script, this is the intel output. drivers/net/ethernet/inte

Re: [E1000-devel] [PATCH v2] e1000e: Assign true and false to bool type variable instead of 1 and 0

2011-12-06 Thread Joe Perches
On Wed, 2011-12-07 at 12:49 +0800, Michael Wang wrote: > On 12/07/2011 12:14 PM, Joe Perches wrote: > > > On Tue, 2011-12-06 at 19:43 -0800, Jeff Kirsher wrote: > >> On Tue, 2011-12-06 at 18:33 -0800, Michael Wang wrote: > >>> From: Michael Wang > >>&g

Re: [E1000-devel] [PATCH v2] e1000e: Assign true and false to bool type variable instead of 1 and 0

2011-12-06 Thread Joe Perches
On Tue, 2011-12-06 at 19:43 -0800, Jeff Kirsher wrote: > On Tue, 2011-12-06 at 18:33 -0800, Michael Wang wrote: > > From: Michael Wang > > Use true and false instead of 1 and 0 when assign value to a bool type > > variable. > Thanks Michael, I have added your patch to my queue of e1000e patches.

[E1000-devel] [PATCH net-next 5/5] igb: Convert bare printk to pr_notice

2011-10-12 Thread Joe Perches
printks should use KERN_ levels. Signed-off-by: Joe Perches --- drivers/net/ethernet/intel/igb/e1000_82575.c |5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/net/ethernet/intel/igb/e1000_82575.c b/drivers/net/ethernet/intel/igb/e1000_82575.c index c0857bd

[E1000-devel] [PATCH net-next 4/5] igb: Convert printks to pr_

2011-10-12 Thread Joe Perches
ble output interleaving from other modules. Coalesce formats as appropriate. Signed-off-by: Joe Perches --- drivers/net/ethernet/intel/igb/igb_main.c | 155 +--- 1 files changed, 72 insertions(+), 83 deletions(-) diff --git a/drivers/net/ethernet/intel/igb/igb_main.c b/d

[E1000-devel] [PATCH net-next 0/5] intel: Logging cleanups

2011-10-12 Thread Joe Perches
Just some conversions of printks to pr_ and some trivial defect corrections. Joe Perches (5): e1000e: Convert printks to pr_ ixgbevf: Convert printks to pr_ igbvf: Convert printks to pr_ igb: Convert printks to pr_ igb: Convert bare printk to pr_notice drivers/net/ethernet/intel

[E1000-devel] [PATCH net-next 3/5] igbvf: Convert printks to pr_

2011-10-12 Thread Joe Perches
Use current logging styles. Prefix all output via #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt Neaten link status dev_info. Signed-off-by: Joe Perches --- drivers/net/ethernet/intel/igbvf/netdev.c | 14 +++--- 1 files changed, 7 insertions(+), 7 deletions(-) diff --git a/d

[E1000-devel] [PATCH net-next 2/5] ixgbevf: Convert printks to pr_

2011-10-12 Thread Joe Perches
Use the current logging styles, prefix output with "ixgbevf: " Add #define pr_fmt Coalesce formats. Signed-off-by: Joe Perches --- drivers/net/ethernet/intel/ixgbevf/ethtool.c |6 +++- drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c | 26 ++-- 2 files c

[E1000-devel] [PATCH net-next 1/5] e1000e: Convert printks to pr_

2011-10-12 Thread Joe Perches
y possible output interleaving from other modules. Coalesce formats as appropriate. Remove an extra space from a broken across lines coalescing of "Link Status " and " Change". Signed-off-by: Joe Perches --- drivers/net/ethernet/intel/e1000e/netdev.c | 232 ---

Re: [E1000-devel] [PATCH] fixing hw timestamping in igb

2011-02-09 Thread Joe Perches
On Wed, 2011-02-09 at 09:24 +0100, Anders Berggren wrote: > Our hardware ping, using Intel 82580 NICs, > have an accuracy of 8 nanoseconds. Perhaps you mean 8 nanosecond resolution? Is documentation available for this claim? --

Re: [E1000-devel] [PATCH 00/62] drivers/net: Use static const

2010-11-22 Thread Joe Perches
On Mon, 2010-11-22 at 14:19 -0800, David Miller wrote: > From: Joe Perches > Date: Mon, 22 Nov 2010 14:10:46 -0800 > > Do let me know if you'd consider pulling these sorts of > > changes from me. > Expand your horizon beyond drivers/net/ and into places like net/ > an

Re: [E1000-devel] [PATCH 00/62] drivers/net: Use static const

2010-11-22 Thread Joe Perches
On Sat, 2010-11-20 at 20:50 -0800, David Miller wrote: > From: Joe Perches > Date: Sat, 20 Nov 2010 18:38:01 -0800 > > > Using static const generally increases object text and decreases data size. > > It also generally decreases overall object size. > > Joe, I'

[E1000-devel] [PATCH 27/62] ixgbevf: Use static const

2010-11-20 Thread Joe Perches
/net/ixgbevf/ethtool.o.new Make single file scope definition for register_test_patterns. Rename _test to register_test_patterns. Signed-off-by: Joe Perches --- drivers/net/ixgbevf/ethtool.c | 18 +++--- 1 files changed, 11 insertions(+), 7 deletions(-) diff --git a/drivers/net

[E1000-devel] [PATCH 28/62] ixgb: Use static const

2010-11-20 Thread Joe Perches
/net/ixgb/ixgb_param.o.new Change struct ixgb_opt_list to const struct and change char *str to const char *str. Signed-off-by: Joe Perches --- drivers/net/ixgb/ixgb_param.c | 21 +++-- 1 files changed, 11 insertions(+), 10 deletions(-) diff --git a/drivers/net/ixgb/ixgb_param.c

[E1000-devel] [PATCH 23/62] igb: Use static const

2010-11-20 Thread Joe Perches
/igb/e1000_phy.o.old Signed-off-by: Joe Perches --- drivers/net/igb/e1000_phy.c | 11 ++- 1 files changed, 6 insertions(+), 5 deletions(-) diff --git a/drivers/net/igb/e1000_phy.c b/drivers/net/igb/e1000_phy.c index ddd036a..2dc089e 100644 --- a/drivers/net/igb/e1000_phy.c +++ b

[E1000-devel] [PATCH 26/62] ixgbe: Use static const

2010-11-20 Thread Joe Perches
drivers/net/ixgbe/ixgbe_ethtool.o.old Make single file scope definition for register_test_patterns. Rename _test to register_test_patterns. Signed-off-by: Joe Perches --- drivers/net/ixgbe/ixgbe_ethtool.c | 22 +- 1 files changed, 13 insertions(+), 9 deletions(-) diff --git a

[E1000-devel] [PATCH 00/62] drivers/net: Use static const

2010-11-20 Thread Joe Perches
2074597 70614 48 2611879 27daa7 (TOTALS) -old Joe Perches (62): 3c501: Use static const 3c503: Use static const 3c507: Use static const 3c527: Use static const at1700: Use static const benet: Use static const bnx2: Use static const bnx2x: Use static const can: Use static const

[E1000-devel] [PATCH 16/62] e1000: Use static const

2010-11-20 Thread Joe Perches
/net/e1000/e1000_param.o.old Signed-off-by: Joe Perches --- drivers/net/e1000/e1000_param.c | 13 +++-- 1 files changed, 7 insertions(+), 6 deletions(-) diff --git a/drivers/net/e1000/e1000_param.c b/drivers/net/e1000/e1000_param.c index 10d8d98..6ba2aee 100644 --- a/drivers/net/e1000

[E1000-devel] [PATCH 15/62] e1000: Use static const

2010-11-20 Thread Joe Perches
/net/e1000/e1000_hw.o.new Signed-off-by: Joe Perches --- drivers/net/e1000/e1000_hw.c |8 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/net/e1000/e1000_hw.c b/drivers/net/e1000/e1000_hw.c index c7e242b6..c866ef0 100644 --- a/drivers/net/e1000/e1000_hw.c +++ b

[E1000-devel] [PATCH 17/62] e1000e: Use static const

2010-11-20 Thread Joe Perches
/e1000e/phy.o.old Signed-off-by: Joe Perches --- drivers/net/e1000e/phy.c | 11 ++- 1 files changed, 6 insertions(+), 5 deletions(-) diff --git a/drivers/net/e1000e/phy.c b/drivers/net/e1000e/phy.c index b9bff5b..a7ea4e7 100644 --- a/drivers/net/e1000e/phy.c +++ b/drivers/net/e1000e/phy.c

[E1000-devel] [PATCH 00/44] remove unnecessary semicolons

2010-11-15 Thread Joe Perches
ya trivial series... Joe Perches (44): arch/arm: Remove unnecessary semicolons arch/microblaze: Remove unnecessary semicolons arch/um: Remove unnecessary semicolons drivers/cpufreq: Remove unnecessary semicolons drivers/gpio: Remove unnecessary semicolons drivers/i2c: Remove

[E1000-devel] [PATCH 14/44] drivers/net/ixgbe: Remove unnecessary semicolons

2010-11-14 Thread Joe Perches
Signed-off-by: Joe Perches --- drivers/net/ixgbe/ixgbe_sriov.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/net/ixgbe/ixgbe_sriov.c b/drivers/net/ixgbe/ixgbe_sriov.c index 5428153..93f40bc 100644 --- a/drivers/net/ixgbe/ixgbe_sriov.c +++ b/drivers/net/ixgbe

[E1000-devel] [PATCH 13/44] drivers/net/e1000e: Remove unnecessary semicolons

2010-11-14 Thread Joe Perches
Signed-off-by: Joe Perches --- drivers/net/e1000e/netdev.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/net/e1000e/netdev.c b/drivers/net/e1000e/netdev.c index c4ca162..a6d54e4 100644 --- a/drivers/net/e1000e/netdev.c +++ b/drivers/net/e1000e/netdev.c

[E1000-devel] [PATCH 00/49] Use vzalloc not vmalloc/kmemset

2010-11-05 Thread Joe Perches
Converted vmalloc/memset and vmalloc_node/memset to vzalloc or vzalloc_node using a cocci script and some editing Reduces text a little bit. Compiled x86 only. There are still vmalloc_32 with memset calls still around. Broken out to multiple patches to cc appropriate maintainers. Joe Perches

[E1000-devel] [PATCH 23/49] drivers/net/igbvf: Use vzalloc

2010-11-04 Thread Joe Perches
Signed-off-by: Joe Perches --- drivers/net/igbvf/netdev.c |6 ++ 1 files changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/net/igbvf/netdev.c b/drivers/net/igbvf/netdev.c index 28af019..08e7459 100644 --- a/drivers/net/igbvf/netdev.c +++ b/drivers/net/igbvf/netdev.c

[E1000-devel] [PATCH 24/49] drivers/net/ixgb: Use vzalloc

2010-11-04 Thread Joe Perches
Signed-off-by: Joe Perches --- drivers/net/ixgb/ixgb_main.c |6 ++ 1 files changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/net/ixgb/ixgb_main.c b/drivers/net/ixgb/ixgb_main.c index caa8192..211a169 100644 --- a/drivers/net/ixgb/ixgb_main.c +++ b/drivers/net/ixgb

[E1000-devel] [PATCH 26/49] drivers/net/ixgbevf: Use vzalloc

2010-11-04 Thread Joe Perches
Signed-off-by: Joe Perches --- drivers/net/ixgbevf/ixgbevf_main.c |6 ++ 1 files changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/net/ixgbevf/ixgbevf_main.c b/drivers/net/ixgbevf/ixgbevf_main.c index dc03c96..6aeaf54 100644 --- a/drivers/net/ixgbevf/ixgbevf_main.c +++ b

[E1000-devel] [PATCH 19/49] drivers/net/e1000: Use vzalloc

2010-11-04 Thread Joe Perches
Signed-off-by: Joe Perches --- drivers/net/e1000/e1000_main.c |6 ++ 1 files changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/net/e1000/e1000_main.c b/drivers/net/e1000/e1000_main.c index 4686c39..dcb7f82 100644 --- a/drivers/net/e1000/e1000_main.c +++ b/drivers/net/e1000

[E1000-devel] [PATCH 25/49] drivers/net/ixgbe: Use vzalloc

2010-11-04 Thread Joe Perches
Signed-off-by: Joe Perches --- drivers/net/ixgbe/ixgbe_main.c | 10 -- 1 files changed, 4 insertions(+), 6 deletions(-) diff --git a/drivers/net/ixgbe/ixgbe_main.c b/drivers/net/ixgbe/ixgbe_main.c index 2bd3eb4..c10d179 100644 --- a/drivers/net/ixgbe/ixgbe_main.c +++ b/drivers/net

[E1000-devel] [PATCH 22/49] drivers/net/igb: Use vzalloc

2010-11-04 Thread Joe Perches
Signed-off-by: Joe Perches --- drivers/net/igb/igb_main.c |6 ++ 1 files changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/net/igb/igb_main.c b/drivers/net/igb/igb_main.c index 892d196..67ea262 100644 --- a/drivers/net/igb/igb_main.c +++ b/drivers/net/igb/igb_main.c

[E1000-devel] [PATCH 20/49] drivers/net/e1000e: Use vzalloc

2010-11-04 Thread Joe Perches
Signed-off-by: Joe Perches --- drivers/net/e1000e/netdev.c |6 ++ 1 files changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/net/e1000e/netdev.c b/drivers/net/e1000e/netdev.c index c4ca162..9922edb 100644 --- a/drivers/net/e1000e/netdev.c +++ b/drivers/net/e1000e/netdev.c

Re: [E1000-devel] [RFC PATCH net-next] drivers/net Documentation/networking: Create directory intel_wired_lan

2010-10-14 Thread Joe Perches
On Thu, 2010-10-14 at 02:34 -0700, Jeff Kirsher wrote: > On Wed, 2010-10-13 at 22:57 -0700, Joe Perches wrote: > > On Wed, 2010-10-13 at 21:57 -0700, Jeff Kirsher wrote: > > > On Wed, 2010-10-13 at 15:28 -0700, Joe Perches wrote: > > > Sorry I am not ignoring you, I

Re: [E1000-devel] [RFC PATCH net-next] drivers/net Documentation/networking: Create directory intel_wired_lan

2010-10-13 Thread Joe Perches
On Wed, 2010-10-13 at 21:57 -0700, Jeff Kirsher wrote: > On Wed, 2010-10-13 at 15:28 -0700, Joe Perches wrote: > Sorry I am not ignoring you, I was taking a closer look at your patch. > > What regression testing would actually be done? > The Makefile and Kconfig needs more work.

Re: [E1000-devel] [RFC PATCH net-next] drivers/net Documentation/networking: Create directory intel_wired_lan

2010-10-13 Thread Joe Perches
On Mon, 2010-10-11 at 17:00 -0700, Joe Perches wrote: > On Mon, 2010-10-11 at 16:52 -0700, Jeff Kirsher wrote: > > On Sun, Oct 10, 2010 at 13:42, Joe Perches wrote: > > > Perhaps it's better to move drivers from the very populated > > > drivers/net directory

Re: [E1000-devel] [RFC PATCH net-next] drivers/net Documentation/networking: Create directory intel_wired_lan

2010-10-11 Thread Joe Perches
On Mon, 2010-10-11 at 16:52 -0700, Jeff Kirsher wrote: > On Sun, Oct 10, 2010 at 13:42, Joe Perches wrote: > > Perhaps it's better to move drivers from the very populated > > drivers/net directory into vendor specific directories similar > > to the Atheros approach use

  1   2   >