Re: [PATCH v2 00/17] octeontx2-af: NPC parser and NIX blocks initialization

2018-10-28 Thread Sunil Kovvuri
On Sat, Oct 27, 2018 at 12:59 AM Arnd Bergmann wrote: > > On Fri, Oct 26, 2018 at 6:33 PM Sunil Kovvuri wrote: > > On Fri, Oct 26, 2018 at 9:56 PM Sunil Kovvuri > > wrote: > > > On Fri, Oct 26, 2018 at 7:34 PM Arnd Bergmann wrote: > > > > > On 10/26/18, Sunil Kovvuri wrote: > > > > > On Fri,

Re: [PATCH] net/packet: support vhost mrg_rxbuf

2018-10-28 Thread Jianfeng Tan
On 10/29/2018 10:54 AM, Jason Wang wrote: On 2018/10/27 下午8:04, Jianfeng Tan wrote: Previouly, virtio net header size is hardcoded to be 10, which makes the feature mrg_rxbuf not available. We redefine PACKET_VNET_HDR ioctl which treats user input as boolean, but now as int, 0, 10, 12, or ev

[PATCH v2 bpf-next] bpf: Extend the sk_lookup() helper to XDP hookpoint.

2018-10-28 Thread Nitin Hande
This patch proposes to extend the sk_lookup() BPF API to the XDP hookpoint. The sk_lookup() helper supports a lookup on incoming packet to find the corresponding socket that will receive this packet. Current support for this BPF API is at the tc hookpoint. This patch will extend this API at XDP h

Re: [PATCH] net/packet: fix packet drop as of virtio gso

2018-10-28 Thread Jianfeng Tan
On 10/29/2018 10:40 AM, Jason Wang wrote: On 2018/10/28 上午7:42, Jianfeng Tan wrote: On 10/8/2018 11:14 AM, Jason Wang wrote: On 2018年09月29日 23:41, Jianfeng Tan wrote: When we use raw socket as the vhost backend, a packet from virito with gso offloading information, cannot be sent out in

Re: [v2, PATCH 0/2] add Ethernet driver support for mt2712

2018-10-28 Thread biao huang
On Mon, 2018-10-29 at 11:04 +0800, Biao Huang wrote: > The mt2712 Ethernet IP is from Synopsys, so extend stmmac to support mt2712. > sorry, I forgot to add detail descriptions for these patches. changes in v2: --since STMMAC driver applied to most Synopsys ip Ethernet, I add dwmac-mediatek.c to

Re: [GIT] Networking

2018-10-28 Thread Linus Torvalds
On Sun, Oct 28, 2018 at 7:46 PM David Miller wrote: > > Please pull, thanks a lot! Pulled, Linus

[PATCH 2/2] dt-binding: mediatek-dwmac: add binding document for MediaTek MT2712 DWMAC

2018-10-28 Thread Biao Huang
The commit adds the device tree binding documentation for the MediaTek DWMAC found on MediaTek MT2712. Signed-off-by: Biao Huang --- .../devicetree/bindings/net/mediatek-dwmac.txt | 49 1 file changed, 49 insertions(+) create mode 100644 Documentation/devicetree/bindi

[v2, PATCH 0/2] add Ethernet driver support for mt2712

2018-10-28 Thread Biao Huang
The mt2712 Ethernet IP is from Synopsys, so extend stmmac to support mt2712.

[PATCH 1/2] net:stmmac: dwmac-mediatek: add support for mt2712

2018-10-28 Thread Biao Huang
Add Ethernet support for MediaTek SoCs from the mt2712 family Signed-off-by: Biao Huang --- drivers/net/ethernet/stmicro/stmmac/Kconfig|8 + drivers/net/ethernet/stmicro/stmmac/Makefile |1 + .../net/ethernet/stmicro/stmmac/dwmac-mediatek.c | 364 3

Re: [PATCH] net/packet: support vhost mrg_rxbuf

2018-10-28 Thread Jason Wang
On 2018/10/27 下午8:04, Jianfeng Tan wrote: Previouly, virtio net header size is hardcoded to be 10, which makes the feature mrg_rxbuf not available. We redefine PACKET_VNET_HDR ioctl which treats user input as boolean, but now as int, 0, 10, 12, or everything else be treated as 10. There will

[GIT] Networking

2018-10-28 Thread David Miller
1) GRO overflow entries are not unlinked properly, resulting in list poison pointers being dereferenced. 2) Fix bridge build with ipv6 disabled, from Nikolay Aleksandrov. 3) Direct packet access and other fixes in BPF from Daniel Borkmann. 4) gred_change_table_def() gets passed the wrong po

Re: [PATCH v3 2/2] net: qcom/emac: add phy-handle support for ACPI

2018-10-28 Thread Wang, Dongsheng
On 2018/10/26 21:12, Andrew Lunn wrote: > On Fri, Oct 26, 2018 at 03:04:25AM +, Wang, Dongsheng wrote: >> On 2018/10/26 10:37, Timur Tabi wrote: >>> On 10/25/18 9:18 PM, Wang, Dongsheng wrote: But when I was reading Documentation/acpi/DSD-properties-rules.txt, my understanding is we s

Re: [PATCH] net/packet: fix packet drop as of virtio gso

2018-10-28 Thread Jason Wang
On 2018/10/28 上午7:42, Jianfeng Tan wrote: On 10/8/2018 11:14 AM, Jason Wang wrote: On 2018年09月29日 23:41, Jianfeng Tan wrote: When we use raw socket as the vhost backend, a packet from virito with gso offloading information, cannot be sent out in later validaton at xmit path, as we did not

Re: [PATCH net] net: diag: document swapped src/dst in udp_dump_one.

2018-10-28 Thread David Miller
From: Lorenzo Colitti Date: Mon, 29 Oct 2018 09:15:22 +0900 > Since its inception, udp_dump_one has had a bug where userspace > needs to swap src and dst addresses and ports in order to find > the socket it wants. This is because it passes the socket source > address to __udp[46]_lib_lookup's sad

Re: [PATCH net 0/2] macsec: linkstate fixes

2018-10-28 Thread David Miller
From: Sabrina Dubroca Date: Sun, 28 Oct 2018 09:33:08 +0100 > This series fixes issues with handling administrative and operstate of > macsec devices. > > Radu Rendec proposed another version of the first patch [0] but I'd > rather not follow the behavior of vlan devices, going with macvlan > do

Re: [PATCH net] net: sched: gred: pass the right attribute to gred_change_table_def()

2018-10-28 Thread David Miller
From: Jakub Kicinski Date: Fri, 26 Oct 2018 15:51:06 -0700 > gred_change_table_def() takes a pointer to TCA_GRED_DPS attribute, > and expects it will be able to interpret its contents as > struct tc_gred_sopt. Pass the correct gred attribute, instead of > TCA_OPTIONS. > > This bug meant the tab

Re: [Patch V3 net 05/11] net: hns3: remove unnecessary queue reset in the hns3_uninit_all_ring()

2018-10-28 Thread tanhuazhong
On 2018/10/28 16:09, Sergei Shtylyov wrote: Hello! On 28.10.2018 6:34, Huazhong Tan wrote: It is not necessary to reset the queue in the hns3_uninit_all_ring(), since the queue is stopped in the down operation, and will be reset in the up operaton. And the judgment of the HCLGE_STATE_RST_HA

[PATCH net] Documentation: ip-sysctl.txt: Document tcp_fwmark_accept

2018-10-28 Thread Lorenzo Colitti
This patch documents the tcp_fwmark_accept sysctl that was added in 3.15. Signed-off-by: Lorenzo Colitti --- Documentation/networking/ip-sysctl.txt | 11 +++ 1 file changed, 11 insertions(+) diff --git a/Documentation/networking/ip-sysctl.txt b/Documentation/networking/ip-sysctl.txt in

[PATCH net] net: diag: document swapped src/dst in udp_dump_one.

2018-10-28 Thread Lorenzo Colitti
Since its inception, udp_dump_one has had a bug where userspace needs to swap src and dst addresses and ports in order to find the socket it wants. This is because it passes the socket source address to __udp[46]_lib_lookup's saddr argument, but those functions are intended to find local sockets ma

Re: [PATCH net] rtnetlink: Disallow FDB configuration for non-Ethernet device

2018-10-28 Thread David Ahern
On 10/27/18 2:39 PM, Ido Schimmel wrote: > When an FDB entry is configured, the address is validated to have the > length of an Ethernet address, but the device for which the address is > configured can be of any type. > > The above can result in the use of uninitialized memory when the address >

Re: [PATCH 1/1] macsec: reflect the master interface state

2018-10-28 Thread Radu Rendec
On Mon, 2018-10-01 at 14:52 +0200, Sabrina Dubroca wrote: > 2018-09-19, 12:44:41 -0400, Radu Rendec wrote: > > Hello, > > Gah, sorry, this fell into the "week-end" crack and I forgot to answer :( No worries. I was on vacation in the meantime, hence my late reply. > > On Wed, Sep 19, 2018 at 11:24

[PATCH v2] bonding: fix length of actor system

2018-10-28 Thread Tobias Jungel
The attribute IFLA_BOND_AD_ACTOR_SYSTEM is sent to user space having the length of sizeof(bond->params.ad_actor_system) which is 8 byte. This patch aligns the length to ETH_ALEN to have the same MAC address exposed as using sysfs. Fixes: f87fda00b6ed2 ("bonding: prevent out of bound accesses") Si

Re: [RFC net-next v2 1/8] net: sched: register callbacks for indirect tc block binds

2018-10-28 Thread Or Gerlitz
On Thu, Oct 25, 2018 at 3:28 PM John Hurley wrote: > Currently drivers can register to receive TC block bind/unbind callbacks > by implementing the setup_tc ndo in any of their given netdevs. However, > drivers may also be interested in binds to higher level devices (e.g. > tunnel drivers) to pote

Re: iproute2: fix build on glibc < 2.21 / uClibc

2018-10-28 Thread Petr Vorel
Subject: [iproute] utils.h: provide fallback CLOCK_TAI definition In-Reply-To: <20181027153102.32302-1-pe...@korsgaard.com> To: Stephen Hemminger , Vinicius Costa Gomes Cc: netdev@vger.kernel.org, Peter Korsgaard From: Petr Vorel List-Id: > q_{etf,taprio}.c uses CLOCK_TAI, which isn't exposed

[PATCH net 0/2] macsec: linkstate fixes

2018-10-28 Thread Sabrina Dubroca
This series fixes issues with handling administrative and operstate of macsec devices. Radu Rendec proposed another version of the first patch [0] but I'd rather not follow the behavior of vlan devices, going with macvlan does instead. Patrick Talbert also reported the same issue to me. The secon

[PATCH net 2/2] macsec: let the administrator set UP state even if lowerdev is down

2018-10-28 Thread Sabrina Dubroca
Currently, the kernel doesn't let the administrator set a macsec device up unless its lower device is currently up. This is inconsistent, as a macsec device that is up won't automatically go down when its lower device goes down. Now that linkstate propagation works, there's really no reason for th

[PATCH net 1/2] macsec: update operstate when lower device changes

2018-10-28 Thread Sabrina Dubroca
Like all other virtual devices (macvlan, vlan), the operstate of a macsec device should match the state of its lower device. This is done by calling netif_stacked_transfer_operstate from its netdevice notifier. We also need to call netif_stacked_transfer_operstate when a new macsec device is creat

Re: [Patch V3 net 05/11] net: hns3: remove unnecessary queue reset in the hns3_uninit_all_ring()

2018-10-28 Thread Sergei Shtylyov
Hello! On 28.10.2018 6:34, Huazhong Tan wrote: It is not necessary to reset the queue in the hns3_uninit_all_ring(), since the queue is stopped in the down operation, and will be reset in the up operaton. And the judgment of the HCLGE_STATE_RST_HANDLING Operation. flag in the hclge_reset