Re: net: stmmac: dwmac-rk: fixes for Wake-on-Lan on RK3288

2016-06-12 Thread Giuseppe CAVALLARO
On 6/11/2016 3:00 AM, Vincent Palatin wrote: In order to support Wake-On-Lan when using the RK3288 integrated MAC (with an external RGMII PHY), we need to avoid shutting down the regulator of the external PHY when the MAC is suspended as it's currently done in the MAC platform code. As a first st

Re: udp failures traced to e858fae2b0b8

2016-06-12 Thread Mike Rapoport
Hi David, On Sun, Jun 12, 2016 at 08:47:20PM -0600, David Ahern wrote: > Mike: > > UDP tests in my vrf unit test suite are failing. git bisect points to: Are you testing host or guest kernel? If it's the host, can you please check if the patch below helps? > dsa@kenny:~/kernel-2.git$ git bise

[PATCH net-next 11/11] bnxt_en: Support new ETHTOOL_{G|S}LINKSETTINGS API.

2016-06-12 Thread Michael Chan
To fully support 25G and 50G link settings. Signed-off-by: Michael Chan --- drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c | 198 +- 1 file changed, 118 insertions(+), 80 deletions(-) diff --git a/drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c b/drivers/net/ethernet/b

[PATCH net-next 01/11] bnxt_en: Add function for VF driver to query default VLAN.

2016-06-12 Thread Michael Chan
The PF can setup a default VLAN for a VF. The default VLAN tag is automatically inserted and stripped without the knowledge of the stack running on the VF. The VF driver needs to know that default VLAN is enabled as VLAN acceleration on the RX side is no longer supported. Call netdev_update_feat

[PATCH net-next 10/11] bnxt_en: Don't allow autoneg on cards that don't support it.

2016-06-12 Thread Michael Chan
Some cards do not support autoneg. The current code does not prevent the user from enabling autoneg with ethtool on such cards, causing confusion. Firmware provides the autoneg capability information and we just need to store it in the support_auto_speeds field in bnxt_link_info struct. The ethtoo

[PATCH net-next 05/11] bnxt_en: Add PCI device ID for 57404 NPAR devices.

2016-06-12 Thread Michael Chan
Signed-off-by: Michael Chan --- drivers/net/ethernet/broadcom/bnxt/bnxt.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/net/ethernet/broadcom/bnxt/bnxt.c b/drivers/net/ethernet/broadcom/bnxt/bnxt.c index 9d785e6..1cf885a 100644 --- a/drivers/net/ethernet/broadcom/bnxt/bnxt.c +++

[PATCH net-next 03/11] bnxt_en: Handle VF_CFG_CHANGE event from firmware.

2016-06-12 Thread Michael Chan
When the VF driver gets this event, the VF configuration has changed (such as default VLAN). The VF driver will initiate a silent reset to pick up the new configuration. Signed-off-by: Michael Chan --- drivers/net/ethernet/broadcom/bnxt/bnxt.c | 9 + drivers/net/ethernet/broadcom/bnxt/b

[PATCH net-next 06/11] bnxt_en: Define the supported chip numbers.

2016-06-12 Thread Michael Chan
Define all the supported chip numbers and chip categories. Store the chip_num returned by firmware. If the call to get the version and chip number fails, we should abort. Signed-off-by: Michael Chan --- drivers/net/ethernet/broadcom/bnxt/bnxt.c | 6 - drivers/net/ethernet/broadcom/bnxt/bn

[PATCH net-next 04/11] bnxt_en: Enable NPAR (NIC Partitioning) Support.

2016-06-12 Thread Michael Chan
From: Satish Baddipadige NPAR type is read from bnxt_hwrm_func_qcfg. Do not allow changing link parameters if in NPAR mode sinc ethe port is shared among multiple partitions. The link parameters are set up by firmware. Signed-off-by: Satish Baddipadige Signed-off-by: Michael Chan --- driver

[PATCH net-next 00/11] bnxt_en: Updates for net-next.

2016-06-12 Thread Michael Chan
-Add default VLAN support for VFs. -Add NPAR (NIC partioning) support. -Add support for new device 5731x and 5741x. GRO logic is different. -Support new ETHTOOL_{G|S}LINKSETTINGS. Please review. Thanks. Michael Chan (10): bnxt_en: Add function for VF driver to query default VLAN. bnxt_en: Ad

[PATCH net-next 09/11] bnxt_en: Add BCM5731X and BCM5741X device IDs.

2016-06-12 Thread Michael Chan
Signed-off-by: Michael Chan --- drivers/net/ethernet/broadcom/bnxt/bnxt.c | 30 +- 1 file changed, 29 insertions(+), 1 deletion(-) diff --git a/drivers/net/ethernet/broadcom/bnxt/bnxt.c b/drivers/net/ethernet/broadcom/bnxt/bnxt.c index 5f9285c..c275329 100644 --- a/d

[PATCH net-next 02/11] bnxt_en: Add new function bnxt_reset().

2016-06-12 Thread Michael Chan
When a default VLAN is added to the VF, the VF driver needs to reset to pick up the default VLAN ID. We can use the same tx timeout reset logic to do that, without the debug output. This new function, with the silent parameter to suppress debug output will now serve both purposes. Signed-off-by:

[PATCH net-next 08/11] bnxt_en: Add GRO logic for BCM5731X chips.

2016-06-12 Thread Michael Chan
Add bnxt_gro_func_5731x() to handle GRO packets for this chip. The completion structures used in the new chip have new data to help determine the header offsets. The offsets can be off by 4 if the packet is an internal loopback packet (e.g. from one VF to another VF). Some additional logic is ad

[PATCH net-next 07/11] bnxt_en: Refactor bnxt_gro_skb().

2016-06-12 Thread Michael Chan
Newer chips require different logic to handle GRO packets. So refactor the code so that we can call different functions depending on the chip. Signed-off-by: Michael Chan --- drivers/net/ethernet/broadcom/bnxt/bnxt.c | 52 --- drivers/net/ethernet/broadcom/bnxt/bnxt.

[PATCH 3/3] net: hisilicon: Add Fast Ethernet MAC driver

2016-06-12 Thread Dongpo Li
This patch adds the Hisilicon Fast Ethernet MAC(FEMAC) driver. The FEMAC supports max speed 100Mbps and has been used in many Hisilicon SoC. Reviewed-by: Jiancheng Xue Signed-off-by: Dongpo Li --- .../devicetree/bindings/net/hisilicon-femac.txt| 40 + drivers/net/ethernet/hisilicon/Kconfi

[PATCH 0/3] Add Hisilicon MDIO bus driver and FEMAC driver

2016-06-12 Thread Dongpo Li
This patch set adds a Hisilicon MDIO bus driver and a Fast Ethernet MAC(FEMAC) driver. We found that most ethernet mac drivers use the same ethtool get_settings and set_settings, so this patch set also adds common functions for get and set settings. Dongpo Li (3): net: Add MDIO bus driver for th

[PATCH 2/3] ethtool: Add common functions for get and set settings

2016-06-12 Thread Dongpo Li
Currently, most drivers only support get and set PHY settings by PHY ethtool API. For those drivers, it's better to supply common functions for get_settings and set_settings. This patch adds common functions implementation. Reviewed-by: Jiancheng Xue Signed-off-by: Dongpo Li --- include/linux/e

[PATCH 1/3] net: Add MDIO bus driver for the Hisilicon FEMAC

2016-06-12 Thread Dongpo Li
This patch adds a separate driver for the MDIO interface of the Hisilicon Fast Ethernet MAC. Reviewed-by: Jiancheng Xue Signed-off-by: Dongpo Li --- .../bindings/net/hisilicon-femac-mdio.txt | 22 +++ drivers/net/phy/Kconfig| 8 + drivers/net/phy/Makefile

[PATCH 2/3] netlink: add an ability to restore messages in a receive queue

2016-06-12 Thread Andrey Vagin
This patch adds an repair mode for netlink sockets. sendmsg queues messages into a receive queue if a socket is in the repair mode. Signed-off-by: Andrey Vagin --- include/uapi/linux/netlink.h | 1 + net/netlink/af_netlink.c | 50 +++- 2 files changed

[PATCH 1/3] netlink: allow to set peeking offset for sockets

2016-06-12 Thread Andrey Vagin
This allows us to read socket's queue without removing skbs from it. The same logic was implemented for unix and inet sockets and we use this to dump and restore sockets in CRIU. Here is a question whether sk_peek_off has to be protected by locks. Currently it isn't protected and an user who uses

[PATCH net-next 0/3] [RFC] netlink: prepare to dump and restore data from a receive queue

2016-06-12 Thread Andrey Vagin
CRIU can dump queued data for unix and tcp sockets, now it's time for netlink sockets. Here are there questions. * How to dump data from a receive queue We can set peeking offset like we do for unix sockets. * How to restore data back to a receive queue I suggest to add a repair mode like we

[PATCH 3/3] netlink/diag: report flags for netlink sockets

2016-06-12 Thread Andrey Vagin
We need to know flags for dumping and restoring netlink sockets. All flags except NDIAG_FLAG_CB_RUNNING can be received with help of getsockopt(), but in this case we need a socket descriptor and we need to call getsockopt() to get each flag. With this chages we will be able to show netlink socke

Re: [PATCH 0/6] eBPF JIT for PPC64

2016-06-12 Thread Naveen N. Rao
On 2016/06/10 10:47PM, David Miller wrote: > From: "Naveen N. Rao" > Date: Tue, 7 Jun 2016 19:02:17 +0530 > > > Please note that patch [2] is a pre-requisite for this patchset, and is > > not yet upstream. > ... > > [1] http://thread.gmane.org/gmane.linux.kernel/2188694 > > [2] http://thread.gm

Re: [PATCH ipvs-next] ipvs: count pre-established TCP states as active

2016-06-12 Thread Simon Horman
On Sun, Jun 12, 2016 at 06:27:39PM +0300, Julian Anastasov wrote: > > Hello, > > On Fri, 3 Jun 2016, Michal Kubecek wrote: > > > Some users observed that "least connection" distribution algorithm doesn't > > handle well bursts of TCP connections from reconnecting clients after > > a node o

[PATCH net] net_sched: prio: rollback allocations if prio_init() fails

2016-06-12 Thread Eric Dumazet
From: Eric Dumazet Now prio_init() can return -ENOMEM, it also has to make sure any allocated qdisc are freed, since the caller (qdisc_create()) wont call ->destroy() handler for us. Fixes: cbdf45116478 ("net_sched: prio: properly report out of memory errors") Signed-off-by: Eric Dumazet Report

Re: [PATCH net] net_sched: prio: properly report out of memory errors

2016-06-12 Thread Eric Dumazet
On Sun, 2016-06-12 at 20:45 -0700, Cong Wang wrote: > On Sun, Jun 12, 2016 at 4:21 PM, Eric Dumazet wrote: > > + struct Qdisc *child; > > + > > + if (q->queues[i] != &noop_qdisc) > > + continue; > > + > > + child = qdisc_create_dflt(s

Re: [PATCH net] net_sched: fix pfifo_head_drop behavior vs backlog

2016-06-12 Thread Cong Wang
On Sun, Jun 12, 2016 at 8:01 PM, Eric Dumazet wrote: > From: Eric Dumazet > > When the qdisc is full, we drop a packet at the head of the queue, > queue the current skb and return NET_XMIT_CN > > Now we track backlog on upper qdiscs, we need to call > qdisc_tree_reduce_backlog(), even if the qlen

Re: [PATCH net] net_sched: prio: properly report out of memory errors

2016-06-12 Thread Cong Wang
On Sun, Jun 12, 2016 at 4:21 PM, Eric Dumazet wrote: > + struct Qdisc *child; > + > + if (q->queues[i] != &noop_qdisc) > + continue; > + > + child = qdisc_create_dflt(sch->dev_queue, &pfifo_qdisc_ops, > +

Re: [PATCH] netfilter/nflog: nflog-range does not truncate packets

2016-06-12 Thread Vishwanath Pai
On 06/09/2016 01:57 PM, Vishwanath Pai wrote: > On 06/08/2016 08:16 AM, Pablo Neira Ayuso wrote: >> Looking again at your code: >> >> case NFULNL_COPY_PACKET: >> - if (inst->copy_range > skb->len) >> + data_len = inst->copy_range; >> + if (li->u.ulo

Re: [PATCH v4] udp reuseport: fix packet of same flow hashed to different socket

2016-06-12 Thread Eric Dumazet
On Mon, 2016-06-13 at 11:02 +0800, Su Xuemin wrote: > From: "Su, Xuemin" > > There is a corner case in which udp packets belonging to a same > flow are hashed to different socket when hslot->count changes from 10 > to 11: ... > Signed-off-by: Su, Xuemin > Signed-off-by: Eric Dumazet > --- > I u

[PATCH v4] udp reuseport: fix packet of same flow hashed to different socket

2016-06-12 Thread Su Xuemin
From: "Su, Xuemin" There is a corner case in which udp packets belonging to a same flow are hashed to different socket when hslot->count changes from 10 to 11: 1) When hslot->count <= 10, __udp_lib_lookup() searches udp_table->hash, and always passes 'daddr' to udp_ehashfn(). 2) When hslot->cou

[PATCH net] net_sched: fix pfifo_head_drop behavior vs backlog

2016-06-12 Thread Eric Dumazet
From: Eric Dumazet When the qdisc is full, we drop a packet at the head of the queue, queue the current skb and return NET_XMIT_CN Now we track backlog on upper qdiscs, we need to call qdisc_tree_reduce_backlog(), even if the qlen did not change. Fixes: 2f5fb43f ("net_sched: update hierarch

udp failures traced to e858fae2b0b8

2016-06-12 Thread David Ahern
Mike: UDP tests in my vrf unit test suite are failing. git bisect points to: dsa@kenny:~/kernel-2.git$ git bisect good e858fae2b0b8f41f0bed2cdffde25e7c97da38a7 is the first bad commit commit e858fae2b0b8f41f0bed2cdffde25e7c97da38a7 Author: Mike Rapoport Date: Wed Jun 8 16:09:21 2016 +0300

Re: [RFC] Handle error writing UINT_MAX to u32 fields

2016-06-12 Thread subashab
The suggested change would extend the usable range of positive numbers by one bit only. As many systems are 64 bit this does not seem forward looking. I would prefer to have a routine that can handle 64 bit integers with limits (let's call it proc_doint64vec_minmax) which uses fields extra1 and e

Re: [very-RFC 6/8] Add TSN event-tracing

2016-06-12 Thread Steven Rostedt
On Sun, 12 Jun 2016 23:25:10 +0200 Henrik Austad wrote: > > > +#include > > > +#include > > > +/* #include */ > > > + > > > +/* FIXME: update to TRACE_CLASS to reduce overhead */ > > > > I'm curious to why I didn't do this now. A class would make less > > duplication of typing too ;-) >

Re: [PATCH v2 -next] sched: remove NET_XMIT_POLICED

2016-06-12 Thread David Miller
From: Cong Wang Date: Sat, 11 Jun 2016 17:14:09 -0700 > On Sat, Jun 11, 2016 at 3:54 PM, David Miller wrote: >> From: Florian Westphal >> Date: Sat, 11 Jun 2016 12:46:04 +0200 >> >>> sch_atm returns this when TC_ACT_SHOT classification occurs. >>> >>> But all other schedulers that use tc_classi

Re: [PATCH] net: ethernet: ti: cpsw: use destroy ctlr to destroy channels

2016-06-12 Thread David Miller
From: Ivan Khoronzhuk Date: Sat, 11 Jun 2016 01:11:54 +0300 > There is no reason to destroy channels that are destroyed while > cpdma_ctlr destroy. In this case no need to remember how much > channels where created and destroy them by one, as cpdma_ctlr > destroys all of them. > > Signed-off-by:

Re: [PATCH net-next RFT] net: fec: handle small PHY reset durations more precisely

2016-06-12 Thread David Miller
From: Stefan Wahren Date: Wed, 8 Jun 2016 20:42:46 + > Since msleep is based on jiffies the PHY reset could take longer > than expected. So use msleep for values greater than 20 msec otherwise > usleep_range. > > Signed-off-by: Stefan Wahren Applied.

Re: [PATCH net] net_sched: prio: properly report out of memory errors

2016-06-12 Thread David Miller
From: Eric Dumazet Date: Sun, 12 Jun 2016 16:21:47 -0700 > From: Eric Dumazet > > At Qdisc creation or change time, prio_tune() creates missing > pfifo qdiscs but does not return an error code if one > qdisc could not be allocated. > > Leaving a qdisc in non operational state without telling u

RE: [PATCH v2 1/2] ARM: imx6: disable deeper idle states when FEC is active w/o HW workaround

2016-06-12 Thread Fugang Duan
From: Lucas Stach Sent: Thursday, June 09, 2016 5:35 PM > To: Fugang Duan ; Shawn Guo > Cc: devicet...@vger.kernel.org; patchwork-...@pengutronix.de; > ker...@pengutronix.de; linux-arm-ker...@lists.infradead.org; > netdev@vger.kernel.org > Subject: Re: [PATCH v2 1/2] ARM: imx6: disable deeper idl

[PATCH] esp: correct offset for ESN when using NAT-T

2016-06-12 Thread Blair Steven
The offset for calculating ESN was not taking into account the new UDP header created for NAT-T. --- net/ipv4/esp4.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/net/ipv4/esp4.c b/net/ipv4/esp4.c index 4779374..c84d1fc 100644 --- a/net/ipv4/esp4.c +++ b/net/ipv4/esp4.c @@ -223,6 +223,8 @@

[PATCH] IPsec NAT-T issue

2016-06-12 Thread Blair Steven
During testing we have discovered an issue with IPsec NAT-T where the SPI is over writing the source and dest ports of the UDP header. I'm not super familiar with this code, but I've found a solution that seems to work in my setup. I'd like some feedback on this please, if it's the right thing to

Re: off-by-one in DecodeQ931

2016-06-12 Thread Toby DiPasquale
Attached is the patch generated with git format-patch. On Mon, Jun 6, 2016 at 10:55 AM, Pablo Neira Ayuso wrote: > On Mon, Jun 06, 2016 at 04:35:55PM +0200, Florian Westphal wrote: >> Toby DiPasquale wrote: >> > Is this latest patch OK? >> >> Yes, I don't know why it wasn't applied yet. >> >> Pa

[PATCH net] net_sched: prio: properly report out of memory errors

2016-06-12 Thread Eric Dumazet
From: Eric Dumazet At Qdisc creation or change time, prio_tune() creates missing pfifo qdiscs but does not return an error code if one qdisc could not be allocated. Leaving a qdisc in non operational state without telling user anything about this problem is not good. Also, testing if we replace

Re: [PATCH net] fib_rules: don't break ECN with TOS rules

2016-06-12 Thread David Ahern
On 6/11/16 3:10 PM, Hannes Frederic Sowa wrote: @@ -215,6 +216,9 @@ static int fib4_rule_configure(struct fib_rule *rule, struct sk_buff *skb, rule4->dst_len = frh->dst_len; rule4->dstmask = inet_make_mask(rule4->dst_len); rule4->tos = frh->tos; + if (!INET_ECN_igno

Re: [very-RFC 0/8] TSN driver for the kernel

2016-06-12 Thread Henrik Austad
On Sun, Jun 12, 2016 at 07:43:34PM +0900, Takashi Sakamoto wrote: > On Jun 12 2016 17:31, Henrik Austad wrote: > > On Sun, Jun 12, 2016 at 01:30:24PM +0900, Takashi Sakamoto wrote: > >> On Jun 12 2016 12:38, Takashi Sakamoto wrote: > >>> In your patcset, there's no actual codes about how to handle

QUICK LOAN OFFER

2016-06-12 Thread International Loan Firm

[iproute2 PATCH 1/1] action pedit: stylistic changes

2016-06-12 Thread Jamal Hadi Salim
From: Jamal Hadi Salim More modern layout. Signed-off-by: Jamal Hadi Salim --- tc/m_pedit.c | 118 +++ 1 file changed, 62 insertions(+), 56 deletions(-) diff --git a/tc/m_pedit.c b/tc/m_pedit.c index a539b68..d276ba0 100644 --- a/tc/m_pe

[PATCH] net: ethernet: enic: move to new ethtool api {get|set}_link_ksettings

2016-06-12 Thread Philippe Reynes
The ethtool api {get|set}_settings is deprecated. We move the enic driver to new api {get|set}_link_ksettings. Signed-off-by: Philippe Reynes --- drivers/net/ethernet/cisco/enic/enic_ethtool.c | 28 +-- 1 files changed, 16 insertions(+), 12 deletions(-) diff --git a/driver

Re: [RFC PATCH iproute2] tc: let m_ipt work with new iptables API headers

2016-06-12 Thread Alexander Aring
Hi, On 05/29/2016 08:27 PM, Alexander Aring wrote: > Since commit 5cd1adb ("Update to current iptables headers") the build > with m_ipt.o and the following config will fail: > > TC_CONFIG_XT:=n > TC_CONFIG_XT_OLD:=n > TC_CONFIG_XT_OLD_H:=n > > This patch renames "iptables_target" to "xtables_ta

Re: [very-RFC 6/8] Add TSN event-tracing

2016-06-12 Thread Henrik Austad
On Sun, Jun 12, 2016 at 12:58:03PM -0400, Steven Rostedt wrote: > On Sun, 12 Jun 2016 01:01:34 +0200 > Henrik Austad wrote: > > > From: Henrik Austad > > > > This needs refactoring and should be updated to use TRACE_CLASS, but for > > now it provides a fair debug-window into TSN. > > > > Cc: "

[net-next PATCH v2 1/1] net sched actions: skbedit add support for mod-ing skb pkt_type

2016-06-12 Thread Jamal Hadi Salim
From: Jamal Hadi Salim Extremely useful for setting packet type to host so i dont have to modify the dst mac address using pedit (which requires that i know the mac address) Signed-off-by: Jamal Hadi Salim --- include/net/tc_act/tc_skbedit.h| 10 +- include/uapi/linux/tc_act/tc

Re: [net-next PATCH 1/1] net sched actions: skbedit add support for mod-ing skb pkt_type

2016-06-12 Thread Jamal Hadi Salim
On 16-06-12 05:12 PM, Jamal Hadi Salim wrote: From: Jamal Hadi Salim Extremely useful for setting packet type to host so i dont have to modify the dst mac address using pedit (which requires that i know the mac address) Signed-off-by: Jamal Hadi Salim Please ignore this version; dumping was

[net-next PATCH 1/1] net sched actions: skbedit add support for mod-ing skb pkt_type

2016-06-12 Thread Jamal Hadi Salim
From: Jamal Hadi Salim Extremely useful for setting packet type to host so i dont have to modify the dst mac address using pedit (which requires that i know the mac address) Signed-off-by: Jamal Hadi Salim --- include/net/tc_act/tc_skbedit.h| 10 +- include/uapi/linux/tc_act/tc

Re: ebpf: issue with clang

2016-06-12 Thread Eric Leblond
Hello, On Sun, 2016-06-12 at 20:35 +0200, Daniel Borkmann wrote: > On 06/12/2016 07:37 PM, Eric Leblond wrote: > > On Thu, 2016-06-09 at 17:34 -0700, Alexei Starovoitov wrote: > > > On Thu, Jun 09, 2016 at 11:10:05PM +0200, Eric Leblond wrote: > > > > Hello, > > > > > > > > I'm working on integra

Re: ebpf: issue with clang

2016-06-12 Thread Daniel Borkmann
On 06/12/2016 07:37 PM, Eric Leblond wrote: On Thu, 2016-06-09 at 17:34 -0700, Alexei Starovoitov wrote: On Thu, Jun 09, 2016 at 11:10:05PM +0200, Eric Leblond wrote: Hello, I'm working on integrating ebpf cluster load balancing for AF_PACKET and I've got some problem to get real code inside t

Re: [PATCH 1/5] ethernet: add sun8i-emac driver

2016-06-12 Thread Florian Fainelli
Le 09/06/2016 02:44, LABBE Corentin a écrit : > Hello > > I agree to all your comments, but for some I have additionnal questions > > On Mon, Jun 06, 2016 at 11:25:15AM -0700, Florian Fainelli wrote: >> On 06/03/2016 02:56 AM, LABBE Corentin wrote: >> >> [snip] >> >>> + >>> +/* The datasheet said

Re: ebpf: issue with clang

2016-06-12 Thread Eric Leblond
Hello, On Thu, 2016-06-09 at 17:34 -0700, Alexei Starovoitov wrote: > On Thu, Jun 09, 2016 at 11:10:05PM +0200, Eric Leblond wrote: > > Hello, > > > > I'm working on integrating ebpf cluster load balancing for > > AF_PACKET > > and I've got some problem to get real code inside the EBPF filter. >

Re: [very-RFC 6/8] Add TSN event-tracing

2016-06-12 Thread Steven Rostedt
On Sun, 12 Jun 2016 01:01:34 +0200 Henrik Austad wrote: > From: Henrik Austad > > This needs refactoring and should be updated to use TRACE_CLASS, but for > now it provides a fair debug-window into TSN. > > Cc: "David S. Miller" > Cc: Steven Rostedt (maintainer:TRACING) > Cc: Ingo Molnar (m

Re: [PATCH] net: alx: Work around the DMA RX overflow issue

2016-06-12 Thread Eric Dumazet
On Sun, 2016-06-12 at 17:36 +0800, Feng Tang wrote: > Commit 26c5f03 uses a new skb allocator to avoid the RFD overflow > issue. > > But from debugging without datasheet, we found the error always > happen when the DMA RX address is set to 0xfc0, which is very > likely to be a HW/silicon probl

Re: [PATCH v3] udp reuseport: fix packet of same flow hashed to different socket

2016-06-12 Thread Eric Dumazet
On Sun, 2016-06-12 at 20:43 +0800, Su Xuemin wrote: > From: "Su, Xuemin" ... > Signed-off-by: Su, Xuemin > Signed-off-by: Eric Dumazet > --- First, I want to thank you for this very high quality submission, especially if this is your first linux kernel patch. I have one additional comment to

Re: [PATCH ipvs-next] ipvs: count pre-established TCP states as active

2016-06-12 Thread Julian Anastasov
Hello, On Fri, 3 Jun 2016, Michal Kubecek wrote: > Some users observed that "least connection" distribution algorithm doesn't > handle well bursts of TCP connections from reconnecting clients after > a node or network failure. > > This is because the algorithm counts active connection a

[PATCH v3] udp reuseport: fix packet of same flow hashed to different socket

2016-06-12 Thread Su Xuemin
From: "Su, Xuemin" There is a corner case in which udp packets belonging to a same flow are hashed to different socket when hslot->count changes from 10 to 11: 1) When hslot->count <= 10, __udp_lib_lookup() searches udp_table->hash, and always passes 'daddr' to udp_ehashfn(). 2) When hslot->cou

Re: [PATCH net-next] ethtool: Macro definition for SFF-8436/8636 Memory map max sizes

2016-06-12 Thread Ben Hutchings
On Sat, 2016-06-11 at 19:26 -0700, David Miller wrote: > From: Vidya Sagar Ravipati > Date: Sat, 11 Jun 2016 16:22:38 -0700 > > > As part of ethtool application, application is requesting  the drivers > > to provide the supported eeprom size to allocate memory buffer for > > getting complete dump

Re: [PATCH net-next] ethtool: Macro definition for SFF-8436/8636 Memory map max sizes

2016-06-12 Thread Ben Hutchings
On Sat, 2016-06-11 at 15:51 -0700, David Miller wrote: [...] > Why do we need these values in the header file at all? Because we don't like putting magic numbers in driver code, and these sizes are defined by standards that are independent of a single driver. > The application can probe the size

Re: [linux-sunxi] [PATCH 0/5] net-next: ethernet: add sun8i-emac driver

2016-06-12 Thread Hans de Goede
Hi, On 03-06-16 11:56, LABBE Corentin wrote: Hello This patch series add the driver for sun8i-emac which handle the Ethernet MAC present on Allwinner H3/A83T/A64 SoCs. It supports 10/100/1000 Mbit/s speed with half/full duplex. It can use an internal PHY (MII 10/100) or an external PHY via RGM

Re: [PATCH] netlink.7: describe netlink socket options

2016-06-12 Thread Michael Kerrisk (man-pages)
Hi Andrey, On 06/10/2016 10:28 PM, Andrey Vagin wrote: > Cc: Kir Kolyshkin > Cc: Michael Kerrisk > Cc: Herbert Xu > Cc: Patrick McHardy > Cc: Christophe Ricard > Cc: Nicolas Dichtel > Signed-off-by: Andrey Vagin > --- > man7/netlink.7 | 75 > +++

Re: [very-RFC 0/8] TSN driver for the kernel

2016-06-12 Thread Takashi Sakamoto
On Jun 12 2016 17:31, Henrik Austad wrote: > On Sun, Jun 12, 2016 at 01:30:24PM +0900, Takashi Sakamoto wrote: >> On Jun 12 2016 12:38, Takashi Sakamoto wrote: >>> In your patcset, there's no actual codes about how to handle any >>> interrupt contexts (software / hardware), how to handle packet pay

Re: [PATCH net] fib_rules: don't break ECN with TOS rules

2016-06-12 Thread Hannes Frederic Sowa
On Sun, Jun 12, 2016, at 11:28, Julian Anastasov wrote: > > Hello, > > On Sun, 12 Jun 2016, Hannes Frederic Sowa wrote: > > > On Sun, Jun 12, 2016, at 02:09, Julian Anastasov wrote: > > > > > > Well, may be the confusion comes from commit 89aef8921bfb > > > ("ipv4: Delete routing cache.

[PATCH net] ipv4: fix checksum annotation in udp4_csum_init

2016-06-12 Thread Hannes Frederic Sowa
Reported-by: Cong Wang Cc: Cong Wang Cc: Tom Herbert Fixes: 4068579e1e098fa ("net: Implmement RFC 6936 (zero RX csums for UDP/IPv6") Signed-off-by: Hannes Frederic Sowa --- net/ipv4/udp.c | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/net/ipv4/udp.c b/net/ipv4/udp.c

Re: [PATCH v9 11/22] IB/hns: Add IB device registration

2016-06-12 Thread Wei Hu (Xavier)
On 2016/6/9 14:26, Leon Romanovsky wrote: On Wed, Jun 01, 2016 at 11:37:53PM +0800, Lijun Ou wrote: This patch registered IB device when loaded, and unregistered IB device when removed. Signed-off-by: Wei Hu Signed-off-by: Nenglong Zhao Signed-off-by: Lijun Ou --- drivers/infiniband/hw/h

[PATCH] net: alx: Work around the DMA RX overflow issue

2016-06-12 Thread Feng Tang
Commit 26c5f03 uses a new skb allocator to avoid the RFD overflow issue. But from debugging without datasheet, we found the error always happen when the DMA RX address is set to 0xfc0, which is very likely to be a HW/silicon problem. So one idea is instead of adding a new allocator, why not j

Re: [PATCH net] fib_rules: don't break ECN with TOS rules

2016-06-12 Thread Julian Anastasov
Hello, On Sun, 12 Jun 2016, Hannes Frederic Sowa wrote: > On Sun, Jun 12, 2016, at 02:09, Julian Anastasov wrote: > > > > Well, may be the confusion comes from commit 89aef8921bfb > > ("ipv4: Delete routing cache.") where the 'tos &= IPTOS_RT_MASK;' > > line is lost from ip_route_in

Re: [very-RFC 0/8] TSN driver for the kernel

2016-06-12 Thread Takashi Sakamoto
On Jun 12 2016 17:28, Henrik Austad wrote: > On Sun, Jun 12, 2016 at 12:38:36PM +0900, Takashi Sakamoto wrote: >> I'm one of maintainers for ALSA firewire stack, which handles IEC >> 61883-1/6 and vendor-unique packets on IEEE 1394 bus for consumer >> recording equipments. >> (I'm not in MAINTAINER

Re: [very-RFC 0/8] TSN driver for the kernel

2016-06-12 Thread Henrik Austad
On Sun, Jun 12, 2016 at 01:30:24PM +0900, Takashi Sakamoto wrote: > On Jun 12 2016 12:38, Takashi Sakamoto wrote: > > In your patcset, there's no actual codes about how to handle any > > interrupt contexts (software / hardware), how to handle packet payload, > > and so on. Especially, for recent so

Re: [very-RFC 0/8] TSN driver for the kernel

2016-06-12 Thread Henrik Austad
On Sun, Jun 12, 2016 at 12:38:36PM +0900, Takashi Sakamoto wrote: > Hi, > > I'm one of maintainers for ALSA firewire stack, which handles IEC > 61883-1/6 and vendor-unique packets on IEEE 1394 bus for consumer > recording equipments. > (I'm not in MAINTAINERS because I'm a shy boy.) > > IEC 61883

Re: [ovs-dev] [PATCH net-next] NSH(Network Service Header) implementation

2016-06-12 Thread Yang, Yi
On Mon, Jun 06, 2016 at 05:45:08PM -0700, pravin shelar wrote: > On Mon, Jun 6, 2016 at 2:34 AM, Yi Yang wrote: > > IETF defined NSH(Network Service Header) for Service > > Function Chaining, this is an IETF draft > > > > https://tools.ietf.org/html/draft-ietf-sfc-nsh-05 > > > > It will be a IETF