[PATCH] net/bonding: fix propagation of user-specified bond MAC

2015-06-05 Thread Jarod Wilson
...@cumulusnetworks.com CC: netdev@vger.kernel.org (open list:BONDING DRIVER) Signed-off-by: Jarod Wilson ja...@redhat.com --- drivers/net/bonding/bond_main.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/bonding/bond_main.c b/drivers/net/bonding/bond_main.c index 19eb990..2aa5b5f

[PATCH] ethernet/sfc: mark state UNINIT after unregister

2015-06-12 Thread Jarod Wilson
() after its unregister_netdevice() call. Now I can load and unload no problem. CC: Solarflare linux maintainers linux-net-driv...@solarflare.com CC: netdev@vger.kernel.org Signed-off-by: Jarod Wilson ja...@redhat.com --- drivers/net/ethernet/sfc/efx.c | 1 + 1 file changed, 1 insertion(+) diff --git

Re: [PATCH] ethernet/sfc: mark state UNINIT after unregister

2015-06-15 Thread Jarod Wilson
On 6/15/2015 9:49 AM, Edward Cree wrote: On 12/06/15 19:51, Jarod Wilson wrote: Without this change, modprobe -r sfc hits the BUG_ON() in efx_pci_remove_main(). Best as I can tell, this was just an oversight, efx-state gets set to STATE_UNINIT in the error path of efx_register_netdev() just

Re: [PATCH] net/bonding: send arp in interval if no active slave

2015-08-17 Thread Jarod Wilson
On 2015-08-17 12:55 PM, Veaceslav Falico wrote: On Mon, Aug 17, 2015 at 12:23:03PM -0400, Jarod Wilson wrote: From: Uwe Koziolek uwe.kozio...@redknee.com With some very finicky switch hardware, active backup bonding can get into a situation where we play ping-pong between interfaces, trying

Re: [PATCH 1/6] net/bonding: enable LRO if one device supports it

2015-08-17 Thread Jarod Wilson
On 2015-08-14 7:41 PM, Jarod Wilson wrote: On 2015-08-14 2:56 AM, Michal Kubecek wrote: On Thu, Aug 13, 2015 at 02:02:55PM -0400, Jarod Wilson wrote: Currently, all bonding devices come up, and claim to have LRO support, which ethtool will let you toggle on and off, even if none

[PATCH] net/bonding: send arp in interval if no active slave

2015-08-17 Thread Jarod Wilson
Signed-off-by: Uwe Koziolek uwe.kozio...@redknee.com Signed-off-by: Jarod Wilson ja...@redhat.com --- drivers/net/bonding/bond_main.c | 5 + 1 file changed, 5 insertions(+) diff --git a/drivers/net/bonding/bond_main.c b/drivers/net/bonding/bond_main.c index 0c627b4..60b9483 100644 --- a/drivers

[PATCH 6/6] ethernet/s2io: advertise what hw supports in vlan_features

2015-08-13 Thread Jarod Wilson
in a bond will not trigger LRO support to be enabled at the bond level, even while it is enabled on the slave itself. This change becomes necessary when NETIF_F_LRO is added to netdev_features.h's NETIF_F_ONE_FOR_ALL. CC: Jon Mason jdma...@kudzu.us CC: netdev@vger.kernel.org Signed-off-by: Jarod Wilson

[PATCH 2/6] ethernet/bnx2x: advertise LRO support in vlan_features

2015-08-13 Thread Jarod Wilson
...@qlogic.com CC: netdev@vger.kernel.org Signed-off-by: Jarod Wilson ja...@redhat.com --- drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c b/drivers/net/ethernet/broadcom/bnx2x

[PATCH 5/6] ethernet/qlcnic: advertise LRO support in vlan_features

2015-08-13 Thread Jarod Wilson
...@qlogic.com CC: dept-gelinuxnic...@qlogic.com CC: netdev@vger.kernel.org Signed-off-by: Jarod Wilson ja...@redhat.com --- drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c b

[PATCH 4/6] ethernet/netxen: advertise LRO support in vlan_features

2015-08-13 Thread Jarod Wilson
...@qlogic.com CC: Sony Chacko sony.cha...@qlogic.com CC: Rajesh Borundia rajesh.borun...@qlogic.com CC: netdev@vger.kernel.org Signed-off-by: Jarod Wilson ja...@redhat.com --- drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git

[PATCH 3/6] ethernet/ixgbe: advertise LRO support in vlan_features

2015-08-13 Thread Jarod Wilson
...@intel.com CC: intel-wired-...@lists.osuosl.org CC: netdev@vger.kernel.org Signed-off-by: Jarod Wilson ja...@redhat.com --- drivers/net/ethernet/intel/ixgbe/ixgbe_main.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/net/ethernet/intel/ixgbe/ixgbe_main.c b/drivers

[PATCH 0/6] bonding: only advertise LRO if underlying hardware can LRO

2015-08-13 Thread Jarod Wilson
was generated against net-next master, it applies to 4.2.0-rc6 with a bit of fuzz. Jarod Wilson (6): net/bonding: enable LRO if one device supports it ethernet/bnx2x: advertise LRO support in vlan_features ethernet/ixgbe: advertise LRO support in vlan_features ethernet/netxen: advertise LRO support

[PATCH 1/6] net/bonding: enable LRO if one device supports it

2015-08-13 Thread Jarod Wilson
therb...@google.com CC: Scott Feldman sfel...@gmail.com CC: netdev@vger.kernel.org Signed-off-by: Jarod Wilson ja...@redhat.com --- include/linux/netdev_features.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/linux/netdev_features.h b/include/linux/netdev_features.h

Re: [PATCH 1/6] net/bonding: enable LRO if one device supports it

2015-08-14 Thread Jarod Wilson
On 2015-08-14 2:56 AM, Michal Kubecek wrote: On Thu, Aug 13, 2015 at 02:02:55PM -0400, Jarod Wilson wrote: Currently, all bonding devices come up, and claim to have LRO support, which ethtool will let you toggle on and off, even if none of the underlying hardware devices actually support

[RFC PATCH net-next] net/core: initial support for stacked dev feature toggles

2015-10-23 Thread Jarod Wilson
google.com> CC: Jay Vosburgh <j.vosbu...@gmail.com> CC: Veaceslav Falico <vfal...@gmail.com> CC: Andy Gospodarek <go...@cumulusnetworks.com> CC: Jiri Pirko <j...@resnulli.us> CC: Nikolay Aleksandrov <ra...@blackwall.org> CC: Michal Kubecek <mkube...@suse.cz>

[PATCH net-next] net/core: generic support for disabling netdev features down stack

2015-11-02 Thread Jarod Wilson
ichal Kubecek <mkube...@suse.cz> CC: Alexander Duyck <alexander.du...@gmail.com> CC: netdev@vger.kernel.org Signed-off-by: Jarod Wilson <ja...@redhat.com> --- Note: this replaces "[RFC PATCH net-next] net/core: initial support for stacked dev feature toggles" for

Re: [RFC PATCH net-next] net/core: initial support for stacked dev feature toggles

2015-11-02 Thread Jarod Wilson
Alexander Duyck wrote: On 10/30/2015 09:25 AM, Jarod Wilson wrote: ... Rather than outright dropping the second bit though, I was thinking maybe just drop a note in dmesg along the lines of "hey, you shut off LRO, it is still enabled on upper dev foo", to placate end-users. I wo

[PATCH net-next] net/core: fix for_each_netdev_feature

2015-11-03 Thread Jarod Wilson
works.com> CC: Jiri Pirko <j...@resnulli.us> CC: Nikolay Aleksandrov <ra...@blackwall.org> CC: Michal Kubecek <mkube...@suse.cz> CC: Alexander Duyck <alexander.du...@gmail.com> CC: Geert Uytterhoeven <ge...@linux-m68k.org> CC: netdev@vger.kernel.org Signed-

Re: [PATCH net-next] net/core: ensure features get disabled on new lower devs

2015-11-03 Thread Jarod Wilson
Michal Kubecek wrote: On Tue, Nov 03, 2015 at 03:36:57PM -0500, Jarod Wilson wrote: With moving netdev_sync_lower_features() after the .ndo_set_features calls, I neglected to verify that devices added *after* a flag had been disabled on an upper device were properly added with that flag

Re: [PATCH net-next] net/core: ensure features get disabled on new lower devs

2015-11-03 Thread Jarod Wilson
Alexander Duyck wrote: On 11/03/2015 12:36 PM, Jarod Wilson wrote: With moving netdev_sync_lower_features() after the .ndo_set_features calls, I neglected to verify that devices added *after* a flag had been disabled on an upper device were properly added with that flag disabled as well

[PATCH net-next] net/core: ensure features get disabled on new lower devs

2015-11-03 Thread Jarod Wilson
Gospodarek <go...@cumulusnetworks.com> CC: Jiri Pirko <j...@resnulli.us> CC: Nikolay Aleksandrov <ra...@blackwall.org> CC: Michal Kubecek <mkube...@suse.cz> CC: Alexander Duyck <alexander.du...@gmail.com> CC: netdev@vger.kernel.org Signed-off-by: Jarod Wilson <ja..

[PATCH v2 net-next] net/core: ensure features get disabled on new lower devs

2015-11-03 Thread Jarod Wilson
kwall.org> CC: Michal Kubecek <mkube...@suse.cz> CC: Alexander Duyck <alexander.du...@gmail.com> CC: netdev@vger.kernel.org Reported-by: Nikolay Aleksandrov <niko...@cumulusnetworks.com> Signed-off-by: Jarod Wilson <ja...@redhat.com> --- v2: Based on suggestions from Alex

Re: [PATCH net-next] net/core: generic support for disabling netdev features down stack

2015-11-02 Thread Jarod Wilson
Alexander Duyck wrote: On 11/02/2015 09:53 AM, Jarod Wilson wrote: There are some netdev features, which when disabled on an upper device, such as a bonding master or a bridge, must be disabled and cannot be re-enabled on underlying devices. This is a rework of an earlier more heavy-handed

Re: [RFC PATCH net-next] net/core: initial support for stacked dev feature toggles

2015-10-30 Thread Jarod Wilson
Michal Kubecek wrote: On Fri, Oct 23, 2015 at 10:51:09PM -0700, Alexander Duyck wrote: On 10/23/2015 08:40 PM, Jarod Wilson wrote: +static netdev_features_t netdev_sync_upper_features(struct net_device *lower, + struct net_device *upper, netdev_features_t features

Re: [RFC PATCH net-next] net/core: initial support for stacked dev feature toggles

2015-10-30 Thread Jarod Wilson
Alexander Duyck wrote: On 10/23/2015 08:40 PM, Jarod Wilson wrote: There are some netdev features that make little sense to toggle on and off in a stacked device setup on only one device in the stack. The prime example is a bonded connection, where it really doesn't make sense to disable LRO

[PATCH net] net/qlcnic: fix mac address restore in bond mode 5/6

2015-11-06 Thread Jarod Wilson
n-update, so look at both. CC: dept-gelinuxnic...@qlogic.com CC: netdev@vger.kernel.org CC: Manish Chopra <manish.cho...@qlogic.com> Signed-off-by: Jarod Wilson <ja...@redhat.com> --- drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(

Re: [PATCH net] net/qlcnic: fix mac address restore in bond mode 5/6

2015-11-06 Thread Jarod Wilson
Jarod Wilson wrote: The bonding driver saves a copy of slaves' original mac address and then assigns whatever mac as needed to the slave, depending on mode. In at least modes 5 and 6 (balance-tlb, balance-alb), it often ends up being the mac address of another slave. On release from the bond

Re: [PATCH v2 net-next] net/core: generic support for disabling netdev features down stack

2015-11-03 Thread Jarod Wilson
Nikolay Aleksandrov wrote: On 11/03/2015 02:57 PM, Jarod Wilson wrote: Geert Uytterhoeven wrote: On Tue, Nov 3, 2015 at 11:03 AM, Nikolay Aleksandrov <niko...@cumulusnetworks.com> wrote: On 11/03/2015 03:55 AM, Jarod Wilson wrote: [snip] +#define for_each_netdev_feature(mask_addr, f

[PATCH v2 net-next] net/core: generic support for disabling netdev features down stack

2015-11-02 Thread Jarod Wilson
ichal Kubecek <mkube...@suse.cz> CC: Alexander Duyck <alexander.du...@gmail.com> CC: netdev@vger.kernel.org Signed-off-by: Jarod Wilson <ja...@redhat.com> --- v2: Move manipulation of lower devices after ndo_set_features so the upper device gets fully set up first and remove now r

Re: [PATCH v2 net-next] net/core: generic support for disabling netdev features down stack

2015-11-03 Thread Jarod Wilson
Geert Uytterhoeven wrote: On Tue, Nov 3, 2015 at 11:03 AM, Nikolay Aleksandrov <niko...@cumulusnetworks.com> wrote: On 11/03/2015 03:55 AM, Jarod Wilson wrote: [snip] +#define for_each_netdev_feature(mask_addr, feature) \ + i

[PATCH v2] igb: improve handling of disconnected adapters

2015-10-19 Thread Jarod Wilson
: Jeff Kirsher <jeffrey.t.kirs...@intel.com> CC: Alexander Duyck <alexander.du...@gmail.com> CC: intel-wired-...@lists.osuosl.org CC: netdev@vger.kernel.org Acked-by: Alexander Duyck <adu...@mirantis.com> Signed-off-by: Jarod Wilson <ja...@redhat.com> --- Note: this patch is re

Re: [PATCH v4] net/bonding: send arp in interval if no active slave

2015-10-12 Thread Jarod Wilson
Jay Vosburgh wrote: Jarod Wilson<ja...@redhat.com> wrote: Jarod Wilson wrote: ... As Andy already stated I'm not a fan of such workarounds either but it's necessary sometimes so if this is going to be actually considered then a few things need to be fixed. Please make this a proper b

[PATCH v3] igb: improve handling of disconnected adapters

2015-10-07 Thread Jarod Wilson
@gmail.com> CC: intel-wired-...@lists.osuosl.org CC: netdev@vger.kernel.org Signed-off-by: Jarod Wilson <ja...@redhat.com> --- note: this patch is dependent on the previously submitted "igb: don't unmap hw_addr if its NULL", which added io_addr. v3: don't modify igb_rd32, just pass reg

Re: [PATCH v4] net/bonding: send arp in interval if no active slave

2015-10-07 Thread Jarod Wilson
Nikolay Aleksandrov wrote: On 10/06/2015 09:53 PM, Jarod Wilson wrote: From: Uwe Koziolek<uwe.kozio...@redknee.com> With some very finicky switch hardware, active backup bonding can get into a situation where we play ping-pong between interfaces, trying to get one to come up as the

[PATCH v4] net/bonding: send arp in interval if no active slave

2015-10-06 Thread Jarod Wilson
eslav Falico <vfal...@gmail.com> CC: netdev@vger.kernel.org Signed-off-by: Uwe Koziolek <uwe.kozio...@redknee.com> Signed-off-by: Jarod Wilson <ja...@redhat.com> --- v2: add code comment as to why change is needed v3: fix wrapping of comments v4: [jarod] add module parameter g

Re: [PATCH v4] net/bonding: send arp in interval if no active slave

2015-10-06 Thread Jarod Wilson
Jarod Wilson wrote: From: Uwe Koziolek<uwe.kozio...@redknee.com> With some very finicky switch hardware, active backup bonding can get into a situation where we play ping-pong between interfaces, trying to get one to come up as the active slave. There seems to be an issue with the switch

Re: [Intel-wired-lan] [PATCH] igb: add more checks for disconnected adapter

2015-10-06 Thread Jarod Wilson
Alexander Duyck wrote: On 09/21/2015 09:14 PM, Jarod Wilson wrote: Alexander Duyck wrote: On 09/21/2015 10:11 AM, Jarod Wilson wrote: Some pci changes upcoming in 4.3 seem to cause additional disconnects, which can happen at unfortuitous times for igb, leading to issues such as this, where

[PATCH] igb: improve handling of disconnected adapters

2015-10-06 Thread Jarod Wilson
er <jeffrey.t.kirs...@intel.com> CC: Alexand Duyck <alexander.du...@gmail.com> CC: intel-wired-...@lists.osuosl.org CC: netdev@vger.kernel.org Signed-off-by: Jarod Wilson <ja...@redhat.com> --- drivers/net/ethernet/intel/igb/e1000_regs.h | 7 +++ drivers/net/

Re: [PATCH v4] net/bonding: send arp in interval if no active slave

2015-10-09 Thread Jarod Wilson
Jarod Wilson wrote: ... As Andy already stated I'm not a fan of such workarounds either but it's necessary sometimes so if this is going to be actually considered then a few things need to be fixed. Please make this a proper bonding option which can be changed at runtime and not only via

Re: [PATCH net] net: fix feature changes on devices without ndo_set_features

2015-11-13 Thread Jarod Wilson
st set the new features, but now we return an error and don't set them. Fix this by returning the old behaviour and setting err to 0 when ndo_set_features is not present. Fixes: e7868a85e1b2 ("net/core: ensure features get disabled on new lower devs") CC: Jarod Wilson<ja...@redhat.co

Re: [PATCH] net/bonding: send arp in interval if no active slave

2015-08-31 Thread Jarod Wilson
On 2015-08-17 4:51 PM, Uwe Koziolek wrote: On Mon, Aug 17, 2015 at 09:14PM +0200, Jay Vosburgh wrote: Uwe Koziolek <uwe.kozio...@redknee.com> wrote: On2015-08-17 07:12 PM,Jarod Wilson wrote: ... Uwe, can you perhaps further enlighten us as to what num_grat_arp settings were

Re: [PATCH] igb: don't unmap hw_addr if its NULL

2015-09-10 Thread Jarod Wilson
Rustad, Mark D wrote: On Sep 9, 2015, at 9:07 PM, Jarod Wilson<ja...@redhat.com> wrote: diff --git a/drivers/net/ethernet/intel/igb/igb_main.c b/drivers/net/ethernet/intel/igb/igb_main.c index e174fbb..a5e0022 100644 --- a/drivers/net/ethernet/intel/igb/igb_main.c +++ b/drivers/net/et

[PATCH v2] igb: don't unmap NULL hw_addr

2015-09-10 Thread Jarod Wilson
ark.d.rus...@intel.com> CC: Jeff Kirsher <jeffrey.t.kirs...@intel.com> CC: intel-wired-...@lists.osuosl.org CC: netdev@vger.kernel.org Signed-off-by: Jarod Wilson <ja...@redhat.com> --- drivers/net/ethernet/intel/igb/igb.h | 2 ++ drivers/net/ethernet/intel/igb/igb_main.

[PATCH] igb: don't unmap hw_addr if its NULL

2015-09-09 Thread Jarod Wilson
go well. Simple solution here is to simply make sure hw_addr is not NULL before we try to call pci_iounmap on it, and now I can hot-unplug this thunderbolt dock without a problem. CC: Jeff Kirsher <jeffrey.t.kirs...@intel.com> CC: intel-wired-...@lists.osuosl.org CC: netdev@vger.kernel.or

Re: [PATCH] net/bonding: send arp in interval if no active slave

2015-09-28 Thread Jarod Wilson
ndy seemed okay with it, provided there was a comment explaining. Just looking at what might have to be done next here to keep heading towards a resolution. Thanks much, -- Jarod Wilson ja...@redhat.com -- To unsubscribe from this list: send the line "unsubscribe netdev" in the bo

Re: [Intel-wired-lan] [PATCH] igb: add more checks for disconnected adapter

2015-09-21 Thread Jarod Wilson
Alexander Duyck wrote: On 09/21/2015 10:11 AM, Jarod Wilson wrote: Some pci changes upcoming in 4.3 seem to cause additional disconnects, which can happen at unfortuitous times for igb, leading to issues such as this, where the disconnect happened just before igb_configure_tx_ring

[PATCH] igb: add more checks for disconnected adapter

2015-09-21 Thread Jarod Wilson
<mark.d.rus...@intel.com> CC: Jeff Kirsher <jeffrey.t.kirs...@intel.com> CC: intel-wired-...@lists.osuosl.org CC: netdev@vger.kernel.org Signed-off-by: Jarod Wilson <ja...@redhat.com> --- Note: this is a follow-up patch in addition to the previously submitted "igb: don'

[PATCH net-next] sfc: use ALIGN macro for aligning frame sizes

2015-11-30 Thread Jarod Wilson
Don't open-code it. CC: Solarflare linux maintainers <linux-net-driv...@solarflare.com> CC: Shradha Shah <ss...@solarflare.com> CC: netdev@vger.kernel.org Signed-off-by: Jarod Wilson <ja...@redhat.com> --- drivers/net/ethernet/sfc/net_driver.h | 3 ++- 1 file changed, 2 inserti

[PATCH v2 net-next] ethernet/atheros/alx: sanitize buffer sizing and padding

2016-01-06 Thread Jarod Wilson
://bugzilla.kernel.org/show_bug.cgi?id=70761 CC: "Eugene A. Shatokhin" <eugene.shatok...@rosalab.ru> CC: Przemek Rudy <pru...@o2.pl> CC: Jay Cliburn <jclib...@gmail.com> CC: Chris Snook <chris.sn...@gmail.com> CC: netdev@vger.kernel.org Signed-off-by: Jarod Wilson <ja...@r

[PATCH net-next] ethernet/atheros/alx: sanitize buffer sizing and padding

2016-01-05 Thread Jarod Wilson
ris.sn...@gmail.com> CC: netdev@vger.kernel.org Signed-off-by: Jarod Wilson <ja...@redhat.com> --- drivers/net/ethernet/atheros/alx/hw.c | 10 +- drivers/net/ethernet/atheros/alx/hw.h | 9 ++--- drivers/net/ethernet/atheros/alx/main.c | 7 +++ 3 files changed, 14 insertions(+), 1

Re: severe regression in alx ethernet driver

2015-11-24 Thread Jarod Wilson
es attached to the bug, so I'm working on touching up the descriptions and formatting, regression testing them on my laptop that has an alx-driven E2200 in it (which isn't affected by this bug), and then I can ship them up for proper review. -- Jarod Wilson ja...@redhat.com -- To unsubscribe from

[PATCH net-next] alx: remove pointless assignment

2015-11-30 Thread Jarod Wilson
Reasonably sure this doesn't serve any purpose. CC: Jay Cliburn <jclib...@gmail.com> CC: Chris Snook <chris.sn...@gmail.com> CC: netdev@vger.kernel.org Signed-off-by: Jarod Wilson <ja...@redhat.com> --- drivers/net/ethernet/atheros/alx/main.c | 1 - 1 file changed, 1 delet

[PATCH net] ethernet/sfc: report supported link speeds on SFP connections

2016-06-02 Thread Jarod Wilson
: Solarflare linux maintainers <linux-net-driv...@solarflare.com> CC: Edward Cree <ec...@solarflare.com> CC: Bert Kenward <bkenw...@solarflare.com> CC: netdev@vger.kernel.org Signed-off-by: Jarod Wilson <ja...@redhat.com> --- drivers/net/ethernet/sfc/mcdi_port.c | 4 1 fi

Re: [PATCH net v2] sfc: report supported link speeds on SFP connections

2016-06-08 Thread Jarod Wilson
On Tue, Jun 07, 2016 at 05:20:16PM -0400, Jarod Wilson wrote: > On Mon, Jun 06, 2016 at 02:55:29PM -0400, Jarod Wilson wrote: > > On Mon, Jun 06, 2016 at 05:29:30PM +0100, Bert Kenward wrote: > > > 7000-series SFC NICs connected with an SFP+ module currently fail to > > >

Re: [PATCH net v2] sfc: report supported link speeds on SFP connections

2016-06-07 Thread Jarod Wilson
On Mon, Jun 06, 2016 at 02:55:29PM -0400, Jarod Wilson wrote: > On Mon, Jun 06, 2016 at 05:29:30PM +0100, Bert Kenward wrote: > > 7000-series SFC NICs connected with an SFP+ module currently fail to > > report any supported link speeds. > > > > Reported-by: Jar

Re: [PATCH net v2] sfc: report supported link speeds on SFP connections

2016-06-06 Thread Jarod Wilson
On Mon, Jun 06, 2016 at 05:29:30PM +0100, Bert Kenward wrote: > 7000-series SFC NICs connected with an SFP+ module currently fail to > report any supported link speeds. > > Reported-by: Jarod Wilson <ja...@redhat.com> > Signed-off-by: Bert Kenward <bkenw...@solarflare.co

Re: [Intel-wired-lan] [RFC PATCH net] e1000e: keep vlan interfaces functional after rxvlan off

2016-06-09 Thread Jarod Wilson
On Thu, Jun 09, 2016 at 02:02:04PM -0400, Jarod Wilson wrote: > On Wed, Jun 01, 2016 at 03:31:46PM -0700, Alexander Duyck wrote: > > On Wed, Jun 1, 2016 at 12:27 PM, Jarod Wilson <ja...@redhat.com> wrote: > > > On Wed, Jun 01, 2016 at 07:31:53AM -0700, Alexander Duyck wrot

Re: [Intel-wired-lan] [RFC PATCH net] e1000e: keep vlan interfaces functional after rxvlan off

2016-06-09 Thread Jarod Wilson
On Thu, Jun 09, 2016 at 04:55:01PM -0400, Jarod Wilson wrote: > On Thu, Jun 09, 2016 at 02:02:04PM -0400, Jarod Wilson wrote: > > On Wed, Jun 01, 2016 at 03:31:46PM -0700, Alexander Duyck wrote: > > > On Wed, Jun 1, 2016 at 12:27 PM, Jarod Wilson <ja...@redhat.com> wrote

[PATCH net v2] e1000e: keep vlan interfaces functional after rxvlan off

2016-06-09 Thread Jarod Wilson
/avg/max/mdev = 0.327/0.381/0.424/0.043 ms Also slipped a related-ish fix to the kerneldoc text for e1000e_vlan_strip_disable here... CC: Jeff Kirsher <jeffrey.t.kirs...@intel.com> CC: intel-wired-...@lists.osuosl.org CC: netdev@vger.kernel.org Signed-off-by: Jarod Wilson <ja...@r

Re: [Intel-wired-lan] [RFC PATCH net] e1000e: keep vlan interfaces functional after rxvlan off

2016-06-09 Thread Jarod Wilson
On Thu, Jun 09, 2016 at 06:17:45PM -0400, Jarod Wilson wrote: > On Thu, Jun 09, 2016 at 04:55:01PM -0400, Jarod Wilson wrote: > > On Thu, Jun 09, 2016 at 02:02:04PM -0400, Jarod Wilson wrote: > > > On Wed, Jun 01, 2016 at 03:31:46PM -0700, Alexander Duyck wrote: > > >

Re: [Intel-wired-lan] [RFC PATCH net] e1000e: keep vlan interfaces functional after rxvlan off

2016-06-09 Thread Jarod Wilson
On Wed, Jun 01, 2016 at 03:31:46PM -0700, Alexander Duyck wrote: > On Wed, Jun 1, 2016 at 12:27 PM, Jarod Wilson <ja...@redhat.com> wrote: > > On Wed, Jun 01, 2016 at 07:31:53AM -0700, Alexander Duyck wrote: > >> On Tue, May 17, 2016 at 12:03 PM, Jarod Wilson <ja...@red

Re: [Intel-wired-lan] [RFC PATCH net] e1000e: keep vlan interfaces functional after rxvlan off

2016-06-01 Thread Jarod Wilson
On Wed, Jun 01, 2016 at 07:31:53AM -0700, Alexander Duyck wrote: > On Tue, May 17, 2016 at 12:03 PM, Jarod Wilson <ja...@redhat.com> wrote: > > I've got a bug report about an e1000e interface, where a vlan interface is > > set up on top of it: > > > > $ ip link ad

Re: [PATCH net v3 2/4] net: add rx_nohandler stat counter

2016-02-08 Thread Jarod Wilson
ning latest net-next, and old iproute2 is just fine. ...I haven't run into anything that didn't work with current iproute2 either while testing out functionality of these patches. If there's something in particular that seems most suspect that I perhaps simply haven't tried, I can give that a go as well

Re: Reply: [net] bonding: use return instead of goto

2016-02-05 Thread Jarod Wilson
lease paths, I don't see anything preventing concurrent slave adds and removes, which could mean there are situations where those checks really are necessary. I don't actually know. -- Jarod Wilson ja...@redhat.com

Re: [net] bonding: use return instead of goto

2016-02-04 Thread Jarod Wilson
On Wed, Feb 03, 2016 at 06:15:22AM +, Zhang Shengju wrote: > Replace 'goto' with 'return' to remove unnecessary check at label: > err_undo_flags. I think you're going to have to explain how you came to the conclusion that the check isn't necessary. -- Jarod Wilson ja...@redhat.com

Re: [PATCH net-next iproute2] iplink: display rx nohandler stats

2016-02-09 Thread Jarod Wilson
TA(tb[IFLA_STATS64]), + MIN(RTA_PAYLOAD(tb[IFLA_STATS64]), sizeof(stats))); + + print_link_stats64(fp, , carrier_changes, slen); + } else if (tb[IFLA_STATS]) { + struct rtnl_link_stats stats = { 0 }; + slen = RTA_PAYLOAD(tb[IFLA_S

Re: [PATCH net-next iproute2] iplink: display rx nohandler stats

2016-02-10 Thread Jarod Wilson
On Tue, Feb 09, 2016 at 08:52:38PM -0800, Eric Dumazet wrote: > On Tue, 2016-02-09 at 17:41 -0800, Stephen Hemminger wrote: > > On Tue, 9 Feb 2016 18:51:35 -0500 > > Jarod Wilson <ja...@redhat.com> wrote: > > > > > On Tue, Feb 09, 2016 at 11:17:57AM -0800, Step

[PATCH net v2 4/4] bond: track sum of rx_nohandler for all slaves

2016-01-28 Thread Jarod Wilson
Vosburgh <j.vosbu...@gmail.com> CC: Veaceslav Falico <vfal...@gmail.com> CC: Andy Gospodarek <go...@cumulusnetworks.com> CC: netdev@vger.kernel.org Signed-off-by: Jarod Wilson <ja...@redhat.com> --- drivers/net/bonding/bond_main.c | 1 + 1 file changed, 1 insertion(+)

[PATCH net v2 0/4] net: add and use rx_nohandler stat counter

2016-01-28 Thread Jarod Wilson
and resubmitted for net-next after 4.5 is put to bed, but I do have users who consider this an important bugfix. Jarod Wilson (4): net/core: relax BUILD_BUG_ON in netdev_stats_to_stats64 net: add rx_nohandler stat counter team: track sum of rx_nohandler for all slaves bond: track sum

[PATCH net v2 3/4] team: track sum of rx_nohandler for all slaves

2016-01-28 Thread Jarod Wilson
CC: Jiri Pirko <j...@resnulli.us> CC: netdev@vger.kernel.org Signed-off-by: Jarod Wilson <ja...@redhat.com> --- drivers/net/team/team.c | 10 +++--- include/linux/if_team.h | 1 + 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/drivers/net/team/team.c b/drivers/net

[PATCH net v2 2/4] net: add rx_nohandler stat counter

2016-01-28 Thread Jarod Wilson
t;dan...@iogearbox.net> CC: Tom Herbert <t...@herbertland.com> CC: Jay Vosburgh <j.vosbu...@gmail.com> CC: Veaceslav Falico <vfal...@gmail.com> CC: Andy Gospodarek <go...@cumulusnetworks.com> CC: netdev@vger.kernel.org Signed-off-by: Jarod Wilson <ja...@redhat.com&g

Re: [PATCH net 0/4] net: add rx_unhandled stat counter

2016-01-27 Thread Jarod Wilson
On Wed, Jan 27, 2016 at 01:09:47PM -0800, Eric Dumazet wrote: > On Wed, 2016-01-27 at 15:21 -0500, Jarod Wilson wrote: > > > diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h > > index 289c231..7973ab5 100644 > > --- a/include/linux/netdevice.h > > +

Re: [PATCH net 0/4] net: add rx_unhandled stat counter

2016-01-27 Thread Jarod Wilson
On Thu, Jan 28, 2016 at 01:02:15AM -0500, Jarod Wilson wrote: > On Wed, Jan 27, 2016 at 01:09:47PM -0800, Eric Dumazet wrote: > > On Wed, 2016-01-27 at 15:21 -0500, Jarod Wilson wrote: > > > > > diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h > > &

Re: [PATCH net 0/4] net: add rx_unhandled stat counter

2016-01-27 Thread Jarod Wilson
On Thu, Jan 28, 2016 at 01:02:15AM -0500, Jarod Wilson wrote: > On Wed, Jan 27, 2016 at 01:09:47PM -0800, Eric Dumazet wrote: > > On Wed, 2016-01-27 at 15:21 -0500, Jarod Wilson wrote: > > > > > diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h > > &

Re: [RFC PATCH net] net/core: don't increment rx_dropped on inactive slaves

2016-01-25 Thread Jarod Wilson
On Mon, Jan 25, 2016 at 09:27:20AM -0500, Jarod Wilson wrote: > On Sun, Jan 24, 2016 at 10:42:22PM -0800, David Miller wrote: > > From: Jarod Wilson <ja...@redhat.com> > > Date: Fri, 22 Jan 2016 14:11:22 -0500 > > > > > diff --git a/net/core/dev.c b/net/cor

[PATCH net v3 4/4] bond: track sum of rx_nohandler for all slaves

2016-02-01 Thread Jarod Wilson
Vosburgh <j.vosbu...@gmail.com> CC: Veaceslav Falico <vfal...@gmail.com> CC: Andy Gospodarek <go...@cumulusnetworks.com> CC: netdev@vger.kernel.org Signed-off-by: Jarod Wilson <ja...@redhat.com> --- drivers/net/bonding/bond_main.c | 1 + 1 file changed, 1 insertion(+)

[PATCH net v3 1/4] net/core: relax BUILD_BUG_ON in netdev_stats_to_stats64

2016-02-01 Thread Jarod Wilson
require that rtnl_link_stats64 is larger, and zero out all the stat counters that aren't present in net_device_stats. CC: Eric Dumazet <eduma...@google.com> CC: netdev@vger.kernel.org Signed-off-by: Jarod Wilson <ja...@redhat.com> --- net/core/dev.c | 19 +-- 1 file

[PATCH net v3 0/4] net: add and use rx_nohandler stat counter

2016-02-01 Thread Jarod Wilson
and resubmitted for net-next after 4.5 is put to bed, but I do have users who consider this an important bugfix. This has been tested quite a bit on x86_64, and now lightly on i686 as well, to verify functionality of updates to netdev_stats_to_stats64() on 32-bit arches. Jarod Wilson (4): net/core

[PATCH net v3 2/4] net: add rx_nohandler stat counter

2016-02-01 Thread Jarod Wilson
t;dan...@iogearbox.net> CC: Tom Herbert <t...@herbertland.com> CC: Jay Vosburgh <j.vosbu...@gmail.com> CC: Veaceslav Falico <vfal...@gmail.com> CC: Andy Gospodarek <go...@cumulusnetworks.com> CC: netdev@vger.kernel.org Signed-off-by: Jarod Wilson <ja...@redhat.com&g

[PATCH net v3 3/4] team: track sum of rx_nohandler for all slaves

2016-02-01 Thread Jarod Wilson
CC: Jiri Pirko <j...@resnulli.us> CC: netdev@vger.kernel.org Signed-off-by: Jarod Wilson <ja...@redhat.com> --- drivers/net/team/team.c | 10 +++--- include/linux/if_team.h | 1 + 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/drivers/net/team/team.c b/drivers/net

Re: [PATCH net v2 1/4] net/core: relax BUILD_BUG_ON in netdev_stats_to_stats64

2016-01-31 Thread Jarod Wilson
On Sat, Jan 30, 2016 at 03:26:35PM -0800, David Miller wrote: > From: Jarod Wilson <ja...@redhat.com> > Date: Sat, 30 Jan 2016 15:53:05 -0500 > > > On Sat, Jan 30, 2016 at 03:39:01PM -0500, Jarod Wilson wrote: > >> Ew, no, it won't work correctly on 32-bit. The for l

Re: [PATCH net v2 1/4] net/core: relax BUILD_BUG_ON in netdev_stats_to_stats64

2016-01-30 Thread Jarod Wilson
On Sat, Jan 30, 2016 at 10:34:32AM -0800, Eric Dumazet wrote: > On Sat, 2016-01-30 at 13:19 -0500, Jarod Wilson wrote: > > The netdev_stats_to_stats64 function copies the deprecated > > net_device_stats format stats into rtnl_link_stats64 for legacy support > > purposes, but

Re: [PATCH net v2 1/4] net/core: relax BUILD_BUG_ON in netdev_stats_to_stats64

2016-01-30 Thread Jarod Wilson
On Sat, Jan 30, 2016 at 03:39:01PM -0500, Jarod Wilson wrote: > On Sat, Jan 30, 2016 at 10:34:32AM -0800, Eric Dumazet wrote: > > On Sat, 2016-01-30 at 13:19 -0500, Jarod Wilson wrote: > > > The netdev_stats_to_stats64 function copies the deprecated > > > ne

Re: [PATCH net v2 0/4] net: add and use rx_nohandler stat counter

2016-01-30 Thread Jarod Wilson
On Fri, Jan 29, 2016 at 07:37:51PM -0800, David Miller wrote: > From: Jarod Wilson <ja...@redhat.com> > Date: Thu, 28 Jan 2016 10:49:44 -0500 > > > The network core tries to keep track of dropped packets, but some packets > > you wouldn't really call dropped, so mu

[PATCH net v2 1/4] net/core: relax BUILD_BUG_ON in netdev_stats_to_stats64

2016-01-30 Thread Jarod Wilson
require that rtnl_link_stats64 is larger, and zero out all the stat counters that aren't present in net_device_stats. CC: Eric Dumazet <eduma...@google.com> CC: netdev@vger.kernel.org Signed-off-by: Jarod Wilson <ja...@redhat.com> --- Re-re-sending, hopefully getting the patch to th

Re: [PATCH net v2] bonding: Fix ARP monitor validation

2016-02-03 Thread Jarod Wilson
.@gmail.com> > Cc: Andy Gospodarek <go...@cumulusnetworks.com> > Signed-off-by: Jay Vosburgh <jay.vosbu...@canonical.com> > > --- > v2: more detail in log and comment; no code change. This sounds suspiciously like the same problem Uwe was encountering[*] and attempting to solve. Uwe, can you give this patch a try? [*] = http://marc.info/?l=linux-netdev=144416122705850=2 -- Jarod Wilson ja...@redhat.com

[PATCH net 4/4] bond: track sum of rx_unhandled for all slaves

2016-01-27 Thread Jarod Wilson
0 $ cat /sys/devices/virtual/net/bond0/statistics/rx_unhandled 33181 CC: Jay Vosburgh <j.vosbu...@gmail.com> CC: Veaceslav Falico <vfal...@gmail.com> CC: Andy Gospodarek <go...@cumulusnetworks.com> CC: netdev@vger.kernel.org Signed-off-by: Jarod Wilson <ja...@redhat.

[PATCH net 2/4] net-procfs: show rx_unhandled counters

2016-01-27 Thread Jarod Wilson
@vger.kernel.org Signed-off-by: Jarod Wilson <ja...@redhat.com> --- net/core/net-procfs.c | 11 ++- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/net/core/net-procfs.c b/net/core/net-procfs.c index 2bf8329..9f88f34 100644 --- a/net/core/net-procfs.c +++ b/net/core/net-pr

[PATCH net 0/4] net: add rx_unhandled stat counter

2016-01-27 Thread Jarod Wilson
a...@google.com> CC: Jiri Pirko <j...@mellanox.com> CC: Daniel Borkmann <dan...@iogearbox.net> CC: Tom Herbert <t...@herbertland.com> CC: Jay Vosburgh <j.vosbu...@gmail.com> CC: Veaceslav Falico <vfal...@gmail.com> CC: Andy Gospodarek <go...@cumulusnetworks.com>

[PATCH net 1/4] net: add rx_unhandled stat counter

2016-01-27 Thread Jarod Wilson
t;dan...@iogearbox.net> CC: Tom Herbert <t...@herbertland.com> CC: Jay Vosburgh <j.vosbu...@gmail.com> CC: Veaceslav Falico <vfal...@gmail.com> CC: Andy Gospodarek <go...@cumulusnetworks.com> CC: netdev@vger.kernel.org Signed-off-by: Jarod Wilson <ja...@redhat.com>

[PATCH net 3/4] team: track sum of rx_unhandled for all slaves

2016-01-27 Thread Jarod Wilson
CC: Jiri Pirko <j...@resnulli.us> CC: netdev@vger.kernel.org Signed-off-by: Jarod Wilson <ja...@redhat.com> --- drivers/net/team/team.c | 10 +++--- include/linux/if_team.h | 1 + 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/drivers/net/team/team.c b/drivers/net

Re: [PATCH net 0/4] net: add rx_unhandled stat counter

2016-01-28 Thread Jarod Wilson
On Thu, Jan 28, 2016 at 05:00:02AM -0800, Eric Dumazet wrote: > On Thu, 2016-01-28 at 01:18 -0500, Jarod Wilson wrote: > > > Or not. Now I remember why I added that in the first place: > > > > In file included from ./arch/x86/include/asm/uaccess.h:7:0, > >

Re: [PATCH net 0/4] net: add rx_unhandled stat counter

2016-01-28 Thread Jarod Wilson
ize moments later. Just needs some documentation updates, which I've done locally. Will rebuild, re-test, then hopefully get an updated patchset out the door. -- Jarod Wilson ja...@redhat.com

Re: [patch net-next v2 1/9] Introduce devlink infrastructure

2016-02-24 Thread Jarod Wilson
SYMBOL_GPL(devlink_alloc); > > > >The increment then decrement bit feels... Clunky and a little confusing. > >Why not just atomic_read(_counter) before different_name:, then an > >atomic_inc_return(_counter) under the if clause before the goto, and > >eliminate the devlink->index-- bit? > > If I split it it would not be atomic op anymore. But the > devlink->index-- is just to adjust the start, nothing else. > This is copied from nl80211 code. Argh, I'm a moron. You need to increment dev_counter, can't just read it's current value. Still fugly, but okay, does actually serve a purpose this way. -- Jarod Wilson ja...@redhat.com

Re: [patch net-next v2 1/9] Introduce devlink infrastructure

2016-02-23 Thread Jarod Wilson
gt; +} > +EXPORT_SYMBOL_GPL(devlink_alloc); The increment then decrement bit feels... Clunky and a little confusing. Why not just atomic_read(_counter) before different_name:, then an atomic_inc_return(_counter) under the if clause before the goto, and eliminate the devlink->index-- bit? -- Jarod Wilson ja...@redhat.com

[RFC PATCH net] net/core: don't increment rx_dropped on inactive slaves

2016-01-22 Thread Jarod Wilson
dy Gospodarek <go...@cumulusnetworks.com> CC: netdev@vger.kernel.org Signed-off-by: Jarod Wilson <ja...@redhat.com> --- net/core/dev.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/net/core/dev.c b/net/core/dev.c index 8cba3d8..1354c7b 100644 --- a/net/core/dev.c +++ b/

Re: [RFC PATCH net] net/core: don't increment rx_dropped on inactive slaves

2016-01-25 Thread Jarod Wilson
On Sun, Jan 24, 2016 at 10:42:22PM -0800, David Miller wrote: > From: Jarod Wilson <ja...@redhat.com> > Date: Fri, 22 Jan 2016 14:11:22 -0500 > > > diff --git a/net/core/dev.c b/net/core/dev.c > > index 8cba3d8..1354c7b 100644 > > --- a/net/core/dev.c > &

Re: [RFC PATCH net] net/core: don't increment rx_dropped on inactive slaves

2016-01-26 Thread Jarod Wilson
On Sat, Jan 23, 2016 at 07:23:09AM -0800, Eric Dumazet wrote: > On Fri, 2016-01-22 at 14:11 -0500, Jarod Wilson wrote: > > > --- > > net/core/dev.c | 3 +++ > > 1 file changed, 3 insertions(+) > > > > diff --git a/net/core/dev.c b/net/core/dev.c > > i

Re: [RFC PATCH net] net/core: don't increment rx_dropped on inactive slaves

2016-01-26 Thread Jarod Wilson
On Tue, Jan 26, 2016 at 01:24:59PM -0800, Eric Dumazet wrote: > On Tue, Jan 26, 2016 at 1:14 PM, Jarod Wilson <ja...@redhat.com> wrote: > > On Sat, Jan 23, 2016 at 07:23:09AM -0800, Eric Dumazet wrote: > >> On Fri, 2016-01-22 at 14:11 -0500, Jarod Wilson wrote: > >

Re: [RFC PATCH net] net/core: don't increment rx_dropped on inactive slaves

2016-01-26 Thread Jarod Wilson
On Tue, Jan 26, 2016 at 01:21:00PM -0800, David Miller wrote: > From: Jarod Wilson <ja...@redhat.com> > Date: Tue, 26 Jan 2016 16:14:53 -0500 > > > # ethtool -S bond0 > > no stats available > > ethtool -S is for device specific stats. Okay, good, that was wh

  1   2   3   >