[PATCH net-next 2/2] vxlan: do not age static remote mac entries

2017-01-20 Thread Roopa Prabhu
From: Balakrishnan Raman Mac aging is applicable only for dynamically learnt remote mac entries. Check for user configured static remote mac entries and skip aging. Signed-off-by: Balakrishnan Raman Signed-off-by: Roopa Prabhu --- drivers/net/vxlan.c | 2 +- 1 file changed, 1 insertion(+), 1

[PATCH net-next 0/2] vxlan: misc fdb fixes

2017-01-20 Thread Roopa Prabhu
From: Roopa Prabhu Balakrishnan Raman (1): vxlan: do not age static remote mac entries Roopa Prabhu (1): vxlan: don't flush static fdb entries on admin down drivers/net/vxlan.c | 10 +++--- 1 file changed, 7 insertions(+), 3 deletions(-) -- 1.9.1

[PATCH net-next 1/2] vxlan: don't flush static fdb entries on admin down

2017-01-20 Thread Roopa Prabhu
From: Roopa Prabhu This patch skips flushing static fdb entries in ndo_stop, but flushes all fdb entries during vxlan device delete. This is consistent with the bridge driver fdb Signed-off-by: Roopa Prabhu --- drivers/net/vxlan.c | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-)

Re: [PATCH cumulus-4.1.y 1/5] vxlan: flush fdb entries on oper down

2017-01-20 Thread Roopa Prabhu
On 1/20/17, 11:40 PM, Roopa Prabhu wrote: > From: Balakrishnan Raman > > Flush fdb entries of a vxlan device when its state > changes to oper down. vxlan_stop handles flush on > admin down. > > Signed-off-by: Balakrishnan Raman > Signed-off-by: Roopa Prabhu > --- > pls ignore this series. Acc

[PATCH cumulus-4.1.y 2/5] vxlan: don't replace fdb entry if nothing changed

2017-01-20 Thread Roopa Prabhu
From: Balakrishnan Raman This will avoid unnecessary notifications to userspace. Signed-off-by: Balakrishnan Raman Signed-off-by: Roopa Prabhu --- drivers/net/vxlan.c | 19 +-- 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/drivers/net/vxlan.c b/drivers/net/vxl

[PATCH cumulus-4.1.y 1/5] vxlan: flush fdb entries on oper down

2017-01-20 Thread Roopa Prabhu
From: Balakrishnan Raman Flush fdb entries of a vxlan device when its state changes to oper down. vxlan_stop handles flush on admin down. Signed-off-by: Balakrishnan Raman Signed-off-by: Roopa Prabhu --- drivers/net/vxlan.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/net

[PATCH cumulus-4.1.y 3/5] vxlan: enforce precedence for static over dynamic fdb entry

2017-01-20 Thread Roopa Prabhu
From: Wilson Kok This patch enforces fdb state correctly when deciding to add or update an existing fdb. It makes sure static fdb entries are not replaced by dynamic fdb entries. Signed-off-by: Wilson Kok Signed-off-by: Roopa Prabhu --- drivers/net/vxlan.c | 4 1 file changed, 4 insertio

[PATCH cumulus-4.1.y 5/5] vxlan: do not age static remote mac entries

2017-01-20 Thread Roopa Prabhu
From: Balakrishnan Raman Mac aging is applicable only for dynamically learnt remote mac entries. Check for user configured static remote mac entries and skip aging. Signed-off-by: Balakrishnan Raman Signed-off-by: Roopa Prabhu --- drivers/net/vxlan.c | 2 +- 1 file changed, 1 insertion(+), 1

[PATCH cumulus-4.1.y 4/5] vxlan: don't flush static fdb entries on admin down

2017-01-20 Thread Roopa Prabhu
From: Roopa Prabhu This patch skips flushing static fdb entries in ndo_stop, but flushes all fdb entries during vxlan device delete. This is consistent with the bridge driver fdb Signed-off-by: Roopa Prabhu --- drivers/net/vxlan.c | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-)

[PATCH v2] net: xilinx: constify net_device_ops structure

2017-01-20 Thread Bhumika Goyal
Declare net_device_ops structure as const as it is only stored in the netdev_ops field of a net_device structure. This field is of type const, so net_device_ops structures having same properties can be made const too. Done using Coccinelle: @r1 disable optional_qualifier@ identifier i; position p;

[PATCH v2] net: moxa: constify net_device_ops structures

2017-01-20 Thread Bhumika Goyal
Declare net_device_ops structure as const as it is only stored in the netdev_ops field of a net_device structure. This field is of type const, so net_device_ops structures having same properties can be made const too. Done using Coccinelle: @r1 disable optional_qualifier@ identifier i; position p;

[PATCH] net: moxa: constify net_device_ops structures

2017-01-20 Thread Bhumika Goyal
Declare net_device_ops structures as const as they are only stored in the netdev_ops field of a net_device structure. This field is of type const, so net_device_ops structures having same properties can be made const too. Done using Coccinelle: @r1 disable optional_qualifier@ identifier i; positio

[PATCH] net: xilinx: constify net_device_ops structures

2017-01-20 Thread Bhumika Goyal
Declare net_device_ops structures as const as they are only stored in the netdev_ops field of a net_device structure. This field is of type const, so net_device_ops structures having same properties can be made const too. Done using Coccinelle: @r1 disable optional_qualifier@ identifier i; positio

[RFC PATCH net-next 5/5] bridge: vlan lwt dst_metadata hooks in ingress and egress paths

2017-01-20 Thread Roopa Prabhu
From: Roopa Prabhu - ingress hook: - if port is a lwt tunnel port, use tunnel info in attached dst_metadata to map it to a local vlan - egress hook: - if port is a lwt tunnel port, use tunnel info attached to vlan to set dst_metadata on the skb CC: Nikolay Aleksandrov Signed

[RFC PATCH net-next 3/5] bridge: uapi: add per vlan tunnel info

2017-01-20 Thread Roopa Prabhu
From: Roopa Prabhu New netlink api to associate tunnel info per vlan. This is used by bridge driver to send tunnel metadata to bridge ports in LWT tunnel dst metadata mode. One example use for this is a vxlan bridging gateway or vtep which maps vlans to vn-segments (or vnis). User can configure

[RFC PATCH net-next 2/5] vxlan: make COLLECT_METADATA mode bridge friendly

2017-01-20 Thread Roopa Prabhu
From: Roopa Prabhu This patch series makes vxlan COLLECT_METADATA mode bridge and layer2 network friendly. Vxlan COLLECT_METADATA mode today solves the per-vni netdev scalability problem in l3 networks. When vxlan collect metadata device participates in bridging vlan to vn-segments, It can only g

[RFC PATCH net-next 1/5] ip_tunnels: new IP_TUNNEL_INFO_BRIDGE flag for ip_tunnel_info mode

2017-01-20 Thread Roopa Prabhu
From: Roopa Prabhu New ip_tunnel_info flag to represent bridged tunnel metadata. Used by bridge driver later in the series to pass per vlan dst metadata to bridge ports. Signed-off-by: Roopa Prabhu --- include/net/ip_tunnels.h |1 + 1 file changed, 1 insertion(+) diff --git a/include/net/

[RFC PATCH net-next 4/5] bridge: vlan lwt and dst_metadata netlink support

2017-01-20 Thread Roopa Prabhu
From: Roopa Prabhu This patch adds support to attach per vlan tunnel info dst metadata. This enables bridge driver to map vlan to tunnel_info at ingress and egress The initial use case is vlan to vni bridging, but the api is generic to extend to any tunnel_info in the future: - Uapi to confi

[RFC PATCH net-next 0/5] bridge: per vlan lwt and dst_metadata support

2017-01-20 Thread Roopa Prabhu
From: Roopa Prabhu High level summary: lwt and dst_metadata/collect_metadata have enabled vxlan l3 deployments to use a single vxlan netdev for multiple vnis eliminating the scalability problem with using a single vxlan netdev per vni. This series tries to do the same for vxlan netdevs in pure l2

Re: [PATCH] net: qcom/emac: claim the irq only when the device is opened

2017-01-20 Thread Lino Sanfilippo
On 20.01.2017 22:36, Timur Tabi wrote: On 01/20/2017 03:31 PM, Lino Sanfilippo wrote: In emac_mac_down() however we need synchronize_irq(), since it ensures that the irq handler is not running any more when it (synchronize_irq) returns. So in general, if a driver disables a interrupt but doe

[PATCH v3 net-next] Introduce a sysctl that modifies the value of PROT_SOCK.

2017-01-20 Thread Krister Johansen
Add net.ipv4.ip_unprivileged_port_start, which is a per namespace sysctl that denotes the first unprivileged inet port in the namespace. To disable all privileged ports set this to zero. It also checks for overlap with the local port range. The privileged and local range may not overlap. The us

Re: [PATCH net-next 8/8] net: dsa: mv88e6xxx: Fix typ0 when configuring 2.5Gbps

2017-01-20 Thread Vivien Didelot
Hi Andrew, Andrew Lunn writes: > In order to enable 2.5Gbps mode, we need the base speed of 10G, plus > the Alt bit setting. Fix a typ0 that used 1Gb base speed. > > Signed-off-by: Andrew Lunn Reviewed-by: Vivien Didelot Thanks, Vivien

Re: [PATCH net-next 5/8] net: dsa: mv88e6xxx: Workaround missing PHY ID on mv88e6390

2017-01-20 Thread Vivien Didelot
Hi Andrew, Andrew Lunn writes: > The internal PHYs of the mv88e6390 do not have a model ID. Trap any > calls to the ID register, and if it is zero, return the ID for the > mv88e6390. The Marvell PHY driver can then bind to this ID. This, in addition to the temperature code not working (despite

[PATCH net v2 1/2] net: Specify the owning module for lwtunnel ops

2017-01-20 Thread Robert Shearman
Modules implementing lwtunnel ops should not be allowed to unload while there is state alive using those ops, so specify the owning module for all lwtunnel ops. Signed-off-by: Robert Shearman --- include/net/lwtunnel.h| 2 ++ net/core/lwt_bpf.c| 1 + net/ipv4/ip_tunnel_core.c | 2 ++

[PATCH net v2 0/2] net: Fix oops on state free after lwt module unload

2017-01-20 Thread Robert Shearman
An oops is seen in lwtstate_free after an lwt ops module has been unloaded. This patchset fixes this by preventing modules implementing lwtunnel ops from being unloaded whilst there's state alive using those ops. The first patch adds fills in a new owner field in all lwt ops and the second patch ma

[PATCH net v2 2/2] lwtunnel: Fix oops on state free after encap module unload

2017-01-20 Thread Robert Shearman
When attempting to free lwtunnel state after the module for the encap has been unloaded an oops occurs: BUG: unable to handle kernel NULL pointer dereference at 0008 IP: lwtstate_free+0x18/0x40 [..] task: 88003e372380 task.stack: c91fc000 RIP: 0010:lwtstate_free+0x18/0x40 R

Re: [PATCH net-next 4/8] net: dsa: mv88e6xxx: Set the CMODE for mv88e6390 ports 9 & 10

2017-01-20 Thread Vivien Didelot
Hi Andrew, Andrew Lunn writes: > Unlike most ports, ports 9 and 10 of the 6390X family have configurable > PHY modes. Set the mode as part of adjust_link(). > > Ordering is important, because the SERDES interfaces connected to > ports 9 and 10 can be split and assigned to other ports. The CMODE

Re: [PATCH net-next 2/8] net: phy: Add 2000base-x, 2500base-x and rxaui modes

2017-01-20 Thread Florian Fainelli
On 01/20/2017 03:30 PM, Andrew Lunn wrote: > The mv88e6390 ports 9 and 10 supports some additional PHY modes. Add > these modes to the PHY core so they can be used in the binding. > > Signed-off-by: Andrew Lunn Reviewed-by: Florian Fainelli Can you also send a Device Tree specification patch w

Re: [PATCH net-next 3/8] net: dsa: mv88e6xxx: Fix ATU age timer for MV88E6390

2017-01-20 Thread Vivien Didelot
Hi Andrew, Andrew Lunn writes: > The MV88E6390 family uses a different ATU age timer coefficient. > Fix the the info structures. Redundant "the" here. Otherwise good catch, the minimum age time is 3.75 seconds. > Signed-off-by: Andrew Lunn Reviewed-by: Vivien Didelot Thanks, Vivie

[PATCH 0/4] Make xfrm usable by 32-bit programs

2017-01-20 Thread Kevin Cernekee
Several of the xfrm netlink and setsockopt() interfaces are not usable from a 32-bit binary running on a 64-bit kernel due to struct padding differences. This has been the case for many, many years[0]. This patch series deprecates the broken netlink messages and replaces them with packed structs

[PATCH 2/4] xfrm_user: Allow common functions to be called from another file

2017-01-20 Thread Kevin Cernekee
xfrm_user_legacy.c will need to call a few common functions. Make sure them have an "xfrm_" prefix, and declare them in a new xfrm_user.h header. Signed-off-by: Kevin Cernekee --- net/xfrm/xfrm_user.c | 147 +-- net/xfrm/xfrm_user.h | 90

[PATCH 1/4] xfrm: Constify xfrm_user arguments and xfrm_mgr callback APIs

2017-01-20 Thread Kevin Cernekee
This provides a better sense of the data flow and inputs/outputs. No change to code size or functionality. Signed-off-by: Kevin Cernekee --- include/net/xfrm.h | 36 -- net/key/af_key.c | 34 +++-- net/xfrm/xfrm_policy.c | 8 +- net/xfrm/xfrm_state.c | 2 +- net/xfrm/xfrm_u

[PATCH 4/4] xfrm_user: Add new 32/64-agnostic netlink messages

2017-01-20 Thread Kevin Cernekee
Add several new message types to address longstanding 32-bit/64-bit compatibility issues. Use xfrm_user_legacy to handle the existing message types, which will retain the old IDs for compatibility with existing binaries. For user->kernel messages, the nlmsg_type will determine whether to use the

[PATCH 3/4] xfrm_user: Initial commit of xfrm_user_legacy.c

2017-01-20 Thread Kevin Cernekee
Several xfrm_* structs are incompatible between 32bit and 64bit builds: xfrm_usersa_info 220 bytes on i386 -> 224 bytes on amd64 xfrm_userpolicy_info 164 -> 168 xfrm_userspi_info 228 -> 232, offset mismatch on min xfrm_user_acquire 276 -> 280, offset mismatch on aalgos xfrm_use

[PATCH net] net: dsa: Check return value of phy_connect_direct()

2017-01-20 Thread Florian Fainelli
We need to check the return value of phy_connect_direct() in dsa_slave_phy_connect() otherwise we may be continuing the initialization of a slave network device with a PHY that already attached somewhere else and which will soon be in error because the PHY device is in error. The conditions for su

Re: [PATCH net-next 6/8] net: phy: Marvell: Add mv88e6390 internal PHY

2017-01-20 Thread Florian Fainelli
On 01/20/2017 03:31 PM, Andrew Lunn wrote: > The mv88e6390 Ethernet switch has internal PHYs. These PHYs don't have > an model ID in the ID2 register. So the MDIO driver in the switch > intercepts reads to this register, and returns the switch family ID. > Extend the Marvell PHY driver by including

Re: [PATCH net-next 1/8] net: dsa: mv88e6xxx: Implement external MDIO bus on mv88e6390

2017-01-20 Thread Vivien Didelot
Hi Andrew, Andrew Lunn writes: > The mv88e6390 has two MDIO busses. The internal MDIO bus is used for > the internal PHYs. The external MDIO can be used for external PHYs. > The external MDIO bus will be instantiated if there is an > "mdio-external" node in the device tree. Thanks for pushing t

Re: [PATCH net-next 5/8] net: dsa: mv88e6xxx: Workaround missing PHY ID on mv88e6390

2017-01-20 Thread Florian Fainelli
On 01/20/2017 03:30 PM, Andrew Lunn wrote: > The internal PHYs of the mv88e6390 do not have a model ID. Trap any > calls to the ID register, and if it is zero, return the ID for the > mv88e6390. The Marvell PHY driver can then bind to this ID. > > Signed-off-by: Andrew Lunn Reviewed-by: Florian

Re: [PATCH net-next 1/8] net: dsa: mv88e6xxx: Implement external MDIO bus on mv88e6390

2017-01-20 Thread Florian Fainelli
On 01/20/2017 03:30 PM, Andrew Lunn wrote: > The mv88e6390 has two MDIO busses. The internal MDIO bus is used for > the internal PHYs. The external MDIO can be used for external PHYs. > The external MDIO bus will be instantiated if there is an > "mdio-external" node in the device tree. This looks

[PATCH net-next 8/8] net: dsa: mv88e6xxx: Fix typ0 when configuring 2.5Gbps

2017-01-20 Thread Andrew Lunn
In order to enable 2.5Gbps mode, we need the base speed of 10G, plus the Alt bit setting. Fix a typ0 that used 1Gb base speed. Signed-off-by: Andrew Lunn --- drivers/net/dsa/mv88e6xxx/port.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/dsa/mv88e6xxx/port.c b/dr

[PATCH net-next 3/8] net: dsa: mv88e6xxx: Fix ATU age timer for MV88E6390

2017-01-20 Thread Andrew Lunn
The MV88E6390 family uses a different ATU age timer coefficient. Fix the the info structures. Signed-off-by: Andrew Lunn --- drivers/net/dsa/mv88e6xxx/chip.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/net/dsa/mv88e6xxx/chip.c b/drivers/net/dsa/mv88e6

[PATCH net-next 1/8] net: dsa: mv88e6xxx: Implement external MDIO bus on mv88e6390

2017-01-20 Thread Andrew Lunn
The mv88e6390 has two MDIO busses. The internal MDIO bus is used for the internal PHYs. The external MDIO can be used for external PHYs. The external MDIO bus will be instantiated if there is an "mdio-external" node in the device tree. Signed-off-by: Andrew Lunn --- .../devicetree/bindings/net/d

[PATCH net-next 2/8] net: phy: Add 2000base-x, 2500base-x and rxaui modes

2017-01-20 Thread Andrew Lunn
The mv88e6390 ports 9 and 10 supports some additional PHY modes. Add these modes to the PHY core so they can be used in the binding. Signed-off-by: Andrew Lunn --- Documentation/devicetree/bindings/net/ethernet.txt | 3 +++ include/linux/phy.h| 9 + 2 file

[PATCH net-next 5/8] net: dsa: mv88e6xxx: Workaround missing PHY ID on mv88e6390

2017-01-20 Thread Andrew Lunn
The internal PHYs of the mv88e6390 do not have a model ID. Trap any calls to the ID register, and if it is zero, return the ID for the mv88e6390. The Marvell PHY driver can then bind to this ID. Signed-off-by: Andrew Lunn --- drivers/net/dsa/mv88e6xxx/global2.c | 16 +++- 1 file chan

[net-next 0/8] More MV88E6390 patches

2017-01-20 Thread Andrew Lunn
This is the ongoing work to add support for the Marvell 9390 family of switches. There are now two MDIO busses, one for the internal PHYs and an external bus for external PHYs. Add support for this external bus. This switch supports 2Gbps, 2.5Gbps and 10Gbps ports. Add phy-modes for these speeds/i

[PATCH net] net: phy: Avoid deadlock during phy_error()

2017-01-20 Thread Florian Fainelli
phy_error() is called in the PHY state machine workqueue context, and calls phy_trigger_machine() which does a cancel_delayed_work_sync() of the workqueue we execute from, causing a deadlock situation. Augment phy_trigger_machine() machine with a sync boolean indicating whether we should use cance

[PATCH net-next 7/8] net: dsa: mv88e6xxx: Implement Clause 45 access to SMI devices

2017-01-20 Thread Andrew Lunn
The mv88e6390 SERDES devices need clause 45 MDIO to access them. Signed-off-by: Andrew Lunn --- drivers/net/dsa/mv88e6xxx/global2.c | 108 -- drivers/net/dsa/mv88e6xxx/mv88e6xxx.h | 7 +++ 2 files changed, 111 insertions(+), 4 deletions(-) diff --git a/driver

[PATCH net-next 6/8] net: phy: Marvell: Add mv88e6390 internal PHY

2017-01-20 Thread Andrew Lunn
The mv88e6390 Ethernet switch has internal PHYs. These PHYs don't have an model ID in the ID2 register. So the MDIO driver in the switch intercepts reads to this register, and returns the switch family ID. Extend the Marvell PHY driver by including this ID, and tread the PHY as a 88E1540. Signed-o

[PATCH net-next 4/8] net: dsa: mv88e6xxx: Set the CMODE for mv88e6390 ports 9 & 10

2017-01-20 Thread Andrew Lunn
Unlike most ports, ports 9 and 10 of the 6390X family have configurable PHY modes. Set the mode as part of adjust_link(). Ordering is important, because the SERDES interfaces connected to ports 9 and 10 can be split and assigned to other ports. The CMODE has to be correctly set before the SERDES i

[PATCH] [net-next] net: qcom/emac: rename emac_phy to emac_sgmii and move it

2017-01-20 Thread Timur Tabi
The EMAC has an internal PHY that is often called the "SGMII". This SGMII is also connected to an external PHY, which is managed by phylib. These dual PHYs often cause confusion. In this case, the data structure for managing the SGMII was mis-named and located in the wrong header file. Structure

[PATCH] [net-next][v2] net: qcom/emac: claim the irq only when the device is opened

2017-01-20 Thread Timur Tabi
During reset, functions emac_mac_down() and emac_mac_up() are called, so we don't want to free and claim the IRQ unnecessarily. Move those operations to open/close. Signed-off-by: Timur Tabi --- Notes: v2: keep synchronize_irq call where it is drivers/net/ethernet/qualcomm/emac/emac-mac.c

Re: [PATCH v5 2/2] net: dsa: mv88e6xxx: Add support for ethernet switch 88E6341

2017-01-20 Thread Andrew Lunn
On Fri, Jan 20, 2017 at 12:30:16PM -0500, Vivien Didelot wrote: > Hi Gregory, > > Gregory CLEMENT writes: > > > If there a series about to be merged I can rebase my series on it. Else > > I propose to keep it and convert the family check to ops when you will > > send the series for it. > > I am

[PATCH] net: adaptec: starfire: add checks for dma mapping errors

2017-01-20 Thread Alexey Khoroshilov
init_ring() and refill_rx_ring() don't check if mapping dma memory succeed. The patch adds the checks and failure handling. Found by Linux Driver Verification project (linuxtesting.org). Signed-off-by: Alexey Khoroshilov --- drivers/net/ethernet/adaptec/starfire.c | 12 1 file chan

Re: fs, net: deadlock between bind/splice on af_unix

2017-01-20 Thread Dmitry Vyukov
On Fri, Jan 20, 2017 at 5:57 AM, Cong Wang wrote: >> > Why do we do autobind there, anyway, and why is it conditional on >> > SOCK_PASSCRED? Note that e.g. for SOCK_STREAM we can bloody well get >> > to sending stuff without autobind ever done - just use socketpair() >> > to creat

Re: [PATCH v3] net/irda: fix lockdep annotation

2017-01-20 Thread Dmitry Vyukov
On Thu, Jan 19, 2017 at 5:27 PM, David Miller wrote: > From: Dmitry Vyukov > Date: Thu, 19 Jan 2017 11:05:36 +0100 > >> Thanks for looking into it! This particular issue bothers my fuzzers >> considerably. I agree that removing recursion is better. >> So do how we proceed? Will you mail this as a

Re: [PATCH v5 0/2] Add support for the ethernet switch on the ESPRESSObin

2017-01-20 Thread Andrew Lunn
> Actually I didn't find anything related to the temperature measurement > in the datasheet I have. For the 6390 there is a dedicated datsheet for > the PHY part for the 6352 it is part of the same datasheet. Hi Gregory The temperature sensor changes have landed in net-next. If you have time, ple

Re: [PATCH] net: qcom/emac: claim the irq only when the device is opened

2017-01-20 Thread Timur Tabi
On 01/20/2017 03:31 PM, Lino Sanfilippo wrote: In emac_mac_down() however we need synchronize_irq(), since it ensures that the irq handler is not running any more when it (synchronize_irq) returns. So in general, if a driver disables a interrupt but does not free it, it should call synchroniz

Re: [PATCH] net: qcom/emac: claim the irq only when the device is opened

2017-01-20 Thread Lino Sanfilippo
On 20.01.2017 22:05, Timur Tabi wrote: On 01/20/2017 02:44 PM, Lino Sanfilippo wrote: On 18.01.2017 22:42, Timur Tabi wrote: @@ -1029,8 +1017,6 @@ void emac_mac_down(struct emac_adapter *adpt) */ writel(DIS_INT, adpt->base + EMAC_INT_STATUS); writel(0, adpt->base + EMAC_I

[PATCH v3 09/37] RDS: IB: Remove an unused structure member

2017-01-20 Thread Bart Van Assche
Signed-off-by: Bart Van Assche Acked-by: Santosh Shilimkar Cc: David S. Miller Cc: linux-r...@vger.kernel.org Cc: netdev@vger.kernel.org Cc: rds-de...@oss.oracle.com --- net/rds/ib_mr.h | 1 - 1 file changed, 1 deletion(-) diff --git a/net/rds/ib_mr.h b/net/rds/ib_mr.h index 1c754f4acbe5..24c0

Re: [PATCHv4 net-next 3/5] sctp: implement sender-side procedures for SSN/TSN Reset Request Parameter

2017-01-20 Thread marcelo . leitner
On Fri, Jan 20, 2017 at 02:00:34PM -0500, David Miller wrote: > From: Marcelo Ricardo Leitner > Date: Fri, 20 Jan 2017 16:25:22 -0200 > > > I talked offline with Xin about this and we cannot do it this way. > > Unfortunatelly we will have to take the long road here, because then > > we may send d

Re: [PATCH] net: qcom/emac: claim the irq only when the device is opened

2017-01-20 Thread Timur Tabi
On 01/20/2017 02:44 PM, Lino Sanfilippo wrote: On 18.01.2017 22:42, Timur Tabi wrote: @@ -1029,8 +1017,6 @@ void emac_mac_down(struct emac_adapter *adpt) */ writel(DIS_INT, adpt->base + EMAC_INT_STATUS); writel(0, adpt->base + EMAC_INT_MASK); -synchronize_irq(adpt->irq.i

[PATCH net v2] net: mpls: Fix multipath selection for LSR use case

2017-01-20 Thread David Ahern
MPLS multipath for LSR is broken -- always selecting the first nexthop in the one label case. For example: $ ip -f mpls ro ls 100 nexthop as to 200 via inet 172.16.2.2 dev virt12 nexthop as to 300 via inet 172.16.3.2 dev virt13 101 nexthop as to 20

Re: [PATCH] net: qcom/emac: claim the irq only when the device is opened

2017-01-20 Thread Lino Sanfilippo
Hi, On 18.01.2017 22:42, Timur Tabi wrote: @@ -1029,8 +1017,6 @@ void emac_mac_down(struct emac_adapter *adpt) */ writel(DIS_INT, adpt->base + EMAC_INT_STATUS); writel(0, adpt->base + EMAC_INT_MASK); - synchronize_irq(adpt->irq.irq); There is no reason to remove

[PATCH net-next 7/7] net: phy: bcm7xxx: Implement EGPHY workaround for 7278

2017-01-20 Thread Florian Fainelli
Implement the HW design team recommended workaround in for 7278. Since the GPHY now returns its revision information in MII_PHYS_ID[23] we need to check whether the revision provided in flags is 0 or not. Signed-off-by: Florian Fainelli --- drivers/net/phy/bcm7xxx.c | 34

[PATCH net-next 6/7] net: phy: bcm7xxx: Add entry for BCM7278

2017-01-20 Thread Florian Fainelli
Add support for the BCM7278 28nm process Gigabit Ethernet PHY. Signed-off-by: Florian Fainelli --- drivers/net/phy/bcm7xxx.c | 2 ++ include/linux/brcmphy.h | 1 + 2 files changed, 3 insertions(+) diff --git a/drivers/net/phy/bcm7xxx.c b/drivers/net/phy/bcm7xxx.c index 264b085d796b..fb11927de

[PATCH net-next 1/7] net: dsa: bcm_sf2: Make SF2_IO64_MACRO() utilize 32-bit macro

2017-01-20 Thread Florian Fainelli
There is no point inlining the 32-bit direct register read/write part, just infer it from the existing macro. This will make it easier to centralize the address rewriting that we are going to introduce later on. Signed-off-by: Florian Fainelli --- drivers/net/dsa/bcm_sf2.h | 4 ++-- 1 file chang

[PATCH net-next 3/7] net: dsa: bcm_sf2: Add support for BCM7278 integrated switch

2017-01-20 Thread Florian Fainelli
Add support for the integrated switch found on BCM7278: - core_reg_align is set to 1, to force a translation into the target address space which is 8 bytes aligned - an alternate SWITCH_REG layout is provided since registers are largely bit/masks compatible but have different offsets - conditi

[PATCH net-next 4/7] net: dsa: bcm_sf2: Move code enabling Broadcom tags

2017-01-20 Thread Florian Fainelli
In preparation for enabling Broadcom tags on different ports based on configuration information, dedicate a function that is responsible for enabling Broadcom tags for a given port and update the IMP port setup to call it. Signed-off-by: Florian Fainelli --- drivers/net/dsa/bcm_sf2.c | 61 ++

[PATCH net-next 5/7] net: dsa: bcm_sf2: Allow non-IMP ports to have Broadcom tags enabled

2017-01-20 Thread Florian Fainelli
Parse the "brcm,use-bcm-hdr" boolean property during ports identification to fill a bitmask of ports that should have Broadcom tags enabled. This is needed in some configurations where per-packet metadata can be exchanged using Broadcom tags between the switch and an on-chip acceleration device. S

[PATCH net-next 0/7] net: dsa: bcm_sf2: Add support for BCM7278

2017-01-20 Thread Florian Fainelli
Hi all, This patch series adds support for the Broadcom BCM7278 integrated switch which is a successor of the BCM7445 switch. We have a little bit of register shuffling going on, which is why most of the functional changes are to deal with that. Thanks! Florian Fainelli (7): net: dsa: bcm_sf2:

[PATCH net-next 2/7] net: dsa: bcm_sf2: Prepare for different register layouts

2017-01-20 Thread Florian Fainelli
In preparation for supporting a new device with a slightly different register layout, affecting the SWITCH_REG and SWITCH_CORE address spaces, perform a few preparatory steps: - allow matching the compatible string against a data description - convert the SWITCH_REG register accesses into an indir

Re: [PATCH net 0/2] net: Fix oops on state free after lwt module unload

2017-01-20 Thread Robert Shearman
On 20/01/17 17:03, David Miller wrote: From: Robert Shearman Date: Wed, 18 Jan 2017 15:32:01 + This patchset fixes an oops in lwtstate_free and a memory leak that would otherwise be exposed by ensuring that references are taken on modules that need to stay around to clean up lwt state. To

Re: [PATCH net v3] bridge: netlink: call br_changelink() during br_dev_newlink()

2017-01-20 Thread David Miller
From: Jiri Pirko Date: Fri, 20 Jan 2017 19:10:42 +0100 > Fri, Jan 20, 2017 at 06:12:17PM CET, c...@cera.cz wrote: >>Any bridge options specified during link creation (e.g. ip link add) >>are ignored as br_dev_newlink() does not process them. >>Use br_changelink() to do it. >> >>Fixes: 1332351 ("b

Re: [Xen-devel] xennet_start_xmit assumptions

2017-01-20 Thread Sowmini Varadhan
On (01/20/17 14:30), David Miller wrote: > > CAP_SYS_RAWIO or not, the contract we have with the device is that > there will be at least enough bytes to cover a link layer header. I see. If that's the case (for all the kernel-driver interfaces), then the xen_netfront driver is probably not requi

Re: [PATCH net] net: mpls: Fix multipath selection for LSR use case

2017-01-20 Thread David Miller
From: David Ahern Date: Thu, 19 Jan 2017 16:51:03 -0800 > MPLS multipath for LSR is broken -- always selecting the first nexthop > in the one label case. For example: ... David, this doesn't apply cleanly to the net tree, please respin. Thanks.

Re: [PATCH v2 0/2] net: dsa: Move temperature sensor code into PHY.

2017-01-20 Thread David Miller
From: Andrew Lunn Date: Fri, 20 Jan 2017 01:37:48 +0100 > Marvell Ethernet switches contain a temperature sensor. There appears > to be one sensor, which is shared by each of the internal PHYs. Each > PHY has independent registers to read this sensor, and to set a limit > for when an alarm should

Re: [PATCH] inet: don't use sk_v6_rcv_saddr directly

2017-01-20 Thread David Miller
From: Josef Bacik Date: Thu, 19 Jan 2017 17:47:46 -0500 > When comparing two sockets we need to use inet6_rcv_saddr so we get a NULL > sk_v6_rcv_saddr if the socket isn't AF_INET6, otherwise our comparison > function > can be wrong. > > Fixes: 637bc8b ("inet: reset tb->fastreuseport when adding

Re: [PATCH net-next v2 0/2] net: ipv6: Improve user experience with multipath routes

2017-01-20 Thread David Ahern
On 1/19/17 11:10 PM, David Ahern wrote: > This series closes a couple of gaps between IPv4 and IPv6 with respect > to multipath routes: ... > In both cases, the new behavior requires users to opt in by setting a new > flag, RTM_F_ALL_NEXTHOPS, in the rtm_flags of struct rtmsg which is > expected to

Re: [Xen-devel] xennet_start_xmit assumptions

2017-01-20 Thread David Miller
From: Sowmini Varadhan Date: Thu, 19 Jan 2017 17:41:23 -0500 > On (01/19/17 13:47), Sowmini Varadhan wrote: >> > Specifically I'm talking about the dev_validate_header() check. >> > That is supposed to protect us from these kinds of situations. >> >> ah, but I run my pf_packet application as roo

Re: [PATCH v5 0/2] Add support for the ethernet switch on the ESPRESSObin

2017-01-20 Thread David Miller
From: Gregory CLEMENT Date: Thu, 19 Jan 2017 22:49:32 +0100 > I created a new family for this switch and filled the ops structure > by selecting which seems the more appropriate functions. I rebased > the series on net-next/master which allowed me to benefit to the > eeprom functions introduced f

Re: [pull request][net-next 00/15] Mellanox mlx5 updates 2017-01-19

2017-01-20 Thread David Miller
From: Saeed Mahameed Date: Fri, 20 Jan 2017 00:38:53 +0200 > This pull request includes some small mlx5 updates and two new features, > The 1st exposes new HW counters to "ethtool -S" and the other introduces > mlx5 ptp 1pps support. Details are down bleow. > > Please pull and let me know if the

Re: [PATCHv4 net-next 3/5] sctp: implement sender-side procedures for SSN/TSN Reset Request Parameter

2017-01-20 Thread David Miller
From: Marcelo Ricardo Leitner Date: Fri, 20 Jan 2017 16:25:22 -0200 > I talked offline with Xin about this and we cannot do it this way. > Unfortunatelly we will have to take the long road here, because then > we may send data while sending the request, as the streams are not > closed yet. We re

Re: [PATCH v2] xen-netfront: Fix Rx stall during network stress and OOM

2017-01-20 Thread David Miller
From: Vineeth Remanan Pillai Date: Thu, 19 Jan 2017 08:35:39 -0800 > From: Vineeth Remanan Pillai > > During an OOM scenario, request slots could not be created as skb > allocation fails. So the netback cannot pass in packets and netfront > wrongly assumes that there is no more work to be done

[PATCH net-next 1/2] net: systemport: Dynamically allocate number of TX rings

2017-01-20 Thread Florian Fainelli
In preparation for adding SYSTEMPORT Lite, which has twice as less transmit queues than SYSTEMPORT make sure we do allocate TX rings based on the systemport,txq property to get an appropriate memory footprint. Signed-off-by: Florian Fainelli --- drivers/net/ethernet/broadcom/bcmsysport.c | 11 ++

[PATCH net-next 2/2] net: systemport: Add support for SYSTEMPORT Lite

2017-01-20 Thread Florian Fainelli
Add supporf for the SYSTEMPORT Lite Ethernet controller, this piece of hardware is largely based on the full-blown SYSTEMPORT and differs in the following: - no full-blown UniMAC, instead we have the MagicPacket matching from UniMAC at same offset, and a GMII Interface Block (GIB) for the MAC-le

[PATCH net-next 0/2] net: systemport: Add support for SYSTEMPORT lite

2017-01-20 Thread Florian Fainelli
Hi David, This patch series adds support for SYSTEMPORT Lite which is an evolution of the existing SYSTEMPORT adapter. The two generations are largely identical as far as the transmit/receive path are concerned, and there were just a few control path changes here and there. Thanks! Florian Fain

[PATCH v2 iproute2] f_flower: don't set TCA_FLOWER_KEY_ETH_TYPE for "protocol all"

2017-01-20 Thread Benjamin LaHaise
v2 - update to address changes in 00697ca19ae3e1118f2af82c3b41ac4335fe918b. When using the tc flower filter, rules marked with "protocol all" do not actually match all packets. This is due to a bug in f_flower.c that passes in ETH_P_ALL in the TCA_FLOWER_KEY_ETH_TYPE attribute when adding a rule.

Re: [PATCH v3 2/3] NFC: trf7970a: Add device tree option of 1.8 Volt IO voltage

2017-01-20 Thread Mark Greer
On Wed, Dec 21, 2016 at 11:18:33PM -0500, Geoff Lansberry wrote: > The TRF7970A has configuration options for supporting hardware designs > with 1.8 Volt or 3.3 Volt IO. This commit adds a device tree option, > using a fixed regulator binding, for setting the io voltage to match > the hardware co

Re: [PATCH iproute2 net-next V5] tc: flower: Refactor matching flags to be more user friendly

2017-01-20 Thread Stephen Hemminger
On Thu, 19 Jan 2017 16:27:53 +0200 Paul Blakey wrote: > Instead of "magic numbers" we can now specify each flag > by name. Prefix of "no" (e.g nofrag) unsets the flag, > otherwise it wil be set. > > Example: > # add a flower filter that will drop fragmented packets > tc filter add dev e

Re: [PATCHv2 iproute2 net-next 1/5] iplink: bridge: add support for IFLA_BR_FDB_FLUSH

2017-01-20 Thread Stephen Hemminger
On Wed, 18 Jan 2017 14:12:47 +0800 Hangbin Liu wrote: > This patch implements support for the IFLA_BR_FDB_FLUSH attribute > in iproute2 so it can flush bridge fdb dynamic entries. > > Reviewed-by: Nikolay Aleksandrov > Signed-off-by: Hangbin Liu > --- > ip/iplink_bridge.c | 5 - > 1 file

Re: [PATCHv4 net-next 3/5] sctp: implement sender-side procedures for SSN/TSN Reset Request Parameter

2017-01-20 Thread Marcelo Ricardo Leitner
On Sat, Jan 21, 2017 at 02:00:37AM +0800, Xin Long wrote: > This patch is to implement Sender-Side Procedures for the SSN/TSN > Reset Request Parameter descibed in rfc6525 section 5.1.4. > > It is also to add sockopt SCTP_RESET_ASSOC in rfc6525 section 6.3.3 > for users. > > Signed-off-by: Xin Lo

[PATCH net v1 2/2] amd-xgbe: Check xgbe_init() return code

2017-01-20 Thread Tom Lendacky
The xgbe_init() routine returns a return code indicating success or failure, but the return code is not checked. Add code to xgbe_init() to issue a message when failures are seen and add code to check the xgbe_init() return code. Signed-off-by: Tom Lendacky --- drivers/net/ethernet/amd/xgbe/xgbe

[PATCH net v1 0/2] amd-xgbe: AMD XGBE driver fixes 2017-01-20

2017-01-20 Thread Tom Lendacky
This patch series addresses some issues in the AMD XGBE driver. The following fixes are included in this driver update series: - Add a fix for a version of the hardware that uses different register offset values for a device with the same PCI device ID - Add support to check the return code fro

[PATCH net v1 1/2] amd-xgbe: Add a hardware quirk for register definitions

2017-01-20 Thread Tom Lendacky
A newer version of the hardware is using the same PCI ids for the network device but has altered register definitions for determining the window settings for the indirect PCS access. Add support to check for this hardware and if found use the new register values. Signed-off-by: Tom Lendacky ---

Re: [PATCH net v3] bridge: netlink: call br_changelink() during br_dev_newlink()

2017-01-20 Thread Jiri Pirko
Fri, Jan 20, 2017 at 06:12:17PM CET, c...@cera.cz wrote: >Any bridge options specified during link creation (e.g. ip link add) >are ignored as br_dev_newlink() does not process them. >Use br_changelink() to do it. > >Fixes: 1332351 ("bridge: implement rtnl_link_ops->changelink") Should have 12 cha

[PATCHv4 net-next 5/5] sctp: implement sender-side procedures for Add Incoming/Outgoing Streams Request Parameter

2017-01-20 Thread Xin Long
This patch is to implement Sender-Side Procedures for the Add Outgoing and Incoming Streams Request Parameter described in rfc6525 section 5.1.5-5.1.6. It is also to add sockopt SCTP_ADD_STREAMS in rfc6525 section 6.3.4 for users. Signed-off-by: Xin Long --- include/net/sctp/sctp.h | 2 ++ i

[PATCHv4 net-next 2/5] sctp: add support for generating stream reconf ssn/tsn reset request chunk

2017-01-20 Thread Xin Long
This patch is to define SSN/TSN Reset Request Parameter described in rfc6525 section 4.3. Signed-off-by: Xin Long --- include/linux/sctp.h | 5 + include/net/sctp/sm.h| 2 ++ net/sctp/sm_make_chunk.c | 29 + 3 files changed, 36 insertions(+) diff --git

[PATCHv4 net-next 3/5] sctp: implement sender-side procedures for SSN/TSN Reset Request Parameter

2017-01-20 Thread Xin Long
This patch is to implement Sender-Side Procedures for the SSN/TSN Reset Request Parameter descibed in rfc6525 section 5.1.4. It is also to add sockopt SCTP_RESET_ASSOC in rfc6525 section 6.3.3 for users. Signed-off-by: Xin Long --- include/net/sctp/sctp.h | 1 + include/uapi/linux/sctp.h |

[PATCHv4 net-next 4/5] sctp: add support for generating stream reconf add incoming/outgoing streams request chunk

2017-01-20 Thread Xin Long
This patch is to define Add Incoming/Outgoing Streams Request Parameter described in rfc6525 section 4.5 and 4.6. They can be in one same chunk trunk as rfc6525 section 3.1-7 describes, so make them in one function. Signed-off-by: Xin Long --- include/linux/sctp.h | 7 +++ include/net/s

[PATCHv4 net-next 0/5] sctp: add sender-side procedures for stream reconf asoc reset and add streams

2017-01-20 Thread Xin Long
Patch 3/5 is to implement sender-side procedures for the SSN/TSN Reset Request Parameter described in rfc6525 section 5.1.4, patch 2/5 is ahead of it to define a function to make the request chunk for it. Patch 5/5 is to implement sender-side procedures for the Add Incoming and Outgoing Streams Re

  1   2   3   >