Re: [PATCH 1/2] net: ethernet: renesas: ravb: use phydev from struct net_device

2016-08-20 Thread David Miller
From: Philippe Reynes Date: Sat, 20 Aug 2016 00:52:18 +0200 > The private structure contain a pointer to phydev, but the structure > net_device already contain such pointer. So we can remove the pointer > phy_dev in the private structure, and update the driver to use the > one contained in struct

Re: [PATCH 2/2] net: ethernet: renesas: ravb: use new api ethtool_{get|set}_link_ksettings

2016-08-20 Thread David Miller
From: Philippe Reynes Date: Sat, 20 Aug 2016 00:52:19 +0200 > The ethtool api {get|set}_settings is deprecated. > We move this driver to new api {get|set}_link_ksettings. > > Signed-off-by: Philippe Reynes Applied.

Re: [PATCH] net: xilinx: emaclite: Fallback to random MAC address.

2016-08-20 Thread David Miller
From: Daniel Romell Date: Fri, 19 Aug 2016 14:12:01 +0200 > If the address configured in the device tree is invalid, the > driver will fallback to using a random address from the locally > administered range. > > Signed-off-by: Daniel Romell Applied.

Re: [net-next 0/6][pull request] 10GbE Intel Wired LAN Driver Updates 2016-08-20

2016-08-20 Thread David Miller
From: Jeff Kirsher Date: Sat, 20 Aug 2016 20:22:16 -0700 > This series contains updates to ixgbe and ixgbevf. Pulled, thanks Jeff.

[net-next 1/6] ixgbe: report correct media type for KR, KX and KX4 interfaces

2016-08-20 Thread Jeff Kirsher
From: Veola Nazareth ethtool reports backplane type interfaces as 1000/1baseT link modes. This has been corrected to report the media as KR, KX or KX4 based on the backplane interface present. Signed-off-by: Veola Nazareth Tested-by: Andrew Bowers Signed-off-by: Jeff Kirsher --- drivers/

[net-next 2/6] ixgbevf: fix incorrect MAC address on load

2016-08-20 Thread Jeff Kirsher
From: Emil Tantilov The PF driver was only receiving the first 4 bytes of the MAC due to an incorrect size parameter for ixgbevf_write_msg_read_ack() in ixgbevf_set_rar_vf(). Correct the size by calculating it on a fly for all instances where we call ixgbevf_write_msg_read_ack() Signed-off-by:

[net-next 6/6] ixgbe: Add support for new X557 device

2016-08-20 Thread Jeff Kirsher
From: Don Skidmore This patch adds support for the new copper device X557. Signed-off-by: Don Skidmore Tested-by: Andrew Bowers Signed-off-by: Jeff Kirsher --- drivers/net/ethernet/intel/ixgbe/ixgbe_common.c | 1 + drivers/net/ethernet/intel/ixgbe/ixgbe_main.c | 1 + drivers/net/ethernet/i

[net-next 5/6] ixgbe: add device to MDIO speed setting

2016-08-20 Thread Jeff Kirsher
From: Don Skidmore This shouldn't matter as nothing should be attached still to be consisted control MDIO speed for these devices as well. Signed-off-by: Don Skidmore Tested-by: Andrew Bowers Signed-off-by: Jeff Kirsher --- drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c | 2 ++ 1 file changed

[net-next 0/6][pull request] 10GbE Intel Wired LAN Driver Updates 2016-08-20

2016-08-20 Thread Jeff Kirsher
This series contains updates to ixgbe and ixgbevf. Veola fixes how the backplane reports the media in ethtool, as KR, KX or KX4 based on the backplane interface present. Emil fixes ixgbevf since an incorrect size parameter for ixgbevf_write_msg_read_ack() ended up only giving the PF the first 4 b

[net-next 4/6] ixgbe: Fix led interface for X557 devices

2016-08-20 Thread Jeff Kirsher
From: Don Skidmore The X557 devices use a different interface to the LED for the port. This patch reflect that change. Signed-off-by: Don Skidmore Tested-by: Andrew Bowers Signed-off-by: Jeff Kirsher --- drivers/net/ethernet/intel/ixgbe/ixgbe_type.h | 3 ++ drivers/net/ethernet/intel/ixgbe/

[net-next 3/6] ixgbe: add support for geneve Rx offload

2016-08-20 Thread Jeff Kirsher
From: Emil Tantilov Add geneve Rx offload support for x550em_a. The implementation follows the vxlan code with the lower 16 bits of the VXLANCTRL register holding the UDP port for VXLAN and the upper for Geneve. Disabled NFS filters in the RFCTL register which allows us to simplify the check fo

Re: [PATCH] wan-cosa: Use memdup_user() rather than duplicating its implementation

2016-08-20 Thread David Miller
From: Christophe JAILLET Date: Sat, 20 Aug 2016 10:42:54 +0200 > Le 20/08/2016 à 10:25, SF Markus Elfring a écrit : >> @@ -875,16 +875,10 @@ static ssize_t cosa_write(struct file *file, >> if (count > COSA_MTU) >> count = COSA_MTU; >> >> -/* Allocate the buffer */ >> -

Re: [PATCH 0/2] tun: Fine-tuning for update_filter()

2016-08-20 Thread David Miller
From: SF Markus Elfring Date: Sat, 20 Aug 2016 09:27:39 +0200 > A few update suggestions were taken into account > from static source code analysis. Series applied.

Re: [net-next 00/15][pull request] 40GbE Intel Wired LAN Driver Updates 2016-08-19

2016-08-20 Thread David Miller
From: Jeff Kirsher Date: Fri, 19 Aug 2016 23:19:36 -0700 > This series contains updates to i40e and i40evf only. Pulled, thanks Jeff.

Re: [net-next PATCH] ethtool: Add support for SCTP verification tag in Rx NFC

2016-08-20 Thread Alexander Duyck
On Sat, Aug 20, 2016 at 5:21 PM, Ben Hutchings wrote: > On Fri, 2016-08-19 at 14:32 -0700, Alexander Duyck wrote: >> The i40e hardware has support for SCTP filtering via Rx NFC however the >> default configuration expects us to include the verification tag as a part >> of the filter. In order to

Re: [PATCH 2/3] hostap: Delete an unnecessary jump label in prism2_ioctl_priv_hostapd()

2016-08-20 Thread Julian Calaby
Hi Marcus, On Sun, Aug 21, 2016 at 2:46 AM, SF Markus Elfring wrote: > From: Markus Elfring > Date: Sat, 20 Aug 2016 18:21:29 +0200 > > Remove a jump label which is unneeded in this function at the end. > > Signed-off-by: Markus Elfring > --- > drivers/net/wireless/intersil/hostap/hostap_ioctl

Re: [net-next PATCH] ethtool: Add support for SCTP verification tag in Rx NFC

2016-08-20 Thread Ben Hutchings
On Fri, 2016-08-19 at 14:32 -0700, Alexander Duyck wrote: > The i40e hardware has support for SCTP filtering via Rx NFC however the > default configuration expects us to include the verification tag as a part > of the filter.  In order to support that I need to be able to transfer that > data throu

GOOD NEWS.

2016-08-20 Thread Bussiness Alert. X
Dear Sir/Ma By this email I am checking the possibility of going into confidentiality partnership with you to facilitate and provide guidance for investment of funds from overseas. I run oil and gas businesses in Gabon and Angola, and currently have access to high-net-worth individuals who are

Re: [for-next 0/30][PULL request] Mellanox mlx5 core driver updates 2016-08-20

2016-08-20 Thread David Miller
30 patches is way too much to submit at one time and puts an undue burdon upon potential reviewers of your work. Please only submit a reasonable amount of patches at one time, 10 to 15 at a maximum. Thanks.

Re: [PATCH v2 3/4] net: stmmac: add a glue driver for the Amlogic Meson 8b / GXBB DWMAC

2016-08-20 Thread Joachim Eastwood
Hi Martin, On 20 August 2016 at 11:35, Martin Blumenstingl wrote: > The Ethernet controller available in Meson8b and GXBB SoCs is a Synopsys > DesignWare MAC IP core which is already supported by the stmmac driver. > > In addition to the standard stmmac driver some Meson8b / GXBB specific > regis

[PATCH net-next 05/30] net/mlx5: Pages management commands via mlx5 ifc

2016-08-20 Thread Saeed Mahameed
Remove old representation of manually created Pages management commands layout, and use mlx5_ifc canonical structures and defines. Signed-off-by: Saeed Mahameed Signed-off-by: Leon Romanovsky --- .../net/ethernet/mellanox/mlx5/core/pagealloc.c| 165 - 1 file changed, 58

[PATCH net-next 10/30] {net,IB}/mlx5: Modify QP commands via mlx5 ifc

2016-08-20 Thread Saeed Mahameed
Prior to this patch we assumed that modify QP commands have the same layout. In ConnectX-4 for each QP transition there is a specific command and their layout can vary. e.g: 2err/2rst commands don't have QP context in their layout and before this patch we posted the QP context in those commands.

[PATCH net-next 06/30] net/mlx5: EQ commands via mlx5 ifc

2016-08-20 Thread Saeed Mahameed
Remove old representation of manually created EQ commands layout, and use mlx5_ifc canonical structures and defines. Signed-off-by: Saeed Mahameed Signed-off-by: Leon Romanovsky --- drivers/net/ethernet/mellanox/mlx5/core/debugfs.c | 18 +++--- drivers/net/ethernet/mellanox/mlx5/core/eq.c

[PATCH net-next 01/30] net/mlx5: Init/Teardown hca commands via mlx5 ifc

2016-08-20 Thread Saeed Mahameed
Remove old representation of manually created Init/Teardown hca commands layout and use mlx5_ifc canonical structures and defines. Signed-off-by: Saeed Mahameed Signed-off-by: Leon Romanovsky --- drivers/net/ethernet/mellanox/mlx5/core/fw.c | 36 include/linux/mlx5/

[PATCH net-next 02/30] net/mlx5: Access register and MAD IFC commands via mlx5 ifc

2016-08-20 Thread Saeed Mahameed
Remove old representation of manually created ACCESS_REG/MAD_IFC commands layout and use mlx5_ifc canonical structures and defines. Signed-off-by: Saeed Mahameed Signed-off-by: Leon Romanovsky --- drivers/net/ethernet/mellanox/mlx5/core/mad.c | 42 ++--- drivers/net/ethernet/me

[PATCH net-next 07/30] {net,IB}/mlx5: CQ commands via mlx5 ifc

2016-08-20 Thread Saeed Mahameed
Remove old representation of manually created CQ commands layout, and use mlx5_ifc canonical structures and defines. Signed-off-by: Saeed Mahameed Signed-off-by: Leon Romanovsky --- drivers/infiniband/hw/mlx5/cq.c | 110 - drivers/net/ethernet/mellanox/mlx5

[PATCH net-next 27/30] net/mlx5: Vport LAG creation support

2016-08-20 Thread Saeed Mahameed
From: Aviv Heller Add interfaces for issuing CREATE_VPORT_LAG and DESTROY_VPORT_LAG commands. Used for receiving PF1's eth traffic on PF0's root ft. Signed-off-by: Aviv Heller Signed-off-by: Saeed Mahameed Signed-off-by: Leon Romanovsky --- drivers/net/ethernet/mellanox/mlx5/core/lag.c | 22

[PATCH net-next 18/30] net/mlx5: Expose mlx5e_link_mode

2016-08-20 Thread Saeed Mahameed
From: Noa Osherovich The mlx5e_link_mode enumeration will also be used in mlx5_ib for RoCE. This patch moves the enumeration to the mlx5 driver port header file. Signed-off-by: Noa Osherovich Signed-off-by: Eran Ben Elisha Signed-off-by: Saeed Mahameed Signed-off-by: Leon Romanovsky --- dri

[PATCH net-next 08/30] {net,IB}/mlx5: MKey/PSV commands via mlx5 ifc

2016-08-20 Thread Saeed Mahameed
Remove old representation of manually created MKey/PSV commands layout, and use mlx5_ifc canonical structures and defines. Signed-off-by: Saeed Mahameed Signed-off-by: Leon Romanovsky --- drivers/infiniband/hw/mlx5/mlx5_ib.h | 2 +- drivers/infiniband/hw/mlx5/mr.c

[PATCH net-next 24/30] net/mlx5: LAG and SRIOV cannot be used together

2016-08-20 Thread Saeed Mahameed
From: Aviv Heller Until support will be added for RoCE LAG SRIOV. Signed-off-by: Aviv Heller Signed-off-by: Saeed Mahameed Signed-off-by: Leon Romanovsky --- drivers/net/ethernet/mellanox/mlx5/core/lag.c | 6 ++ drivers/net/ethernet/mellanox/mlx5/core/mlx5_core.h | 1 + drivers/n

[PATCH net-next 13/30] net/mlx5: Enable setting minimum inline header mode for VFs

2016-08-20 Thread Saeed Mahameed
From: Hadar Hen Zion Implement the low-level part of the PF side in setting minimum inline header mode for VFs. Signed-off-by: Hadar Hen Zion Signed-off-by: Saeed Mahameed Signed-off-by: Leon Romanovsky --- drivers/net/ethernet/mellanox/mlx5/core/vport.c | 20 include/li

[PATCH net-next 11/30] net/mlx5: Unify and improve command interface

2016-08-20 Thread Saeed Mahameed
Now as all commands use mlx5 ifc interface, instead of doing two calls for executing a command we embed command status checking into mlx5_cmd_exec to simplify the interface. Also we do here some cleanup for redundant software structures (inbox/outbox) and functions and improved command failure out

[PATCH net-next 25/30] net/mlx5: LAG demux flow table support

2016-08-20 Thread Saeed Mahameed
From: Aviv Heller Add interfaces to allow the creation and destruction of a LAG demux flow table. It is a special flow table used during LAG for redirecting non user-mode packets from PF0 to PF1 root ft, if a packet was received on phys port two. Signed-off-by: Aviv Heller Reviewed-by: Maor Go

[PATCH net-next 15/30] net/mlx5: Introduce alloc_encap and dealloc_encap commands

2016-08-20 Thread Saeed Mahameed
From: Ilya Lesokhin Implement low-level commands to support vxlan encapsulation. Signed-off-by: Ilya Lesokhin Signed-off-by: Hadar Hen Zion Signed-off-by: Saeed Mahameed Signed-off-by: Leon Romanovsky --- drivers/net/ethernet/mellanox/mlx5/core/cmd.c| 4 ++ drivers/net/ethernet/mellano

[PATCH net-next 16/30] net/mlx5: Modify RQ bitmask from mlx5 ifc

2016-08-20 Thread Saeed Mahameed
From: Alex Vesker Use mlx5 ifc MODIFY_BITMASK_VSD in mlx5e_modify_rq_vsd and expose counter set capability bit in hca caps structure. Signed-off-by: Alex Vesker Signed-off-by: Saeed Mahameed Signed-off-by: Leon Romanovsky --- drivers/net/ethernet/mellanox/mlx5/core/en_main.c | 3 ++- include

[PATCH net-next 30/30] net/mlx5: Add sniffer namespaces

2016-08-20 Thread Saeed Mahameed
From: Maor Gottlieb Add sniffer TX and RX namespaces to receive ingoing and outgoing traffic. Each outgoing/incoming packet is duplicated and steered to the sniffer TX/RX namespace in addition to the regular flow. Signed-off-by: Maor Gottlieb Signed-off-by: Saeed Mahameed Signed-off-by: Leon

[PATCH net-next 12/30] net/mlx5: Improve driver log messages

2016-08-20 Thread Saeed Mahameed
Remove duplicate pci dev name printing in mlx5_core_err. Use mlx5_core_{warn,info,err} where possible to have the pci info in the driver log messages. Signed-off-by: Saeed Mahameed Signed-off-by: Parvi Kaustubhi Signed-off-by: Leon Romanovsky --- drivers/net/ethernet/mellanox/mlx5/core/en_rep.

[PATCH net-next 09/30] {net,IB}/mlx5: QP/XRCD commands via mlx5 ifc

2016-08-20 Thread Saeed Mahameed
Remove old representation of manually created QP/XRCD commands layout amd use mlx5_ifc canonical structures and defines. Signed-off-by: Saeed Mahameed Signed-off-by: Leon Romanovsky --- drivers/infiniband/hw/mlx5/qp.c | 154 +++- drivers/net/ethernet/mellanox/m

[PATCH net-next 26/30] net/mlx5: Add LAG flow steering namespace

2016-08-20 Thread Saeed Mahameed
From: Aviv Heller This namespace is used for LAG demux flowtable. The idea is to position the LAG demux ft between bypass and kernel flowtables, allowing raw-eth traffic from both ports to be received by the PF0 IB device. Signed-off-by: Aviv Heller Reviewed-by: Maor Gottlieb Signed-off-by: S

[PATCH net-next 17/30] net/mlx5: Update struct mlx5_ifc_xrqc_bits

2016-08-20 Thread Saeed Mahameed
From: Artemy Kovalyov Update struct mlx5_ifc_xrqc_bits according to last specification Signed-off-by: Artemy Kovalyov Signed-off-by: Saeed Mahameed Signed-off-by: Leon Romanovsky --- include/linux/mlx5/mlx5_ifc.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/lin

[PATCH net-next 04/30] net/mlx5: MCG commands via mlx5 ifc

2016-08-20 Thread Saeed Mahameed
Remove old representation of manually created MCG commands layout and use mlx5_ifc canonical structures and defines. Signed-off-by: Saeed Mahameed Signed-off-by: Leon Romanovsky --- drivers/net/ethernet/mellanox/mlx5/core/cmd.c | 4 +- drivers/net/ethernet/mellanox/mlx5/core/mcg.c | 70 +++

[PATCH net-next 21/30] net/mlx5: Implement RoCE LAG feature

2016-08-20 Thread Saeed Mahameed
From: Aviv Heller Available on dual port cards only, this feature keeps track, using netdev LAG events, of the bonding and link status of each port's PF netdev. When both of the card's PF netdevs are enslaved to the same bond/team master, and only them, LAG state is active. During LAG, only one

[PATCH net-next 23/30] net/mlx5e: Avoid port remapping of mlx5e netdev TISes

2016-08-20 Thread Saeed Mahameed
From: Aviv Heller TISes belonging to the mlx5e NIC should not be subject to port remap. Signed-off-by: Aviv Heller Signed-off-by: Saeed Mahameed Signed-off-by: Leon Romanovsky --- drivers/net/ethernet/mellanox/mlx5/core/en_main.c | 4 drivers/net/ethernet/mellanox/mlx5/core/mlx5_core

[PATCH net-next 28/30] net/mlx5: Configure IB devices according to LAG state

2016-08-20 Thread Saeed Mahameed
From: Aviv Heller When mlx5_ib is loaded, we would like each card's IB devices to be added according to its LAG state (one IB device, instead of two, is to be added if LAG is active). Signed-off-by: Aviv Heller Signed-off-by: Saeed Mahameed Signed-off-by: Leon Romanovsky --- drivers/net/ethe

[PATCH net-next 19/30] net/mlx5: Separate query_port_proto_oper for IB and EN

2016-08-20 Thread Saeed Mahameed
From: Noa Osherovich Replaced mlx5_query_port_proto_oper with separate functions per link type. The functions should take different arguments so no point in trying to unite them. Signed-off-by: Noa Osherovich Signed-off-by: Eran Ben Elisha Signed-off-by: Saeed Mahameed Signed-off-by: Leon Rom

[PATCH net-next 29/30] net/mlx5: Introduce sniffer steering hardware capabilities

2016-08-20 Thread Saeed Mahameed
From: Maor Gottlieb Define needed hardware capabilities for sniffer RX and TX flow tables. Add the following capabilities: 1. Sniffer RX flow table capabilities. 2. Sniffer TX flow table capabilities. 3. If same TIR can be used by multiple flow tables of different types. Signed-off-by: Maor Got

[for-next 0/30][PULL request] Mellanox mlx5 core driver updates 2016-08-20

2016-08-20 Thread Saeed Mahameed
Hi Dave and Doug, This series contains several low level and API updates for mlx5 core driver to be shared as base code for net-next and rdma mlx5 4.9 submissions. >From Saeed, ten patches that refactors old layouts of firmware commands which were manually generated before we introduced the mlx5

[PATCH net-next 22/30] net/mlx5: Get RoCE netdev

2016-08-20 Thread Saeed Mahameed
From: Aviv Heller Used by IB driver for determining the IB bond device's netdev, when LAG is active. Returns PF0's netdev if mode is not active-backup, or the PF netdev of the active slave when mode is active-backup. Signed-off-by: Aviv Heller Signed-off-by: Saeed Mahameed Signed-off-by: Leon

[PATCH net-next 03/30] net/mlx5: PD and UAR commands via mlx5 ifc

2016-08-20 Thread Saeed Mahameed
Remove old representation of manually created PD/UAR commands layouts and use mlx5_ifc canonical structures and defines. Signed-off-by: Saeed Mahameed Signed-off-by: Leon Romanovsky --- drivers/net/ethernet/mellanox/mlx5/core/pd.c | 58 +-- drivers/net/ethernet/mellanox/mlx

[PATCH net-next 14/30] net/mlx5: Update mlx5_ifc.h for vxlan encap/decap

2016-08-20 Thread Saeed Mahameed
From: Hadar Hen Zion Add the required definitions related to vxlan encap/decap. Signed-off-by: Hadar Hen Zion Signed-off-by: Ilya Lesokhin Signed-off-by: Saeed Mahameed Signed-off-by: Leon Romanovsky --- include/linux/mlx5/mlx5_ifc.h | 105 -- 1 file

[PATCH net-next 20/30] net/mlx5: Add HW interfaces used by LAG

2016-08-20 Thread Saeed Mahameed
From: Aviv Heller Exposed LAG commands enum and layouts: - CREATE_LAG HW enters LAG mode: RoCE traffic from port two is received on PF0 core dev. Allows to set tx_affinity (tx port) for QPs and TISes. Allows to port remap QPs and TISes, overriding their tx_affinity behavior. - MODIFY_L

Re: [PATCH 2/2] net: ethernet: renesas: ravb: use new api ethtool_{get|set}_link_ksettings

2016-08-20 Thread Sergei Shtylyov
On 08/20/2016 01:52 AM, Philippe Reynes wrote: The ethtool api {get|set}_settings is deprecated. We move this driver to new api {get|set}_link_ksettings. Signed-off-by: Philippe Reynes [...] Acked-by: Sergei Shtylyov Sorry for missing the sh_eth patchset. :-< MBR, Sergei

Re: [PATCH 1/2] net: ethernet: renesas: ravb: use phydev from struct net_device

2016-08-20 Thread Sergei Shtylyov
Hello. On 08/20/2016 01:52 AM, Philippe Reynes wrote: The private structure contain a pointer to phydev, but the structure net_device already contain such pointer. So we can remove the pointer phy_dev in the private structure, and update the driver to use the one contained in struct net_device.

Re: [PATCH 0/3] hostap: Fine-tuning for a few functions

2016-08-20 Thread Arend van Spriel
On 20-08-16 18:43, SF Markus Elfring wrote: > From: Markus Elfring > Date: Sat, 20 Aug 2016 18:35:43 +0200 > > A few update suggestions were taken into account > from static source code analysis. Is it worth touching this old stuff especially when you are not making any functional changes. Rega

Re: [PATCH -next] net: phy: Add missing of_node_put() in xgmiitorgmii_probe()

2016-08-20 Thread Andrew Lunn
On Sat, Aug 20, 2016 at 03:26:55PM +, Wei Yongjun wrote: > This node pointer is returned by of_parse_phandle() with > refcount incremented in this function. of_node_put() on it > before exitting this function. Hi Wei You are only releasing on the error path. What about the successful path?

[PATCH 3/3] hostap: Delete unnecessary initialisations for the variable "ret"

2016-08-20 Thread SF Markus Elfring
From: Markus Elfring Date: Sat, 20 Aug 2016 18:23:14 +0200 The local variable "ret" will be set to an appropriate value a bit later. Thus omit the explicit initialisation at the beginning of four functions. Signed-off-by: Markus Elfring --- drivers/net/wireless/intersil/hostap/hostap_ioctl.c |

[PATCH 2/3] hostap: Delete an unnecessary jump label in prism2_ioctl_priv_hostapd()

2016-08-20 Thread SF Markus Elfring
From: Markus Elfring Date: Sat, 20 Aug 2016 18:21:29 +0200 Remove a jump label which is unneeded in this function at the end. Signed-off-by: Markus Elfring --- drivers/net/wireless/intersil/hostap/hostap_ioctl.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/

[PATCH 1/3] hostap: Use memdup_user() rather than duplicating its implementation

2016-08-20 Thread SF Markus Elfring
From: Markus Elfring Date: Sat, 20 Aug 2016 18:19:43 +0200 Reuse existing functionality from memdup_user() instead of keeping duplicate source code. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring --- .../net/wireless/intersil/hostap/hostap_ioctl.c|

[PATCH 0/3] hostap: Fine-tuning for a few functions

2016-08-20 Thread SF Markus Elfring
From: Markus Elfring Date: Sat, 20 Aug 2016 18:35:43 +0200 A few update suggestions were taken into account from static source code analysis. Markus Elfring (3): Use memdup_user() Delete an unnecessary jump label Delete unnecessary variable initialisations .../net/wireless/intersil/hosta

[PATCH v3 net-next] l2tp: Refactor the codes with existing macros instead of literal number

2016-08-20 Thread fgao
From: Gao Feng Use PPP_ALLSTATIONS, PPP_UI, and SEND_SHUTDOWN instead of 0xff, 0x03, and 2 separately. Signed-off-by: Gao Feng --- v3: Modify the subject; v2: Only replace the literal number with macros according to Guillaume's advice v1: Inital patch net/l2tp/l2tp_ppp.c | 8 1 fi

[PATCH -next] net: phy: Add missing of_node_put() in xgmiitorgmii_probe()

2016-08-20 Thread Wei Yongjun
This node pointer is returned by of_parse_phandle() with refcount incremented in this function. of_node_put() on it before exitting this function. This is detected by Coccinelle semantic patch. Signed-off-by: Wei Yongjun --- drivers/net/phy/xilinx_gmii2rgmii.c | 1 + 1 file changed, 1 insertion

Your Urgent Response

2016-08-20 Thread Mr Hassan Umra
Dear Friend, I am Mr Hassan Umra, the director in charge of auditing and accounting section of Bank of Africa (BOA) West-Africa. I would like you to indicate your interest to receive the transfer of $12.5 Million Dollars. I will like you to stand as the next of kin to our late customer whose ac

[PATCH -next] cxgb4: Simplify the return expression

2016-08-20 Thread Wei Yongjun
Simplify the return expression. Signed-off-by: Wei Yongjun --- drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c | 7 +-- 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c b/drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c index 2bb804

[PATCH iproute2] ip: route: fix multicast route dumps

2016-08-20 Thread Nikolay Aleksandrov
If we have multicast routes and do ip route show table all we'll get the following output: ... multicast ???/32 from ???/32 table default proto static iif eth0 The "???" are because the rtm_family is set to RTNL_FAMILY_IPMR instead (or RTNL_FAMILY_IP6MR for ipv6). Add a simple workaround that

Re: [PATCH 1/2] tun: Use memdup_user() rather than duplicating its implementation

2016-08-20 Thread Shmulik Ladkani
Hi, On Sat, 20 Aug 2016 09:34:56 +0200 SF Markus Elfring wrote: > From: Markus Elfring > Date: Sat, 20 Aug 2016 08:54:15 +0200 > > Reuse existing functionality from memdup_user() instead of keeping > duplicate source code. > > This issue was detected by using the Coccinelle software. > > Sig

wan-lmc: Improving source code formatting

2016-08-20 Thread SF Markus Elfring
Hello, The Coccinelle software pointed out that the function "lmc_ioctl" is an update candidate according to the message "opportunity for memdup_user". https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/tree/drivers/net/wan/lmc/lmc_main.c?id=6040e57658eee6eb1315a26119101ca832d1f854#n4

[PATCH v2 0/4] meson: Meson8b and GXBB DWMAC glue driver

2016-08-20 Thread Martin Blumenstingl
This adds a DWMAC glue driver for the PRG_ETHERNET registers found in Meson8b and GXBB SoCs. Based on the "old" meson6b-dwmac glue driver the register layout is completely different. Thus I introduced a separate driver. Changes since v1: - make clkin1 mandatory because the internal mux expects two

[PATCH v2 4/4] ARM64: dts: meson-gxbb: use the new GXBB DWMAC glue driver

2016-08-20 Thread Martin Blumenstingl
The Amlogic reference driver uses the "mc_val" devicetree property to configure the PRG_ETHERNET_ADDR0 register. Unfortunately it uses magic values for this configuration. According to the datasheet the PRG_ETHERNET_ADDR0 register is at address 0xc8834108. However, the reference driver uses 0xc8834

[PATCH v2 1/4] net: dt-bindings: Document the new Meson8b and GXBB DWMAC bindings

2016-08-20 Thread Martin Blumenstingl
This patch adds the documentation for the DWMAC ethernet controller found in Amlogic Meson 8b (S805) and GXBB (S905) SoCs. The main difference between the Meson6 glue is that different registers (with different layout) are used. Signed-off-by: Martin Blumenstingl Acked-by: Rob Herring --- .../d

[PATCH v2 3/4] net: stmmac: add a glue driver for the Amlogic Meson 8b / GXBB DWMAC

2016-08-20 Thread Martin Blumenstingl
The Ethernet controller available in Meson8b and GXBB SoCs is a Synopsys DesignWare MAC IP core which is already supported by the stmmac driver. In addition to the standard stmmac driver some Meson8b / GXBB specific registers have to be configured for the PHY clocks. These SoC specific registers a

[PATCH v2 2/4] clk: gxbb: expose MPLL2 clock for use by DT

2016-08-20 Thread Martin Blumenstingl
This exposes the MPLL2 clock as this is one of the input clocks of the ethernet controller's internal mux. Signed-off-by: Martin Blumenstingl --- drivers/clk/meson/gxbb.h | 2 +- include/dt-bindings/clock/gxbb-clkc.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git

Re: [PATCH] mlx5/core: Use memdup_user() rather than duplicating its implementation

2016-08-20 Thread walter harms
Am 20.08.2016 08:01, schrieb SF Markus Elfring: > From: Markus Elfring > Date: Sat, 20 Aug 2016 07:50:09 +0200 > > * Reuse existing functionality from memdup_user() instead of keeping > duplicate source code. > > This issue was detected by using the Coccinelle software. > > * Return direc

Re: [PATCH] wan-cosa: Use memdup_user() rather than duplicating its implementation

2016-08-20 Thread Christophe JAILLET
Le 20/08/2016 à 10:25, SF Markus Elfring a écrit : From: Markus Elfring Date: Sat, 20 Aug 2016 10:10:12 +0200 Reuse existing functionality from memdup_user() instead of keeping duplicate source code. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring ---

[PATCH] wan-cosa: Use memdup_user() rather than duplicating its implementation

2016-08-20 Thread SF Markus Elfring
From: Markus Elfring Date: Sat, 20 Aug 2016 10:10:12 +0200 Reuse existing functionality from memdup_user() instead of keeping duplicate source code. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring --- drivers/net/wan/cosa.c | 12 +++- 1 file cha

net/sctp: BUG: KASAN: stack-out-of-bounds in memcmp

2016-08-20 Thread Baozeng Ding
Hello all, The following program triggers stack-out-of-bounds in memcmp. The kernel version is 4.8.0-rc1+ (on Aug 13 commit 118253a593bd1c57de2d1193df1ccffe1abe745b). Thanks. == BUG: KASAN: stack-out-of-bounds in memcmp+0xf8/0x120

[PATCH 2/2] tun: Rename a jump label in update_filter()

2016-08-20 Thread SF Markus Elfring
From: Markus Elfring Date: Sat, 20 Aug 2016 09:00:34 +0200 Adjust a jump target according to the Linux coding style convention. Signed-off-by: Markus Elfring --- drivers/net/tun.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/net/tun.c b/drivers/net/tun.c ind

[PATCH 1/2] tun: Use memdup_user() rather than duplicating its implementation

2016-08-20 Thread SF Markus Elfring
From: Markus Elfring Date: Sat, 20 Aug 2016 08:54:15 +0200 Reuse existing functionality from memdup_user() instead of keeping duplicate source code. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring --- drivers/net/tun.c | 11 +++ 1 file changed,

[PATCH 0/2] tun: Fine-tuning for update_filter()

2016-08-20 Thread SF Markus Elfring
From: Markus Elfring Date: Sat, 20 Aug 2016 09:16:16 +0200 A few update suggestions were taken into account from static source code analysis. Markus Elfring (2): Use memdup_user() Rename a jump label drivers/net/tun.c | 16 +--- 1 file changed, 5 insertions(+), 11 deletions(-)