Re: [PATCH nf-next] ipset: remove unused function __ip_set_get_netlink

2017-04-14 Thread Jozsef Kadlecsik
Hi Pablo, On Fri, 14 Apr 2017, Pablo Neira Ayuso wrote: > On Mon, Apr 10, 2017 at 03:52:37PM -0400, Aaron Conole wrote: > > There are no in-tree callers. > > @Jozsef, let me know if I should just take this to save you a pull > request. Just take it, thank you. Acked-by: Jozsef Kadlecsik Best

[PATCH net-next] cxgb4 : retrieve port information from firmware

2017-04-14 Thread Ganesh Goudar
issue get port information command to firmware to retrieve port information and update if it is different from what was last recorded and also add indication for supported link modes for firmware port types FW_PORT_TYPE_SFP28, FW_PORT_TYPE_KR_SFP28, FW_PORT_TYPE_CR4_QSFP. Based on the original wor

Re: [PATCH 18/38] Annotate hardware config module parameters in drivers/net/can/

2017-04-14 Thread Marc Kleine-Budde
On 04/05/2017 06:59 PM, David Howells wrote: > When the kernel is running in secure boot mode, we lock down the kernel to > prevent userspace from modifying the running kernel image. Whilst this > includes prohibiting access to things like /dev/mem, it must also prevent > access by means of config

[PATCH net-next] ibmvnic: Do not disable IRQ after scheduling tasklet

2017-04-14 Thread Nathan Fontenot
From: Brian King Since the primary CRQ is only used for service functions and not in the performance path, simplify the code a bit and avoid disabling the IRQ. Signed-off-by: Brian King Signed-off-by: Nathan Fontenot --- drivers/net/ethernet/ibm/ibmvnic.c | 25 ++--- 1 f

[PATCH net-next] ibmvnic: Fixup atomic API usage

2017-04-14 Thread Nathan Fontenot
From: Brian King Replace a couple of modifications of an atomic followed by a read of the atomic, which is no longer atomic, to use atomic_XX_return variants to avoid race conditions. Signed-off-by: Brian King Signed-off-by: Nathan Fontenot --- drivers/net/ethernet/ibm/ibmvnic.c | 10 --

[PATCH net-next] ibmvnic: Unmap longer term buffer before free

2017-04-14 Thread Nathan Fontenot
From: Brian King Make sure we unregister long term buffers from the adapter prior to DMA unmapping it and freeing the buffer. Failure to do so could result in a DMA to a now invalid address. Signed-off-by: Brian King Signed-off-by: Nathan Fontenot --- drivers/net/ethernet/ibm/ibmvnic.c |2

[PATCH net-next] ibmvnic: Fix ibmvnic_change_mac_addr struct format

2017-04-14 Thread Nathan Fontenot
From: Murilo Fossa Vicentini The ibmvnic_change_mac_addr struct alignment was not matching the defined format in PAPR+, it had the reserved and return code fields swapped. As a consequence, the CHANGE_MAC_ADDR_RSP commands were being improperly handled and executed even when the operation wasn't

[PATCH net-next] ibmvnic: Report errors when failing to release sub-crqs

2017-04-14 Thread Nathan Fontenot
From: Thomas Falcon Add reporting of errors when releasing sub-crqs fails. Signed-off-by: Thomas Falcon Signed-off-by: Nathan Fontenot --- drivers/net/ethernet/ibm/ibmvnic.c |6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/net/ethernet/ibm/ibmvnic.c b/drivers/net/ethernet

[PATCH iproute2 net-next 2/3] iproute: add support for SR-IPv6 lwtunnel encapsulation

2017-04-14 Thread David Lebrun
This patch adds support for SEG6 encapsulation type ("ip route add ... encap seg6 ..."). Signed-off-by: David Lebrun --- ip/iproute.c | 6 +- ip/iproute_lwtunnel.c | 154 ++ 2 files changed, 158 insertions(+), 2 deletions(-) diff --git

[PATCH iproute2 net-next 1/3] ip: add ip sr command to control SR-IPv6 internal structures

2017-04-14 Thread David Lebrun
This patch adds commands to support the tunnel source properties ("ip sr tunsrc") and the HMAC key -> secret, algorithm binding ("ip sr hmac"). Signed-off-by: David Lebrun --- ip/Makefile| 2 +- ip/ip.c| 3 +- ip/ip_common.h | 1 + ip/ipseg6.c| 238 +

[PATCH iproute2 net-next 3/3] man: add documentation for IPv6 SR commands

2017-04-14 Thread David Lebrun
This patch adds information about seg6 encapsulation in the ip-route manual, as well as the ip-sr manual page. Signed-off-by: David Lebrun --- man/man8/ip-route.8.in | 39 +++-- man/man8/ip-sr.8 | 58 ++ 2 files ch

[PATCH iproute2 net-next 0/3] Add support for IPv6 Segment Routing

2017-04-14 Thread David Lebrun
This patch series adds support and documentation in iproute2 for encapsulation with IPv6 SR, and for control of HMAC mappings. Signed-off-by: David Lebrun David Lebrun (3): ip: add ip sr command to control SR-IPv6 internal structures iproute: add support for SR-IPv6 lwtunnel encapsulation

[PATCH] net/ncsi: fix checksum validation in response packet

2017-04-14 Thread Cédric Le Goater
htonl was used instead of ntohl. Surely a typo. Signed-off-by: Cédric Le Goater --- net/ncsi/ncsi-rsp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/ncsi/ncsi-rsp.c b/net/ncsi/ncsi-rsp.c index 087db775b3dc..d375286b79f2 100644 --- a/net/ncsi/ncsi-rsp.c +++ b/net/ncsi/n

[PATCH net-next] net: mvneta: fix failed to suspend if WOL is enabled

2017-04-14 Thread Jisheng Zhang
Recently, suspend/resume and WOL support are added into mvneta driver. If we enable WOL, then we get some error as below on Marvell BG4CT platforms during suspend: [ 184.149723] dpm_run_callback(): mdio_bus_suspend+0x0/0x50 returns -16 [ 184.149727] PM: Device f7b62004.mdio-mi:00 failed to suspe

[PATCH net-next] net: bridge: notify on hw fdb takeover

2017-04-14 Thread Nikolay Aleksandrov
Recently we added support for SW fdbs to take over HW ones, but that results in changing a user-visible fdb flag thus we need to send a notification, also it's consistent with how HW takes over SW entries. Signed-off-by: Nikolay Aleksandrov --- net/bridge/br_fdb.c | 4 +++- 1 file changed, 3 ins

Re: [PATCH] mm, page_alloc: re-enable softirq use of per-cpu page allocator

2017-04-14 Thread Jesper Dangaard Brouer
On Mon, 10 Apr 2017 14:26:16 -0700 Andrew Morton wrote: > On Mon, 10 Apr 2017 16:08:21 +0100 Mel Gorman > wrote: > > > IRQ context were excluded from using the Per-Cpu-Pages (PCP) lists caching > > of order-0 pages in commit 374ad05ab64d ("mm, page_alloc: only use per-cpu > > allocator for irq

Re: [PATCH linux 2/2] net sched actions: fix refcount decrement on error

2017-04-14 Thread Wolfgang Bumiller
On Thu, Apr 13, 2017 at 11:03:37AM -0700, Cong Wang wrote: > On Thu, Apr 13, 2017 at 1:06 AM, Wolfgang Bumiller > wrote: > > On Wed, Apr 12, 2017 at 09:27:31PM -0700, Cong Wang wrote: > >> Instead of duplicating code, you can add the check > >> to the module_put() next to err_mod label? I mean: >

Re: [PATCH net-next 1/1 v3] drivers: net: rmnet: Initial implementation

2017-04-14 Thread Jiri Pirko
Fri, Apr 14, 2017 at 07:05:29AM CEST, subas...@codeaurora.org wrote: >RmNet driver provides a transport agnostic MAP (multiplexing and >aggregation protocol) support in embedded module. Module provides >virtual network devices which can be attached to any IP-mode >physical device. This will be used

Re: [PATCH v3 net-next RFC] Generic XDP

2017-04-14 Thread Jesper Dangaard Brouer
On Thu, 13 Apr 2017 11:37:22 -0400 (EDT) David Miller wrote: > From: Alexei Starovoitov > Date: Wed, 12 Apr 2017 21:20:38 -0700 > > > On Wed, Apr 12, 2017 at 02:54:15PM -0400, David Miller wrote: [...] > > If the capability is variable, it must be communicated to the user > somehow at progra

Re: [PATCH 09/22] dm-crypt: Make use of the new sg_map helper in 4 call sites

2017-04-14 Thread Christoph Hellwig
On Thu, Apr 13, 2017 at 04:05:22PM -0600, Logan Gunthorpe wrote: > Very straightforward conversion to the new function in all four spots. I think the right fix here is to switch dm-crypt to the ahash API that takes a scatterlist.

Re: [PATCH 03/22] libiscsi: Make use of new the sg_map helper function

2017-04-14 Thread Christoph Hellwig
On Thu, Apr 13, 2017 at 04:05:16PM -0600, Logan Gunthorpe wrote: > Convert the kmap and kmap_atomic uses to the sg_map function. We now > store the flags for the kmap instead of a boolean to indicate > atomicitiy. We also propogate a possible kmap error down and create > a new ISCSI_TCP_INTERNAL_ER

Re: [PATCH 01/22] scatterlist: Introduce sg_map helper functions

2017-04-14 Thread Christoph Hellwig
> diff --git a/drivers/dma-buf/dma-buf.c b/drivers/dma-buf/dma-buf.c > index 0007b79..b95934b 100644 > --- a/drivers/dma-buf/dma-buf.c > +++ b/drivers/dma-buf/dma-buf.c > @@ -37,6 +37,9 @@ > > #include > > +/* Prevent the highmem.h macro from aliasing ops->kunmap_atomic */ > +#undef kunmap_at

Re: [PATCH v3 net-next RFC] Generic XDP

2017-04-14 Thread Johannes Berg
On Thu, 2017-04-13 at 16:01 -0400, David Miller wrote: > From: Johannes Berg > Date: Thu, 13 Apr 2017 21:22:21 +0200 > > > OTOH, it might depend on the frame data itself, if the program does > > something like > >  > > xdp->data[xdp->data[0] & 0xf] > >  > > (read or write, doesn't really matter)

Re: [PATCH 4/4] net: macb: Add macb_ptp to compilation chain

2017-04-14 Thread Richard Cochran
On Thu, Apr 13, 2017 at 02:39:58PM +0100, Rafal Ozieblo wrote: > Add macb_ptp.c to Makefile. > In case that macb is compiled as a module, it has been renamed to > cadence-macb.ko to avoid naming confusion in Makefile. Renaming modules will break user's modpobe scripts. Why not keep macb.ko as the

Re: [PATCH 1/4] net: macb: Add support for PTP timestamps in DMA descriptors

2017-04-14 Thread Richard Cochran
On Thu, Apr 13, 2017 at 02:33:59PM +0100, Rafal Ozieblo wrote: > @@ -1921,9 +1972,13 @@ static void macb_configure_dma(struct macb *bp) > dmacfg &= ~GEM_BIT(TXCOEN); > > #ifdef CONFIG_ARCH_DMA_ADDR_T_64BIT > - if (bp->hw_dma_cap == HW_DMA_CAP_64B) > +

Re: [PATCH 3/4] net: macb: Add hardware PTP support

2017-04-14 Thread kbuild test robot
-timestamps-in-DMA-descriptors/20170414-001330 config: arm64-defconfig (attached as .config) compiler: aarch64-linux-gnu-gcc (Debian 6.1.1-9) 6.1.1 20160705 reproduce: wget https://raw.githubusercontent.com/01org/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin

<    1   2