Re: [PATCH] mac80211: Use kstrdup to simplify code

2015-07-08 Thread Emmanuel Grumbach
The subject is wrong. You are not patch mac80211, but bcrmsmac. On Wed, Jul 8, 2015 at 10:32 PM, Christophe JAILLET christophe.jail...@wanadoo.fr wrote: Replace a kmalloc+strcpy by an equivalent kstrdup in order to improve readability. Signed-off-by: Christophe JAILLET

[PATCH v3] Add support for driver cross-timestamp to PTP_SYS_OFFSET ioctl

2015-07-08 Thread Christopher Hall
This patch allows system and device time (cross-timestamp) to be performed by the driver. Currently, the cross-timestamping is performed in the PTP_SYS_OFFSET ioctl. The PTP clock driver reads gettimeofday() and the gettime64() callback provided by the driver. The cross-timestamp is best effort

Re: [PATCH net] mlx4: TCP/UDP packets have L4 hash

2015-07-08 Thread David Miller
From: Eric Dumazet eric.duma...@gmail.com Date: Thu, 02 Jul 2015 13:24:44 +0200 From: Eric Dumazet eduma...@google.com Mellanox driver has the knowledge if rxhash is a L4 hash, if it receives a non fragmented TCP or UDP frame and NETIF_F_RXCSUM is enabled on netdev. ip_summed value is

[PATCH net-next v4 2/4] netlink: changes for setting and clearing protodown via netlink.

2015-07-08 Thread anuradhak
From: Anuradha Karuppiah anurad...@cumulusnetworks.com A nested attribute has been added allowing apps to update bits (IF_PROTOF_DOWN) in the proto_flags field. Signed-off-by: Anuradha Karuppiah anurad...@cumulusnetworks.com Signed-off-by: Andy Gospodarek go...@cumulusnetworks.com Signed-off-by:

Re: [PATCH net-next v2] ipv6: sysctl to restrict candidate source addresses

2015-07-08 Thread David Miller
From: Erik Kline e...@google.com Date: Wed, 8 Jul 2015 21:41:58 +0900 I really would like to come up with a sane works-always behavior for this, but besides doing a retry on the complete source address selection algorithm I currently cannot come up with an idea. Maybe we can tweak saddr_eval

[PATCH] mac80211: Use kstrdup to simplify code

2015-07-08 Thread Christophe JAILLET
Replace a kmalloc+strcpy by an equivalent kstrdup in order to improve readability. Signed-off-by: Christophe JAILLET christophe.jail...@wanadoo.fr --- drivers/net/wireless/brcm80211/brcmsmac/mac80211_if.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git

Re: [PATCH v1 02/12] IB/core: Find the network device matching connection parameters

2015-07-08 Thread Jason Gunthorpe
On Mon, Jun 22, 2015 at 03:42:31PM +0300, Haggai Eran wrote: +/** + * ib_get_net_dev_by_params() - Return the appropriate net_dev + * for a received CM request + * @dev: An RDMA device on which the request has been received. + * @port:Port number on the RDMA device. + * @pkey:The

[PATCH net-next v4 4/4] ip link: proto_down config and display.

2015-07-08 Thread anuradhak
From: Anuradha Karuppiah anurad...@cumulusnetworks.com This patch adds support to set and display the IF_PROTOF_DOWN proto_flag. One example user space application setting this flag is a multi-chassis LAG application to handle split-brain situation on peer-link failure. Example: root@net-next:~#

[PATCH net-next v4 1/4] net core: Add protodown support.

2015-07-08 Thread anuradhak
From: Anuradha Karuppiah anurad...@cumulusnetworks.com This patch introduces the IF_PROTOF_DOWN flag via proto_flags that can be used by user space applications to notify switch drivers that errors have been detected on the device. The switch driver can react to protodown notification by doing a

[PATCH net-next v4 3/4] rocker: Handle protodown notifications.

2015-07-08 Thread anuradhak
From: Anuradha Karuppiah anurad...@cumulusnetworks.com protodown can be set by user space applications like MLAG on detecting errors on a switch port. This patch provides sample switch driver changes for handling protodown. Rocker PHYS disables the port in response to protodown. To test this

[PATCH net-next v4 0/4] net: Introduce protodown flag.

2015-07-08 Thread anuradhak
From: Anuradha Karuppiah anurad...@cumulusnetworks.com User space daemons can detect errors in the network that need to be notified to the switch device drivers. Drivers can react to this error state by doing a phy-down on the switch-port which would result in a carrier-off locally and on the

Re: [PATCH v1 01/12] IB/core: pass client data to remove() callbacks

2015-07-08 Thread Jason Gunthorpe
On Wed, Jul 08, 2015 at 02:29:10PM -0600, Jason Gunthorpe wrote: On Mon, Jun 22, 2015 at 03:42:30PM +0300, Haggai Eran wrote: An ib_client callback that is called with the lists_rwsem locked only for read is protected from changes to the IB client lists, but not from ib_unregister_device()

[net PATCH 1/1] drivers: net: cpsw: fix disabling of tx interrupt in rx isr

2015-07-08 Thread Mugunthan V N
With the below commit, common isr is split into tx and rx, but in rx isr tx interrupt is also disabled. So tx packets are not handled during rx interrupts and rx napi completion. Fixing by disabling on rx interrupt in rx isr. Fixes: c03abd84634d (net: ethernet: cpsw: don't requests IRQs we don't

Re: [PATCH 4.1 11/56] mvneta: add forgotten initialization of autonegotiation bits

2015-07-08 Thread Arnaud Ebalard
Hi, Stas Sergeev s...@list.ru writes: Another problem was reported: https://lkml.org/lkml/2015/7/8/865 So, while the above patch is correct and fixes what it should, the original patch has more problems to deal with. Maybe for stable it would be better to just revert the whole thing? No,

Re: [PATCH] net: phy: add dependency on HAS_IOMEM to MDIO_BUS_MUX_MMIOREG

2015-07-08 Thread David Miller
From: Rob Herring r...@kernel.org Date: Sun, 5 Jul 2015 12:16:27 -0500 On UML builds, mdio-mux-mmioreg.c fails to compile: drivers/net/phy/mdio-mux-mmioreg.c:50:3: error: implicit declaration of function ‘ioremap’ [-Werror=implicit-function-declaration]

[PATCH net-next 3/3] inet: inet_twsk_deschedule factorization

2015-07-08 Thread Eric Dumazet
inet_twsk_deschedule() calls are followed by inet_twsk_put(). Only particular case is in inet_twsk_purge() but there is no point to defer the inet_twsk_put() after re-enabling BH. Lets rename inet_twsk_deschedule() to inet_twsk_deschedule_put() and move the inet_twsk_put() inside.

[PATCH net-next 2/3] inet: simplify timewait refcounting

2015-07-08 Thread Eric Dumazet
timewait sockets have a complex refcounting logic. Once we realize it should be similar to established and syn_recv sockets, we can use sk_nulls_del_node_init_rcu() and remove inet_twsk_unhash() In particular, deferred inet_twsk_put() added in commit 13475a30b66cd (tcp: connect() race with

Re: [patch iproute2] iproute2: ipa: show switch id

2015-07-08 Thread David Ahern
On 7/8/15 9:08 AM, Jiri Pirko wrote: We forgot to include this patch somehow. So do it now. Signed-off-by: Jiri Pirko j...@resnulli.us --- ip/ipaddress.c | 8 1 file changed, 8 insertions(+) diff --git a/ip/ipaddress.c b/ip/ipaddress.c index 85a81ba..b7b4e3e 100644 ---

Re: [PATCH net] bridge: mdb: start delete timer for temp static entries

2015-07-08 Thread David Miller
From: Nikolay Aleksandrov niko...@cumulusnetworks.com Date: Mon, 6 Jul 2015 05:53:35 -0700 From: Satish Ashok sas...@cumulusnetworks.com Start the delete timer when adding temp static entries so they can expire. Signed-off-by: Satish Ashok sas...@cumulusnetworks.com Signed-off-by:

Re: [PATCH] mwifiex: drop condition with no effect

2015-07-08 Thread Avinash Patil
tested with x86_64_defconfig + CONFIG_MWIFIEX=m Patch is against 4.2-rc1 (localversion-next is -next-20150708) drivers/net/wireless/mwifiex/sta_cmdresp.c | 11 +++ 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/drivers/net/wireless/mwifiex/sta_cmdresp.c b/drivers

Re: [PATCH v2] rhashtable: fix for resize events during table walk

2015-07-08 Thread David Miller
From: Phil Sutter p...@nwl.cc Date: Mon, 6 Jul 2015 15:51:20 +0200 If rhashtable_walk_next detects a resize operation in progress, it jumps to the new table and continues walking that one. But it misses to drop the reference to it's current item, leading it to continue traversing the new

[PATCH net-next] cxgb4vf: Fix check to use new User Doorbell mechanism

2015-07-08 Thread Hariprasad Shenai
If we don't have access to the new User GTS (T5+), use the old doorbell mechanism; otherwise use the new BAR2 mechanism. Signed-off-by: Hariprasad Shenai haripra...@chelsio.com --- drivers/net/ethernet/chelsio/cxgb4vf/sge.c | 12 +--- 1 file changed, 9 insertions(+), 3 deletions(-) diff

Re: [PATCH] net: systemport: Use eth_hw_addr_random

2015-07-08 Thread Florian Fainelli
Le 07/07/15 22:19, Vaishali Thakkar a écrit : Use eth_hw_addr_random() instead of calling random_ether_addr(). Here, this change is setting addr_assign_type to NET_ADDR_RANDOM. The Coccinelle semantic patch that performs this transformation is as follows: @@ identifier a,b; @@

Re: [PATCH net] net: bcmgenet: fix accounting of packet drops vs errors

2015-07-08 Thread Florian Fainelli
Le 07/08/15 18:55, Petri Gynther a écrit : bcmgenet driver needs to separate packet drops from packet errors. When the driver has to drop a *good* packet, due to lack of buffers or replacement skbs, increment only dev-stats.[rx|tx]_dropped. When the driver encounters a bad Rx packet or Tx

Re: [PATCH net,v2] ip_tunnel: fix ipv4 pmtu check to honor inner ip header df

2015-07-08 Thread David Miller
From: Timo Teräs timo.te...@iki.fi Date: Tue, 7 Jul 2015 08:34:13 +0300 Frag needed should be sent only if the inner header asked to not fragment. Currently fragmentation is broken if the tunnel has df set, but df was not asked in the original packet. The tunnel's df needs to be still

Re: [PATCH net] rtnetlink: verify IFLA_VF_INFO attributes before passing them to driver

2015-07-08 Thread David Miller
From: Daniel Borkmann dan...@iogearbox.net Date: Tue, 7 Jul 2015 00:07:52 +0200 Jason Gunthorpe reported that since commit c02db8c6290b (rtnetlink: make SR-IOV VF interface symmetric), we don't verify IFLA_VF_INFO attributes anymore with respect to their policy, that is, ifla_vfinfo_policy[].

Re: [PATCH net-next RESEND] test_bpf: extend tests for 32-bit endianness conversion

2015-07-08 Thread David Miller
From: Xi Wang xi.w...@gmail.com Date: Wed, 8 Jul 2015 14:00:56 -0700 Currently ALU_END_FROM_BE 32 and ALU_END_FROM_LE 32 do not test if the upper bits of the result are zeros (the arm64 JIT had such bugs). Extend the two tests to catch this. Acked-by: Daniel Borkmann dan...@iogearbox.net

Re: [patch iproute2] iproute2: ipa: show switch id

2015-07-08 Thread Stephen Hemminger
On Wed, 8 Jul 2015 17:08:18 +0200 Jiri Pirko j...@resnulli.us wrote: + if (tb[IFLA_PHYS_SWITCH_ID]) { + SPRINT_BUF(b1); + fprintf(fp, switchid %s , + hexstring_n2a(RTA_DATA(tb[IFLA_PHYS_SWITCH_ID]), +

[PATCH net] net: bcmgenet: fix accounting of packet drops vs errors

2015-07-08 Thread Petri Gynther
bcmgenet driver needs to separate packet drops from packet errors. When the driver has to drop a *good* packet, due to lack of buffers or replacement skbs, increment only dev-stats.[rx|tx]_dropped. When the driver encounters a bad Rx packet or Tx error, increment only dev-stats.[rx|tx]_errors +

[PATCH] route: remove unsed variable in __mkroute_input

2015-07-08 Thread Masatake YAMATO
flags local variable in __mkroute_input is not used as a variable. Signed-off-by: Masatake YAMATO yam...@redhat.com --- net/ipv4/route.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/net/ipv4/route.c b/net/ipv4/route.c index d0362a2..04c83de 100644 --- a/net/ipv4/route.c

Re: [PATCH net-next 4/5] rocker: add offload_fwd_mark support

2015-07-08 Thread Simon Horman
Hi Scott, On Wed, Jul 08, 2015 at 04:16:42PM -0700, sfel...@gmail.com wrote: From: Scott Feldman sfel...@gmail.com If device flags ingress packet as fwd offload, mark the skb-offlaod_fwd_mark using the ingress port's dev-offlaod_fwd_mark. This will be the hint to the kernel that this

Re: [PATCH net-next 5/5] switchdev: update documentation for offload_fwd_mark

2015-07-08 Thread Simon Horman
On Wed, Jul 08, 2015 at 04:16:43PM -0700, sfel...@gmail.com wrote: From: Scott Feldman sfel...@gmail.com Signed-off-by: Scott Feldman sfel...@gmail.com --- Documentation/networking/switchdev.txt | 14 -- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git

[PATCH/RFC net-next] rocker: forward packets to CPU when a port in promiscuous mode

2015-07-08 Thread Simon Horman
This change allows the CPU to see all packets seen by a port when the netdev associated with the port is in promiscuous mode. This change was previously posted as part of a larger patch and in turn patchset which also aimed to allow rocker interfaces to receive packets when not bridged. That

[PATCH] neterion: s2io: Use module_pci_driver

2015-07-08 Thread Vaishali Thakkar
Use module_pci_driver for drivers whose init and exit functions only register and unregister, respectively. A simplified version of the Coccinelle semantic patch that performs this transformation is as follows: @a@ identifier f, x; @@ -static f(...) { return pci_register_driver(x); } @b depends

Re: [PATCH net] net: graceful exit from netif_alloc_netdev_queues()

2015-07-08 Thread David Miller
From: Eric Dumazet eric.duma...@gmail.com Date: Mon, 06 Jul 2015 17:13:26 +0200 From: Eric Dumazet eduma...@google.com User space can crash kernel with ip link add ifb10 numtxqueues 10 type ifb We must replace a BUG_ON() by proper test and return -EINVAL for crazy values. Fixes:

Re: [PATCH v5] net: fec: Ensure clocks are enabled while using mdio bus

2015-07-08 Thread David Miller
From: Andrew Lunn and...@lunn.ch Date: Mon, 6 Jul 2015 20:34:55 +0200 When a switch is attached to the mdio bus, the mdio bus can be used while the interface is not open. If the IPG clock is not enabled, MDIO reads/writes will simply time out. Add support for runtime PM to control this

Re: [PATCH net-next,v2] hv_netvsc: Add support to set MTU reservation from guest side

2015-07-08 Thread David Miller
From: Haiyang Zhang haiya...@microsoft.com Date: Mon, 6 Jul 2015 14:11:37 -0700 When packet encapsulation is in use, the MTU needs to be reduced for headroom reservation. The existing code takes the updated MTU value only from the host side. But vSwitch extensions, such as Open vSwitch,

Re: [Intel-wired-lan] [PATCH 0/3] rtnl_lock fixes

2015-07-08 Thread Jeff Kirsher
On Wed, 2015-07-08 at 16:15 -0700, David Miller wrote: From: Vasily Averin v...@virtuozzo.com Date: Tue, 07 Jul 2015 18:53:28 +0300 While investigation possible reasons of net_todo_list corruption on rhel6 based OpenVZ kernel I've found few places not fixed in mainline. I'm assuming

Re: [PATCH,v2 net-next] ipvs: skb_orphan in case of forwarding

2015-07-08 Thread Simon Horman
On Wed, Jul 08, 2015 at 11:17:52PM +0200, Eric Dumazet wrote: On Wed, 2015-07-08 at 13:56 -0700, Alex Gartrell wrote: On Tue, Jul 7, 2015 at 6:33 PM, Simon Horman ho...@verge.net.au wrote: Is there any possibility you could investigate which stable trees are effected by this bug?

Re: [PATCH net-next v4 4/4] ip link: proto_down config and display.

2015-07-08 Thread Anuradha Karuppiah
On Wed, Jul 8, 2015 at 6:01 PM, Stephen Hemminger step...@networkplumber.org wrote: On Wed, 8 Jul 2015 14:04:25 -0700 anurad...@cumulusnetworks.com wrote: From: Anuradha Karuppiah anurad...@cumulusnetworks.com This patch adds support to set and display the IF_PROTOF_DOWN proto_flag. One

Re: [PATCH net-next v4 1/4] net core: Add protodown support.

2015-07-08 Thread Anuradha Karuppiah
On Wed, Jul 8, 2015 at 4:07 PM, Jonathan Toppins jtopp...@cumulusnetworks.com wrote: On 7/8/15 5:04 PM, anurad...@cumulusnetworks.com wrote: diff --git a/include/uapi/linux/if.h b/include/uapi/linux/if.h index 9cf2394..8d60fe7 100644 --- a/include/uapi/linux/if.h +++

Re: [PATCH net] amd-xgbe: Fix DMA API debug warning

2015-07-08 Thread David Miller
From: Tom Lendacky thomas.lenda...@amd.com Date: Mon, 6 Jul 2015 11:57:37 -0500 When running a kernel configured with CONFIG_DMA_API_DEBUG=y a warning is issued: DMA-API: device driver tries to sync DMA memory it has not allocated This warning is the result of mapping the full range of

Re: [PATCH net 0/3] sfc: compat for lack of VADAPTOR_SET_MAC in adaptor_firmware = 4.1.1.1023

2015-07-08 Thread David Miller
From: Shradha Shah ss...@solarflare.com Date: Tue, 7 Jul 2015 11:35:18 +0100 This patch series resolves an incompatibility with legacy firmware due to the lack of MC_CMD_VADAPTOR_SET_MAC in adaptor_firmware = 4.1.1.1023 Unless this patch series is applied there will be a compatibility

Re: [PATCH v3] bonding: primary_reselect with failure is not working properly

2015-07-08 Thread David Miller
From: Mazhar Rana ranamazh...@gmail.com Date: Tue, 7 Jul 2015 15:04:50 +0530 From: Mazhar Rana mazhar.r...@cyberoam.com When primary_reselect is set to failure, primary interface should not become active until current active slave is down. But if we set first member of bond device as a

Re: [PATCH net-next v4 1/4] net core: Add protodown support.

2015-07-08 Thread Jonathan Toppins
On 7/8/15 5:04 PM, anurad...@cumulusnetworks.com wrote: diff --git a/include/uapi/linux/if.h b/include/uapi/linux/if.h index 9cf2394..8d60fe7 100644 --- a/include/uapi/linux/if.h +++ b/include/uapi/linux/if.h @@ -156,6 +156,12 @@ enum { IF_LINK_MODE_DORMANT, /* limit upward transition

Re: [PATCH v1 03/12] IB/ipoib: Return IPoIB devices matching connection parameters

2015-07-08 Thread Jason Gunthorpe
On Mon, Jun 22, 2015 at 03:42:32PM +0300, Haggai Eran wrote: + if (net_dev) { + ipoib_warn(priv, matching net_dev found: %s\n, +net_dev-name); Is that a debug print? + default: + dev_warn(dev-dev, duplicate IP

Re: [PATCH net-next v4 4/4] ip link: proto_down config and display.

2015-07-08 Thread Stephen Hemminger
On Wed, 8 Jul 2015 14:04:25 -0700 anurad...@cumulusnetworks.com wrote: From: Anuradha Karuppiah anurad...@cumulusnetworks.com This patch adds support to set and display the IF_PROTOF_DOWN proto_flag. One example user space application setting this flag is a multi-chassis LAG application to

Re: [PATCH] net-ipvs: Delete an unnecessary check before the function call module_put

2015-07-08 Thread Simon Horman
On Thu, Jul 02, 2015 at 05:10:41PM +0200, SF Markus Elfring wrote: From: Markus Elfring elfr...@users.sourceforge.net Date: Thu, 2 Jul 2015 17:00:14 +0200 The module_put() function tests whether its argument is NULL and then returns immediately. Thus the test around the call is not needed.

[PATCH net-next] rocker: add change MTU support

2015-07-08 Thread sfeldma
From: Scott Feldman sfel...@gmail.com Implement ndo_change_mtu: on MTU change, reallocate Rx ring bufs and signal HW of new port MTU value. Signed-off-by: Scott Feldman sfel...@gmail.com --- drivers/net/ethernet/rocker/rocker.c | 61 ++

Re: [PATCH net 1/1] sfc: Ensure down_write(filter_sem) and up_write() are matched before calling efx_net_open()

2015-07-08 Thread David Miller
From: Shradha Shah ss...@solarflare.com Date: Wed, 8 Jul 2015 10:12:45 +0100 This patch avoids the double up_write to filter_sem if efx_net_open() fails. Resolves: 2d432f20d27c1813a2746008e16dd6ce12a14dc1 Signed-off-by: Shradha Shah ss...@solarflare.com Applied, thanks. -- To unsubscribe

[PATCH net-next] ipv6: Nonlocal bind

2015-07-08 Thread Tom Herbert
Add support to allow non-local binds similar to how this was done for IPv4. Non-local binds are very useful in emulating the Internet in a box, etc. This add the ip_nonlocal_bind sysctl under ipv6. Testing: Set up nonlocal binding and receive routing on a host, e.g.: ip -6 rule add from ::/0

Re: [PATCH] net/tipc: initialize security state for new connection socket

2015-07-08 Thread David Miller
From: Stephen Smalley s...@tycho.nsa.gov Date: Tue, 7 Jul 2015 09:43:45 -0400 Calling connect() with an AF_TIPC socket would trigger a series of error messages from SELinux along the lines of: SELinux: Invalid class 0 type=AVC msg=audit(1434126658.487:34500): avc: denied { unprintable }

Re: [net PATCH 1/1] drivers: net: cpsw: fix crash while accessing second slave ethernet interface

2015-07-08 Thread David Miller
From: Mugunthan V N mugunthan...@ti.com Date: Tue, 7 Jul 2015 18:30:39 +0530 When cpsw's number of slave is set to 1 in device tree and while accessing second slave ndev and priv in cpsw_tx_interrupt(), there is a kernel crash. This is due to cpsw_get_slave_priv() not verifying number of

Re: [PATCH net-next 0/4] Cleanup, T6 changes and register range update

2015-07-08 Thread David Miller
From: Hariprasad Shenai haripra...@chelsio.com Date: Tue, 7 Jul 2015 21:49:17 +0530 This patch series adds the following: Don't use entire L2T table, update register ranges for T6 adapter, read stats for only available channels for T6 and enable cim_la dump for T6 adapter also. This patch

[PATCH net-next 4/5] rocker: add offload_fwd_mark support

2015-07-08 Thread sfeldma
From: Scott Feldman sfel...@gmail.com If device flags ingress packet as fwd offload, mark the skb-offlaod_fwd_mark using the ingress port's dev-offlaod_fwd_mark. This will be the hint to the kernel that this packet has already been forwarded by device to egress ports matching

[PATCH net-next 0/5] switchdev: avoid duplicate packet forwarding

2015-07-08 Thread sfeldma
From: Scott Feldman sfel...@gmail.com This patchset was previously submitted as RFC. No changes from the last version (v2) sent under RFC. Including RFC version history here for reference. RFC v2: - s/fwd_mark/offload_fwd_mark - use consume_skb rather than kfree_skb when dropping pkt on

[PATCH net-next 2/5] net: add phys ID compare helper to test if two IDs are the same

2015-07-08 Thread sfeldma
From: Scott Feldman sfel...@gmail.com Signed-off-by: Scott Feldman sfel...@gmail.com --- include/linux/netdevice.h |7 +++ net/switchdev/switchdev.c |8 ++-- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h index

[PATCH net-next 1/5] net: don't reforward packets already forwarded by offload device

2015-07-08 Thread sfeldma
From: Scott Feldman sfel...@gmail.com Just before queuing skb for xmit on port, check if skb has been marked by switchdev port driver as already fordwarded by device. If so, drop skb. A non-zero skb-offload_fwd_mark field is set by the switchdev port driver/device on ingress to indicate the skb

Re: [PATCH net-next] net: igb: implement high frequency periodic output signals

2015-07-08 Thread Jeff Kirsher
On Wed, 2015-07-08 at 16:11 -0700, David Miller wrote: From: Richard Cochran richardcoch...@gmail.com Date: Tue, 7 Jul 2015 16:41:42 +0200 In addition to interrupt driven target time output events, the i210 also has two programmable clock outputs. These clocks support periods between

[PATCH net-next 3/5] switchdev: add offload_fwd_mark generator helper

2015-07-08 Thread sfeldma
From: Scott Feldman sfel...@gmail.com skb-offload_fwd_mark and dev-offload_fwd_mark are 32-bit and should be unique for device and may even be unique for a sub-set of ports within device, so add switchdev helper function to generate unique marks based on port's switch ID and group_ifindex.

[PATCH net-next 5/5] switchdev: update documentation for offload_fwd_mark

2015-07-08 Thread sfeldma
From: Scott Feldman sfel...@gmail.com Signed-off-by: Scott Feldman sfel...@gmail.com --- Documentation/networking/switchdev.txt | 14 -- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/Documentation/networking/switchdev.txt b/Documentation/networking/switchdev.txt

Re: [PATCH 0/3] rtnl_lock fixes

2015-07-08 Thread David Miller
From: Vasily Averin v...@virtuozzo.com Date: Tue, 07 Jul 2015 18:53:28 +0300 While investigation possible reasons of net_todo_list corruption on rhel6 based OpenVZ kernel I've found few places not fixed in mainline. I'm assuming the Intel folks will pick these up. -- To unsubscribe from this

Re: [PATCH net-next] cxgb4: Add PCI device ids for few more T5 and T6 adapters

2015-07-08 Thread David Miller
From: Hariprasad Shenai haripra...@chelsio.com Date: Mon, 6 Jul 2015 22:38:34 +0530 Signed-off-by: Hariprasad Shenai haripra...@chelsio.com Applied, thank you. -- To unsubscribe from this list: send the line unsubscribe netdev in the body of a message to majord...@vger.kernel.org More

Re: [PATCH net-next] ifb: add multiqueue operation

2015-07-08 Thread David Miller
From: Eric Dumazet eric.duma...@gmail.com Date: Mon, 06 Jul 2015 22:05:28 +0200 From: Eric Dumazet eduma...@google.com Add multiqueue capabilities to ifb netdevice. This removes last bottleneck for ingress when mq qdisc can be used to shard load from multiple RX queues on physical device.

Re: [PATCH] net: ec_bhf: Use module_pci_driver

2015-07-08 Thread David Miller
From: Vaishali Thakkar vthakkar1...@gmail.com Date: Tue, 7 Jul 2015 12:32:54 +0530 Use module_pci_driver for drivers whose init and exit functions only register and unregister, respectively. A simplified version of the Coccinelle semantic patch that performs this transformation is as

Re: [PATCH net] bridge: mdb: zero out the local br_ip variable before use

2015-07-08 Thread David Miller
From: Nikolay Aleksandrov ra...@blackwall.org Date: Tue, 7 Jul 2015 15:55:56 +0200 Since commit b0e9a30dd669 (bridge: Add vlan id to multicast groups) there's a check in br_ip_equal() for a matching vlan id, but the mdb functions were not modified to use (or at least zero it) so when an

Re: [PATCH net-next] net: igb: implement high frequency periodic output signals

2015-07-08 Thread David Miller
From: Richard Cochran richardcoch...@gmail.com Date: Tue, 7 Jul 2015 16:41:42 +0200 In addition to interrupt driven target time output events, the i210 also has two programmable clock outputs. These clocks support periods between 16 nanoseconds and 140 milliseconds. This patch implements

Re: [PATCH net-next] rocker: add change MTU support

2015-07-08 Thread Simon Horman
On Wed, Jul 08, 2015 at 04:06:47PM -0700, sfel...@gmail.com wrote: From: Scott Feldman sfel...@gmail.com Implement ndo_change_mtu: on MTU change, reallocate Rx ring bufs and signal HW of new port MTU value. Signed-off-by: Scott Feldman sfel...@gmail.com Looks good :) Reviewed-by: Simon

Re: [PATCH 2/6] genirq: Fix the documentation of request_percpu_irq

2015-07-08 Thread David Miller
From: Maxime Ripard maxime.rip...@free-electrons.com Date: Fri, 3 Jul 2015 16:25:47 +0200 The documentation of request_percpu_irq is confusing and suggest that the interrupt is not enabled at all, while it is actually enabled on the local CPU. Clarify that. Signed-off-by: Maxime Ripard

[PATCH -next] ipv6: use flag instead of u16 for hop in inet6_skb_parm

2015-07-08 Thread Florian Westphal
Hop was always either 0 or sizeof(struct ipv6hdr). Signed-off-by: Florian Westphal f...@strlen.de --- include/linux/ipv6.h | 2 +- net/ipv6/af_inet6.c | 4 ++-- net/ipv6/datagram.c | 8 net/ipv6/exthdrs.c | 2 +- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git

Re: [PATCH net-next 4/5] rocker: add offload_fwd_mark support

2015-07-08 Thread Scott Feldman
On Wed, Jul 8, 2015 at 9:26 PM, Simon Horman simon.hor...@netronome.com wrote: Hi Scott, On Wed, Jul 08, 2015 at 04:16:42PM -0700, sfel...@gmail.com wrote: From: Scott Feldman sfel...@gmail.com If device flags ingress packet as fwd offload, mark the skb-offlaod_fwd_mark using the ingress

Re: Fighting out-of-order reception with RPS?

2015-07-08 Thread Oliver Hartkopp
On 08.07.2015 23:17, Tom Herbert wrote: On Wed, Jul 8, 2015 at 10:49 AM, Oliver Hartkopp socket...@hartkopp.net wrote: (..) When receiving CAN frames from a specific CAN network interface (e.g. can0) the frames are sporadically out-of-order on SMP systems like my Core i7 laptop with 4 CPUs.

Re: [PATCH/RFC net-next] rocker: forward packets to CPU when a port in promiscuous mode

2015-07-08 Thread John Fastabend
On 15-07-08 09:25 PM, Simon Horman wrote: This change allows the CPU to see all packets seen by a port when the netdev associated with the port is in promiscuous mode. This change was previously posted as part of a larger patch and in turn patchset which also aimed to allow rocker interfaces

Re: [PATCH net-next] rocker: add change MTU support

2015-07-08 Thread Jiri Pirko
Thu, Jul 09, 2015 at 01:06:47AM CEST, sfel...@gmail.com wrote: From: Scott Feldman sfel...@gmail.com Implement ndo_change_mtu: on MTU change, reallocate Rx ring bufs and signal HW of new port MTU value. Signed-off-by: Scott Feldman sfel...@gmail.com Acked-by: Jiri Pirko j...@resnulli.us -- To

Re: [PATCH] mwifiex: drop condition with no effect

2015-07-08 Thread Nicholas Mc Guire
to mwifiex_dbg probably needs a review as well. Patch was compile tested with x86_64_defconfig + CONFIG_MWIFIEX=m Patch is against 4.2-rc1 (localversion-next is -next-20150708) drivers/net/wireless/mwifiex/sta_cmdresp.c | 11 +++ 1 file changed, 3 insertions(+), 8 deletions

Re: [PATCH net-next 5/5] switchdev: update documentation for offload_fwd_mark

2015-07-08 Thread Scott Feldman
On Wed, Jul 8, 2015 at 9:27 PM, Simon Horman simon.hor...@netronome.com wrote: On Wed, Jul 08, 2015 at 04:16:43PM -0700, sfel...@gmail.com wrote: From: Scott Feldman sfel...@gmail.com Signed-off-by: Scott Feldman sfel...@gmail.com --- Documentation/networking/switchdev.txt | 14

Re: ip_forward_use_pmtu and forwarding to xfrm'ed gre

2015-07-08 Thread Timo Teras
Hi, On Wed, 08 Jul 2015 19:39:58 +0200 Hannes Frederic Sowa han...@stressinduktion.org wrote: On Wed, 2015-07-08 at 19:17 +0300, Timo Teras wrote: On Wed, 08 Jul 2015 17:52:32 +0200 Hannes Frederic Sowa han...@stressinduktion.org wrote: On Wed, 2015-07-08 at 16:30 +0300, Timo Teras

[net-next]Disable writting on reg config1 value is read-only

2015-07-08 Thread Marian Corcodel
On rtl8101/8102 MEMMAP | IOMAP | VPD | PMEnable is enabled on default and is read-only and is not need to write on these. diff --git a/drivers/net/ethernet/realtek/r8169.c b/drivers/net/ethernet/realtek/r8169.c index 1a55057..c285028 100644 --- a/drivers/net/ethernet/realtek/r8169.c +++

<    1   2