Re: [PATCH] net:usb:cdc_ncm: fix that tag Huawei devices as wwan

2015-06-15 Thread Bjørn Mork
Marcel Holtmann mar...@holtmann.org writes: we introduced DEVTYPE in uevent a long time ago. That is what userspace should be using and not second guessing on interface names. Yes, sorry for confusing this by mentioning the device name. This is really about DEVTYPE. usbnet minidrivers use

Re: [PATCH] net:usb:cdc_ncm: fix that tag Huawei devices as wwan

2015-06-15 Thread Marcel Holtmann
Hi Bjorn, Hmm. Oliver is marked as the maintainer of the USB CDC code, but others have touched it more recently. So I'm just wildly adding people to the cc to comment on this patch and maybe apply it. Oliver/David/Ben/Bjørn? Adding Aleksander and Dan, too. The 'wwanX' vs 'usbX'

[PATCH 2/3] ixgbe, ixgbevf: error MC promisc unless trusted

2015-06-15 Thread Hiroshi Shimamoto
From: Hiroshi Shimamoto h-shimam...@ct.jp.nec.com Make PF returns an error to VF multicast promiscuous mode if the VF is not trusted. On VF, check the result from PF and fallback to previous behavior that only 30 addresses are registered. Signed-off-by: Hiroshi Shimamoto

[PATCH 1/3] ixgbevf: refactor ixgbevf_update_mc_addr_list_vf

2015-06-15 Thread Hiroshi Shimamoto
From: Hiroshi Shimamoto h-shimam...@ct.jp.nec.com Add ixgbevf_request_mc_promisc_vf which is for request VF multicast promiscuous mode, and move the codes from ixgbevf_update_mc_addr_list_vf. Signed-off-by: Hiroshi Shimamoto h-shimam...@ct.jp.nec.com --- drivers/net/ethernet/intel/ixgbevf/vf.c

[PATCH 3/3] ixgbe: ping to reset on changing trust status

2015-06-15 Thread Hiroshi Shimamoto
From: Hiroshi Shimamoto h-shimam...@ct.jp.nec.com Send a ping to reset VF on changing the status of trusting. VF driver will reconfigure its features on reset. Signed-off-by: Hiroshi Shimamoto h-shimam...@ct.jp.nec.com --- drivers/net/ethernet/intel/ixgbe/ixgbe_sriov.c | 25

Re: Fwd: [PATCH] net:usb:cdc_ncm: fix that tag Huawei devices as wwan

2015-06-15 Thread Oliver Neukum
On Sun, 2015-06-14 at 13:51 -1000, Linus Torvalds wrote: Hmm. Oliver is marked as the maintainer of the USB CDC code, but I do CDC ACM, CDC WDM and CDC Ether, but not CDC NCM (it is a very different beast) others have touched it more recently. So I'm just wildly adding people to the cc to

RE: [PATCH v5 3/3] ixgbe: Add new ndo to trust VF

2015-06-15 Thread Hiroshi Shimamoto
-Original Message- From: Rose, Gregory V Sent: Tuesday, May 26, 2015 7:01 PM To: Hiroshi Shimamoto; Skidmore, Donald C; Kirsher, Jeffrey T; intel-wired- l...@lists.osuosl.org Cc: nhor...@redhat.com; jogre...@redhat.com; Linux Netdev List; Choi, Sy Jong; Rony Efraim; David

Re: Support for Ethernet Phy interfaced through i2c bus

2015-06-15 Thread punnaiah choudary kalluri
Any inputs on this ? Regards, Punnaiah On Tue, May 26, 2015 at 9:23 PM, punnaiah choudary kalluri punn...@xilinx.com wrote: Hi, I have a design for adding the sgmii support to the Ethernet mac. The Ethernet mac is interfaced to the SGMII core and the mdio interface from the mac is connected

Re: displayed name changed in ip link show for bridge- and other interfaces

2015-06-15 Thread Nicolas Dichtel
Le 15/06/2015 09:23, Nicolas Dichtel a écrit : Le 14/06/2015 21:12, Oliver Hartkopp a écrit : @Nicolas: Just saw that you were not responsible for the @NONE m) Sorry. Btw. do you know why this @NONE stuff just emerged in 4.1-rc ? Yes, it comes from the iflink cleanup in kernel:

[PATCH 03/11] IB/cm: Expose service ID in request events

2015-06-15 Thread Haggai Eran
Expose the service ID on an incoming CM or SIDR request to the event handler. This will allow the RDMA CM module to de-multiplex connection requests based on the information encoded in the service ID. Signed-off-by: Haggai Eran hagg...@mellanox.com --- drivers/infiniband/core/cm.c | 3 +++

Re: Fwd: [PATCH] net:usb:cdc_ncm: fix that tag Huawei devices as wwan

2015-06-15 Thread Bjørn Mork
Linus Torvalds torva...@linux-foundation.org writes: Hmm. Oliver is marked as the maintainer of the USB CDC code, but others have touched it more recently. So I'm just wildly adding people to the cc to comment on this patch and maybe apply it. Oliver/David/Ben/Bjørn? Adding Aleksander and

Re: [PATCH] net:usb:cdc_ncm: fix that tag Huawei devices as wwan

2015-06-15 Thread Marcel Holtmann
Hi Bjorn, we introduced DEVTYPE in uevent a long time ago. That is what userspace should be using and not second guessing on interface names. Yes, sorry for confusing this by mentioning the device name. This is really about DEVTYPE. usbnet minidrivers use FLAG_WWAN to set both the

[PATCH 06/11] IB/cma: Refactor RDMA IP CM private-data parsing code

2015-06-15 Thread Haggai Eran
When receiving a connection request, rdma_cm needs to associate the request with a network device, in order to disambiguate requests. To do this, it needs to know the request's destination IP. For this the module needs to allow getting this information from the private data in the request packet,

[PATCH 05/11] IB/cm: Share listening CM IDs

2015-06-15 Thread Haggai Eran
Enabling network namespaces for RDMA CM will allow processes on different namespaces to listen on the same port. In order to leave namespace support out of the CM layer, this requires that multiple RDMA CM IDs will be able to share a single CM ID. This patch adds infrastructure to retrieve an

[PATCH 00/11] Demux IB CM requests in the rdma_cm module

2015-06-15 Thread Haggai Eran
The rdma_cm module relies today on the ib_cm module to demux incoming requests based on their service ID and IP address. The ib_cm module is the wrong place to perform this task, as it can also be used with services that do not adhere to the RDMA IP CM service as defined in the IBA specifications.

[PATCH 02/11] IB/ipoib: Return IPoIB devices matching connection parameters

2015-06-15 Thread Haggai Eran
From: Guy Shapiro gu...@mellanox.com Implement the get_net_device_by_port_pkey_ip callback that returns network device to ib_core according to connection parameters. Check the ipoib device and iterate over all child devices to look for a match. For each IPoIB device we iterate through all upper

[PATCH 11/11] IB/cm: Remove compare_data checks

2015-06-15 Thread Haggai Eran
Now that there are no ib_cm clients using the compare_data feature for matching IB CM requests' private data, remove the compare_data parameter of ib_cm_listen and remove the code implementing the feature. Signed-off-by: Haggai Eran hagg...@mellanox.com --- drivers/infiniband/core/cm.c

[PATCH 08/11] IB/cma: Add net_dev and private data checks to RDMA CM

2015-06-15 Thread Haggai Eran
Instead of relying on a the ib_cm module to check an incoming CM request's private data header, add these checks to the RDMA CM module. This allows a following patch to to clean up the ib_cm interface and remove the code that looks into the private headers. It will also allow supporting namespaces

[PATCH 09/11] IB/cma: validate routing of incoming requests

2015-06-15 Thread Haggai Eran
Pass incoming request parameters through the relevant IPv4/IPv6 routing tables and make sure the network stack is configured to handle such requests. Signed-off-by: Haggai Eran hagg...@mellanox.com --- drivers/infiniband/core/cma.c | 100 -- 1 file

[PATCH 10/11] IB/cma: Share ib_cm_ids between rdma_cm_ids

2015-06-15 Thread Haggai Eran
Use ib_cm_id_create_and_listen to create listening IB CM IDs or share existing ones if needed. When given a request on a specific CM ID, the code now matches the request to the RDMA CM ID based on the request parameters, so it no longer needs to rely on the ib_cm's private data matching

[PATCH 07/11] IB/cma: Helper functions to access port space IDRs

2015-06-15 Thread Haggai Eran
Add helper functions to access the IDRs by port-space and port number. Pass around the port-space enum in cma.c instead of using pointers to port-space IDRs. Signed-off-by: Haggai Eran hagg...@mellanox.com Signed-off-by: Yotam Kenneth yota...@mellanox.com Signed-off-by: Shachar Raindel

[PATCH 04/11] IB/cm: Expose DGID in SIDR request events

2015-06-15 Thread Haggai Eran
The destination GID can be used to uniquely resolve the request. Expose the GID in SIDR request events when it is available, so that the rdma_cm module can use that information. Signed-off-by: Haggai Eran hagg...@mellanox.com --- drivers/infiniband/core/cm.c | 7 +++ include/rdma/ib_cm.h

[PATCH 01/11] IB/core: Find the network device matching connection parameters

2015-06-15 Thread Haggai Eran
From: Yotam Kenneth yota...@mellanox.com In the case of IPoIB, and maybe in other cases, the network device is managed by an upper-layer protocol (ULP). In order to expose this network device to other users of the IB device, let ULPs implement a callback that returns network device according to

[PATCH] net: fix search limit handling in skb_find_text()

2015-06-15 Thread Roman I Khimov
Suppose that we're trying to use an xt_string netfilter module to match a string in a specially crafted packet that has a nice string starting at offset 28. It could be done in iptables like this: -A some_chain -m string --string a nice string --algo bm --from 28 --to 38 -j DROP And it would

RE: [RFC,v3 02/10] dpaa_eth: add support for DPAA Ethernet

2015-06-15 Thread Madalin-Cristian Bucur
-Original Message- From: Eric Dumazet [mailto:eric.duma...@gmail.com] On Wed, 2015-06-10 at 07:38 +, Madalin-Cristian Bucur wrote: Hi Eric, Can you please tell us if this change would be for the better? I was about to say yes to this request but checked and no other

Re: [RFC PATCH net-next 2/4] switchdev: add fwd_mark generator helper

2015-06-15 Thread Sergei Shtylyov
Hello. On 6/15/2015 4:52 PM, Scott Feldman wrote: From: Scott Feldman sfel...@gmail.com skb-fwd_mark and dev-fwd_mark are 32-bit and should be unique for device and maybe even unique for a sub-set of ports within device, so add switchdev helper function to generate unique marks based on

Administrador do sistema

2015-06-15 Thread ADMIN
Sua caixa de correio excedeu o limite de armazenamento, que é de 20 GB como definido pelo administrador, está atualmente em execução no 20,9 GB, você pode não ser capaz de enviar ou receber novas mensagens até que você re-validar sua caixa de correio. Para re-validar sua caixa de correio, por

RE: [RFC,v3 02/10] dpaa_eth: add support for DPAA Ethernet

2015-06-15 Thread Madalin-Cristian Bucur
-Original Message- From: Eric Dumazet [mailto:eric.duma...@gmail.com] On Wed, 2015-04-29 at 17:56 +0300, Madalin Bucur wrote: This introduces the Freescale Data Path Acceleration Architecture (DPAA) Ethernet driver (dpaa_eth) that builds upon the DPAA QMan, BMan, PAMU and FMan

Re: [PATCH] ethernet/sfc: mark state UNINIT after unregister

2015-06-15 Thread Edward Cree
On 12/06/15 19:51, Jarod Wilson wrote: Without this change, modprobe -r sfc hits the BUG_ON() in efx_pci_remove_main(). Best as I can tell, this was just an oversight, efx-state gets set to STATE_UNINIT in the error path of efx_register_netdev() just after unregister_netdevice(), and the same

Re: [RFC PATCH net-next 2/4] switchdev: add fwd_mark generator helper

2015-06-15 Thread Scott Feldman
On Sun, Jun 14, 2015 at 10:46 PM, Jiri Pirko j...@resnulli.us wrote: Sun, Jun 14, 2015 at 07:50:13PM CEST, sfel...@gmail.com wrote: On Sat, Jun 13, 2015 at 11:56 PM, Jiri Pirko j...@resnulli.us wrote: Sat, Jun 13, 2015 at 08:04:28PM CEST, sfel...@gmail.com wrote: From: Scott Feldman

Re: [RFC PATCH net-next 0/4] switchdev: avoid duplicate packet forwarding

2015-06-15 Thread roopa
On 6/13/15, 11:04 AM, sfel...@gmail.com wrote: From: Scott Feldman sfel...@gmail.com (RFC because we're at rc7+ now) With switchdev support for offloading L2/L3 forwarding data path to a switch device, we have a general problem where both the device and the kernel may forward the packet,

Re: [PATCH next v1] bonding: Display LACP info only to CAP_NET_ADMIN capable user

2015-06-15 Thread Andy Gospodarek
On Fri, Jun 12, 2015 at 12:24:47PM -0700, Mahesh Bandewar wrote: Actor and Partner details can be accessed via proc-fs and sys-fs entries. These interfaces are world readable at this moment. The earlier patch-series made the LACP communication secure to avoid nuisance attack from within the

[PATCH] pkt_sched: sch_qfq: remove redundant -if- control statement

2015-06-15 Thread Andrea Parri
The control !hlist_unhashed() in qfq_destroy_agg() is unnecessary because already performed in hlist_del_init(), so remove it. Signed-off-by: Andrea Parri parri.and...@gmail.com --- net/sched/sch_qfq.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/net/sched/sch_qfq.c

Re: [PATCH net-next 1/2] bonding: export slave's actor_oper_port_state via sysfs and netlink

2015-06-15 Thread Andy Gospodarek
On Sun, Jun 14, 2015 at 04:36:34PM +0300, Nikolay Aleksandrov wrote: Export the actor_oper_port_state of each port via sysfs and netlink. In 802.3ad mode it is valuable for the user to be able to check the actor_oper state, it is already exported via bond's proc entry. Signed-off-by: Nikolay

Re: [PATCH net-next 2/2] bonding: export slave's partner_oper_port_state via sysfs and netlink

2015-06-15 Thread Andy Gospodarek
On Sun, Jun 14, 2015 at 04:36:35PM +0300, Nikolay Aleksandrov wrote: Export the partner_oper_port_state of each port via sysfs and netlink. In 802.3ad mode it is valuable for the user to be able to check the partner_oper state, it is already exported via bond's proc entry. Signed-off-by:

Re: [BUG ?] delay always evaluates to 0

2015-06-15 Thread Stanislav Yakovlev
Hi Nicholas, On 12 June 2015 at 20:58, Nicholas Mc Guire der.h...@hofr.at wrote: Hi ! commit 2c86c275015c (Add ipw2100 wireless driver.) introduced drivers/net/wireless/ipw2100.c - line-numbers are from next-20150511 1410 static int ipw2100_hw_phy_off(struct ipw2100_priv *priv) 1411 {

Questions about 'ip link set DEV_NAME name DEV_NEWNAME'

2015-06-15 Thread 申晓欢
I'm using command 'ip link set ge0/0 name ge5/1' to rename interface name from ge0/0 to ge5/0. when command complete, command 'ifconfig' and 'cat /proc/net/dev ' both can output information of ge5/0,however command 'ls /sys/class/net/' output ls: /sys/class/net/ge5/0: No such file or directory.

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

2015-06-15 Thread roopa
On 6/13/15, 11:04 AM, sfel...@gmail.com wrote: diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h index 6f5f71f..181b08f 100644 --- a/include/linux/netdevice.h +++ b/include/linux/netdevice.h @@ -1444,6 +1444,8 @@ enum netdev_priv_flags { * *@xps_maps: XXX: need

[PATCH 0/2] Fix Ethernet jumbo frames support for Armada 370

2015-06-15 Thread Simon Guinot
Hello, This patch series fixes the Ethernet jumbo frames support for Armada 370 SoCs. Unlike Armada XP, the Ethernet controller in Armada 370 SoCs don't support TCP/IP checksumming with frames largest than 1600 Bytes. This patches should be applied to the -stable kernels 3.8 and onwards.

Re: [PATCH 1/2] net: mvneta: introduce tx_csum_limit property

2015-06-15 Thread Russell King - ARM Linux
On Mon, Jun 15, 2015 at 04:27:22PM +0200, Simon Guinot wrote: This patch introduces the tx_csum_limit DT property. This allows to configure the maximum frame size for which the Ethernet controller is able to perform TCP/IP checksumming. If MTU is set to a value greater than tx_csum_limit, then

Re: [PATCH 1/2] net: mvneta: introduce tx_csum_limit property

2015-06-15 Thread Thomas Petazzoni
Russell, On Mon, 15 Jun 2015 15:36:01 +0100, Russell King - ARM Linux wrote: On Mon, Jun 15, 2015 at 04:27:22PM +0200, Simon Guinot wrote: This patch introduces the tx_csum_limit DT property. This allows to configure the maximum frame size for which the Ethernet controller is able to

Re: [PATCH 1/2] net: mvneta: introduce tx_csum_limit property

2015-06-15 Thread Thomas Petazzoni
Dear Simon Guinot, On Mon, 15 Jun 2015 16:27:22 +0200, Simon Guinot wrote: This patch introduces the tx_csum_limit DT property. This allows to configure the maximum frame size for which the Ethernet controller is able to perform TCP/IP checksumming. If MTU is set to a value greater than

[PATCH 7/7] slub: initial bulk free implementation

2015-06-15 Thread Jesper Dangaard Brouer
This implements SLUB specific kmem_cache_free_bulk(). SLUB allocator now both have bulk alloc and free implemented. Play nice and reenable local IRQs while calling slowpath. Signed-off-by: Jesper Dangaard Brouer bro...@redhat.com --- mm/slub.c | 32 +++- 1 file

Re: displayed name changed in ip link show for bridge- and other interfaces

2015-06-15 Thread Stephen Hemminger
On Mon, 15 Jun 2015 11:13:12 +0200 Nicolas Dichtel nicolas.dich...@6wind.com wrote: Theoretically, virtual interfaces should advertise an IFLA_LINK to 0. I don't know what is the best fix: - patching iproute2 to avoid this '@NONE' - patching the kernel (see below). Sorry this is an ABI

[PATCH 0/7] slub: bulk alloc and free for slub allocator

2015-06-15 Thread Jesper Dangaard Brouer
With this patchset SLUB allocator now both have bulk alloc and free implemented. (This patchset is based on DaveM's net-next tree on-top of commit c3eee1fb1d308. Tested patchset applied on-top of volatile linux-next commit aa036f86e1bf (slub bulk alloc: extract objects from the per cpu slab))

[PATCH 2/7] slub bulk alloc: extract objects from the per cpu slab

2015-06-15 Thread Jesper Dangaard Brouer
From: Christoph Lameter c...@linux.com [NOTICE: Already in AKPM's quilt-queue] First piece: acceleration of retrieval of per cpu objects If we are allocating lots of objects then it is advantageous to disable interrupts and avoid the this_cpu_cmpxchg() operation to get these objects faster.

[PATCH 1/7] slab: infrastructure for bulk object allocation and freeing

2015-06-15 Thread Jesper Dangaard Brouer
From: Christoph Lameter c...@linux.com [NOTICE: Already in AKPM's quilt-queue] Add the basic infrastructure for alloc/free operations on pointer arrays. It includes a generic function in the common slab code that is used in this infrastructure patch to create the unoptimized functionality for

[PATCH 4/7] slub: fix error path bug in kmem_cache_alloc_bulk

2015-06-15 Thread Jesper Dangaard Brouer
The current kmem_cache/SLAB bulking API need to release all objects in case the layer cannot satisfy the full request. If __kmem_cache_alloc_bulk() fails, all allocated objects in array should be freed, but, __kmem_cache_alloc_bulk() can't know about objects allocated by this slub specific

[PATCH 3/7] slub: reduce indention level in kmem_cache_alloc_bulk()

2015-06-15 Thread Jesper Dangaard Brouer
Use kernel early return style to reduce indention level, by testing for kmem_cache_debug() and fallback to none-optimized bulking via __kmem_cache_alloc_bulk(). This also make it easier to fix a bug in the current implementation, in the next patch. Signed-off-by: Jesper Dangaard Brouer

[PATCH 2/2] ARM: mvebu: disable IP checksum with jumbo frames for Armada 370

2015-06-15 Thread Simon Guinot
The Ethernet controller found in Armada 370 SoCs don't support TCP/IP checksumming with frames largest than 1600 Bytes. This patch sets accordingly the tx_csum_limit property in Ethernet nodes for Armada 370. Signed-off-by: Simon Guinot simon.gui...@sequanux.org Cc: sta...@vger.kernel.org #

RE: [PATCH 08/12] fsl/fman: Add Frame Manager support

2015-06-15 Thread Liberman Igal
Hi Paul, Thank you very much for your feedback. I'm planning to address the issues you've raised in the next submission. Regards, Igal Liberman. -Original Message- From: Paul Bolle [mailto:pebo...@tiscali.nl] Sent: Thursday, June 11, 2015 12:38 PM To: Bucur Madalin-Cristian-B32716

[PATCH 1/2] net: mvneta: introduce tx_csum_limit property

2015-06-15 Thread Simon Guinot
This patch introduces the tx_csum_limit DT property. This allows to configure the maximum frame size for which the Ethernet controller is able to perform TCP/IP checksumming. If MTU is set to a value greater than tx_csum_limit, then the features NETIF_F_IP_CSUM and NETIF_F_TSO are disabled.

[PATCH net-next V1 06/13] net/mlx4_core: Add port attribute when tracking counters

2015-06-15 Thread Or Gerlitz
From: Eran Ben Elisha era...@mellanox.com Counter will get its port attribute within the resource tracker when the first QP attached to it is modified to RTR. If a QP is counter-less, an attempt to create a new counter with assigned port will be made. Signed-off-by: Eran Ben Elisha

[PATCH net-next V1 08/13] IB/mlx4: Add RoCE/IB dedicated counters

2015-06-15 Thread Or Gerlitz
From: Eran Ben Elisha era...@mellanox.com This is an infrastructure step to attach all the QPs opened from the IB driver to a counter in order to collect VF stats from the PF using those counters. If the port's type is Ethernet, the counter policy demands two counters per port (one for RoCE and

[PATCH net-next V1 13/13] net/mlx4_en: Support ndo_get_vf_stats

2015-06-15 Thread Or Gerlitz
From: Eran Ben Elisha era...@mellanox.com Implement the ndo to gather VF statistics through the PF. All counters related to this VF are stored in a per slave list, run over the slave's list and collect all statistics. Signed-off-by: Eran Ben Elisha era...@mellanox.com Signed-off-by: Hadar Hen

[PATCH net-next V1 11/13] net/mlx4_en: Show PF own statistics via ethtool

2015-06-15 Thread Or Gerlitz
From: Eran Ben Elisha era...@mellanox.com Allow the user to observe the PF own statistics using ethtool with pf_ prefixed counter names. Those counters are the PF statistics out of the overall port statistics. Every PF QP is attached to a counter and the summary of those counters is the PF

[PATCH net-next V1 10/13] net/mlx4_core: Add helper to query counters

2015-06-15 Thread Or Gerlitz
From: Eran Ben Elisha era...@mellanox.com This is an infrastructure step for querying VF and PF counters. This code was in the IB driver, move it to the mlx4 core driver so it will be accessible for more use cases. Signed-off-by: Eran Ben Elisha era...@mellanox.com Signed-off-by: Hadar Hen Zion

[PATCH net-next V1 04/13] net/mlx4_core: Remove counters table allocation from VF flow

2015-06-15 Thread Or Gerlitz
From: Eran Ben Elisha era...@mellanox.com Since virtual functions get their counters indices allocation from the PF, allocate counters indices bitmap only in case the function isn't virtual. Also, check that the device has counters to allocate before creating the indices bitmap table.

[PATCH net-next V1 07/13] net/mlx4_core: Allocate default counter per port

2015-06-15 Thread Or Gerlitz
From: Eran Ben Elisha era...@mellanox.com Default counter per port will be allocated at the mlx4 core driver load. Every QP opened by the Ethernet driver will be attached to the port's default counter. This is an infrastructure step to collect VF statistics from the PF. Signed-off-by: Eran Ben

[PATCH net-next V1 03/13] net/mlx4_core: Add sink counter

2015-06-15 Thread Or Gerlitz
From: Eran Ben Elisha era...@mellanox.com Reserve the last valid counter index for sink counter, when a new counter cannot be allocated, the driver will use this counter. In order to avoid allocating this counter on any other flow, fix the indices bitmap allocation range, and reserve the sink

Re: [PATCH net-next 00/15] Simplify netfilter and network namespaces

2015-06-15 Thread Eric W. Biederman
Pablo Neira Ayuso pa...@netfilter.org writes: Hi Eric, On Sun, Jun 14, 2015 at 10:07:30PM -0500, Eric W. Biederman wrote: While looking into what it would take to route packets out to network devices in other network namespaces I started looking at the netfilter hooks, and there is a lot

Re: [PATCH net-next 00/15] Simplify netfilter and network namespaces

2015-06-15 Thread Pablo Neira Ayuso
On Mon, Jun 15, 2015 at 10:06:27AM -0500, Eric W. Biederman wrote: Pablo Neira Ayuso pa...@netfilter.org writes: Hi Eric, On Sun, Jun 14, 2015 at 10:07:30PM -0500, Eric W. Biederman wrote: While looking into what it would take to route packets out to network devices in other

[PATCH 6/7] slub: improve bulk alloc strategy

2015-06-15 Thread Jesper Dangaard Brouer
Call slowpath __slab_alloc() from within the bulk loop, as the side-effect of this call likely repopulates c-freelist. Choose to reenable local IRQs while calling slowpath. Saving some optimizations for later. E.g. it is possible to extract parts of __slab_alloc() and avoid the unnecessary and

Re: Questions about 'ip link set DEV_NAME name DEV_NEWNAME'

2015-06-15 Thread Stephen Hemminger
On Mon, 15 Jun 2015 21:25:30 +0800 申晓欢 sxhli...@163.com wrote: I'm using command 'ip link set ge0/0 name ge5/1' to rename interface name from ge0/0 to ge5/0. when command complete, command 'ifconfig' and 'cat /proc/net/dev ' both can output information of ge5/0,however command 'ls

[PATCH 5/7] slub: kmem_cache_alloc_bulk() move clearing outside IRQ disabled section

2015-06-15 Thread Jesper Dangaard Brouer
Move clearing of objects outside IRQ disabled section, to minimize time spend with local IRQs off. Signed-off-by: Jesper Dangaard Brouer bro...@redhat.com --- mm/slub.c | 11 --- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/mm/slub.c b/mm/slub.c index

[PATCH net-next V1 09/13] IB/mlx4: Set VF to read from QP counters

2015-06-15 Thread Or Gerlitz
From: Eran Ben Elisha era...@mellanox.com As IB VFs are not capable to read the port counters through MADs, move there to read their own QP counters to gather statistics. Signed-off-by: Eran Ben Elisha era...@mellanox.com Signed-off-by: Hadar Hen Zion had...@mellanox.com Signed-off-by: Or

[PATCH net-next V1 12/13] net/core: Add reading VF statistics through the PF netdevice

2015-06-15 Thread Or Gerlitz
From: Eran Ben Elisha era...@mellanox.com Add ndo_get_vf_stats where the PF retrieves and fills the VFs traffic statistics. We encode the VF stats in a nested manner to allow for future extensions. Signed-off-by: Eran Ben Elisha era...@mellanox.com Signed-off-by: Hadar Hen Zion

[PATCH net-next V1 00/13] mlx4 driver update (+ new VF ndo)

2015-06-15 Thread Or Gerlitz
Hi Dave, This series from Eran and Hadar is further dealing with traffic counters in the mlx4 driver, this time mostly around SRIOV. We added a new ndo to read the VF counters through the PF netdev netlink infrastructure plus mlx4 implementation for that ndo. Or. changes from V0: - applied

[PATCH net-next V1 02/13] net/mlx4_core: Reset counters data when freed

2015-06-15 Thread Or Gerlitz
From: Eran Ben Elisha era...@mellanox.com Add resetting the counter data to the free counter flow, so the counter's data won't be accessible anymore if querying the counter. Also, on next counter allocation (to another VM for example), it will be fresh and clear. Signed-off-by: Eran Ben Elisha

Re: [RFC,v3 02/10] dpaa_eth: add support for DPAA Ethernet

2015-06-15 Thread Eric Dumazet
On Mon, 2015-06-15 at 13:40 +, Madalin-Cristian Bucur wrote: -Original Message- From: Eric Dumazet [mailto:eric.duma...@gmail.com] On Wed, 2015-04-29 at 17:56 +0300, Madalin Bucur wrote: This introduces the Freescale Data Path Acceleration Architecture (DPAA) Ethernet

Re: [PATCH 1/2] net: mvneta: introduce tx_csum_limit property

2015-06-15 Thread Simon Guinot
On Mon, Jun 15, 2015 at 04:49:52PM +0200, Thomas Petazzoni wrote: Dear Simon Guinot, On Mon, 15 Jun 2015 16:27:22 +0200, Simon Guinot wrote: This patch introduces the tx_csum_limit DT property. This allows to configure the maximum frame size for which the Ethernet controller is able to

[PATCH net-next V1 01/13] net/mlx4_core: Check before cleaning counters bitmap

2015-06-15 Thread Or Gerlitz
From: Eran Ben Elisha era...@mellanox.com If counters are not supported by the device. The indices bitmap table is not allocated during initialization. Add the symmetrical check before cleaning the counters bitmap table or freeing a counter. Signed-off-by: Eran Ben Elisha era...@mellanox.com

[PATCH net-next V1 05/13] net/mlx4_core: Adjust counter grant policy in the resource tracker

2015-06-15 Thread Or Gerlitz
From: Eran Ben Elisha era...@mellanox.com Each physical function has a guarantee of two counters per port, one for a default counter and one for the IB driver. Each virtual function has a guarantee of one counter per port. All other counters are free and can be obtained on demand. This is a

Re: [RFC PATCH net-next 2/4] switchdev: add fwd_mark generator helper

2015-06-15 Thread roopa
On 6/13/15, 11:04 AM, sfel...@gmail.com wrote: From: Scott Feldman sfel...@gmail.com skb-fwd_mark and dev-fwd_mark are 32-bit and should be unique for device and maybe even unique for a sub-set of ports within device, so add switchdev helper function to generate unique marks based on

Re: [RFC PATCH net-next 0/4] switchdev: avoid duplicate packet forwarding

2015-06-15 Thread roopa
On 6/13/15, 11:04 AM, sfel...@gmail.com wrote: From: Scott Feldman sfel...@gmail.com (RFC because we're at rc7+ now) With switchdev support for offloading L2/L3 forwarding data path to a switch device, we have a general problem where both the device and the kernel may forward the packet,

[PATCH net-next 3/3] sock_diag: implement a get_info handler for inet

2015-06-15 Thread Craig Gallek
This get_info handler will simply dispatch to the appropriate existing inet protocol handler. This patch also includes a new netlink attribute (INET_DIAG_PROTOCOL). This attribute is currently only used for multicast messages. Without this attribute, there is no way of knowing the IP protocol

[PATCH net-next 1/3] sock_diag: define destruction multicast groups

2015-06-15 Thread Craig Gallek
These groups will contain socket-destruction events for AF_INET/AF_INET6, IPPROTO_TCP/IPPROTO_UDP. Near the end of socket destruction, a check for listeners is performed. In the presence of a listener, rather than completely cleanup the socket, a unit of work will be added to a private work

[PATCH net-next 2/3] sock_diag: specify info_size per inet protocol

2015-06-15 Thread Craig Gallek
Previously, there was no clear distinction between the inet protocols that used struct tcp_info to report information and those that didn't. This change adds a specific size attribute to the inet_diag_handler struct which defines these interfaces. This will make dispatching sock_diag get_info

[PATCH net-next 0/3] Socket destruction events via netlink sock_diag

2015-06-15 Thread Craig Gallek
This series extends the netlink sock_diag interface to broadcast socket information as they are being destroyed. The current interface is poll based and can not be used to retreive information about sockets that are destroyed between poll intervals. Only inet sockets are broadcast in this

Re: [PATCH net-next] sfc: mark state UNINIT after unregister

2015-06-15 Thread David Miller
From: Edward Cree ec...@solarflare.com Date: Mon, 15 Jun 2015 18:27:54 +0100 Without this change, modprobe -r sfc hits the BUG_ON() in efx_pci_remove_main(). Fixes: e7fef9b45ae1 (sfc: add sysfs entry to control MCDI tracing) Reported-by: Jarod Wilson ja...@redhat.com Reviewed-by: Jarod

Re: [PATCH 1/1 net-next] net: rds: use for_each_sg() for scatterlist parsing

2015-06-15 Thread David Miller
From: Fabian Frederick f...@skynet.be Date: Mon, 15 Jun 2015 19:13:05 +0200 { unsigned int i; + struct scatterlist *sg; Please order local variables from longest to shortest line (reverse christmas tree). Thanks. -- To unsubscribe from this list: send the line unsubscribe netdev

Re: [V6 PATCH 0/7] ACPI: Introduce support for _CCA object

2015-06-15 Thread Suravee Suthikulpanit
Thank you. Suravee On 6/15/15 18:24, Rafael J. Wysocki wrote: On Wednesday, June 10, 2015 11:08:51 AM Suravee Suthikulpanit wrote: This patch series introduce support for _CCA object, which is currently used mainly by ARM64 platform to specify DMA coherency attribute for devices when booting

Re: [PATCH net-next] bpf: disallow bpf tc programs access current-pid,uid

2015-06-15 Thread David Miller
From: Alexei Starovoitov a...@plumgrid.com Date: Mon, 15 Jun 2015 20:49:24 -0700 Accessing current-pid/uid from cls_bpf may lead to misleading results and should not be used when TC classifiers need accurate information about pid/uid. Signed-off-by: Alexei Starovoitov a...@plumgrid.com

Re: [PATCH 08/11] IB/cma: Add net_dev and private data checks to RDMA CM

2015-06-15 Thread Haggai Eran
On 15/06/2015 20:08, Jason Gunthorpe wrote: On Mon, Jun 15, 2015 at 11:47:13AM +0300, Haggai Eran wrote: Instead of relying on a the ib_cm module to check an incoming CM request's private data header, add these checks to the RDMA CM module. This allows a following patch to to clean up the

RE: [PATCH 0/3] csiostor:Debugfs support update.

2015-06-15 Thread Praveen Madhavan
Hi Davem, Can you please apply this patch series against net-next ? Thanks Praveen From: Praveen Madhavan [prave...@chelsio.com] Sent: Tuesday, June 09, 2015 6:44 PM To: netdev@vger.kernel.org; linux-s...@vger.kernel.org Cc: da...@davemloft.net;

Re: [PATCH v2 net-next 0/3] bpf: share helpers between tracing and networking

2015-06-15 Thread Alexei Starovoitov
On 6/15/15 4:01 PM, David Miller wrote: Although I agree with the sentiment that this thing can cause surprising results and can be asking for trouble. If someone wants to filter traffic by UID they might make a simple ingress TC ebpf program using these new interfaces and expect it to work.

[PATCH net-next] bpf: disallow bpf tc programs access current-pid,uid

2015-06-15 Thread Alexei Starovoitov
Accessing current-pid/uid from cls_bpf may lead to misleading results and should not be used when TC classifiers need accurate information about pid/uid. Signed-off-by: Alexei Starovoitov a...@plumgrid.com --- net/core/filter.c |6 -- 1 file changed, 6 deletions(-) diff --git

Re: netstat and dual stack sockets

2015-06-15 Thread Phil Sutter
HGN! On Mon, Jun 15, 2015 at 11:36:54PM +0200, Hagen Paul Pfeifer wrote: On 15 June 2015 at 22:54, Phil Sutter p...@nwl.cc wrote: As I see it, a user has no way of detecting the listening socket in this address family: it does not show in /proc/net/{tcp,udp} nor do 'netstat', 'ss' or

Re: [PATCH net-next 00/15] Simplify netfilter and network namespaces

2015-06-15 Thread David Miller
From: ebied...@xmission.com (Eric W. Biederman) Date: Mon, 15 Jun 2015 19:26:13 -0500 So what I am in the processes of doing is reviewing and testing the combined set of patches and hopefully I will have something for you soon (tomorrow?). Unless Pablo has objections. I will be travelling

Re: [PATCH net-next 0/3] Socket destruction events via netlink sock_diag

2015-06-15 Thread David Miller
From: Craig Gallek kr...@google.com Date: Mon, 15 Jun 2015 11:26:17 -0400 This series extends the netlink sock_diag interface to broadcast socket information as they are being destroyed. The current interface is poll based and can not be used to retreive information about sockets that are

Re: [PATCH] net: fix search limit handling in skb_find_text()

2015-06-15 Thread Pablo Neira Ayuso
Cc'ing Thomas. On Mon, Jun 15, 2015 at 12:11:58PM +0300, Roman I Khimov wrote: Suppose that we're trying to use an xt_string netfilter module to match a string in a specially crafted packet that has a nice string starting at offset 28. It could be done in iptables like this: -A

[PATCH net] bridge: fix br_stp_set_bridge_priority race conditions

2015-06-15 Thread Nikolay Aleksandrov
After the -set() spinlocks were removed br_stp_set_bridge_priority was left running without any protection when used via sysfs. It can race with port add/del and could result in use-after-free cases and corrupted lists. Tested by running port add/del in a loop with stp enabled while setting

Re: [BUG ?] delay always evaluates to 0

2015-06-15 Thread Nicholas Mc Guire
On Mon, 15 Jun 2015, Stanislav Yakovlev wrote: Hi Nicholas, On 12 June 2015 at 20:58, Nicholas Mc Guire der.h...@hofr.at wrote: Hi ! commit 2c86c275015c (Add ipw2100 wireless driver.) introduced drivers/net/wireless/ipw2100.c - line-numbers are from next-20150511 1410 static int

Re: [PATCH] wireless: ipw2100: fix timeout bug - always evaluated to 0

2015-06-15 Thread Stanislav Yakovlev
thus fixed up to msecs_to_jiffies(50). Signed-off-by: Nicholas Mc Guire hof...@osadl.org --- Patch was compile tested with x86_64_defconfig + CONFIG_IPW2100=m (with a few buildwarnings in ipw2100.c though not related to this patch) Patch is against 4.1-rc7 (localversion-next is -next-20150615

[PATCH 1/2] iplink_geneve: add ttl configuration at link creation

2015-06-15 Thread John W. Linville
Signed-off-by: John W. Linville linvi...@tuxdriver.com --- include/linux/if_link.h | 1 + ip/iplink_geneve.c | 23 ++- man/man8/ip-link.8.in | 7 +++ 3 files changed, 30 insertions(+), 1 deletion(-) diff --git a/include/linux/if_link.h b/include/linux/if_link.h

[PATCH 2/2] iplink_geneve: add tos configuration at link creation

2015-06-15 Thread John W. Linville
Signed-off-by: John W. Linville linvi...@tuxdriver.com --- include/linux/if_link.h | 1 + ip/iplink_geneve.c | 26 +- man/man8/ip-link.8.in | 6 ++ 3 files changed, 32 insertions(+), 1 deletion(-) diff --git a/include/linux/if_link.h b/include/linux/if_link.h

[PATCH 0/2] iplink_geneve: add ttl and tos configuration bits

2015-06-15 Thread John W. Linville
This pair of patches add configuration of TTL and TOS settings for GENEVE tunnel packets. These settings follow the same conventions as the VXLAN counterparts. These patches include man page changes. Therefore, they depend on the preceding iproute2: update ip-link.8 for geneve tunnels patch,

Re: [PATCH 1/2] iplink_geneve: add ttl configuration at link creation

2015-06-15 Thread John W. Linville
On Mon, Jun 15, 2015 at 02:37:15PM -0400, John W. Linville wrote: Signed-off-by: John W. Linville linvi...@tuxdriver.com --- include/linux/if_link.h | 1 + This includes the include/linux/if_link.h bits, that will need to be dropped after iproute2 does the 4.1 update for that file.

Re: [PATCH 2/2] iplink_geneve: add tos configuration at link creation

2015-06-15 Thread John W. Linville
On Mon, Jun 15, 2015 at 02:37:16PM -0400, John W. Linville wrote: Signed-off-by: John W. Linville linvi...@tuxdriver.com --- include/linux/if_link.h | 1 + This includes the include/linux/if_link.h bits, that will need to be dropped after iproute2 does the 4.1 update for that file.

[PATCH] net: stmmac: dwmac-rk: Don't add function name in info or err messages

2015-06-15 Thread Romain Perier
These kind of informations are only useful for debugging and should not be displayed in normal modules message. Signed-off-by: Romain Perier romain.per...@gmail.com --- drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c | 75 +- 1 file changed, 36 insertions(+), 39

  1   2   >