[PATCH net-next v2 0/4] net: dsa: bcm_sf2: CFP support

2017-01-28 Thread Florian Fainelli
Hi all, This patch series adds support for the Broadcom Compact Field Processor (CFP) which is a classification and matching engine built into most Broadcom switches. We support that using ethtool::rxnfc because it allows all known uses cases from the users I support to work, and more

[PATCH net-next v2 1/2] qed: Add infrastructure for PTP support.

2017-01-28 Thread Sudarsana Kalluru
From: Sudarsana Reddy Kalluru The patch adds the required qed interfaces for configuring/reading the PTP clock on the adapter. Signed-off-by: Sudarsana Reddy Kalluru --- drivers/net/ethernet/qlogic/qed/Makefile | 2 +-

[PATCH net-next v2 2/2] qede: Add driver support for PTP.

2017-01-28 Thread Sudarsana Kalluru
From: Sudarsana Reddy Kalluru This patch adds the driver support for, - Registering the ptp clock functionality with the OS. - Timestamping the Rx/Tx PTP packets. - Ethtool callbacks related to PTP. Signed-off-by: Sudarsana Reddy Kalluru

[PATCH net-next v2 0/2] qed*: Add support for PTP

2017-01-28 Thread Sudarsana Kalluru
From: Sudarsana Reddy Kalluru Hi David, The patch series adds required changes for qed/qede drivers for supporting the IEEE Precision Time Protocol (PTP). Changes from previous versions: --- v2: Use do_div for 64-bit divisions

[PATCH stable v1 13/13] net: ethernet: aquantia: Integrate AQtion 2.5/5 GB

2017-01-28 Thread Alexander Loktionov
From: David VomLehn Modify the drivers/net/ethernet/{Makefile,Kconfig} file to make them a part of the network drivers build. Signed-off-by: Alexander Loktionov Signed-off-by: Dmitrii Tarakanov Signed-off-by:

[PATCH stable v1 00/13] net: ethernet: aquantia: Add AQtion 2.5/5 GB NIC driver

2017-01-28 Thread Alexander Loktionov
From: David VomLehn This series introduces the AQtion NIC driver for the aQuantia AQC107/AQC108 network devices. The commit for the first patch of the upstream patchset on which this is based is: 665e17fb5a80e09a59f71e8264420c46810d0534. The only difference with this

[PATCH stable v1 05/13] net: ethernet: aquantia: Support for NIC-specific code

2017-01-28 Thread Alexander Loktionov
From: David VomLehn Add support for code specific to the Atlantic NIC. Signed-off-by: Alexander Loktionov Signed-off-by: Dmitrii Tarakanov Signed-off-by: Pavel Belous

[PATCH stable v1 07/13] net: ethernet: aquantia: Vector operations

2017-01-28 Thread Alexander Loktionov
From: David VomLehn Add functions to manululate the vector of receive and transmit rings. Signed-off-by: Alexander Loktionov Signed-off-by: Dmitrii Tarakanov Signed-off-by: Pavel.Belous

[PATCH stable v1 03/13] net: ethernet: aquantia: Add ring support code

2017-01-28 Thread Alexander Loktionov
From: David VomLehn Add code to support the transmit and receive ring buffers. Signed-off-by: Alexander Loktionov Signed-off-by: Dmitrii Tarakanov Signed-off-by: Pavel Belous

[PATCH stable v1 11/13] net: ethernet: aquantia: Ethtool support

2017-01-28 Thread Alexander Loktionov
From: David VomLehn Add the driver interfaces required for support by the ethtool utility. Signed-off-by: Alexander Loktionov Signed-off-by: Dmitrii Tarakanov Signed-off-by: Pavel Belous

[PATCH stable v1 06/13] net: ethernet: aquantia: Atlantic A0 and B0 specific functions.

2017-01-28 Thread Alexander Loktionov
From: David VomLehn Add Atlantic A0 and B0 specific functions. Signed-off-by: Alexander Loktionov Signed-off-by: Dmitrii Tarakanov Signed-off-by: Pavel Belous Signed-off-by: Dmitry

[PATCH stable v1 02/13] net: ethernet: aquantia: Common functions and definitions

2017-01-28 Thread Alexander Loktionov
From: David VomLehn Add files containing the functions and definitions used in common in different functional areas. Signed-off-by: Alexander Loktionov Signed-off-by: Dmitrii Tarakanov Signed-off-by: Pavel

[PATCH stable v1 01/13] net: ethernet: aquantia: Make and configuration files.

2017-01-28 Thread Alexander Loktionov
From: David VomLehn Patches to create the make and configuration files. Signed-off-by: Alexander Loktionov Signed-off-by: Dmitrii Tarakanov Signed-off-by: Pavel Belous

[PATCH stable v1 12/13] net: ethernet: aquantia: Receive side scaling

2017-01-28 Thread Alexander Loktionov
From: David VomLehn Add definitions that support receive side scaling. Signed-off-by: Alexander Loktionov Signed-off-by: Dmitrii Tarakanov Signed-off-by: Pavel Belous

[PATCH stable v1 09/13] net: ethernet: aquantia: Atlantic hardware abstraction layer

2017-01-28 Thread Alexander Loktionov
From: David VomLehn Add common functions for Atlantic hardware abstraction layer. Signed-off-by: Alexander Loktionov Signed-off-by: Dmitrii Tarakanov Signed-off-by: Pavel Belous

[PATCH stable v1 08/13] net: ethernet: aquantia: PCI operations

2017-01-28 Thread Alexander Loktionov
From: David VomLehn Add functions that handle the PCI bus interface. Signed-off-by: Alexander Loktionov Signed-off-by: Dmitrii Tarakanov Signed-off-by: Pavel Belous Signed-off-by:

[PATCH stable v1 10/13] net: ethernet: aquantia: Hardware interface and utility functions

2017-01-28 Thread Alexander Loktionov
From: David VomLehn Add functions to interface with the hardware and some utility functions. Signed-off-by: Alexander Loktionov Signed-off-by: Dmitrii Tarakanov Signed-off-by: Pavel Belous

[PATCH net-next v2 1/4] net: dsa: Hook {get,set}_rxnfc ethtool operations

2017-01-28 Thread Florian Fainelli
In preparation for adding support for CFP/TCAMP in the bcm_sf2 driver add the plumbing to call into driver specific {get,set}_rxnfc operations. Signed-off-by: Florian Fainelli --- include/net/dsa.h | 8 net/dsa/slave.c | 26 ++ 2 files

[PATCH net-next v2 3/4] net: dsa: bcm_sf2: Add CFP registers definitions

2017-01-28 Thread Florian Fainelli
Add Compact Field Processor definitions for the Broadcom Starfighter 2 and compatible versions of the switch. Signed-off-by: Florian Fainelli --- drivers/net/dsa/bcm_sf2_regs.h | 146 + 1 file changed, 146 insertions(+) diff --git

[PATCH net-next v2 2/4] net: dsa: bcm_sf2: Configure traffic classes to queue mapping

2017-01-28 Thread Florian Fainelli
By default, all traffic goes to queue 0, re-configure the traffic classes to quality of service mapping such that priority X maps to queue X, where X is from 0 through 7. Signed-off-by: Florian Fainelli --- drivers/net/dsa/bcm_sf2.c | 9 +

[PATCH net-next v2 4/4] net: dsa: bcm_sf2: Add support for ethtool::rxnfc

2017-01-28 Thread Florian Fainelli
Add support for configuring classification rules using the ethtool::rxnfc API. This is useful to program the switch's CFP/TCAM to redirect specific packets to specific ports/queues for instance. For now, we allow any kind of IPv4 5-tuple matching. Signed-off-by: Florian Fainelli

Re: [PATCH V2 3/3] net: bgmac: use PHY subsystem for initializing PHY

2017-01-28 Thread Florian Fainelli
On 01/28/2017 01:08 PM, Rafał Miłecki wrote: > From: Rafał Miłecki > > This adds support for using bgmac with PHYs supported by standalone PHY > drivers. Having any PHY initialization in bgmac is hacky and shouldn't > be extended but rather removed if anyone has hardware to

Re: [BUG/RFC] vhost: net: big endian viring access despite virtio 1

2017-01-28 Thread Michael S. Tsirkin
On Fri, Jan 27, 2017 at 02:37:47PM +0100, Greg Kurz wrote: > On Fri, 27 Jan 2017 13:24:13 +0100 > Halil Pasic wrote: > > > On 01/26/2017 08:20 PM, Michael S. Tsirkin wrote: > > > On Thu, Jan 26, 2017 at 06:39:14PM +0100, Halil Pasic wrote: > > >> > > >> Hi! > > >> > >

[PATCH net-next] net: ethtool: silence kmalloc warning

2017-01-28 Thread Alexei Starovoitov
under memory pressure 'ethtool -S' command may warn: [ 2374.385195] ethtool: page allocation failure: order:4, mode:0x242c0c0 [ 2374.405573] CPU: 12 PID: 40211 Comm: ethtool Not tainted [ 2374.423071] Call Trace: [ 2374.423076] [] dump_stack+0x4d/0x64 [ 2374.423080] []

Re: [PATCH net-next v3 0/4] net: ipv6: Improve user experience with multipath routes

2017-01-28 Thread Roopa Prabhu
On 1/27/17, 3:20 PM, David Ahern wrote: > This series closes a couple of gaps between IPv4 and IPv6 with respect > to multipath routes: > > 1. IPv4 allows all nexthops of multipath routes to be deleted using just >the prefix and length; IPv6 only deletes the first nexthop for the >route if

BUG at net/sctp/socket.c:7425

2017-01-28 Thread Alexander Popov
Hello, I'm running the syzkaller fuzzer for v4.10-rc4 (0aa0313f9d576affd7747cc3f179feb097d28990) and have such a crash in sctp code: [ 38.423932] [ cut here ] [ 38.424298] kernel BUG at net/sctp/socket.c:7425! [ 38.424583] invalid opcode: [#1] SMP KASAN [

Re: [PATCH V2 1/3] net: bgmac: allocate struct bgmac just once & don't copy it

2017-01-28 Thread kbuild test robot
Hi Rafał, [auto build test ERROR on net-next/master] [also build test ERROR on v4.10-rc5 next-20170125] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url:

[PATCH V2 2/3] net: bgmac: drop struct bcma_mdio we don't need anymore

2017-01-28 Thread Rafał Miłecki
From: Rafał Miłecki Adding struct bcma_mdio was a workaround for bcma code not having access to the struct bgmac used in the core code. Now we don't duplicate this struct we can just use it internally in bcma code. This simplifies code & allows access to all bgmac driver

[PATCH V2 1/3] net: bgmac: allocate struct bgmac just once & don't copy it

2017-01-28 Thread Rafał Miłecki
From: Rafał Miłecki So far were were allocating struct bgmac in 3 places: platform code, bcma code and shared bgmac_enet_probe function. The reason for this was bgmac_enet_probe: 1) Requiring early-filled struct bgmac 2) Calling alloc_etherdev on its own in order to use

[PATCH V2 0/3] net-next: use one struct bgmac & add PHY support

2017-01-28 Thread Rafał Miłecki
From: Rafał Miłecki This patchset adds support for initializing PHY using PHY subsystem. It's required e.g. for wireless access point devices that use bgmac supported Ethernet device connected to some external PHY. Implementing this required accessing phydev in bcma specific

[PATCH V2 3/3] net: bgmac: use PHY subsystem for initializing PHY

2017-01-28 Thread Rafał Miłecki
From: Rafał Miłecki This adds support for using bgmac with PHYs supported by standalone PHY drivers. Having any PHY initialization in bgmac is hacky and shouldn't be extended but rather removed if anyone has hardware to test it. Signed-off-by: Rafał Miłecki

[PATCH net] net: ethtool: add support for 2500BaseT and 5000BaseT link modes

2017-01-28 Thread Pavel Belous
This patch introduce support for 2500BaseT and 5000BaseT link modes. These modes are included in the new IEEE 802.3bz standard. Signed-off-by: Pavel Belous --- include/uapi/linux/ethtool.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git

Re: [PATCH net-next 1/4] mlx5: Make building eswitch configurable

2017-01-28 Thread Alexei Starovoitov
On 1/28/17 3:20 AM, Saeed Mahameed wrote: On Sat, Jan 28, 2017 at 1:23 AM, Alexei Starovoitov wrote: On 1/27/17 1:15 PM, Saeed Mahameed wrote: It is only mandatory for configurations that needs eswitch, where the driver has no way to know about them, for a good old bare metal

Re: [PATCH net-next v2 1/4] net: dsa: Add plumbing for port mirroring

2017-01-28 Thread Florian Fainelli
Le 01/28/17 à 01:14, Jiri Pirko a écrit : > Sat, Jan 28, 2017 at 02:25:25AM CET, f.faine...@gmail.com wrote: >> Add necessary plumbing at the slave network device level to have switch >> drivers implement ndo_setup_tc() and most particularly the cls_matchall >> classifier. We add support for two

Re: [PATCH net-next 0/4] mlx5: Create build configuration options

2017-01-28 Thread Tom Herbert
On Sat, Jan 28, 2017 at 3:38 AM, Saeed Mahameed wrote: > On Fri, Jan 27, 2017 at 8:13 PM, Tom Herbert wrote: >> On Fri, Jan 27, 2017 at 9:58 AM, Saeed Mahameed >> wrote: >>> On Fri, Jan 27, 2017 at 1:32 AM, Tom Herbert

Re: cls_matchall and port mirroring questions

2017-01-28 Thread Florian Fainelli
Le 01/28/17 à 07:55, Jiri Pirko a écrit : > Sat, Jan 28, 2017 at 03:19:04PM CET, ido...@mellanox.com wrote: >> On Thu, Jan 26, 2017 at 07:00:50PM -0800, Florian Fainelli wrote: >>> Hi, >>> >>> As I am adding support for cls_matchall in the b53/bcm_sf2 drivers, I >>> was looking into several, yet

Re: cls_matchall and port mirroring questions

2017-01-28 Thread Jiri Pirko
Sat, Jan 28, 2017 at 03:19:04PM CET, ido...@mellanox.com wrote: >On Thu, Jan 26, 2017 at 07:00:50PM -0800, Florian Fainelli wrote: >> Hi, >> >> As I am adding support for cls_matchall in the b53/bcm_sf2 drivers, I >> was looking into several, yet unrelated things: >> >> - mlxsw does not seem to

Re: [PATCH net-next 4/4] net: dsa: bcm_sf2: Add support for ethtool::rxnfc

2017-01-28 Thread kbuild test robot
Hi Florian, [auto build test ERROR on net-next/master] url: https://github.com/0day-ci/linux/commits/Florian-Fainelli/net-dsa-bcm_sf2-CFP-support/20170128-052440 config: arm-multi_v7_defconfig (attached as .config) compiler: arm-linux-gnueabi-gcc (Debian 6.1.1-9) 6.1.1 20160705 reproduce

Re: cls_matchall and port mirroring questions

2017-01-28 Thread Ido Schimmel
On Thu, Jan 26, 2017 at 07:00:50PM -0800, Florian Fainelli wrote: > Hi, > > As I am adding support for cls_matchall in the b53/bcm_sf2 drivers, I > was looking into several, yet unrelated things: > > - mlxsw does not seem to specify whether the port used for capture > remains usable, or blocks

Re: [PATCH v2] bpf: Restrict cgroup bpf hooks to the init netns

2017-01-28 Thread Tejun Heo
Hello, Eric. On Thu, Jan 26, 2017 at 01:45:07PM +1300, Eric W. Biederman wrote: > > Eric, does this sound okay to you? You're the authority on exposing > > things like namespace ids to users. > > *Boggle* Things that run across all network namespaces break any kind > of sense I have about

[PATCHv2 RFC net-next 2/7] net: add dst_pending_confirm flag to skbuff

2017-01-28 Thread Julian Anastasov
Add new skbuff flag to allow protocols to confirm neighbour. When same struct dst_entry can be used for many different neighbours we can not use it for pending confirmations. Add sock_confirm_neigh() helper to confirm the neighbour and use it for IPv4, IPv6 and VRF before dst_neigh_output.

[PATCHv2 RFC net-next 3/7] sctp: add dst_pending_confirm flag

2017-01-28 Thread Julian Anastasov
Add new transport flag to allow sockets to confirm neighbour. When same struct dst_entry can be used for many different neighbours we can not use it for pending confirmations. The flag is propagated from transport to every packet. It is reset when cached dst is reset. Reported-by: YueHaibing

[PATCHv2 RFC net-next 5/7] net: add confirm_neigh method to dst_ops

2017-01-28 Thread Julian Anastasov
Add confirm_neigh method to dst_ops and use it from IPv4 and IPv6 to lookup and confirm the neighbour. Its usage via the new helper dst_confirm_neigh() should be restricted to MSG_PROBE users for performance reasons. Signed-off-by: Julian Anastasov --- include/net/arp.h | 16

[PATCHv2 RFC net-next 1/7] sock: add sk_dst_pending_confirm flag

2017-01-28 Thread Julian Anastasov
Add new sock flag to allow sockets to confirm neighbour. When same struct dst_entry can be used for many different neighbours we can not use it for pending confirmations. As not all call paths lock the socket use full word for the flag. Add sk_dst_confirm as replacement for dst_confirm when

[PATCHv2 RFC net-next 7/7] net: pending_confirm is not used anymore

2017-01-28 Thread Julian Anastasov
When same struct dst_entry can be used for many different neighbours we can not use it for pending confirmations. As last step, we can remove the pending_confirm flag. Reported-by: YueHaibing Fixes: 5110effee8fd ("net: Do delayed neigh confirmation.") Fixes: f2bb4bedf35d

[PATCHv2 RFC net-next 6/7] net: use dst_confirm_neigh for UDP, RAW, ICMP, L2TP

2017-01-28 Thread Julian Anastasov
When same struct dst_entry can be used for many different neighbours we can not use it for pending confirmations. The datagram protocols can use MSG_CONFIRM to confirm the neighbour. When used with MSG_PROBE we do not reach the code where neighbour is confirmed, so we have to do the same slow

[PATCHv2 RFC net-next 0/7] net: dst_confirm replacement

2017-01-28 Thread Julian Anastasov
v1->v2: - patch 1: put sk_dst_pending_confirm in TX cacheline - patch 2: add skb_set_dst_pending_confirm and skb_get_dst_pending_confirm helpers - patch 3: use skb_set_dst_pending_confirm remove check from sctp_transport_dst_confirm, directly assign - patch 4: use

[PATCHv2 RFC net-next 4/7] tcp: replace dst_confirm with sk_dst_confirm

2017-01-28 Thread Julian Anastasov
When same struct dst_entry can be used for many different neighbours we can not use it for pending confirmations. Use the new sk_dst_confirm() helper to propagate the indication from received packets to sock_confirm_neigh(). Reported-by: YueHaibing Fixes: 5110effee8fd

[PATCH v2] cfg80211 debugfs: Cleanup some checkpatch issues

2017-01-28 Thread Dmitriy Pichugin
This fixes the checkpatch.pl warnings: * Macros should not use a trailing semicolon. * Spaces required around that '='. * Symbolic permissions 'S_IRUGO' are not preferred. Signed-off-by: Dmitriy Pichugin --- net/wireless/debugfs.c | 10 +- 1 file changed, 5

[PATCH net-next] net: add devm version of alloc_etherdev_mqs function

2017-01-28 Thread Rafał Miłecki
From: Rafał Miłecki This patch adds devm_alloc_etherdev_mqs function and devm_alloc_etherdev macro. These can be used for simpler netdev allocation without having to care about calling free_netdev. Thanks to this change drivers, their error paths and removal paths may get

[PATCH] net: aquantia: atlantic: use new api ethtool_{get|set}_link_ksettings

2017-01-28 Thread Philippe Reynes
The ethtool api {get|set}_settings is deprecated. We move this driver to new api {get|set}_link_ksettings. As I don't have the hardware, I'd be very pleased if someone may test this patch. Signed-off-by: Philippe Reynes --- .../net/ethernet/aquantia/atlantic/aq_ethtool.c

[iproute PATCH v2] man: tc-csum.8: Fix example

2017-01-28 Thread Phil Sutter
This fixes two issues with the provided example: - Add missing 'dev' keyword to second command. - Use a real IPv4 address instead of a bogus hex value since that will be rejected by get_addr_ipv4(). Fixes: dbfb17a67f9c7 ("man: tc-csum.8: Add an example") Reported-by: Davide Caratti

Re: [PATCH] cfg80211 debugfs: Cleanup some checkpatch issues

2017-01-28 Thread Dmitriy Pichugin
On Fri, Jan 27, 2017 at 11:48:35AM -0800, Joe Perches wrote: > On Fri, 2017-01-27 at 22:26 +0300, Pichugin Dmitry wrote: > > This fixes the checkpatch.pl warnings: > > * Macros should not use a trailing semicolon. > > * Spaces required around that '='. > > * Symbolic permissions 'S_IRUGO' are not

Re: [PATCH net-next 0/4] mlx5: Create build configuration options

2017-01-28 Thread Saeed Mahameed
On Fri, Jan 27, 2017 at 8:13 PM, Tom Herbert wrote: > On Fri, Jan 27, 2017 at 9:58 AM, Saeed Mahameed > wrote: >> On Fri, Jan 27, 2017 at 1:32 AM, Tom Herbert wrote: >>> This patchset creates configuration options for sriov,

Re: [PATCH net-next 1/4] mlx5: Make building eswitch configurable

2017-01-28 Thread Saeed Mahameed
On Sat, Jan 28, 2017 at 1:23 AM, Alexei Starovoitov wrote: > On 1/27/17 1:15 PM, Saeed Mahameed wrote: >> >> It is only mandatory for configurations that needs eswitch, where the >> driver has no way to know about them, for a good old bare metal box, >> eswitch is not needed. >> >>

Re: [iproute PATCH] man: tc-csum.8: Fix example

2017-01-28 Thread Phil Sutter
On Fri, Jan 27, 2017 at 09:49:58PM +0100, Guillaume Nault wrote: > On Fri, Jan 27, 2017 at 12:15:01PM +0100, Phil Sutter wrote: > > +# tc filter add dev eth0 prio 1 protocol ip parent : \\ > > u32 match ip src 192.168.1.100/32 flowid :1 \\ > > - action pedit munge ip dst set 0x12345678

Re: [net 7/8] net/mlx5e: Fix update of hash function/key via ethtool

2017-01-28 Thread Saeed Mahameed
On Fri, Jan 27, 2017 at 11:50 PM, Tom Herbert wrote: > On Fri, Jan 27, 2017 at 12:38 PM, Saeed Mahameed wrote: >> From: Gal Pressman >> >> Modifying TIR hash should change selected fields bitmask in addition to >> the function and

[PATCH 2/2] batman-adv: Fix includes for IS_ERR/ERR_PTR

2017-01-28 Thread Simon Wunderlich
From: Sven Eckelmann IS_ERR/ERR_PTR are not defined in linux/device.h but in linux/err.h. The files using these macros therefore have to include the correct one. Reported-by: Linus Luessing Signed-off-by: Sven Eckelmann

[PATCH 1/2] batman-adv: Fix double call of dev_queue_xmit

2017-01-28 Thread Simon Wunderlich
From: Sven Eckelmann The net_xmit_eval has side effects because it is not making sure that e isn't evaluated twice. #define net_xmit_eval(e)((e) == NET_XMIT_CN ? 0 : (e)) The code requested by David Miller [1] return net_xmit_eval(dev_queue_xmit(skb));

[PATCH 0/2] pull request for net-next: batman-adv 2017-01-28

2017-01-28 Thread Simon Wunderlich
c33705188c493b7de3b8dc2956d67de91b444727: batman-adv: Treat NET_XMIT_CN as transmit successfully (2017-01-26 08:41:18 +0100) are available in the git repository at: git://git.open-mesh.org/linux-merge.git tags/batadv-next-for-davem-20170128 for you to fetch changes up to 3e7514afc7d728dd47c5fe9d7a1f5216fe659cda

[PATCH 4/4] dcbnl: Add some spaces for better code readability

2017-01-28 Thread SF Markus Elfring
From: Markus Elfring Date: Sat, 28 Jan 2017 10:15:59 +0100 Use space characters at some source code places according to the Linux coding style convention. Signed-off-by: Markus Elfring --- net/dcb/dcbnl.c | 12 ++-- 1 file

[PATCH 2/4] dcbnl: Adjust four function calls together with a variable assignment

2017-01-28 Thread SF Markus Elfring
From: Markus Elfring Date: Sat, 28 Jan 2017 09:19:58 +0100 The script "checkpatch.pl" pointed information out like the following. ERROR: do not use assignment in if condition Thus fix the affected source code places. Signed-off-by: Markus Elfring

[PATCH 3/4] dcbnl: Adjust five checks for null pointers

2017-01-28 Thread SF Markus Elfring
From: Markus Elfring Date: Sat, 28 Jan 2017 09:56:36 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The script "checkpatch.pl" pointed information out like the following. Comparison to NULL could be written !… Thus

[PATCH 1/4] dcbnl: Use kmalloc_array() in dcbnl_build_peer_app()

2017-01-28 Thread SF Markus Elfring
From: Markus Elfring Date: Fri, 27 Jan 2017 22:30:09 +0100 * A multiplication for the size determination of a memory allocation indicated that an array data structure should be processed. Thus use the corresponding function "kmalloc_array". This issue was

[PATCH 0/4] DCB netlink: Fine-tuning for some function implementations

2017-01-28 Thread SF Markus Elfring
From: Markus Elfring Date: Sat, 28 Jan 2017 10:28:19 +0100 A few update suggestions were taken into account from static source code analysis. Markus Elfring (4): Use kmalloc_array() in dcbnl_build_peer_app() Adjust four function calls together with a variable

Re: [PATCH net-next v2 1/4] net: dsa: Add plumbing for port mirroring

2017-01-28 Thread Jiri Pirko
Sat, Jan 28, 2017 at 02:25:25AM CET, f.faine...@gmail.com wrote: >Add necessary plumbing at the slave network device level to have switch >drivers implement ndo_setup_tc() and most particularly the cls_matchall >classifier. We add support for two switch operations: > >port_add_mirror and

[PATCH net] mlx4: xdp_prog becomes inactive after ethtool '-L' or '-G'

2017-01-28 Thread Martin KaFai Lau
If the rx-queues ever get re-initialized (e.g. by changing the number of rx-queues with ethtool -L), the existing xdp_prog becomes inactive. The bug is that the xdp_prog ptr has not been carried over from the old rx-queues to the new rx-queues Fixes: 47a38e155037 ("net/mlx4_en: add support for