[PATCH] net: amd: pcnet32: use new api ethtool_{get|set}_link_ksettings

2016-11-05 Thread Philippe Reynes
The ethtool api {get|set}_settings is deprecated. We move this driver to new api {get|set}_link_ksettings. Signed-off-by: Philippe Reynes --- drivers/net/ethernet/amd/pcnet32.c | 14 -- 1 files changed, 8 insertions(+), 6 deletions(-) diff --git

Re: [mm PATCH v2 03/26] swiotlb: Add support for DMA_ATTR_SKIP_CPU_SYNC

2016-11-05 Thread Alexander Duyck
On Sat, Nov 5, 2016 at 12:39 PM, Konrad Rzeszutek Wilk wrote: > .. snip.. >> @@ -561,6 +565,7 @@ void swiotlb_tbl_unmap_single(struct device *hwdev, >> phys_addr_t tlb_addr, >>* First, sync the memory before unmapping the entry >>*/ >> if (orig_addr !=

Re: [mm PATCH v2 03/26] swiotlb: Add support for DMA_ATTR_SKIP_CPU_SYNC

2016-11-05 Thread Konrad Rzeszutek Wilk
.. snip.. > @@ -561,6 +565,7 @@ void swiotlb_tbl_unmap_single(struct device *hwdev, > phys_addr_t tlb_addr, >* First, sync the memory before unmapping the entry >*/ > if (orig_addr != INVALID_PHYS_ADDR && > + !(attrs & DMA_ATTR_SKIP_CPU_SYNC) && > ((dir ==

[PATCH] net: amd8111e: use new api ethtool_{get|set}_link_ksettings

2016-11-05 Thread Philippe Reynes
The ethtool api {get|set}_settings is deprecated. We move this driver to new api {get|set}_link_ksettings. Signed-off-by: Philippe Reynes --- drivers/net/ethernet/amd/amd8111e.c | 14 -- 1 files changed, 8 insertions(+), 6 deletions(-) diff --git

[PATCH net-next v2 4/7] vxlan: improve vxlan route lookup checks.

2016-11-05 Thread Pravin B Shelar
Move route sanity check to respective vxlan[4/6]_get_route functions. This allows us to perform all sanity checks before caching the dst so that we can avoid these checks on subsequent packets. This give move accurate metadata information for packet from fill_metadata_dst(). Signed-off-by: Pravin

[PATCH net-next v2 7/7] vxlan: remove unsed vxlan_dev_dst_port()

2016-11-05 Thread Pravin B Shelar
Signed-off-by: Pravin B Shelar --- include/net/vxlan.h | 10 -- 1 file changed, 10 deletions(-) diff --git a/include/net/vxlan.h b/include/net/vxlan.h index 308adc4..49a5920 100644 --- a/include/net/vxlan.h +++ b/include/net/vxlan.h @@ -281,16 +281,6 @@ struct vxlan_dev

[PATCH net-next v2 5/7] vxlan: simplify RTF_LOCAL handling.

2016-11-05 Thread Pravin B Shelar
Avoid code duplicate code for handling RTF_LOCAL routes. Signed-off-by: Pravin B Shelar --- drivers/net/vxlan.c | 85 +++-- 1 file changed, 50 insertions(+), 35 deletions(-) diff --git a/drivers/net/vxlan.c b/drivers/net/vxlan.c

[PATCH net-next v2 2/7] vxlan: simplify exception handling

2016-11-05 Thread Pravin B Shelar
vxlan egress path error handling has became complicated, it need to handle IPv4 and IPv6 tunnel cases. Earlier patch removes vlan handling from vxlan_build_skb(), so vxlan_build_skb does not need to free skb and we can simplify the xmit path by having single error handling for both type of

[PATCH net-next v2 6/7] vxlan: simplify vxlan xmit

2016-11-05 Thread Pravin B Shelar
Existing vxlan xmit function handles two distinct cases. 1. vxlan net device 2. vxlan lwt device. By seperating initilization these two cases the egress path looks better. Signed-off-by: Pravin B Shelar --- drivers/net/vxlan.c | 79

[PATCH net-next v2 1/7] vxlan: avoid vlan processing in vxlan device.

2016-11-05 Thread Pravin B Shelar
VxLan device does not have special handling for vlan taging on egress. Therefore it does not make sense to expose vlan offloading feature. Signed-off-by: Pravin B Shelar --- drivers/net/vxlan.c | 9 + include/linux/if_vlan.h | 16 2 files changed,

[PATCH net-next v2 3/7] vxlan: avoid checking socket multiple times.

2016-11-05 Thread Pravin B Shelar
Check the vxlan socket in vxlan6_getroute(). Signed-off-by: Pravin B Shelar --- drivers/net/vxlan.c | 13 +++-- 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/drivers/net/vxlan.c b/drivers/net/vxlan.c index a1e707f..bd17ab5 100644 ---

[PATCH net-next v2 0/7] vxlan: General improvements.

2016-11-05 Thread Pravin B Shelar
Following patch series improves vxlan fast path, removes duplicate code and simplifies vxlan xmit code path. v1-v2: Fix compilation error when IPv6 support is not enabled. Pravin B Shelar (7): vxlan: avoid vlan processing in vxlan device. vxlan: simplify exception handling vxlan: avoid

[PATCH] net: alteon: acenic: use new api ethtool_{get|set}_link_ksettings

2016-11-05 Thread Philippe Reynes
The ethtool api {get|set}_settings is deprecated. We move this driver to new api {get|set}_link_ksettings. Signed-off-by: Philippe Reynes --- drivers/net/ethernet/alteon/acenic.c | 65 ++--- 1 files changed, 35 insertions(+), 30 deletions(-)

[PATCH] net: 3com: typhoon: fix typhoon_get_link_ksettings

2016-11-05 Thread Philippe Reynes
When moving from typhoon_get_settings to typhoon_getlink_ksettings in the commit commit f7a5537cd2a5 ("net: 3com: typhoon: use new api ethtool_{get|set}_link_ksettings"), we use a local variable supported but we forgot to update the struct ethtool_link_ksettings with this value. We also

[PATCH] net: adaptec: starfire: use new api ethtool_{get|set}_link_ksettings

2016-11-05 Thread Philippe Reynes
The ethtool api {get|set}_settings is deprecated. We move this driver to new api {get|set}_link_ksettings. Signed-off-by: Philippe Reynes --- drivers/net/ethernet/adaptec/starfire.c | 14 -- 1 files changed, 8 insertions(+), 6 deletions(-) diff --git

[PATCH net-next 3/4] stmmac: dwmac-rk: absorb rk_gmac_init into probe

2016-11-05 Thread Joachim Eastwood
Since the rk_gmac_init() only calls another function move this function call into probe so rk_gmac_init() can be removed. Since commit cecbc5563a02 ("stmmac: allow to split suspend/resume from init/exit callbacks") the init hook is no longer used in dwmac-rk so this can be removed.

[PATCH net-next 2/4] stmmac: dwmac-rk: turn exit into standard driver remove callback

2016-11-05 Thread Joachim Eastwood
Convert the exit hook into a standard driver remove function as the hook doesn't really buy us anything extra. Eventually the exit hook will be deprecated in favor of the driver remove function. Signed-off-by: Joachim Eastwood ---

[PATCH net-next 1/4] stmmac: dwmac-rk: turn resume/suspend into standard PM callbacks

2016-11-05 Thread Joachim Eastwood
Use standard PM resume/suspend callbacks instead of the hooks in stmmac_platform. This gives the driver more control and flexibility when implementing PM functionality. The hooks in stmmac_platform also doesn't buy us anything extra. Signed-off-by: Joachim Eastwood ---

[PATCH net-next 4/4] Revert "net: stmmac: allow to split suspend/resume from init/exit callbacks"

2016-11-05 Thread Joachim Eastwood
Instead of adding hooks inside stmmac_platform it is better to just use the standard PM callbacks within the specific dwmac-driver. This only used by the dwmac-rk driver. This reverts commit cecbc5563a02 ("stmmac: allow to split suspend/resume from init/exit callbacks"). Signed-off-by: Joachim

[PATCH net-next 0/4] stmmac: dwmac-rk: convert to standard PM/remove functions

2016-11-05 Thread Joachim Eastwood
This patch set aims to remove the init/exit callbacks from the dwmac-rk driver and instead use standard PM callbacks. Eventually the init/exit callbacks will be deprecated and removed from all drivers dwmac-* except for dwmac-generic. Drivers will be refactored to use standard PM and remove

Re: [PATCH v3 2/2] net: ethernet: nb8800: handle all RGMII definitions

2016-11-05 Thread Måns Rullgård
Sebastian Frias writes: > Commit a999589ccaae ("phylib: add RGMII-ID interface mode definition") > and commit 7d400a4c5897 ("phylib: add PHY interface modes for internal > delay for tx and rx only") added several RGMII definitions: > PHY_INTERFACE_MODE_RGMII_ID,

Re: stmmac/RTL8211F/Meson GXBB: TX throughput problems

2016-11-05 Thread Martin Blumenstingl
On Thu, Nov 3, 2016 at 5:36 PM, Jerome Brunet wrote: > Hi all, > > I did several tests on this issue with amlogic's S905 SoC (Synopsys MAC > - user ID: 0x11, Synopsys ID: 0x37.) > > With the OdroidC2 (PHY Realtek RTL8211F), EEE is on by default. > Just before launching

Re: [PATCH net-next 2/2] net: phy: Add Meson GXL Internal PHY driver

2016-11-05 Thread Andrew Lunn
On Fri, Nov 04, 2016 at 04:51:23PM +0100, Neil Armstrong wrote: > Add driver for the Internal RMII PHY found in the Amlogic Meson GXL SoCs. > > This PHY seems to only implement some standard registers and need some > workarounds to provide autoneg values from vendor registers. > > Some magic

Re: [PATCH v6 7/7] arm64: dts: NS2: add AMAC ethernet support

2016-11-05 Thread Sergei Shtylyov
On 11/4/2016 7:30 PM, Jon Mason wrote: Add support for the AMAC ethernet to the Broadcom Northstar2 SoC device tree Signed-off-by: Jon Mason --- arch/arm64/boot/dts/broadcom/ns2-svk.dts | 5 + arch/arm64/boot/dts/broadcom/ns2.dtsi| 12 2 files

[net-next 01/15] ixgbe: Add X552 iXFI configuration helper function

2016-11-05 Thread Jeff Kirsher
From: Don Skidmore X553 doesn't need all the initialization that X552 did for iXFI. This patch will allow native SPI SFP+ to work with X553 devices. Future patches will add additional configuration as needed. Signed-off-by: Don Skidmore

[net-next 05/15] ixgbe: fix link status check for copper X550em

2016-11-05 Thread Jeff Kirsher
From: Emil Tantilov Read the PHY register twice in order to get the correct value for autoneg_status. Signed-off-by: Emil Tantilov Tested-by: Krishneil Singh Signed-off-by: Jeff Kirsher

[net-next 07/15] ixgbe: Handle previously-freed msix_entries

2016-11-05 Thread Jeff Kirsher
From: Mark Rustad The msix_entries memory can be freed by a previous suspend or remove, so don't crash on close when it isn't there. Signed-off-by: Mark Rustad Tested-by: Krishneil Singh Signed-off-by: Jeff Kirsher

[net-next 04/15] ixgbe: do not use ixgbe specific mdio defines

2016-11-05 Thread Jeff Kirsher
From: Emil Tantilov Replace some ixgbe specific MDIO defines with their equivalent from the kernel. Signed-off-by: Emil Tantilov Tested-by: Krishneil Singh Signed-off-by: Jeff Kirsher

[net-next 06/15] ixgbe: Add X553 PHY FC autoneg support

2016-11-05 Thread Jeff Kirsher
From: Don Skidmore This patch adds X553 flow control auto negotiation for fiber and backplain. To enable this new function pointers were added as well as creating a function to dynamically set function pointer we can't define only on MAC type. Signed-off-by: Don

[net-next 09/15] ixgbe: use link instead of I2C combined abstraction

2016-11-05 Thread Jeff Kirsher
From: Emil Tantilov Introduce ixgbe_link_operations struct with the following changes: read_i2c_combined => read_link read_i2c_combined_unlocked => read_link_unlocked write_i2c_combined => write_link

[net-next 10/15] ixgbe: set device if before calling get_invariants

2016-11-05 Thread Jeff Kirsher
From: Emil Tantilov Fix an issue where set_phy_power was NULL for X550 copper devices because get_invariants was called before hw->device_id was set. Signed-off-by: Emil Tantilov Tested-by: Krishneil Singh

[net-next 03/15] ixgbe: Update setup PHY link to unset all speeds

2016-11-05 Thread Jeff Kirsher
From: Don Skidmore This patch updates ixgbe_setup_phy_link_generic to set/unset auto-negotiation for all speeds. This ensures that unsupported speeds are unset. This is necessary since the PHY NVM may advertise unsupported speeds. Signed-off-by: Don Skidmore

[net-next 02/15] ixgbe: Add support to retrieve and store LED link active

2016-11-05 Thread Jeff Kirsher
From: Don Skidmore This patch adds support to get the LED link active via the LEDCTL register. If the LEDCTL register does not have LED link active (LED mode field = 0x0100) set then default LED link active returned. Signed-off-by: Don Skidmore

[net-next 12/15] ixgbe: Correct X550 phy ID

2016-11-05 Thread Jeff Kirsher
From: Don Skidmore We were using an old Alpha version of the X550 phy ID. This was leading to unnecessary queries of the PHY. I removed the old ID (which shouldn't be on any HW) and add the two that are. Signed-off-by: Don Skidmore

[net-next 13/15] ixgbe: ixgbe_atr() should access udp_hdr(skb) only for UDP packets

2016-11-05 Thread Jeff Kirsher
From: Sowmini Varadhan Commit 9f12df906cd8 ("ixgbe: Store VXLAN port number in network order") incorrectly checks for hdr.ipv4->protocol != IPPROTO_UDP in ixgbe_atr(). This check should be for "==" instead. Signed-off-by: Sowmini Varadhan

[net-next 11/15] ixgbe: Add X553 FW ALEF support

2016-11-05 Thread Jeff Kirsher
From: Don Skidmore This patch add X553 FW ALEF support for B0. ALEF is the new unified FW. This contains updated register defines for ALEF speed configuration. Likewise it also removes the AN_CNTL_8 usage from the native SFI flow as it is no longer supported by

[net-next 08/15] ixgbe: remove SFP ixfi support

2016-11-05 Thread Jeff Kirsher
From: Emil Tantilov Remove SFP ixfi code since there is no HW that currently supports it. Signed-off-by: Emil Tantilov Tested-by: Krishneil Singh Signed-off-by: Jeff Kirsher ---

[net-next 14/15] ixgbe: ixgbe_atr() compute l4_proto only if non-paged data has network/transport headers

2016-11-05 Thread Jeff Kirsher
From: Sowmini Varadhan For some Tx paths (e.g., tpacket_snd()), ixgbe_atr may be passed down an sk_buff that has the network and transport header in the paged data, so it needs to make sure these headers are available in the headlen bytes to calculate the l4_proto.

[net-next 15/15] ixgbevf: Handle previously-freed msix_entries

2016-11-05 Thread Jeff Kirsher
From: Mark Rustad The msix_entries memory can be freed by a previous suspend or remove, so don't crash on close when it isn't there. Also only clear the interrupts when the interface is up, because there aren't any when it is not up. Signed-off-by: Mark Rustad

[net-next 00/15][pull request] 10GbE Intel Wired LAN Driver Updates 2016-11-04

2016-11-05 Thread Jeff Kirsher
This series contains updates to ixgbe and ixgbevf only. Don does cleanup and configuration for our X553 devices, related to LED, auto-negotiation, flow control and SFP+ setup and config. Adds the (not secret) sauce for B0 hardware for X553 hardware. Emil provides several fixes, first replaces