[PATCH net-next 2/2] neighbour: send netlink notification if NTF_ROUTER changes

2018-09-22 Thread Roopa Prabhu
From: Roopa Prabhu send netlink notification if neigh_update results in NTF_ROUTER change and if NEIGH_UPDATE_F_ISROUTER is on. Also move the NTF_ROUTER change function into a helper. Signed-off-by: Roopa Prabhu --- include/net/neighbour.h | 15 +++ net/core/neighbour.c| 7 ++-

[PATCH net-next 1/2] neighbour: allow admin to set NTF_ROUTER

2018-09-22 Thread Roopa Prabhu
From: Roopa Prabhu This patch allows admin setting of NTF_ROUTER flag on a neighbour entry. This enables external control plane (like bgp evpn) to manage neigh entries with NTF_ROUTER flag. Signed-off-by: Roopa Prabhu --- net/core/neighbour.c | 9 +++-- 1 file changed, 7 insertions(+), 2 d

[PATCH net-next 0/2] few NTF_ROUTER related updates

2018-09-22 Thread Roopa Prabhu
From: Roopa Prabhu This series allows setting of NTF_ROUTER by an external entity (eg BGP E-VPN control plane). Also fixes missing netlink notification on neigh NTF_ROUTER flag changes. Roopa Prabhu (2): neighbour: allow admin to set NTF_ROUTER neighbour: send netlink notification if NTF_ROU

Re: [PATCH] net-ethtool: ETHTOOL_GUFO did not and should not require CAP_NET_ADMIN

2018-09-22 Thread David Miller
From: "Maciej Żenczykowski" Date: Sat, 22 Sep 2018 01:34:01 -0700 > From: Maciej Żenczykowski > > So it should not fail with EPERM even though it is no longer implemented... > > This is a fix for: > (userns)$ egrep ^Cap /proc/self/status > CapInh: 003f > CapPrm: 003ff

Re: [PATCH RFT net-next 0/2] net: phy: Eliminate unnecessary soft

2018-09-22 Thread Andrew Lunn
On Tue, Sep 18, 2018 at 06:35:03PM -0700, Florian Fainelli wrote: > Hi all, > > This patch series eliminates unnecessary software resets of the PHY. > This should hopefully not break anybody's hardware; but I would > appreciate testing to make sure this is is the case. > > Sorry for this long ema

[PATCH iproute2 5/7] configure: Code cleanup

2018-09-22 Thread Petr Vorel
Signed-off-by: Petr Vorel --- configure | 65 +++ 1 file changed, 18 insertions(+), 47 deletions(-) diff --git a/configure b/configure index 8f4a7f1e..86c4cf58 100755 --- a/configure +++ b/configure @@ -32,9 +32,7 @@ int main(int argc, char **a

[PATCH iproute2 2/7] tests: Use /bin/sh shebang

2018-09-22 Thread Petr Vorel
Bashisms for both tests were removed in ecd44e68 ("tests: Remove bashisms (s/source/.)"), so no need to use bash shebang. + remove trailing whitespace. Signed-off-by: Petr Vorel --- testsuite/tests/tc/cls-testbed.t | 4 ++-- testsuite/tests/tc/dsmark.t | 2 +- 2 files changed, 3 insertions

[PATCH iproute2 4/7] configure: Remove non-posix shell expansion

2018-09-22 Thread Petr Vorel
+ change shebang to /bin/sh Signed-off-by: Petr Vorel --- configure | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/configure b/configure index 34325f99..8f4a7f1e 100755 --- a/configure +++ b/configure @@ -1,4 +1,4 @@ -#! /bin/bash +#!/bin/sh # SPDX-License-Identifier:

[PATCH iproute2 1/7] man: rtpr: Rename s/bash/shell/

2018-09-22 Thread Petr Vorel
ip/rtpr mentioned in man as bash script is actually posix shell script (doesn't require to use bash). Signed-off-by: Petr Vorel --- man/man8/rtpr.8 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/man/man8/rtpr.8 b/man/man8/rtpr.8 index 1b04a821..87f291ab 100644 --- a/man/man8

[PATCH iproute2 6/7] examples: Remove dhcp-client-script

2018-09-22 Thread Petr Vorel
This script is obsolete. Signed-off-by: Petr Vorel --- examples/dhcp-client-script | 446 1 file changed, 446 deletions(-) delete mode 100644 examples/dhcp-client-script diff --git a/examples/dhcp-client-script b/examples/dhcp-client-script deleted file mod

[PATCH iproute2 7/7] examples: Remove cbq.init-v0.7.3

2018-09-22 Thread Petr Vorel
This script is obsolete. Signed-off-by: Petr Vorel --- examples/cbq.init-v0.7.3 | 983 --- 1 file changed, 983 deletions(-) delete mode 100644 examples/cbq.init-v0.7.3 diff --git a/examples/cbq.init-v0.7.3 b/examples/cbq.init-v0.7.3 deleted file mode 100644

[PATCH iproute2 0/7] Minor shell code cleanup

2018-09-22 Thread Petr Vorel
Hi, this patchset does minor cleanup in shell scripts: * remove bashisms * use /bin/sh shebang * remove obsolete code from examples * remove unused code Kind regards, Petr Petr Vorel (7): man: rtpr: Rename s/bash/shell/ tests: Use /bin/sh shebang configure: Remove unused function check_pro

[PATCH iproute2 3/7] configure: Remove unused function check_prog()

2018-09-22 Thread Petr Vorel
Signed-off-by: Petr Vorel --- configure | 6 -- 1 file changed, 6 deletions(-) diff --git a/configure b/configure index 5ef5cd4c..34325f99 100755 --- a/configure +++ b/configure @@ -11,12 +11,6 @@ CONFIG=config.mk TMPDIR=$(mktemp -d config.XX) trap 'status=$?; rm -rf $TMPDIR; exit $sta

Re: [PATCH net-next v2] net: phy: don't reschedule state machine when PHY is halted

2018-09-22 Thread Florian Fainelli
On September 20, 2018 1:34:25 PM PDT, Heiner Kallweit wrote: >When being in state PHY_HALTED we don't have to reschedule the >state machine, phy_start() will start it again. > >Signed-off-by: Heiner Kallweit Signed-off-by: Florian Fainelli -- Florian

Re: [PATCH] net: phy: phylink: fix SFP interface autodetection

2018-09-22 Thread Russell King - ARM Linux
On Sat, Sep 22, 2018 at 10:09:44PM +0300, Baruch Siach wrote: > When connecting a PHY to phylink use the detected interface. Otherwise, > the link fails to come up when the configured 'phy-mode' differs from > the SFP detected mode. > > This fixes 1GB SFP module link up on eth3 of the Macchiatobin

[PATCH] net: phy: phylink: fix SFP interface autodetection

2018-09-22 Thread Baruch Siach
When connecting a PHY to phylink use the detected interface. Otherwise, the link fails to come up when the configured 'phy-mode' differs from the SFP detected mode. This fixes 1GB SFP module link up on eth3 of the Macchiatobin board that is configured in the DT to "2500base-x" phy-mode. Fixes: 95

Re: [PATCH net] net: phy: fix WoL handling when suspending the PHY

2018-09-22 Thread Heiner Kallweit
On 22.09.2018 18:44, Andrew Lunn wrote: > On Sat, Sep 22, 2018 at 01:32:55AM +0200, Heiner Kallweit wrote: >> Actually there's nothing wrong with the two changes, they just >> revealed a problem which has been existing before. > > Hi Heiner > > This is missing a bit of context. Which two changes?

[net-next:master 569/583] htmldocs: include/linux/skbuff.h:860: warning: Function parameter or member 'skb_mstamp_ns' not described in 'sk_buff'

2018-09-22 Thread kbuild test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git master head: bd4d08daeb959234a9f8365037b0fefa6ae790c6 commit: d3edd06ea8ea9e03de6567fda80b8be57e21a537 [569/583] tcp: provide earliest departure time in skb->tstamp reproduce: make htmldocs All warnings (new ones prefix

Re: [PATCH rdma-next v1 0/7] Preparation to DevX extension series

2018-09-22 Thread Jason Gunthorpe
On Thu, Sep 20, 2018 at 09:35:19PM +0300, Leon Romanovsky wrote: > From: Leon Romanovsky > > Changelog v0->v1: > * Update commit messages > * Split DevX series to small sub-series. > * Change static initialization from {0} to be {} > > > Set uid as part of various IB commands so that the fir

Re: [PATCH net] net: phy: fix WoL handling when suspending the PHY

2018-09-22 Thread Andrew Lunn
On Sat, Sep 22, 2018 at 01:32:55AM +0200, Heiner Kallweit wrote: > Actually there's nothing wrong with the two changes, they just > revealed a problem which has been existing before. Hi Heiner This is missing a bit of context. Which two changes? I assume you mean the two Fixes: > > Core of the

[PATCH net] net: sched: act_ipt: check for underflow in __tcf_ipt_init()

2018-09-22 Thread Dan Carpenter
If "td->u.target_size" is larger than sizeof(struct xt_entry_target) we return -EINVAL. But we don't check whether it's smaller than sizeof(struct xt_entry_target) and that could lead to an out of bounds read. Fixes: 7ba699c604ab ("[NET_SCHED]: Convert actions from rtnetlink to new netlink API")

Re: [PATCH net 02/15] bonding: use netpoll_poll_dev() helper

2018-09-22 Thread Jay Vosburgh
Eric Dumazet wrote: >We want to allow NAPI drivers to no longer provide >ndo_poll_controller() method, as it has been proven problematic. > >team driver must not look at its presence, but instead call >netpoll_poll_dev() which factorize the needed actions. This patch is for bonding, not

[PATCH] net-ethtool: ETHTOOL_GUFO did not and should not require CAP_NET_ADMIN

2018-09-22 Thread Maciej Żenczykowski
From: Maciej Żenczykowski So it should not fail with EPERM even though it is no longer implemented... This is a fix for: (userns)$ egrep ^Cap /proc/self/status CapInh: 003f CapPrm: 003f CapEff: 003f CapBnd: 003f CapAmb: 003f