[PATCH net-next 5/6] net: aquantia: add ethertype and PCP to rx flow filters

2018-11-12 Thread Igor Russkikh
From: Dmitry Bogdanov L2 EtherType filters allows to filter packet by EtherType field or both EtherType and User Priority (PCP) field of 802.1Q. UserPriority (vlan) parameter must be accompanied by mask 0x1FFF. That is to distinguish VLAN filter from L2 Ethertype filter with UserPriority since bo

[PATCH net-next 1/6] net: aquantia: add rx-flow filter definitions

2018-11-12 Thread Igor Russkikh
From: Dmitry Bogdanov Add missing register definitions and the functions accessing them related to rx-flow filters. Signed-off-by: Dmitry Bogdanov Signed-off-by: Igor Russkikh --- .../ethernet/aquantia/atlantic/hw_atl/hw_atl_llh.c | 109 + .../ethernet/aquantia/atlantic/hw_atl

[PATCH net-next 6/6] net: aquantia: add support of rx-vlan-filter offload

2018-11-12 Thread Igor Russkikh
From: Dmitry Bogdanov Since it uses the same NIC table as rx flow vlan filter therefore rx-flow vlan filter accepts only vlans that present on the interface in case of rx-vlan-filter is on. Signed-off-by: Dmitry Bogdanov Signed-off-by: Igor Russkikh --- .../net/ethernet/aquantia/atlantic/aq_f

[PATCH net-next 3/6] net: aquantia: add support of L3/L4 ntuple filters

2018-11-12 Thread Igor Russkikh
From: Dmitry Bogdanov Add support of L3/L4 5-tuple {protocol, src-ip, dst-ip, src-port, dst-port} filters. Mask is not supported. Src-port and dst-port are only compared for TCP/UDP/SCTP packets. Both IPv4 and IPv6 are supported. The supported actions are the drop and the queue assignment. Due to

[PATCH net-next 0/6] net: aquantia: add rx-flow filter support

2018-11-12 Thread Igor Russkikh
In this patchset the rx-flow filters functionality and vlan filter offloads are implemented. The rules in NIC hardware have fixed order and priorities. To support this, the locations of filters from ethtool perspective are also fixed: * Locations 0 - 15 for VLAN ID filters * Locations 16 - 31 fo

[PATCH net-next 4/6] net: aquantia: add vlan id to rx flow filters

2018-11-12 Thread Igor Russkikh
From: Dmitry Bogdanov The VLAN filter (VLAN id) is compared against 16 filters. VLAN id must be accompanied by mask 0xF000. That is to distinguish VLAN filter from L2 Ethertype filter with UserPriority since both User Priority and VLAN ID are passed in the same 'vlan' parameter. Flow type may be

[PATCH net-next 2/6] net: aquantia: add infrastructure for ntuple rules

2018-11-12 Thread Igor Russkikh
From: Dmitry Bogdanov Add infrastructure to support ntuple filter configuration. Add rule, remove rule, reapply on interface up. Signed-off-by: Dmitry Bogdanov Signed-off-by: Igor Russkikh --- drivers/net/ethernet/aquantia/atlantic/Makefile| 1 + .../net/ethernet/aquantia/atlantic/aq_et

Inquiry 12/11/2018

2018-11-12 Thread Daniel Murray
Hi,friend, This is Daniel Murray and i am from Sinara Group Co.Ltd Group Co.,LTD in Russia. We are glad to know about your company from the web and we are interested in your products. Could you kindly send us your Latest catalog and price list for our trial order. Best Regards, Daniel Murray

Re: [PATCH net-next 0/6] net: sched: indirect tc block cb registration

2018-11-12 Thread Or Gerlitz
On Mon, Nov 12, 2018 at 6:13 AM Jakub Kicinski wrote: > On Sun, 11 Nov 2018 09:55:35 -0800 (PST), David Miller wrote: > > From: Jakub Kicinski > > Date: Fri, 9 Nov 2018 21:21:25 -0800 > > > > > John says: > > > > > > This patchset introduces an alternative to egdev offload by allowing a > > > dr

Which is officially supported by netdev for dynamic routing?

2018-11-12 Thread Akshat Kakkar
I can see there are 3 projects for supporting dynamic routing like ospf in linux namely, Quagga FRRouting BIRD. However, as a long term perspective, I am eager to know which out of these is officially supported by netdev community.

[RFC PATCH 6/6] ARM: dts: clearfog: add comphy settings for Ethernet interfaces

2018-11-12 Thread Russell King
Add the comphy settings for the Ethernet interfaces. Signed-off-by: Russell King --- arch/arm/boot/dts/armada-388-clearfog.dtsi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/boot/dts/armada-388-clearfog.dtsi b/arch/arm/boot/dts/armada-388-clearfog.dtsi index 1b0d0680c8b6..0d816

[RFC PATCH 3/6] ARM: dts: add description for Armada 38x common phy

2018-11-12 Thread Russell King
Add the DT description for the Armada 38x common phy. Signed-off-by: Russell King --- arch/arm/boot/dts/armada-38x.dtsi | 37 + 1 file changed, 37 insertions(+) diff --git a/arch/arm/boot/dts/armada-38x.dtsi b/arch/arm/boot/dts/armada-38x.dtsi index 929459c4

[RFC PATCH 4/6] dt-bindings: update mvneta binding document

2018-11-12 Thread Russell King
Signed-off-by: Russell King --- Documentation/devicetree/bindings/net/marvell-armada-370-neta.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/net/marvell-armada-370-neta.txt b/Documentation/devicetree/bindings/net/marvell-armada-370-neta.

[RFC PATCH 5/6] net: marvell: neta: add support for 2500base-X

2018-11-12 Thread Russell King
Signed-off-by: Russell King --- drivers/net/ethernet/marvell/mvneta.c | 58 ++- 1 file changed, 51 insertions(+), 7 deletions(-) diff --git a/drivers/net/ethernet/marvell/mvneta.c b/drivers/net/ethernet/marvell/mvneta.c index 5bfd349bf41a..7305d4cc0630 100644 ---

[RFC PATCH 2/6] phy: armada38x: add common phy support

2018-11-12 Thread Russell King
Add support for the Armada 38x common phy to allow us to change the speed of the Ethernet serdes lane. This driver only supports manipulation of the speed, it does not support configuration of the common phy. Signed-off-by: Russell King --- drivers/phy/marvell/Kconfig| 10 ++ d

[RFC PATCH 1/6] dt-bindings: phy: Armada 38x common phy bindings

2018-11-12 Thread Russell King
Add the Marvell Armada 38x common phy bindings. Signed-off-by: Russell King --- .../bindings/phy/phy-armada38x-comphy.txt | 40 ++ 1 file changed, 40 insertions(+) create mode 100644 Documentation/devicetree/bindings/phy/phy-armada38x-comphy.txt diff --git a/Docum

[RFC PATCH 0/6] Armada 38x comphy driver to support 2.5Gbps networking

2018-11-12 Thread Russell King - ARM Linux
Hi, This series adds support for dynamically switching between 1Gbps and 2.5Gbps networking for the Marvell Armada 38x SoCs, tested on Armada 388 on the Clearfog platform. This is necessary to be able to connect (eg) a Clearfog platform with a Macchiatobin platform via the SFP sockets, as Clearfo

RE

2018-11-12 Thread ya vila
Mr Bayford picked you for a $1,M donation Email For more details

[PATCH 04/20] can: ucan: remove set but not used variable 'udev'

2018-11-12 Thread Marc Kleine-Budde
From: YueHaibing Fixes gcc '-Wunused-but-set-variable' warning: drivers/net/can/usb/ucan.c: In function 'ucan_disconnect': drivers/net/can/usb/ucan.c:1578:21: warning: variable 'udev' set but not used [-Wunused-but-set-variable] struct usb_device *udev; Signed-off-by: YueHaibing Reviewed-by

[PATCH 03/20] can: kvaser_usb: Fix accessing freed memory in kvaser_usb_start_xmit()

2018-11-12 Thread Marc Kleine-Budde
From: Jimmy Assarsson The call to can_put_echo_skb() may result in the skb being freed. The skb is later used in the call to dev->ops->dev_frame_to_cmd(). This is avoided by moving the call to can_put_echo_skb() after dev->ops->dev_frame_to_cmd(). Reported-by: Dan Carpenter Signed-off-by: Jimm

[PATCH 02/20] can: kvaser_usb: Fix potential uninitialized variable use

2018-11-12 Thread Marc Kleine-Budde
From: Jimmy Assarsson If alloc_can_err_skb() fails, cf is never initialized. Move assignment of cf inside check. Reported-by: Dan Carpenter Signed-off-by: Jimmy Assarsson Cc: linux-stable Signed-off-by: Marc Kleine-Budde --- drivers/net/can/usb/kvaser_usb/kvaser_usb_hydra.c | 10 +-

[PATCH 01/20] can: raw: check for CAN FD capable netdev in raw_sendmsg()

2018-11-12 Thread Marc Kleine-Budde
From: Oliver Hartkopp When the socket is CAN FD enabled it can handle CAN FD frame transmissions. Add an additional check in raw_sendmsg() as a CAN2.0 CAN driver (non CAN FD) should never see a CAN FD frame. Due to the commonly used can_dropped_invalid_skb() function the CAN 2.0 driver would dro

[PATCH 07/20] can: rcar_can: Fix erroneous registration

2018-11-12 Thread Marc Kleine-Budde
From: Fabrizio Castro Assigning 2 to "renesas,can-clock-select" tricks the driver into registering the CAN interface, even though we don't want that. This patch improves one of the checks to prevent that from happening. Fixes: 862e2b6af9413b43 ("can: rcar_can: support all input clocks") Signed-o

[PATCH 08/20] dt-bindings: can: rcar_can: Add r8a774a1 support

2018-11-12 Thread Marc Kleine-Budde
From: Fabrizio Castro Document RZ/G2M (r8a774a1) SoC specific bindings. Signed-off-by: Fabrizio Castro Signed-off-by: Chris Paterson Reviewed-by: Biju Das Reviewed-by: Rob Herring Reviewed-by: Simon Horman Signed-off-by: Marc Kleine-Budde --- .../devicetree/bindings/net/can/rcar_can.txt

[PATCH 05/20] can: ucan: remove duplicated include from ucan.c

2018-11-12 Thread Marc Kleine-Budde
From: YueHaibing Remove duplicated include. Signed-off-by: YueHaibing Reviewed-by: Martin Elshuber Signed-off-by: Marc Kleine-Budde --- drivers/net/can/usb/ucan.c | 4 1 file changed, 4 deletions(-) diff --git a/drivers/net/can/usb/ucan.c b/drivers/net/can/usb/ucan.c index c9fd83e8d947

[PATCH 17/20] can: rx-offload: introduce can_rx_offload_get_echo_skb() and can_rx_offload_queue_sorted() functions

2018-11-12 Thread Marc Kleine-Budde
From: Oleksij Rempel Current CAN framework can't guarantee proper/chronological order of RX and TX-ECHO messages. To make this possible, drivers should use this functions instead of can_get_echo_skb(). Signed-off-by: Oleksij Rempel Cc: linux-stable Signed-off-by: Marc Kleine-Budde --- driver

[PATCH 09/20] can: hi311x: Use level-triggered interrupt

2018-11-12 Thread Marc Kleine-Budde
From: Lukas Wunner If the hi3110 shares the SPI bus with another traffic-intensive device and packets are received in high volume (by a separate machine sending with "cangen -g 0 -i -x"), reception stops after a few minutes and the counter in /proc/interrupts stops incrementing. Bus state is "ac

[PATCH 19/20] can: rx-offload: rename can_rx_offload_irq_queue_err_skb() to can_rx_offload_queue_tail()

2018-11-12 Thread Marc Kleine-Budde
From: Oleksij Rempel This function has nothing todo with error. Signed-off-by: Oleksij Rempel Cc: linux-stable Signed-off-by: Marc Kleine-Budde --- drivers/net/can/flexcan.c | 4 ++-- drivers/net/can/rx-offload.c | 5 +++-- include/linux/can/rx-offload.h | 3 ++- 3 files changed, 7 in

[PATCH 20/20] can: flexcan: use can_rx_offload_queue_sorted() for flexcan_irq_bus_*()

2018-11-12 Thread Marc Kleine-Budde
From: Oleksij Rempel Currently, in case of bus error, driver will generate error message and put in the tail of the message queue. To avoid confusions, this change should place the bus related messages in proper order. Signed-off-by: Oleksij Rempel Cc: linux-stable Signed-off-by: Marc Kleine-B

[PATCH 11/20] can: flexcan: Always use last mailbox for TX

2018-11-12 Thread Marc Kleine-Budde
From: Alexander Stein Essentially this patch moves the TX mailbox to position 63, regardless of timestamp based offloading or RX FIFO. So mainly the iflag register usage regarding TX has changed. The rest is consolidating RX FIFO and timestamp offloading as they now use both the same TX mailbox.

[PATCH 12/20] can: flexcan: remove not needed struct flexcan_priv::tx_mb and struct flexcan_priv::tx_mb_idx

2018-11-12 Thread Marc Kleine-Budde
The previous patch changes the TX path to always use the last mailbox regardless of the used offload scheme (rx-fifo or timestamp based). This means members "tx_mb" and "tx_mb_idx" of the struct flexcan_priv don't depend on the offload scheme, so replace them by compile time constants. Cc: linux-s

[PATCH 15/20] can: dev: __can_get_echo_skb(): Don't crash the kernel if can_priv::echo_skb is accessed out of bounds

2018-11-12 Thread Marc Kleine-Budde
If the "struct can_priv::echo_skb" is accessed out of bounds would lead to a kernel crash. Better print a sensible warning message instead and try to recover. Cc: linux-stable Signed-off-by: Marc Kleine-Budde --- drivers/net/can/dev.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-)

[PATCH 14/20] can: dev: __can_get_echo_skb(): replace struct can_frame by canfd_frame to access frame length

2018-11-12 Thread Marc Kleine-Budde
This patch replaces the use of "struct can_frame::can_dlc" by "struct canfd_frame::len" to access the frame's length. As it is ensured that both structures have a compatible memory layout for this member this is no functional change. Futher, this compatibility is documented in a comment. Cc: linux

[PATCH 18/20] can: flexcan: handle tx-complete CAN frames via rx-offload infrastructure

2018-11-12 Thread Marc Kleine-Budde
From: Oleksij Rempel Current flexcan driver will put TX-ECHO in regular unsorted way, in this case TX-ECHO can come after the response to the same TXed message. In some cases, for example for J1939 stack, things will break. This patch is using new rx-offload API to put the messages just in the ri

[PATCH 16/20] can: dev: __can_get_echo_skb(): print error message, if trying to echo non existing skb

2018-11-12 Thread Marc Kleine-Budde
Prior to echoing a successfully transmitted CAN frame (by calling can_get_echo_skb()), CAN drivers have to put the CAN frame (by calling can_put_echo_skb() in the transmit function). These put and get function take an index as parameter, which is used to identify the CAN frame. A driver calling ca

[PATCH 13/20] can: dev: can_get_echo_skb(): factor out non sending code to __can_get_echo_skb()

2018-11-12 Thread Marc Kleine-Budde
This patch factors out all non sending parts of can_get_echo_skb() into a seperate function __can_get_echo_skb(), so that it can be re-used in an upcoming patch. Cc: linux-stable Signed-off-by: Marc Kleine-Budde --- drivers/net/can/dev.c | 36 +--- include/linu

[PATCH 10/20] can: flexcan: Unlock the MB unconditionally

2018-11-12 Thread Marc Kleine-Budde
From: Pankaj Bansal Unlock the MB irrespective of reception method being FIFO or timestamp based. It is optional but recommended to unlock Mailbox as soon as possible and make it available for reception. Reported-by: Alexander Stein Signed-off-by: Pankaj Bansal Cc: linux-stable Signed-off-by:

pull-request: can 2018-11-09

2018-11-12 Thread Marc Kleine-Budde
Hello David, this is a pull request of 20 patches for net/master. First we have a patch by Oliver Hartkopp which changes the raw socket's raw_sendmsg() to return an error value if the user tries to send a CANFD frame to a CAN-2.0 device. The next two patches are by Jimmy Assarsson and fix potent

[PATCH 06/20] dt-bindings: can: rcar_can: document r8a77965 support

2018-11-12 Thread Marc Kleine-Budde
From: Eugeniu Rosca Document the support for rcar_can on R8A77965 SoC devices. Add R8A77965 to the list of SoCs which require the "assigned-clocks" and "assigned-clock-rates" properties (thanks, Sergei). Signed-off-by: Eugeniu Rosca Reviewed-by: Simon Horman Reviewed-by: Kieran Bingham Review

[PATCH net v2 2/4] qed: Fix overriding offload_tc by protocols without APP TLV

2018-11-12 Thread Denis Bolotin
The TC received from APP TLV is stored in offload_tc, and should not be set by protocols which did not receive an APP TLV. Fixed the condition when overriding the offload_tc. Signed-off-by: Denis Bolotin Signed-off-by: Michal Kalderon --- drivers/net/ethernet/qlogic/qed/qed_dcbx.c | 14 +++-

[PATCH net v2 3/4] qed: Fix rdma_info structure allocation

2018-11-12 Thread Denis Bolotin
From: Michal Kalderon Certain flows need to access the rdma-info structure, for example dcbx update flows. In some cases there can be a race between the allocation or deallocation of the structure which was done in roce start / roce stop and an asynchrounous dcbx event that tries to access the st

[PATCH net v2 4/4] qed: Fix reading wrong value in loop condition

2018-11-12 Thread Denis Bolotin
The value of "sb_index" is written by the hardware. Reading its value and writing it to "index" must finish before checking the loop condition. Signed-off-by: Denis Bolotin Signed-off-by: Michal Kalderon --- drivers/net/ethernet/qlogic/qed/qed_int.c | 2 ++ 1 file changed, 2 insertions(+) diff

[PATCH net v2 1/4] qed: Fix PTT leak in qed_drain()

2018-11-12 Thread Denis Bolotin
Release PTT before entering error flow. Signed-off-by: Denis Bolotin Signed-off-by: Michal Kalderon --- drivers/net/ethernet/qlogic/qed/qed_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/qlogic/qed/qed_main.c b/drivers/net/ethernet/qlogic/qed/qe

[PATCH net v2 0/4] qed: Miscellaneous bug fixes

2018-11-12 Thread Denis Bolotin
Hi Dave, This patch series fixes several unrelated bugs across the driver. Please consider applying to net. V1->V2: --- Use dma_rmb() instead of rmb(). Thanks, Denis Denis Bolotin (3): qed: Fix PTT leak in qed_drain() qed: Fix overriding offload_tc by protocols without APP TLV qed: Fi

Re: [PATCH 08/20] octeontx2-af: Alloc and config NPC MCAM entry at a time

2018-11-12 Thread Sunil Kovvuri
On Sat, Nov 10, 2018 at 2:36 AM Arnd Bergmann wrote: > > On Fri, Nov 9, 2018 at 6:13 PM Sunil Kovvuri wrote: > > On Fri, Nov 9, 2018 at 4:32 PM Arnd Bergmann wrote: > > > On Fri, Nov 9, 2018 at 5:21 AM Sunil Kovvuri > > > wrote: > > > > > > > Since b is aligned to four bytes, you get padding b

[PATCHv2 net-next 2/3] sctp: add sock_reuseport for the sock in __sctp_hash_endpoint

2018-11-12 Thread Xin Long
This is a part of sk_reuseport support for sctp. It defines a helper sctp_bind_addrs_check() to check if the bind_addrs in two socks are matched. It will add sock_reuseport if they are completely matched, and return err if they are partly matched, and alloc sock_reuseport if all socks are not match

[PATCHv2 net-next 3/3] sctp: process sk_reuseport in sctp_get_port_local

2018-11-12 Thread Xin Long
When socks' sk_reuseport is set, the same port and address are allowed to be bound into these socks who have the same uid. Note that the difference from sk_reuse is that it allows multiple socks to listen on the same port and address. Acked-by: Neil Horman Signed-off-by: Xin Long --- include/n

[PATCHv2 net-next 1/3] sctp: do reuseport_select_sock in __sctp_rcv_lookup_endpoint

2018-11-12 Thread Xin Long
This is a part of sk_reuseport support for sctp, and it selects a sock by the hashkey of lport, paddr and dport by default. It will work until sk_reuseport support is added in sctp_get_port_local() in the next patch. v1->v2: - define lport as __be16 instead of __be32 as Marcelo pointed in __

[PATCHv2 net-next 0/3] sctp: add support for sk_reuseport

2018-11-12 Thread Xin Long
sctp sk_reuseport allows multiple socks to listen on the same port and addresses, as long as these socks have the same uid. This works pretty much as TCP/UDP does, the only difference is that sctp is multi-homing and all the bind_addrs in these socks will have to completely matched, otherwise liste

Re: [PATCH net-next 2/3] sctp: add sock_reuseport for the sock in __sctp_hash_endpoint

2018-11-12 Thread Xin Long
On Mon, Oct 22, 2018 at 11:15 PM Marcelo Ricardo Leitner wrote: > > On Sun, Oct 21, 2018 at 12:43:37PM +0800, Xin Long wrote: > > This is a part of sk_reuseport support for sctp. It defines a helper > > sctp_bind_addrs_check() to check if the bind_addrs in two socks are > > matched. It will add so

Re: [PATCH net-next 1/3] sctp: do reuseport_select_sock in __sctp_rcv_lookup_endpoint

2018-11-12 Thread Xin Long
On Mon, Oct 22, 2018 at 11:18 PM Marcelo Ricardo Leitner wrote: > > On Sun, Oct 21, 2018 at 12:43:36PM +0800, Xin Long wrote: > > This is a part of sk_reuseport support for sctp, and it selects a > > sock by the hashkey of lport, paddr and dport by default. It will > > work until sk_reuseport supp

[PATCH][xfrm-next] xfrm6: remove BUG_ON from xfrm6_dst_ifdown

2018-11-12 Thread Li RongQing
if loopback_idev is NULL pointer, and the following access of loopback_idev will trigger panic, which is same as BUG_ON Signed-off-by: Li RongQing --- net/ipv6/xfrm6_policy.c | 1 - 1 file changed, 1 deletion(-) diff --git a/net/ipv6/xfrm6_policy.c b/net/ipv6/xfrm6_policy.c index d35bcf92969c..

[PATCH][net-next] net: remove BUG_ON from __pskb_pull_tail

2018-11-12 Thread Li RongQing
if list is NULL pointer, and the following access of list will trigger panic, which is same as BUG_ON Signed-off-by: Li RongQing --- net/core/skbuff.c | 1 - 1 file changed, 1 deletion(-) diff --git a/net/core/skbuff.c b/net/core/skbuff.c index 396fcb3baad0..cd668b52f96f 100644 --- a/net/core/s

<    1   2