Re: [PATCH net v3] net/sched: cls_api: Fix nooffloaddevcnt counter when indr block call success

2019-09-22 Thread wenxu
Hi John & Jakub There are some limitations for indirect tc callback work with  skip_sw ? BR wenxu On 9/19/2019 8:50 PM, Or Gerlitz wrote: > >> successfully bind with a real hw through indr block call, It also add >> nooffloadcnt counter. This counter will lead the rule add failed in >> fl_hw_r

one question about openvswitch flow_hash

2019-09-22 Thread Tonghao Zhang
Hi Pravin one question about openvswitch, why we add BUILD_BUG_ON in flow_hash? It is never be true, right ? flow_hash ... /* Make sure number of hash bytes are multiple of u32. */ BUILD_BUG_ON(sizeof(long) % sizeof(u32)); ...

[PATCH net-next] net: core: dev: replace state xoff flag comparison by netif_xmit_stopped method

2019-09-22 Thread jcfaracco
From: Julio Faracco Function netif_schedule_queue() has a hardcoded comparison between queue state and any xoff flag. This comparison does the same thing as method netif_xmit_stopped(). In terms of code clarity, it is better. See other methods like: generic_xdp_tx() and dev_direct_xmit(). Signed

Re: [PATCH net] net: openvswitch: fix possible memleak on createvport fails

2019-09-22 Thread Tonghao Zhang
On Sun, Sep 22, 2019 at 2:50 PM Hillf Danton wrote: > > On Sun, 22 Sep 2019 14:42 from Pravin Shelar > > >> > > >> On Sat, Sep 21, 2019 at 8:48 PM Hillf Danton wrote: > > >> Was that posted without netdev Cced? > > > > > > I do not see your patch on netdev patchwork, repost of the patch would >

Re: [PATCH net] ionic: Fix an error code in ionic_lif_alloc()

2019-09-22 Thread Jakub Kicinski
On Sat, 21 Sep 2019 08:59:26 +0300, Dan Carpenter wrote: > We need to set the error code on this path. Otherwise it probably > results in a NULL dereference down the line. > > Fixes: aa3198819bea ("ionic: Add RSS support") > Signed-off-by: Dan Carpenter Applied, thank you!

Re: [PATCH] net: stmmac: Fix page pool size

2019-09-22 Thread Jakub Kicinski
On Fri, 20 Sep 2019 19:01:27 +0200, Thierry Reding wrote: > From: Thierry Reding > > The size of individual pages in the page pool in given by an order. The > order is the binary logarithm of the number of pages that make up one of > the pages in the pool. However, the driver currently passes the

Re: [PATCH] net/core/dev: print rtnl kind as driver name for virtual devices

2019-09-22 Thread Jakub Kicinski
On Fri, 20 Sep 2019 15:15:55 +0300, Konstantin Khlebnikov wrote: > Device kind gives more information than only arbitrary device name. > > Signed-off-by: Konstantin Khlebnikov Hi Konstantin! These look like nice improvements, unfortunately the net-next tree is now closed [1], and will reopen so

Re: CONFIG_NET_TC_SKB_EXT

2019-09-22 Thread Jakub Kicinski
On Sun, 22 Sep 2019 14:51:44 +0300, Paul Blakey wrote: > The skb extension is currently used for miss path of software offloading OvS > rules with recirculation to tc. > However, we are also preparing patches to support the hardware side of things. > > After the userspace OvS patches to support c

Re: [PATCH 0/4] Attempt to fix regression with AR8035 speed downgrade

2019-09-22 Thread Russell King - ARM Linux admin
On Sun, Sep 22, 2019 at 11:02:13AM -0700, Florian Fainelli wrote: > On 9/22/2019 10:52 AM, Russell King - ARM Linux admin wrote: > > On Sun, Sep 22, 2019 at 06:53:35PM +0200, Andrew Lunn wrote: > >> On Sun, Sep 22, 2019 at 11:59:32AM +0100, Russell King - ARM Linux admin > >> wrote: > >>> Hi, > >>

Re: [PATCH bpf] selftests/bpf: test_progs: fix client/server race in tcp_rtt

2019-09-22 Thread Andrii Nakryiko
On Sun, Sep 22, 2019 at 12:10 PM Stanislav Fomichev wrote: > > This is the same problem I found earlier in test_sockopt_inherit: > there is a race between server thread doing accept() and client > thread doing connect(). Let's explicitly synchronize them via > pthread conditional variable. > > Fix

Re: Strange routing with VRF and 5.2.7+

2019-09-22 Thread David Ahern
On 9/20/19 9:57 AM, Ben Greear wrote: > On 9/10/19 6:08 PM, Ben Greear wrote: >> On 9/10/19 3:17 PM, Ben Greear wrote: >>> Today we were testing creating 200 virtual station vdevs on ath9k, >>> and using >>> VRF for the routing. >> >> Looks like the same issue happens w/out VRF, but there I have oo

Re: [PATCH net] ionic: Fix an error code in ionic_lif_alloc()

2019-09-22 Thread Shannon Nelson
On 9/20/19 10:59 PM, Dan Carpenter wrote: We need to set the error code on this path. Otherwise it probably results in a NULL dereference down the line. Fixes: aa3198819bea ("ionic: Add RSS support") Signed-off-by: Dan Carpenter --- drivers/net/ethernet/pensando/ionic/ionic_lif.c | 1 + 1 f

Re: [PATCH 0/4] Attempt to fix regression with AR8035 speed downgrade

2019-09-22 Thread Florian Fainelli
On 9/22/2019 10:52 AM, Russell King - ARM Linux admin wrote: > On Sun, Sep 22, 2019 at 06:53:35PM +0200, Andrew Lunn wrote: >> On Sun, Sep 22, 2019 at 11:59:32AM +0100, Russell King - ARM Linux admin >> wrote: >>> Hi, >>> >>> tinywrkb, please can you test this series to ensure that it fixes >>>

Re: [PATCH] net: dsa: microchip: Always set regmap stride to 1

2019-09-22 Thread Florian Fainelli
On 9/21/2019 10:53 AM, Marek Vasut wrote: > The regmap stride is set to 1 for regmap describing 8bit registers already. > However, for 16/32/64bit registers, the stride is 2/4/8 respectively. This > is not correct, as the switch protocol supports unaligned register reads > and writes and the KSZ

Re: [PATCH 0/4] Attempt to fix regression with AR8035 speed downgrade

2019-09-22 Thread Russell King - ARM Linux admin
On Sun, Sep 22, 2019 at 06:53:35PM +0200, Andrew Lunn wrote: > On Sun, Sep 22, 2019 at 11:59:32AM +0100, Russell King - ARM Linux admin > wrote: > > Hi, > > > > tinywrkb, please can you test this series to ensure that it fixes > > your problem - the previous version has turned out to be a non-sta

Re: [PATCH 0/4] Attempt to fix regression with AR8035 speed downgrade

2019-09-22 Thread Andrew Lunn
On Sun, Sep 22, 2019 at 11:59:32AM +0100, Russell King - ARM Linux admin wrote: > Hi, > > tinywrkb, please can you test this series to ensure that it fixes > your problem - the previous version has turned out to be a non-starter > as it introduces more problems, thanks! > > The following series a

Re: [PATCH 4/4] net: phy: at803x: use operating parameters from PHY-specific status

2019-09-22 Thread Andrew Lunn
On Sun, Sep 22, 2019 at 12:00:25PM +0100, Russell King wrote: > Read the PHY-specific status register for the current operating mode > (speed and duplex) of the PHY. This register reflects the actual > mode that the PHY has resolved depending on either the advertisements > of autoneg is enabled, o

Re: [PATCH 3/4] net: phy: extract pause mode

2019-09-22 Thread Andrew Lunn
On Sun, Sep 22, 2019 at 12:00:20PM +0100, Russell King wrote: > Extract the update of phylib's software pause mode state from > genphy_read_status(), so that we can re-use this functionality with > PHYs that have alternative ways to read the negotiation results. > > Signed-off-by: Russell King R

Re: [PATCH 2/4] net: phy: extract link partner advertisement reading

2019-09-22 Thread Andrew Lunn
On Sun, Sep 22, 2019 at 12:00:15PM +0100, Russell King wrote: > Move reading the link partner advertisement out of genphy_read_status() > into its own separate function. This will allow re-use of this code by > PHY drivers that are able to read the resolved status from the PHY. > > Signed-off-by:

Re: [PATCH 1/4] net: phy: fix write to mii-ctrl1000 register

2019-09-22 Thread Andrew Lunn
On Sun, Sep 22, 2019 at 12:00:10PM +0100, Russell King wrote: > When userspace writes to the MII_ADVERTISE register, we update phylib's > advertising mask and trigger a renegotiation. However, writing to the > MII_CTRL1000 register, which contains the gigabit advertisement, does > neither. This c

Re: [PATCH 0/4] Attempt to fix regression with AR8035 speed downgrade

2019-09-22 Thread tinywrkb
On Sun, Sep 22, 2019 at 11:59:32AM +0100, Russell King - ARM Linux admin wrote: > Hi, > > tinywrkb, please can you test this series to ensure that it fixes > your problem - the previous version has turned out to be a non-starter > as it introduces more problems, thanks! Yes, this solves my issue.

Re: [PATCH net v3 00/11] net: fix nested device bugs

2019-09-22 Thread Taehee Yoo
On Sat, 21 Sep 2019 at 08:59, Jakub Kicinski wrote: > > On Mon, 16 Sep 2019 22:47:51 +0900, Taehee Yoo wrote: > > This patchset fixes several bugs that are related to nesting > > device infrastructure. > > Current nesting infrastructure code doesn't limit the depth level of > > devices. nested dev

Re: [PATCH 0/4] Attempt to fix regression with AR8035 speed downgrade

2019-09-22 Thread Russell King - ARM Linux admin
On Sun, Sep 22, 2019 at 11:59:32AM +0100, Russell King - ARM Linux admin wrote: > Commentary: what is not yet known is whether the AR8035 restores the > advertisement register when the link goes down to the > previous state. I've just found my 2-pair cable, and it appears tha

Re: [PATCH net v3 09/11] net: core: add ignore flag to netdev_adjacent structure

2019-09-22 Thread Taehee Yoo
On Sat, 21 Sep 2019 at 08:55, Jakub Kicinski wrote: > > On Mon, 16 Sep 2019 22:48:00 +0900, Taehee Yoo wrote: > > In order to link an adjacent node, netdev_upper_dev_link() is used > > and in order to unlink an adjacent node, netdev_upper_dev_unlink() is used. > > unlink operation does not fail, b

Re: [PATCH net v3 10/11] vxlan: add adjacent link to limit depth level

2019-09-22 Thread Taehee Yoo
On Sat, 21 Sep 2019 at 08:48, Jakub Kicinski wrote: > Hi Jakub, Thank you so much for your detailed review! > On Mon, 16 Sep 2019 22:48:01 +0900, Taehee Yoo wrote: > > Current vxlan code doesn't limit the number of nested devices. > > Nested devices would be handled recursively and this routine

Re: CONFIG_NET_TC_SKB_EXT

2019-09-22 Thread Paul Blakey
The skb extension is currently used for miss path of software offloading OvS rules with recirculation to tc. However, we are also preparing patches to support the hardware side of things. After the userspace OvS patches to support connection tracking, we'll have two users for tc multi chain rule

[PATCH 3/4] net: phy: extract pause mode

2019-09-22 Thread Russell King
Extract the update of phylib's software pause mode state from genphy_read_status(), so that we can re-use this functionality with PHYs that have alternative ways to read the negotiation results. Signed-off-by: Russell King --- drivers/net/phy/phy-core.c | 20 +--- include/linux/p

[PATCH 0/4] Attempt to fix regression with AR8035 speed downgrade

2019-09-22 Thread Russell King - ARM Linux admin
Hi, tinywrkb, please can you test this series to ensure that it fixes your problem - the previous version has turned out to be a non-starter as it introduces more problems, thanks! The following series attempts to address an issue spotted by tinywrkb with the AR8035 on the Cubox-i2 in a situation

[PATCH 1/4] net: phy: fix write to mii-ctrl1000 register

2019-09-22 Thread Russell King
When userspace writes to the MII_ADVERTISE register, we update phylib's advertising mask and trigger a renegotiation. However, writing to the MII_CTRL1000 register, which contains the gigabit advertisement, does neither. This can lead to phylib's copy of the advertisement becoming de-synced with

[PATCH 2/4] net: phy: extract link partner advertisement reading

2019-09-22 Thread Russell King
Move reading the link partner advertisement out of genphy_read_status() into its own separate function. This will allow re-use of this code by PHY drivers that are able to read the resolved status from the PHY. Signed-off-by: Russell King --- drivers/net/phy/phy_device.c | 65 ++

[PATCH 4/4] net: phy: at803x: use operating parameters from PHY-specific status

2019-09-22 Thread Russell King
Read the PHY-specific status register for the current operating mode (speed and duplex) of the PHY. This register reflects the actual mode that the PHY has resolved depending on either the advertisements of autoneg is enabled, or the forced mode if autoneg is disabled. This ensures that phylib's

[PATCH net] ppp: Fix memory leak in ppp_write

2019-09-22 Thread Takeshi Misawa
When ppp is closing, __ppp_xmit_process() failed to enqueue skb and skb allocated in ppp_write() is leaked. syzbot reported : BUG: memory leak unreferenced object 0x88812a17bc00 (size 224): comm "syz-executor673", pid 6952, jiffies 4294942888 (age 13.040s) hex dump (first 32 bytes): 00