RE: Should driver set CHECKSUM_COMPLETE for TCP pakcets

2015-08-17 Thread Yuval Mintz
Consider a device that doesn't provide the complete checksum for entire Rx packets, but does verify the checksums for several protocols. Now, assuming the HW is capable of verifying TCP checksums - Should the driver calculate the pseudo TCP checksum for such packets and pass those as COMPLETE? Or

Re: [PATCH net-next v3] rocker: add debugfs support to dump internal tables

2015-08-17 Thread Jiri Pirko
Tue, Aug 18, 2015 at 08:14:48AM CEST, sfel...@gmail.com wrote: >On Mon, Aug 17, 2015 at 10:55 PM, Jiri Pirko wrote: >> Tue, Aug 18, 2015 at 12:36:17AM CEST, sfel...@gmail.com wrote: >>>From: Scott Feldman >>> tree /sys/kernel/debug/rocker >>>/sys/kernel/debug/rocker >>>└── 525400123501 >

Should driver set CHECKSUM_COMPLETE for TCP pakcets

2015-08-17 Thread Yuval Mintz
Consider a device that doesn't provide the complete checksum for entire Rx packets, but does verify the checksums for several protocols. Now, assuming the HW is capable of verifying TCP checksums - Should the driver calculate the pseudo TCP checksum for such packets and pass those as COMPLETE? Or

Re: [PATCH net-next v3] rocker: add debugfs support to dump internal tables

2015-08-17 Thread Scott Feldman
On Mon, Aug 17, 2015 at 10:55 PM, Jiri Pirko wrote: > Tue, Aug 18, 2015 at 12:36:17AM CEST, sfel...@gmail.com wrote: >>From: Scott Feldman >> >>> tree /sys/kernel/debug/rocker >>/sys/kernel/debug/rocker >>└── 525400123501 >>├── fdb_tbl >>├── internal_vlan_tbl >>├── neigh_tbl >>

Re: rt2x00: adjust EEPROM_SIZE for rt2500usb

2015-08-17 Thread Kalle Valo
> rt2500usb_validate_eeprom() read data up to 0x6e (EEPROM_CALIBRATE_OFFSET) > but only 0x6a bytes has been allocated and read from the eeprom. > > This lead to out-of-bound accesses and invalid values for > EEPROM_BBPTUNE_R17 and EEPROM_CALIBRATE_OFFSET. > > Change the EEPROM_SIZE to 0x6e in or

Re: [PATCH net-next v3] rocker: add debugfs support to dump internal tables

2015-08-17 Thread Jiri Pirko
Tue, Aug 18, 2015 at 12:36:17AM CEST, sfel...@gmail.com wrote: >From: Scott Feldman > >> tree /sys/kernel/debug/rocker >/sys/kernel/debug/rocker >└── 525400123501 >├── fdb_tbl >├── internal_vlan_tbl >├── neigh_tbl >├── of_dpa_flow_tbl >└── of_dpa_group_tbl > >1 directory, 5

Re: [v1 0/6] *** nps_enet fixups ***

2015-08-17 Thread David Miller
From: Noam Camus Date: Tue, 18 Aug 2015 05:04:20 + > I followed "Hardware Architecture" section from: > http://www.linuxfoundation.org/collaborate/workgroups/networking/napi > and came up with "reduce processing latency" idea. That document has lots of incorrect advice, that's for sure. For

RE: [PATCH V4 4/7] Drivers: hv: vmbus: add APIs to register callbacks to process hvsock connection

2015-08-17 Thread KY Srinivasan
> -Original Message- > From: Dexuan Cui > Sent: Friday, August 7, 2015 3:27 AM > To: KY Srinivasan ; David Miller > > Cc: o...@aepfle.de; gre...@linuxfoundation.org; jasow...@redhat.com; > driverdev-de...@linuxdriverproject.org; linux-ker...@vger.kernel.org; > step...@networkplumber.org;

RE: [v1 0/6] *** nps_enet fixups ***

2015-08-17 Thread Noam Camus
From: David Miller [mailto:da...@davemloft.net] Sent: Monday, August 17, 2015 8:36 PM > You should not move TX completion out of NAPI handling, NAPI poll is exactly > where it belongs. > > If you handle it in hardware interrupt context you have to use > dev_kfree_skb_irq() which defers the oper

RE: [PATCH] bridge: Enable configuration of ageing interval for bridges and switch devices.

2015-08-17 Thread Rosen, Rami
Hi, First, I agree about the need to propagate the ageing interval to switchdev devices, so that hardware based aging can be setup correctly. Second, in this occasion, I want to mention the need to turn off bridge ageing in the kernel as part of using switchdev devices. This is mentioned in ht

[PATCH net-next v3 0/4] net: Identifier Locator Addressing - Part I

2015-08-17 Thread Tom Herbert
This patch set provides rudimentary support for Identifier Locator Addressing or ILA. The basic concept of ILA is that we split an IPv6 address into a 64 bit locator and 64 bit identifier. The identifier is the identity of an entity in communication ("who"), and the locator expresses the location o

Re: [PATCH net-next v4 0/4] net: Identifier Locator Addressing - Part I

2015-08-17 Thread David Miller
From: Tom Herbert Date: Mon, 17 Aug 2015 13:42:23 -0700 > This patch set provides rudimentary support for Identifier Locator > Addressing or ILA. Series applied, thanks Tom. -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majord...@vger.kernel.org

Re: [net-next RFC] net: ipv4: Send IGMP messages from highest scoped address

2015-08-17 Thread David Miller
From: Andrew Lunn Date: Mon, 17 Aug 2015 18:09:24 +0200 > This is RFC because i personally don't know if this is the best fix. > The patch restores previous behavior, while still keeping the bug fix. > > It is not obvious what is the correct source address for an IGMP > message when an interface

Re: [net-next:master 894/905] drivers/net/ethernet/cisco/enic/vnic_dev.c:1095:13: sparse: incorrect type in assignment (different address spaces)

2015-08-17 Thread David Miller
From: kbuild test robot Date: Tue, 18 Aug 2015 09:07:32 +0800 > sparse warnings: (new ones prefixed by >>) > >>> drivers/net/ethernet/cisco/enic/vnic_dev.c:1095:13: sparse: incorrect type >>> in assignment (different address spaces) >drivers/net/ethernet/cisco/enic/vnic_dev.c:1095:13:ex

Re: [net-next:master 904/905] drivers/net/ethernet/mellanox/mlx5/core/en_rx.c:173:44: sparse: incorrect type in argument 1 (different base types)

2015-08-17 Thread David Miller
From: kbuild test robot Date: Tue, 18 Aug 2015 09:16:07 +0800 > tree: git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git > master > head: 9cd3778cd7e8f165675705511cfcd4ea6eb88d27 > commit: bbceefce9adfc9cf7b4110727c96c841ba8c7964 [904/905] net/mlx5e: Support > RX CHECKSUM_COMP

RE: [Intel-wired-lan] [PATCH] e100: Add a check after pci_pool_create to avoid null pointer dereference

2015-08-17 Thread Brown, Aaron F
> From: Intel-wired-lan [mailto:intel-wired-lan-boun...@lists.osuosl.org] On > Behalf Of Jia-Ju Bai > Sent: Sunday, August 02, 2015 7:17 PM > To: Kirsher, Jeffrey T; Brandeburg, Jesse > Cc: netdev@vger.kernel.org; Jia-Ju Bai; intel-wired-...@lists.osuosl.org; > linux-ker...@vger.kernel.org > Subjec

RE: [Intel-wired-lan] [PATCH] e100: Release skb when DMA mapping is failed in e100_xmit_prepare

2015-08-17 Thread Brown, Aaron F
> From: Intel-wired-lan [mailto:intel-wired-lan-boun...@lists.osuosl.org] On > Behalf Of Jia-Ju Bai > Sent: Sunday, August 02, 2015 7:41 PM > To: Kirsher, Jeffrey T; Brandeburg, Jesse > Cc: netdev@vger.kernel.org; Jia-Ju Bai; intel-wired-...@lists.osuosl.org; > linux-ker...@vger.kernel.org > Subjec

linux-next: manual merge of the net-next tree with the net tree

2015-08-17 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the net-next tree got a conflict in: drivers/net/usb/qmi_wwan.c between commit: a8079092c1bb ("net: qmi_wwan: add HP lt4111 LTE/EV-DO/HSPA+ Gobi 4G Module") from the net tree and commit: 2070c48cf2b7 ("qmi_wwan: Add support for Dell Wireless 5809e 4G

[net-next:master 904/905] drivers/net/ethernet/mellanox/mlx5/core/en_rx.c:173:44: sparse: incorrect type in argument 1 (different base types)

2015-08-17 Thread kbuild test robot
tree: git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git master head: 9cd3778cd7e8f165675705511cfcd4ea6eb88d27 commit: bbceefce9adfc9cf7b4110727c96c841ba8c7964 [904/905] net/mlx5e: Support RX CHECKSUM_COMPLETE reproduce: # apt-get install sparse git checkout bbceefce9adfc9cf7

[net-next:master 894/905] drivers/net/ethernet/cisco/enic/vnic_dev.c:1095:13: sparse: incorrect type in assignment (different address spaces)

2015-08-17 Thread kbuild test robot
tree: git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git master head: 9cd3778cd7e8f165675705511cfcd4ea6eb88d27 commit: 373fb0873d4325a7afa04aec29ced0c122d1f8a9 [894/905] enic: add devcmd2 reproduce: # apt-get install sparse git checkout 373fb0873d4325a7afa04aec29ced0c122d1f8a9

[no subject]

2015-08-17 Thread Kussner, Sara
Please contact me about this project (mrsyuen@outlook.com) Regards -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: [Patch V3 5/9] i40e: Use numa_mem_id() to better support memoryless node

2015-08-17 Thread David Rientjes
On Mon, 17 Aug 2015, Jiang Liu wrote: > Function i40e_clean_rx_irq() tries to reuse memory pages allocated s/i40e_clean_rx_irq/i40e_clean_rx_irq_ps/ > from the nearest node. To better support memoryless node, use > numa_mem_id() instead of numa_node_id() to get the nearest node with > memory. >

Re: [PATCH v1 2/2] drivers: net: xgene: Adding support for TSO

2015-08-17 Thread David Miller
From: Iyappan Subramanian Date: Mon, 17 Aug 2015 14:33:05 -0700 > + /* HW requires all header resides in the first buffer */ > + if (skb_is_nonlinear(skb) && > + (skb_headlen(skb) < hdr_len)) { > + netdev_

Re: [Patch V3 4/9] openvswitch: Replace cpu_to_node() with cpu_to_mem() to support memoryless node

2015-08-17 Thread Pravin Shelar
On Sun, Aug 16, 2015 at 8:19 PM, Jiang Liu wrote: > Function ovs_flow_stats_update() allocates memory with __GFP_THISNODE > flag set, which may cause permanent memory allocation failure on > memoryless node. So replace cpu_to_node() with cpu_to_mem() to better > support memoryless node. For node w

Re: [PATCH 2/5] net: add Hisilicon Network Subsystem hnae framework support

2015-08-17 Thread Alexey Klimov
Hi Kenneth, just small minor question. On Fri, Aug 14, 2015 at 1:30 PM, Kenneth Lee wrote: > HNAE (Hisilicon Network Acceleration Engine) is a framework to provide a > unified ring buffer interface for Hisilicon Network Acceleration Engines. > > With the interface, upper layer can work as ethern

Re: Linux 4.2-rc6 regression: RIP: e030:[] [] detach_if_pending+0x18/0x80

2015-08-17 Thread Jon Christopherson
On 08/17/2015 12:18 PM, Eric Dumazet wrote: From: Eric Dumazet Then can you try following fix as well ? Thanks ! [PATCH] timer: fix a race in __mod_timer() I have been running the latest code from git with the 2 patches in this thread applied. No issues so far. -Jon -- To unsubs

[PATCH net-next v4 1/4] lwt: Add support to redirect dst.input

2015-08-17 Thread Tom Herbert
This patch adds the capability to redirect dst input in the same way that dst output is redirected by LWT. Also, save the original dst.input and and dst.out when setting up lwtunnel redirection. These can be called by the client as a pass- through. Signed-off-by: Tom Herbert --- include/net/lwt

Re: [PATCH] net: rtnetlink: be more strict when setting MAC address

2015-08-17 Thread Phil Sutter
On Mon, Aug 17, 2015 at 02:09:33PM -0700, David Miller wrote: > From: Phil Sutter > Date: Mon, 17 Aug 2015 23:06:47 +0200 > > > Upon evaluation of IFLA_ADDRESS and IFLA_BROADCAST messages, make sure > > the passed argument length matches dev->addr_len exactly. > > > > This fixes dubious behaviou

Re: [PATCH] inet: Move VRF table lookup to inlined function

2015-08-17 Thread David Miller
From: David Ahern Date: Sun, 16 Aug 2015 17:13:27 -0600 > Table lookup compiles out when VRF is not enabled. > > Signed-off-by: David Ahern Applied, thanks. -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majord...@vger.kernel.org More majordomo

Re: [PATCH] net: Fix docbook warning for IFF_VRF_MASTER enum

2015-08-17 Thread David Miller
From: David Ahern Date: Sun, 16 Aug 2015 10:26:49 -0600 > kbuild test robot reported: > tree: git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git > master > head: d52736e24fe2e927c26817256f8d1a3c8b5d51a0 > commit: 4e3c89920cd3a6cfce22c6f537690747c26128dd [751/762] net: Introduce

Re: [PATCH net-next v2] net: Updates to netif_index_is_vrf

2015-08-17 Thread David Miller
From: David Ahern Date: Sun, 16 Aug 2015 07:49:20 -0600 > As Eric noted netif_index_is_vrf is not called with rcu_read_lock held, > so wrap the dev_get_by_index_rcu in rcu_read_lock and unlock. > > If VRF is not enabled or oif is 0 skip the device lookup. In both cases > index cannot be the VRF

Re: [PATCH] net: phy: fix semicolon.cocci warnings

2015-08-17 Thread David Miller
From: kbuild test robot Date: Tue, 18 Aug 2015 06:31:42 +0800 > drivers/net/phy/smsc.c:127:3-4: Unneeded semicolon > > > Remove unneeded semicolon. > > Generated by: scripts/coccinelle/misc/semicolon.cocci > > CC: Igor Plyatov > Signed-off-by: Fengguang Wu Applied. -- To unsubscribe from

Re: [PATCH net-next 0/8] Driver updates 16-Aug-2015

2015-08-17 Thread David Miller
From: Achiad Shochat Date: Sun, 16 Aug 2015 16:04:44 +0300 > This patchset contains bug fixes, new RSS and pause parameters ethtool > options, and support for RX CHECKSUM_COMPLETE. > > Patchset was applied and tested over commit adc6310 ("Merge branch > 'mv88e6xxx-switchdev-fdb'"). Series appli

Re: pull request: bluetooth-next 2015-08-16

2015-08-17 Thread David Miller
From: Johan Hedberg Date: Sun, 16 Aug 2015 09:05:28 +0300 > Here's what's likely the last bluetooth-next pull request for 4.3: > > - 6lowpan/802.15.4 refactoring, cleanups & fixes > - Document 6lowpan netdev usage in Documentation/networking/6lowpan.txt > - Support for UART based QCA Bluetoot

Re: [PATCH] net: qmi_wwan: add HP lt4111 LTE/EV-DO/HSPA+ Gobi 4G Module

2015-08-17 Thread David Miller
From: David Ward Date: Sat, 15 Aug 2015 20:12:30 -0400 > This is an HP-branded Sierra Wireless EM7355: > https://bugzilla.redhat.com/show_bug.cgi?id=1223646#c2 > > Signed-off-by: David Ward Applied, thanks. -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a m

Re: [PATCH] net: Move VRF change to udp_sendmsg to inlined function

2015-08-17 Thread David Miller
From: David Ahern Date: Sat, 15 Aug 2015 18:11:59 -0600 > Functionally equivalent, but as an inlined function with VRF config > check it completely compiles out if VRF is not enabled. > > Suggested-by: Tom Herbert > Signed-off-by: David Ahern Please do not use the 'inline' keyword for functio

Re: [PATCH 0/4 net-next] enic: add devcmd2

2015-08-17 Thread David Miller
From: Govindarajulu Varadarajan <_gov...@gmx.com> Date: Sun, 16 Aug 2015 01:44:50 +0530 > This series adds new devcmd2 support. The first two patches are code > refactoring. > > devcmd is an interface for driver to communicate with fw/adaptor. It > involves writing data to hardware registers and

Re: [PATCH -next] smsc911x: Fix crash seen if neither ACPI nor OF is configured or used

2015-08-17 Thread Jeremy Linton
On 08/17/2015 05:14 PM, Guenter Roeck wrote: One nitpick I noticed after sending my patch: dev can never be NULL in smsc911x_probe_config(), so it does not really make sense to check if it is NULL. No, it doesn't... it should really be something like if (dev_fwnode(dev)) But dev_fwnode is st

[PATCH net-next v3] rocker: add debugfs support to dump internal tables

2015-08-17 Thread sfeldma
From: Scott Feldman > tree /sys/kernel/debug/rocker /sys/kernel/debug/rocker └── 525400123501 ├── fdb_tbl ├── internal_vlan_tbl ├── neigh_tbl ├── of_dpa_flow_tbl └── of_dpa_group_tbl 1 directory, 5 files > cat /sys/kernel/debug/rocker/525400123501/internal_vlan_tbl i

[net:master 10/12] drivers/net/phy/smsc.c:127:3-4: Unneeded semicolon

2015-08-17 Thread kbuild test robot
tree: git://git.kernel.org/pub/scm/linux/kernel/git/davem/net.git master head: af19e68683ba9c29e778d0f8be5be61a0ebb4166 commit: 776829de90c5972895db398993ddfa9417ff8b01 [10/12] net: phy: workaround for buggy cable detection by LAN8700 after cable plugging coccinelle warnings: (new ones prefi

[PATCH] net: phy: fix semicolon.cocci warnings

2015-08-17 Thread kbuild test robot
drivers/net/phy/smsc.c:127:3-4: Unneeded semicolon Remove unneeded semicolon. Generated by: scripts/coccinelle/misc/semicolon.cocci CC: Igor Plyatov Signed-off-by: Fengguang Wu --- smsc.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/net/phy/smsc.c +++ b/drivers/n

[PATCH net-next v4 3/4] net: Add inet_proto_csum_replace_by_diff utility function

2015-08-17 Thread Tom Herbert
This function updates a checksum field value and skb->csum based on a value which is the difference between the old and new checksum. Signed-off-by: Tom Herbert --- include/net/checksum.h | 2 ++ net/core/utils.c | 13 + 2 files changed, 15 insertions(+) diff --git a/include/

Re: [PATCH -next] smsc911x: Fix crash seen if neither ACPI nor OF is configured or used

2015-08-17 Thread Guenter Roeck
On 08/17/2015 02:19 PM, Jeremy Linton wrote: On 08/17/2015 03:45 PM, Guenter Roeck wrote: Commit 0b50dc4fc971 ("Convert smsc911x to use ACPI as well as DT") makes the call to smsc911x_probe_config() unconditional, and no longer fails if there is no device node. device_get_phy_mode() is called un

[PATCH net-next 3/3] dsa: mv88e6xxx: Set DSA mode based on chip abilities

2015-08-17 Thread Andrew Lunn
Older devices only support a single DSA frame format, where as newer devices have two. Take this into account when configuring a DSA port. The port needs to be in plain old DSA mode, since this is a DSA link, where as the newer format can be used for the CPU port. Signed-off-by: Andrew Lunn ---

[PATCH net-next 1/3] net: dsa: Allow multi hop routes to be expressed

2015-08-17 Thread Andrew Lunn
With more than two switches in a hierarchy, it becomes necessary to describe multi-hop routes between switches. The current binding does not allow this, although the older platform_data did. Extend the link property to be a list rather than a single phandle to a remote switch. It is then possible t

[PATCH net-next 2/3] net: dsa: Add dsa_is_dsa_port() helper

2015-08-17 Thread Andrew Lunn
Add an inline helper for determining is a port is a DSA port. Signed-off-by: Andrew Lunn --- drivers/net/dsa/mv88e6xxx.c | 5 ++--- include/net/dsa.h | 5 + 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/drivers/net/dsa/mv88e6xxx.c b/drivers/net/dsa/mv88e6xxx.c inde

[PATCH net-next 0/3] D in DSA patches

2015-08-17 Thread Andrew Lunn
The D in DSA is distributed, meaning multiple switches can be connected together. Currently no mainline system does this, and so the code is broken. This patchset contains two fixes, and a small helper. With three of more switches, the current device tree binding is not sufficient to express the r

[PATCH net-next v4 0/4] net: Identifier Locator Addressing - Part I

2015-08-17 Thread Tom Herbert
This patch set provides rudimentary support for Identifier Locator Addressing or ILA. The basic concept of ILA is that we split an IPv6 address into a 64 bit locator and 64 bit identifier. The identifier is the identity of an entity in communication ("who"), and the locator expresses the location o

[PATCH net-next v4 4/4] net: Identifier Locator Addressing module

2015-08-17 Thread Tom Herbert
Adding new module name ila. This implements ILA translation. Light weight tunnel redirection is used to perform the translation in the data path. This is configured by the "ip -6 route" command using the "encap ila " option, where is the value to set in destination locator of the packet. e.g. ip

[PATCH net-next v4 2/4] net: Change pseudohdr argument of inet_proto_csum_replace* to be a bool

2015-08-17 Thread Tom Herbert
inet_proto_csum_replace4,2,16 take a pseudohdr argument which indicates the checksum field carries a pseudo header. This argument should be a boolean instead of an int. Signed-off-by: Tom Herbert --- include/net/checksum.h | 6 +++--- net/core/filter.c|

[PATCH] net: Export bpf_prog_create_from_user().

2015-08-17 Thread David Miller
Signed-off-by: David S. Miller --- net/core/filter.c | 1 + 1 file changed, 1 insertion(+) diff --git a/net/core/filter.c b/net/core/filter.c index a50dbfa..f818422 100644 --- a/net/core/filter.c +++ b/net/core/filter.c @@ -1124,6 +1124,7 @@ int bpf_prog_create_from_user(struct bpf_prog **pfp,

Re: [PATCH net-next] ipv6: trivial whitespace fix

2015-08-17 Thread David Miller
From: Ian Morris Date: Fri, 14 Aug 2015 22:43:38 +0100 > Change brace placement to be in line with coding standards > > Signed-off-by: Ian Morris Applied, thanks. -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majord...@vger.kernel.org More maj

Re: [PATCH net-next] ipv6: remove unnecessary include

2015-08-17 Thread David Miller
From: Ian Morris Date: Fri, 14 Aug 2015 23:13:19 +0100 > printk.h does not need to be explicitly included as we include kernel.h > which already called it. > > Signed-off-by: Ian Morris We should not rely on such things and include explicitly the headers that directly provide the interfaces we

[PATCH v1 1/2] drivers: net: xgene: Preparatory patch for TSO support

2015-08-17 Thread Iyappan Subramanian
- Rearranged descriptor writes - Moved increment command write to xgene_enet_setup_tx_desc Signed-off-by: Iyappan Subramanian --- drivers/net/ethernet/apm/xgene/xgene_enet_main.c | 29 ++-- drivers/net/ethernet/apm/xgene/xgene_enet_main.h | 1 + 2 files changed, 23 insertion

[PATCH v1 0/2] drivers: net: xgene: Add TSO support

2015-08-17 Thread Iyappan Subramanian
Adding TSO support iperf Tx data rate without TSO: 3.42 Gbps with TSO: 9.41 Gbps v1 * Initial version Signed-off-by: Iyappan Subramanian --- Iyappan Subramanian (2): drivers: net: xgene: Preparatory patch for TSO support drivers: net: xgene: Adding support for TSO d

[PATCH v1 2/2] drivers: net: xgene: Adding support for TSO

2015-08-17 Thread Iyappan Subramanian
Signed-off-by: Iyappan Subramanian --- drivers/net/ethernet/apm/xgene/xgene_enet_hw.h| 16 +- drivers/net/ethernet/apm/xgene/xgene_enet_main.c | 239 -- drivers/net/ethernet/apm/xgene/xgene_enet_main.h | 11 + drivers/net/ethernet/apm/xgene/xgene_enet_xgmac.c | 8 +-

Re: [PATCH] rhashtable-test: extend to test concurrency

2015-08-17 Thread David Miller
From: Phil Sutter Date: Sat, 15 Aug 2015 00:37:15 +0200 > After having tested insertion, lookup, table walk and removal, spawn a > number of threads running operations on the same rhashtable. Each of > them will: > > 1) insert it's own set of objects, > 2) lookup every successfully inserted obje

Re: pull request: batman-adv 20150814

2015-08-17 Thread David Miller
From: Antonio Quartulli Date: Fri, 14 Aug 2015 22:57:04 +0200 > this is our first batch intended for net-next/linux-4.3 (resent after > fixing the parenthesis as reported by Sergei). Pulled, thanks Antonio. -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a mes

Re: [PATCH net] be2net: avoid vxlan offloading on multichannel configs

2015-08-17 Thread David Miller
From: Ivan Vecera Date: Fri, 14 Aug 2015 22:30:01 +0200 > VxLAN offloading is not functional if the NIC is running in multichannel > mode (UMC, FLEX-10, VNIC...). Enabling this additionally kills whole > connectivity through the NIC and the device needs to be down and up to > restore it. The firm

Re: [PATCH v2 net 0/3] ipv6: Fix a potential deadlock when creating pcpu rt

2015-08-17 Thread David Miller
From: Martin KaFai Lau Date: Fri, 14 Aug 2015 11:05:51 -0700 > v1 -> v2: > A minor change in the commit message of patch 2. > > This patch series fixes a potential deadlock when creating a pcpu rt. > It happens when dst_alloc() decided to run gc. Something like this: > > read_lock(&table->tb6_l

Re: [PATCH v3] net: phy: workaround for buggy cable detection by LAN8700 after cable plugging

2015-08-17 Thread David Miller
From: Igor Plyatov Date: Fri, 14 Aug 2015 20:11:02 +0300 > * Due to HW bug, LAN8700 sometimes does not detect presence of energy in the > Ethernet cable in Energy Detect Power-Down mode (e.g while EDPWRDOWN bit is > set, the ENERGYON bit does not asserted sometimes). This is a common bug of >

Re: pull-request: mac80211-next 2015-08-14

2015-08-17 Thread David Miller
From: Johannes Berg Date: Fri, 14 Aug 2015 17:54:36 +0200 > And, in addition to the fix before, I have a -next pull request. It's > actually quite big since I hadn't wanted to send one just before my > vacation. > > Let me know if there are any issues. Pulled, thanks Johannes. -- To unsubscribe

Re: [PATCH net-next v2 0/4] packet: add cBPF and eBPF fanout modes

2015-08-17 Thread David Miller
From: Willem de Bruijn Date: Fri, 14 Aug 2015 22:31:33 -0400 > From: Willem de Bruijn > > Allow programmable fanout modes. Support both classical BPF programs > passed directly and extended BPF programs passed by file descriptor. > > One use case is packet steering by deep packet inspection, f

Re: [PATCH -next] smsc911x: Fix crash seen if neither ACPI nor OF is configured or used

2015-08-17 Thread Jeremy Linton
On 08/17/2015 03:45 PM, Guenter Roeck wrote: Commit 0b50dc4fc971 ("Convert smsc911x to use ACPI as well as DT") makes the call to smsc911x_probe_config() unconditional, and no longer fails if there is no device node. device_get_phy_mode() is called unconditionally, and if there is no phy node con

[PATCH net-next v2 4/9] geneve: Make dst-port configurable.

2015-08-17 Thread Pravin B Shelar
Add netlink interface to configure Geneve UDP port number. So that user can configure it for a Gevene device. Signed-off-by: Pravin B Shelar --- drivers/net/geneve.c | 25 + include/uapi/linux/if_link.h | 1 + 2 files changed, 22 insertions(+), 4 deletions(-) di

[PATCH net-next v2 1/9] geneve: Initialize ethernet address in device setup.

2015-08-17 Thread Pravin B Shelar
Signed-off-by: Pravin B Shelar --- drivers/net/geneve.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/net/geneve.c b/drivers/net/geneve.c index 78d49d1..51f7f8b 100644 --- a/drivers/net/geneve.c +++ b/drivers/net/geneve.c @@ -298,6 +298,7 @@ static void geneve_set

[PATCH net-next v2 6/9] openvswitch: Use Geneve device.

2015-08-17 Thread Pravin B Shelar
With help of tunnel metadata mode OVS can directly use Geneve devices to implement Geneve tunnels. This patch removes all of the OVS specific Geneve code and make OVS use a Geneve net_device. Basic geneve vport is still there to handle compatibility with current userspace application. Signed-off-b

[PATCH net-next v2 2/9] geneve: Use skb mark and protocol to lookup route.

2015-08-17 Thread Pravin B Shelar
On packet transmit path geneve need to lookup route. Following patch improves route lookup using more parameters. Signed-off-by: Pravin B Shelar --- drivers/net/geneve.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/net/geneve.c b/drivers/net/geneve.c index 51f7f8b..4f4d15e 1006

[PATCH net-next v2 7/9] geneve: Consolidate Geneve functionality in single module.

2015-08-17 Thread Pravin B Shelar
geneve_core module handles send and receive functionality. This way OVS could use the Geneve API. Now with use of tunnel meatadata mode OVS can directly use Geneve netdevice. So there is no need for separate module for Geneve. Following patch consolidates Geneve protocol processing in single module

[PATCH net-next v2 3/9] tunnel: introduce udp_tun_rx_dst()

2015-08-17 Thread Pravin B Shelar
Introduce function udp_tun_rx_dst() to initialize tunnel dst on receive path. Signed-off-by: Pravin B Shelar Reviewed-by: Jesse Gross --- drivers/net/vxlan.c| 18 ++ include/net/dst_metadata.h | 27 +++ include/net/udp_tunnel.h | 3 +++ net/ipv

[PATCH net-next v2 9/9] geneve: Implement rtnl changelink

2015-08-17 Thread Pravin B Shelar
Allow run time changes to Geneve device configuration. Signed-off-by: Pravin B Shelar --- drivers/net/geneve.c | 159 +-- 1 file changed, 115 insertions(+), 44 deletions(-) diff --git a/drivers/net/geneve.c b/drivers/net/geneve.c index e47cdd9..0d

[PATCH net-next v2 5/9] geneve: Add support to collect tunnel metadata.

2015-08-17 Thread Pravin B Shelar
Following patch create new tunnel flag which enable tunnel metadata collection on given device. These devices can be used by tunnel metadata based routing or by OVS. Geneve Consolidation patch get rid of collect_md_tun to simplify tunnel lookup further. Signed-off-by: Pravin B Shelar --- drivers

[PATCH net-next v2 8/9] geneve: Move device hash table to geneve socket.

2015-08-17 Thread Pravin B Shelar
This change simplifies Geneve Tunnel hash table management. Signed-off-by: Pravin B Shelar --- drivers/net/geneve.c | 76 1 file changed, 41 insertions(+), 35 deletions(-) diff --git a/drivers/net/geneve.c b/drivers/net/geneve.c index eb298ff

[PATCH net-next v2 0/9] Geneve: Add support for tunnel metadata mode

2015-08-17 Thread Pravin B Shelar
Following patches adds spport for Geneve tunnel metadata mode. OVS can make use of Geneve net-device with tunnel metadata API from kernel. This also allows us to consolidate Geneve implementation from two kernel modules geneve_core and geneve to single geneve module. geneve_core module was targete

Re: [PATCH] net: rtnetlink: be more strict when setting MAC address

2015-08-17 Thread David Miller
From: Phil Sutter Date: Mon, 17 Aug 2015 23:06:47 +0200 > Upon evaluation of IFLA_ADDRESS and IFLA_BROADCAST messages, make sure > the passed argument length matches dev->addr_len exactly. > > This fixes dubious behaviour of 'ip link set eth0 addr ' where > '' is too long, e.g. '00:11:22:33:44:5

Re: [PATCH 1/6] net/bonding: enable LRO if one device supports it

2015-08-17 Thread Jarod Wilson
On 2015-08-14 7:41 PM, Jarod Wilson wrote: On 2015-08-14 2:56 AM, Michal Kubecek wrote: On Thu, Aug 13, 2015 at 02:02:55PM -0400, Jarod Wilson wrote: Currently, all bonding devices come up, and claim to have LRO support, which ethtool will let you toggle on and off, even if none of the underlyi

Re: [PATCH net-next] lwtunnel: rename ip lwtunnel attributes

2015-08-17 Thread David Miller
From: Jiri Benc Date: Fri, 14 Aug 2015 16:40:40 +0200 > We already have IFLA_IPTUN_ netlink attributes. The IP_TUN_ attributes look > very similar, yet they serve very different purpose. This is confusing for > anyone trying to implement a user space tool supporting lwt. > > As the IP_TUN_ attri

[PATCH] net: rtnetlink: be more strict when setting MAC address

2015-08-17 Thread Phil Sutter
Upon evaluation of IFLA_ADDRESS and IFLA_BROADCAST messages, make sure the passed argument length matches dev->addr_len exactly. This fixes dubious behaviour of 'ip link set eth0 addr ' where '' is too long, e.g. '00:11:22:33:44:55:66:77'. Called like this, 'ip' would return successfully and the k

Re: [PATCH -next] smsc911x: Fix crash seen if neither ACPI nor OF is configured or used

2015-08-17 Thread David Miller
From: Guenter Roeck Date: Mon, 17 Aug 2015 13:45:36 -0700 > Commit 0b50dc4fc971 ("Convert smsc911x to use ACPI as well as DT") makes > the call to smsc911x_probe_config() unconditional, and no longer fails if > there is no device node. device_get_phy_mode() is called unconditionally, > and if the

Re: pull request (net-next): ipsec-next 2015-08-17

2015-08-17 Thread David Miller
From: Steffen Klassert Date: Mon, 17 Aug 2015 21:58:17 +0200 > 1) Fix IPv6 ECN decapsulation for IPsec interfamily tunnels. >From Thomas Egerer. > > 2) Use kmemdup instead of duplicating it in xfrm_dump_sa(). >From Andrzej Hajda. > > 3) Pass oif to the xfrm lookups so that it gets set o

Re: pull-request: mac80211 2015-08-14

2015-08-17 Thread David Miller
From: Johannes Berg Date: Fri, 14 Aug 2015 13:20:26 +0200 > I'm back from vacation, and found a single bugfix waiting. It's in this > pull request, but I'm not quite up to speed as to what's happening with > the release. If it goes in, great; if not I've already tagged it with > Cc stable anyway.

Re: [PATCHv1 net-next 0/5] netlink: mmap: kernel panic and some issues

2015-08-17 Thread David Miller
From: Daniel Borkmann Date: Fri, 14 Aug 2015 12:38:21 +0200 > diff --git a/net/netlink/af_netlink.c b/net/netlink/af_netlink.c > index 67d2104..4307446 100644 > --- a/net/netlink/af_netlink.c > +++ b/net/netlink/af_netlink.c > @@ -238,6 +238,13 @@ static void __netlink_deliver_tap(struct sk_buff

Re: [PATCH] net/bonding: send arp in interval if no active slave

2015-08-17 Thread Uwe Koziolek
On Mon, Aug 17, 2015 at 09:14PM +0200, Jay Vosburgh wrote: Uwe Koziolek wrote: On2015-08-17 07:12 PM,Jarod Wilson wrote: On 2015-08-17 12:55 PM, Veaceslav Falico wrote: On Mon, Aug 17, 2015 at 12:23:03PM -0400, Jarod Wilson wrote: From: Uwe Koziolek With some very finicky switch hardware,

[PATCH -next] smsc911x: Fix crash seen if neither ACPI nor OF is configured or used

2015-08-17 Thread Guenter Roeck
Commit 0b50dc4fc971 ("Convert smsc911x to use ACPI as well as DT") makes the call to smsc911x_probe_config() unconditional, and no longer fails if there is no device node. device_get_phy_mode() is called unconditionally, and if there is no phy node configured returns an error code. This error code

[PATCH 3/4] xfrm: Add oif to dst lookups

2015-08-17 Thread Steffen Klassert
From: David Ahern Rules can be installed that direct route lookups to specific tables based on oif. Plumb the oif through the xfrm lookups so it gets set in the flow struct and passed to the resolver routines. Signed-off-by: David Ahern Signed-off-by: Steffen Klassert --- include/net/xfrm.h

[PATCH 2/4] net/xfrm: use kmemdup rather than duplicating its implementation

2015-08-17 Thread Steffen Klassert
From: Andrzej Hajda The patch was generated using fixed coccinelle semantic patch scripts/coccinelle/api/memdup.cocci [1]. [1]: http://permalink.gmane.org/gmane.linux.kernel/2014320 Signed-off-by: Andrzej Hajda Signed-off-by: Steffen Klassert --- net/xfrm/xfrm_user.c | 6 ++ 1 file chang

pull request (net-next): ipsec-next 2015-08-17

2015-08-17 Thread Steffen Klassert
1) Fix IPv6 ECN decapsulation for IPsec interfamily tunnels. From Thomas Egerer. 2) Use kmemdup instead of duplicating it in xfrm_dump_sa(). From Andrzej Hajda. 3) Pass oif to the xfrm lookups so that it gets set on the flow and the resolver routines can match based on oif. From David

[PATCH 1/4] xfrm6: Fix IPv6 ECN decapsulation

2015-08-17 Thread Steffen Klassert
From: Thomas Egerer Using ipv6_get_dsfield on the outer IP header implies that inner and outer header are of the the same address family. For interfamily tunnels, particularly 646, the code reading the DSCP field obtains the wrong values (IHL and the upper four bits of the DSCP field). This can c

[PATCH 4/4] net: Document xfrm4_gc_thresh and xfrm6_gc_thresh

2015-08-17 Thread Steffen Klassert
From: Alexander Duyck This change adds documentation for xfrm4_gc_thresh and xfrm6_gc_thresh based on the comments in commit eeb1b73378b56 ("xfrm: Increase the garbage collector threshold"). Signed-off-by: Alexander Duyck Signed-off-by: Steffen Klassert --- Documentation/networking/ip-sysctl.

Re: [PATCH 2/5] net: add Hisilicon Network Subsystem hnae framework support

2015-08-17 Thread David Miller
From: Kenneth Lee Date: Fri, 14 Aug 2015 18:30:19 +0800 > diff --git a/drivers/net/ethernet/hisilicon/hns/hnae.c > b/drivers/net/ethernet/hisilicon/hns/hnae.c > new file mode 100644 > index 000..fd09768 > --- /dev/null > +++ b/drivers/net/ethernet/hisilicon/hns/hnae.c ... > +static inline v

[PATCH] man ip-link: Add more explanation about vlan reordering

2015-08-17 Thread Vadim Kochan
From: Vadim Kochan Add more explanation about VLAN reordering and what it affects. Signed-off-by: Vadim Kochan --- man/man8/ip-link.8.in | 29 +++-- 1 file changed, 27 insertions(+), 2 deletions(-) diff --git a/man/man8/ip-link.8.in b/man/man8/ip-link.8.in index df2fcc

Re: [patch] net: ethernet: micrel: fix an error code

2015-08-17 Thread David Miller
From: Dan Carpenter Date: Fri, 14 Aug 2015 11:54:59 +0300 > The dma_mapping_error() function returns true or false. We should > return -ENOMEM if it there is a dma mapping error. > > Signed-off-by: Dan Carpenter Applied, thanks Dan. -- To unsubscribe from this list: send the line "unsubscribe

Re: [PATCH net v2] ppp: fix device unregistration upon netns deletion

2015-08-17 Thread David Miller
From: Guillaume Nault Date: Fri, 14 Aug 2015 10:42:56 +0200 > PPP devices may get automatically unregistered when their network > namespace is getting removed. This happens if the ppp control plane > daemon (e.g. pppd) exits while it is the last user of this namespace. > > This leads to several

Re: [PATCH net-next] bnx2: Fix bandwidth allocation for some MF modes

2015-08-17 Thread David Miller
From: Yuval Mintz Date: Mon, 17 Aug 2015 19:08:39 + >>> Please consider applying this one. > >>Applied to net-next, thanks. > > Hi Dave, just noticed I've made a typo in the patch name :-( > It's a bnx2x patch, not bnx2. > > Is it changable? Nope. -- To unsubscribe from this list: send th

Re: [PATCH] net: phy: fix PHY_RUNNING in phy_state_machine

2015-08-17 Thread David Miller
From: Date: Fri, 14 Aug 2015 12:23:40 +0800 > From: Shaohui Xie > > Currently, if phy state is PHY_RUNNING, we always register a CHANGE > when phy works in polling or interrupt ignored, this will make the > adjust_link being called even the phy link did Not changed. > > checking the phy link t

Re: [net-next PATCH] net: fix endian check warning in etherdevice.h

2015-08-17 Thread David Miller
From: Jesse Brandeburg Date: Thu, 13 Aug 2015 18:34:03 -0700 > Sparse builds have been warning for a really long time now > that etherdevice.h has a conversion that is unsafe. > > include/linux/etherdevice.h:79:32: warning: restricted __be16 degrades to > integer > > This code change fixes t

Re: [PATCH] net/bonding: send arp in interval if no active slave

2015-08-17 Thread Jay Vosburgh
Uwe Koziolek wrote: >On2015-08-17 07:12 PM,Jarod Wilson wrote: >> On 2015-08-17 12:55 PM, Veaceslav Falico wrote: >>> On Mon, Aug 17, 2015 at 12:23:03PM -0400, Jarod Wilson wrote: From: Uwe Koziolek With some very finicky switch hardware, active backup bonding can get into >>

Re: Linux 4.2-rc6 regression: RIP: e030:[] [] detach_if_pending+0x18/0x80

2015-08-17 Thread Thomas Gleixner
On Mon, 17 Aug 2015, Eric Dumazet wrote: > [PATCH] timer: fix a race in __mod_timer() > > lock_timer_base() can not catch following : > > CPU1 ( in __mod_timer() > timer->flags |= TIMER_MIGRATING; > spin_unlock(&base->lock); > base = new_base; > spin_lock(&base->lock); > timer->flags &= ~TIMER_BA

Re: [PATCH] Revert "net: limit tcp/udp rmem/wmem to SOCK_{RCV,SND}BUF_MIN"

2015-08-17 Thread David Miller
From: Calvin Owens Date: Thu, 13 Aug 2015 14:21:34 -0700 > Commit 8133534c760d4083 ("net: limit tcp/udp rmem/wmem to > SOCK_{RCV,SND}BUF_MIN") modified four sysctls to enforce that the values > written to them are not less than SOCK_MIN_{RCV,SND}BUF. > > That change causes 4096 to no longer be a

Re: [PATCH] net/bonding: send arp in interval if no active slave

2015-08-17 Thread Uwe Koziolek
On2015-08-17 07:12 PM,Jarod Wilson wrote: On 2015-08-17 12:55 PM, Veaceslav Falico wrote: On Mon, Aug 17, 2015 at 12:23:03PM -0400, Jarod Wilson wrote: From: Uwe Koziolek With some very finicky switch hardware, active backup bonding can get into a situation where we play ping-pong between int

  1   2   >