Re: [PATCH] mlx5: Add ndo_poll_controller() implementation

2016-09-24 Thread Saeed Mahameed
On Fri, Sep 23, 2016 at 11:13 PM, Calvin Owens wrote: > This implements ndo_poll_controller in net_device_ops for mlx5, which is > necessary to use netconsole with this driver. > > Signed-off-by: Calvin Owens > --- > drivers/net/ethernet/mellanox/mlx5/core/en_main.c | 20 >

Re: [RFC] net/mlx5_core/en_main: Remove deprecated create_workqueue

2016-07-28 Thread Saeed Mahameed
On Wed, Jul 27, 2016 at 9:12 AM, Bhaktipriya Shridhar wrote: > alloc_ordered_workqueue() with WQ_MEM_RECLAIM set replaces > deprecated create_singlethread_workqueue(). This is the identity > conversion. > > A dedicated workqueue has been used since mlx5e workqueue was created to > handle all mlx5e

Re: [PATCH] net/mlx5_core/pagealloc: Remove deprecated create_singlethread_workqueue

2016-07-28 Thread Saeed Mahameed
On Thu, Jul 28, 2016 at 11:19 AM, Bhaktipriya Shridhar wrote: > A dedicated workqueue has been used since the work items are being used > on a memory reclaim path. WQ_MEM_RECLAIM has been set to guarantee forward > progress under memory pressure. > > The workqueue has a single work item. Hence, al

Re: [PATCH] net/mlx5_core/pagealloc: Remove deprecated create_singlethread_workqueue

2016-07-28 Thread Saeed Mahameed
On Thu, Jul 28, 2016 at 12:37 PM, Leon Romanovsky wrote: > On Thu, Jul 28, 2016 at 01:49:49PM +0530, Bhaktipriya Shridhar wrote: >> A dedicated workqueue has been used since the work items are being used >> on a memory reclaim path. WQ_MEM_RECLAIM has been set to guarantee forward >> progress unde

Re: [PATCH net] net/mlx5: avoid build warning for uniprocessor

2017-05-30 Thread Saeed Mahameed
p; > + irq_set_affinity_hint(irq, priv->irq_info[i].mask)) > mlx5_core_warn(mdev, "irq_set_affinity_hint failed, irq > 0x%.4x", irq); > -#endif > > return 0; > } Acked-by: Saeed Mahameed Thank you Arnd !!

Re: [PATCH] net/mlx5e/core/en_fs: fix pointer dereference after free in mlx5e_execute_l2_action

2017-11-04 Thread Saeed Mahameed
n paths within function mlx5e_execute_l2_action. > > Addresses-Coverity-ID: 1417789 > Fixes: eeb66cdb6826 ("net/mlx5: Separate between E-Switch and MPFS") > Signed-off-by: Gustavo A. R. Silva Acked-by: Saeed Mahameed Looks good. Thank you Gustavo. > --- > drivers/net/ethernet

Re: [PATCH] net/mlx4_en: ensure rx_desc updating reaches HW before prod db updating

2018-01-12 Thread Saeed Mahameed
On 01/12/2018 08:46 AM, Eric Dumazet wrote: On Fri, 2018-01-12 at 09:32 -0700, Jason Gunthorpe wrote: On Fri, Jan 12, 2018 at 11:42:22AM +0800, Jianchao Wang wrote: Customer reported memory corruption issue on previous mlx4_en driver version where the order-3 pages and multiple page reference

Re: [PATCH] net/mlx4_en: ensure rx_desc updating reaches HW before prod db updating

2018-01-12 Thread Saeed Mahameed
On 01/12/2018 12:16 PM, Eric Dumazet wrote: > On Fri, 2018-01-12 at 11:53 -0800, Saeed Mahameed wrote: >> >> On 01/12/2018 08:46 AM, Eric Dumazet wrote: >>> On Fri, 2018-01-12 at 09:32 -0700, Jason Gunthorpe wrote: >>>> On Fri, Jan 12, 2018 at 1

Re: [PATCH] net/mlx5e: Fix trailing semicolon

2018-01-17 Thread Saeed Mahameed
On 01/17/2018 04:09 AM, Luis de Bethencourt wrote: > The trailing semicolon is an empty statement that does no operation. > Removing it since it doesn't do anything. > > Signed-off-by: Luis de Bethencourt Looks Good, Thanks Luis. Reviewed-by: Saeed Mahameed

Re: [PATCH] net/mlx5: remove some extraneous spaces in indentations

2018-04-11 Thread Saeed Mahameed
On Tue, 2018-04-10 at 17:27 -0600, Jason Gunthorpe wrote: > On Tue, Apr 10, 2018 at 05:22:54PM -0600, Jason Gunthorpe wrote: > > On Mon, Apr 09, 2018 at 01:43:36PM +0100, Colin Ian King wrote: > > > From: Colin Ian King > > > > > > There are several lines where there is an extraneous space > > >

Re: [PATCH] net/mlx5: remove some extraneous spaces in indentations

2018-04-12 Thread Saeed Mahameed
On Mon, 2018-04-09 at 13:43 +0100, Colin King wrote: > From: Colin Ian King > > There are several lines where there is an extraneous space causing > indentation misalignment. Remove them. > > Cleans up Cocconelle warnings: > > ./drivers/net/ethernet/mellanox/mlx5/core/qp.c:409:3-18: code aligne

Re: [PATCH v2] net/mlx5: Fix use-after-free

2018-03-22 Thread Saeed Mahameed
resses-Coverity-ID: 1466041 ("Read from pointer after free") > Fixes: 05564d0ae075 ("net/mlx5: Add flow-steering commands for FPGA > IPSec implementation") > Reviewed-by: Yuval Shaia > Signed-off-by: Gustavo A. R. Silva Acked-by: Saeed Mahameed > --- > Cha

Re: [PATCH, net-next] net/mlx5e: fix TLS dependency

2018-05-25 Thread Saeed Mahameed
> that will actually work. The existing dependency on TLS_DEVICE is > not sufficient here since MLX5_EN_TLS is a 'bool' symbol. > > Fixes: c83294b9efa5 ("net/mlx5e: TLS, Add Innova TLS TX support") > Signed-off-by: Arnd Bergmann > --- LGTM Acked-by: Saeed

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

2018-12-17 Thread Saeed Mahameed
On Sun, Dec 16, 2018 at 4:25 PM Stephen Rothwell wrote: > > Hi all, > > Today's linux-next merge of the net-next tree got a conflict in: > > drivers/net/ethernet/mellanox/mlx5/core/en_tc.c > > between commit: > > 154e62abe9cd ("net/mlx5e: Properly initialize flow attributes for slow path > es

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

2018-12-17 Thread Saeed Mahameed
On Sun, Dec 16, 2018 at 4:08 PM Stephen Rothwell wrote: > > Hi all, > > Today's linux-next merge of the rdma tree got a conflict in: > > include/linux/mlx5/mlx5_ifc.h > > between commit: > > 663f146f2ecf ("net/mlx5: E-Switch, Fix fdb cap bits swap") > > from the net tree and commit: > > c74d

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

2021-02-16 Thread Saeed Mahameed
On Mon, 2021-02-15 at 11:52 +1100, Stephen Rothwell wrote: > Hi all, > > Today's linux-next merge of the net-next tree got conflicts in: > >   drivers/net/ethernet/mellanox/mlx5/core/en_main.c >   drivers/net/ethernet/mellanox/mlx5/core/en_rx.c > > between commit: > >   e4484d9df500 ("net/mlx5e

Re: mlx5 HW crypto offload support

2021-02-16 Thread Saeed Mahameed
On Mon, 2021-02-15 at 23:17 +0530, James Spader wrote: > Hi All, > > Does HW crypto offload support for mlx5 work under virtualized > environment? > For e.g with PF (Physical Function) driver and VF(Virtual Function) > driver. > > If yes, then how does the information that is required to create >

Re: [PATCH] net/mlx5: report persistent netdev stats across ifdown/ifup commands

2018-04-26 Thread Saeed Mahameed
On Thu, Apr 26, 2018 at 1:37 PM, Qing Huang wrote: > Current stats collecting scheme in mlx5 driver is to periodically fetch > aggregated stats from all the active mlx5 software channels associated > with the device. However when a mlx5 interface is brought down(ifdown), > all the channels will be

Re: [PATCH] net/mlx5: report persistent netdev stats across ifdown/ifup commands

2018-04-26 Thread Saeed Mahameed
On Thu, Apr 26, 2018 at 3:37 PM, Qing Huang wrote: > > > On 04/26/2018 02:50 PM, Saeed Mahameed wrote: >> >> On Thu, Apr 26, 2018 at 1:37 PM, Qing Huang wrote: >>> >>> Current stats collecting scheme in mlx5 driver is to periodically fetch >>> ag

Re: [PATCH] net/mlx5: report persistent netdev stats across ifdown/ifup commands

2018-04-26 Thread Saeed Mahameed
On Thu, Apr 26, 2018 at 4:30 PM, Saeed Mahameed wrote: > On Thu, Apr 26, 2018 at 3:37 PM, Qing Huang wrote: >> >> >> On 04/26/2018 02:50 PM, Saeed Mahameed wrote: >>> >>> On Thu, Apr 26, 2018 at 1:37 PM, Qing Huang wrote: >>>> >&g

Re: [PATCH] net/mlx5: Use 'kvfree()' for memory allocated by 'kvzalloc()'

2018-05-14 Thread Saeed Mahameed
On Mon, May 14, 2018 at 11:56 AM, David Miller wrote: > From: Christophe JAILLET > Date: Sat, 12 May 2018 19:09:25 +0200 > >> 'out' is allocated with 'kvzalloc()'. 'kvfree()' must be used to free it. >> >> Signed-off-by: Christophe JAILLET > > Saeed, I assume I will see this in one of your forth

Re: [PATCH v2] {net, IB}/mlx5: Use 'kvfree()' for memory allocated by 'kvzalloc()'

2018-05-15 Thread Saeed Mahameed
>> + kvfree(*cqb); > > For the infiniband part: > > Acked-by: Jason Gunthorpe > > Since this is mostly ethernet, can it go through netdev? thanks > for the mlx5 core parts: Acked-by: Saeed Mahameed Yes i will take v3 to mlx5-next branch. > Jason > -- > To unsubscribe from this list: send the line "unsubscribe linux-rdma" 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] {net, IB}/mlx5: Use 'kvfree()' for memory allocated by 'kvzalloc()'

2018-05-16 Thread Saeed Mahameed
On Wed, 2018-05-16 at 21:07 +0200, Christophe JAILLET wrote: > When 'kvzalloc()' is used to allocate memory, 'kvfree()' must be used > to > free it. > > Fixes: 1cbe6fc86ccfe ("IB/mlx5: Add support for CQE compressing") > Fixes: fed9ce22bf8ae ("net/mlx5: E-Switch, Add API to create vport rx > rules

Re: [RFC net-next 8/8] net/mlx5: Add subdev driver to bind to subdev devices

2019-03-01 Thread Saeed Mahameed
On Thu, 2019-02-28 at 23:37 -0600, Parav Pandit wrote: > Add a subdev driver to probe the subdev devices and create fake > netdevice for it. > > Signed-off-by: Parav Pandit > --- > drivers/net/ethernet/mellanox/mlx5/core/Makefile | 2 +- > drivers/net/ethernet/mellanox/mlx5/core/main.c |

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

2019-04-01 Thread Saeed Mahameed
On Mon, 2019-04-01 at 09:11 +1100, Stephen Rothwell wrote: > Hi all, > > Today's linux-next merge of the net-next tree got a conflict in: > > drivers/net/ethernet/mellanox/mlx5/core/en/port_buffer.c > > between commit: > > e28408e98bce ("net/mlx5e: Update xon formula") > > from the net tre

Re: [next] [s390 ] net: mlx5: tc_tun.h:24:29: error: field 'match_level' has incomplete type

2021-02-09 Thread Saeed Mahameed
On Wed, 2021-02-10 at 10:50 +0530, Naresh Kamboju wrote: > While building Linux next tag 20210209 s390 (defconfig) with gcc-9 > make modules failed. > ... > Reported-by: Naresh Kamboju > Thanks for the report a patch was already posted earlier today https://patchwork.kernel.org/project/netdevb

Re: [PATCH] net/mlx5: docs: correct section reference in table of contents

2021-02-09 Thread Saeed Mahameed
On Fri, 2021-02-05 at 10:55 +0100, Lukas Bulwahn wrote: > Commit 142d93d12dc1 ("net/mlx5: Add devlink subfunction port > documentation") refers to a section 'mlx5 port function' in the table > of > contents, but includes a section 'mlx5 function attributes' instead. > > Hence, make htmldocs warns:

Re: [PATCH][next] net/mlx5e: Fix spelling mistake "channles" -> "channels"

2021-02-04 Thread Saeed Mahameed
On Thu, 2021-02-04 at 09:32 +, Colin King wrote: > From: Colin Ian King > > There is a spelling mistake in a netdev_warn message. Fix it. > > Signed-off-by: Colin Ian King > --- Applied to net-next-mlx5 thanks!

Re: [PATCH][next] net/mlx5e: Fix spelling mistake "Unknouwn" -> "Unknown"

2021-02-04 Thread Saeed Mahameed
On Wed, 2021-02-03 at 14:57 -0800, Jesse Brandeburg wrote: > Colin King wrote: > > > From: Colin Ian King > > > > There is a spelling mistake in a netdev_warn message. Fix it. > > > > Signed-off-by: Colin Ian King > > Trivial patch, looks fine! > > Reviewed-by: Jesse Brandeburg Applied to

Re: [PATCH] net/mlx5e: fix bpf_prog refcnt leaks in mlx5e_alloc_rq

2020-07-29 Thread Saeed Mahameed
On Wed, 2020-07-29 at 20:33 +0800, Xin Xiong wrote: > The function invokes bpf_prog_inc(), which increases the refcount of > a > bpf_prog object "rq->xdp_prog" if the object isn't NULL. > > The refcount leak issues take place in two error handling paths. When > mlx5_wq_ll_create() or mlx5_wq_cyc_c

Re: [PATCH] net/mlx5e: fix bpf_prog refcnt leaks in mlx5e_alloc_rq

2020-07-29 Thread Saeed Mahameed
On Wed, 2020-07-29 at 13:28 -0700, David Miller wrote: > From: Saeed Mahameed > Date: Wed, 29 Jul 2020 19:02:15 + > > >> Fix this issue by jumping to the error handling path > >> err_rq_wq_destroy > >> when either function fails. > >> > >

Re: [PATCH v2] net/mlx5e: fix bpf_prog reference count leaks in mlx5e_alloc_rq

2020-07-30 Thread Saeed Mahameed
On Thu, 2020-07-30 at 18:29 +0800, Xin Xiong wrote: > The function invokes bpf_prog_inc(), which increases the reference > count of a bpf_prog object "rq->xdp_prog" if the object isn't NULL. > > The refcount leak issues take place in two error handling paths. When > either mlx5_wq_ll_create() or m

Re: [PATCH V4 linux-next 00/12] VDPA support for Mellanox ConnectX devices

2020-08-05 Thread Saeed Mahameed
git://git.kernel.org/pub/scm/linux/kernel/git/mellanox/linux.gi > > > > t mlx5-next > > > > > > I can only merge this tree if no one else will. Linus does not > > > like > > > getting same patches through two trees. > > > > > > Is thi

[PATCH 4.19] net/mlx5e: Don't support phys switch id if not in switchdev mode

2020-08-06 Thread Saeed Mahameed
x27;t exist upstream as the code got refactored and the netdev api is totally different. Fixes: cb67b832921c ("net/mlx5e: Introduce SRIOV VF representors") Signed-off-by: Roi Dayan Signed-off-by: Saeed Mahameed --- Hi Greg, Sorry for submitting a non upstream patch, but this bug is bothe

Re: [PATCH net-next 2/7] net: hns3: add support for tc mqprio offload

2020-12-10 Thread Saeed Mahameed
On Thu, 2020-12-10 at 20:27 +0800, tanhuazhong wrote: > > On 2020/12/10 12:50, Saeed Mahameed wrote: > > On Thu, 2020-12-10 at 11:42 +0800, Huazhong Tan wrote: > > > From: Jian Shen > > > > > > Currently, the HNS3 driver only supports offload for tc nu

Re: [PATCH net-next 3/7] net: hns3: add support for forwarding packet to queues of specified TC when flow director rule hit

2020-12-10 Thread Saeed Mahameed
On Thu, 2020-12-10 at 20:24 +0800, tanhuazhong wrote: > > On 2020/12/10 13:40, Saeed Mahameed wrote: > > On Thu, 2020-12-10 at 11:42 +0800, Huazhong Tan wrote: > > > From: Jian Shen > > > > > > For some new device, it supports forwarding packet to queues &

Re: [PATCv4 net-next] octeontx2-pf: Add RSS multi group support

2021-01-12 Thread Saeed Mahameed
in patchwork https://patchwork.kernel.org/project/netdevbpf/patch/20210104072039.27297-1-gak...@marvell.com/ but it is not actually applied, maybe resend.. you can add: Reviewed-by: Saeed Mahameed

Re: [PATCv4 net-next] octeontx2-pf: Add RSS multi group support

2021-01-12 Thread Saeed Mahameed
On Tue, 2021-01-12 at 15:16 -0800, Saeed Mahameed wrote: > On Mon, 2021-01-04 at 12:50 +0530, Geetha sowjanya wrote: > > Hardware supports 8 RSS groups per interface. Currently we are > > using > > only group '0'. This patch allows user to create new RSS > > gr

Re: [PATCH net-next 0/6] net: ipa: GSI interrupt updates

2021-01-14 Thread Saeed Mahameed
magic numbers and some redefined constant values according to some mysterious sources ;-) .. It would be nice to have some wording in the commit messages explaining reasoning and maybe "semi-official" sources behind the changes. LGMT code style wise :) Reviewed-by: Saeed Mahameed &g

Re: [PATCH][next] net/mlx5: Fix spelling mistakes in mlx5_core_info message

2021-03-24 Thread Saeed Mahameed
On Mon, 2021-03-15 at 12:30 +, Colin King wrote: > From: Colin Ian King > > There are two spelling mistakes in a mlx5_core_info message. Fix > them. > > Signed-off-by: Colin Ian King > --- >  drivers/net/ethernet/mellanox/mlx5/core/health.c | 2 +- >  1 file changed, 1 insertion(+), 1 deleti

Re: [PATCH] net/mlx5: fix kfree mismatch in indir_table.c

2021-04-06 Thread Saeed Mahameed
On Mon, 2021-04-05 at 07:56 +0300, Leon Romanovsky wrote: > On Mon, Apr 05, 2021 at 10:53:39AM +0800, Xiaoming Ni wrote: > > Memory allocated by kvzalloc() should be freed by kvfree(). > > > > Fixes: 34ca65352ddf2 ("net/mlx5: E-Switch, Indirect table > > infrastructur") > > Signed-off-by: Xiaoming

Re: [PATCHv3 net-next] octeontx2-pf: Add RSS multi group support

2020-12-09 Thread Saeed Mahameed
On Wed, 2020-12-09 at 22:39 +0530, Geetha sowjanya wrote: > Hardware supports 8 RSS groups per interface. Currently we are using > only group '0'. This patch allows user to create new RSS > groups/contexts > and use the same as destination for flow steering rules. > > usage: > To steer the traffic

Re: [PATCH net-next 2/7] net: hns3: add support for tc mqprio offload

2020-12-09 Thread Saeed Mahameed
On Thu, 2020-12-10 at 11:42 +0800, Huazhong Tan wrote: > From: Jian Shen > > Currently, the HNS3 driver only supports offload for tc number > and prio_tc. This patch adds support for other qopts, including > queues count and offset for each tc. > > When enable tc mqprio offload, it's not allowed

Re: [PATCH net-next 3/7] net: hns3: add support for forwarding packet to queues of specified TC when flow director rule hit

2020-12-09 Thread Saeed Mahameed
On Thu, 2020-12-10 at 11:42 +0800, Huazhong Tan wrote: > From: Jian Shen > > For some new device, it supports forwarding packet to queues > of specified TC when flow director rule hit. So extend the > command handle to support it. > ... > static int hclge_config_action(struct hclge_dev *hdev,

Re: [resend/standalone PATCH v4] Add auxiliary bus support

2020-12-04 Thread Saeed Mahameed
On Fri, 2020-12-04 at 08:25 -0800, Jakub Kicinski wrote: > On Fri, 4 Dec 2020 14:54:55 +0200 Leon Romanovsky wrote: > > Thanks, pulled to mlx5-next > > > > Jason, Jakob, > > > > Can you please pull that mlx5-next branch to your trees? > > git://git.kernel.org/pub/scm/linux/kernel/git/mellanox/lin

Re: [PATCH] net: mellanox: mlx5: fix error return code of mlx5e_stats_flower()

2021-03-11 Thread Saeed Mahameed
On Tue, 2021-03-09 at 11:44 +0200, Roi Dayan wrote: > > > On 2021-03-09 10:32 AM, Jia-Ju Bai wrote: > > > > > > On 2021/3/9 16:24, Roi Dayan wrote: > > > > > > > > > On 2021-03-09 10:20 AM, Roi Dayan wrote: > > > > > > > > > > > > On 2021-03-06 3:47 PM, Jia-Ju Bai wrote: > > > > > When mlx5

Re: [PATCH] net/mlx5e: include net/nexthop.h where needed

2021-03-11 Thread Saeed Mahameed
On Mon, 2021-03-08 at 20:23 +0200, Roi Dayan wrote: > > > On 2021-03-08 5:31 PM, Arnd Bergmann wrote: > > From: Arnd Bergmann > > > > drivers/net/ethernet/mellanox/mlx5/core/en/tc_tun_encap.c:1510:12: > > error: implicit declaration of function 'fib_info_nh' [-Werror,- > > Wimplicit-function-de

Re: [PATCH] net/mlx5e: allocate 'indirection_rqt' buffer dynamically

2021-03-11 Thread Saeed Mahameed
On Mon, 2021-03-08 at 18:28 +0200, Tariq Toukan wrote: > > > On 3/8/2021 5:32 PM, Arnd Bergmann wrote: > > From: Arnd Bergmann > > > > Increasing the size of the indirection_rqt array from 128 to 256 > > bytes > > pushed the stack usage of the mlx5e_hairpin_fill_rqt_rqns() > > function > > over

Re: [PATCH] net: mellanox: mlx5: fix error return code in mlx5_fpga_device_start()

2021-03-11 Thread Saeed Mahameed
On Sun, 2021-03-07 at 10:50 +0200, Leon Romanovsky wrote: > On Thu, Mar 04, 2021 at 06:18:14AM -0800, Jia-Ju Bai wrote: > > When mlx5_is_fpga_lookaside() returns a non-zero value, no error > > return code is assigned. > > To fix this bug, err is assigned with -EINVAL as error return code. > > > >

Re: [PATCH] net/mlx5: remove unneeded semicolon

2021-03-11 Thread Saeed Mahameed
On Wed, 2021-03-03 at 08:52 +, Parav Pandit wrote: > Hi Saeed, > > > From: Parav Pandit > > Sent: Monday, February 22, 2021 3:32 PM > > > > > > > From: Jiapeng Chong > > > Sent: Monday, February 22, 2021 3:27 PM > > > > > > Fix the following coccicheck warnings: > > > > > > ./drivers/net

Re: [PATCH] net/mlx5: use kvfree() for memory allocated with kvzalloc()

2021-03-11 Thread Saeed Mahameed
On Wed, 2021-03-03 at 09:54 +0200, Roi Dayan wrote: > > > On 2021-03-03 4:40 AM, angkery wrote: > > From: Junlin Yang > > > > It is allocated with kvzalloc(), the corresponding release function > > should not be kfree(), use kvfree() instead. > > > > Generated by: scripts/coccinelle/api/kfree_

Re: [PATCH] net/mlx5e: fix mlx5e_tc_tun_update_header_ipv6 dummy definition

2021-03-02 Thread Saeed Mahameed
On Mon, 2021-03-01 at 11:57 +0200, Vlad Buslov wrote: > On Thu 25 Feb 2021 at 14:54, Arnd Bergmann wrote: > > From: Arnd Bergmann > > > > The alternative implementation of this function in a header file > > is declared as a global symbol, and gets added to every .c file > > that includes it, whi

Re: [PATCH] net/mlx5e: free page before return

2021-01-22 Thread Saeed Mahameed
On Thu, 2021-01-21 at 19:49 +0200, Leon Romanovsky wrote: > On Wed, Jan 20, 2021 at 08:58:30PM -0800, Pan Bian wrote: > > Instead of directly return, goto the error handling label to free > > allocated page. > > > > Fixes: 5f29458b77d5 ("net/mlx5e: Support dump callback in TX > > reporter") > > Si

Re: [PATCH] [v2] net/mlx5e: Fix two double free cases

2021-01-05 Thread Saeed Mahameed
On Mon, 2020-12-28 at 16:48 +0800, Dinghao Liu wrote: > mlx5e_create_ttc_table_groups() frees ft->g on failure of > kvzalloc(), but such failure will be caught by its caller > in mlx5e_create_ttc_table() and ft->g will be freed again > in mlx5e_destroy_flow_table(). The same issue also occurs > in

Re: [PATCH] net/mlx5e: Fix memleak in mlx5e_create_l2_table_groups

2021-01-05 Thread Saeed Mahameed
On Sun, 2020-12-27 at 10:33 +0200, Leon Romanovsky wrote: > On Mon, Dec 21, 2020 at 07:27:31PM +0800, Dinghao Liu wrote: > > When mlx5_create_flow_group() fails, ft->g should be > > freed just like when kvzalloc() fails. The caller of > > mlx5e_create_l2_table_groups() does not catch this > > issue

Re: [PATCH] net/mlx5e: remove h from printk format specifier

2021-01-05 Thread Saeed Mahameed
On Wed, 2020-12-23 at 11:45 -0800, t...@redhat.com wrote: > From: Tom Rix > > This change fixes the checkpatch warning described in this commit > commit cbacb5ab0aa0 ("docs: printk-formats: Stop encouraging use of > unnecessary %h[xudi] and %hh[xudi]") > > Standard integer promotion is already d

Re: [PATCH] net/mlx5: fix spelling mistake in Kconfig "accelaration" -> "acceleration"

2021-01-05 Thread Saeed Mahameed
On Tue, 2020-12-15 at 14:49 +, Colin King wrote: > From: Colin Ian King > > There are some spelling mistakes in the Kconfig. Fix these. > > Signed-off-by: Colin Ian King > applied to net-next-mlx5, Thanks!

Re: [PATCH] [v2] net/mlx5e: Fix two double free cases

2021-01-05 Thread Saeed Mahameed
On Tue, 2021-01-05 at 13:02 -0800, Saeed Mahameed wrote: > On Mon, 2020-12-28 at 16:48 +0800, Dinghao Liu wrote: > > mlx5e_create_ttc_table_groups() frees ft->g on failure of > > kvzalloc(), but such failure will be caught by its caller > > in mlx5e_create_ttc_table() and f

Re: [patch 23/30] net/mlx5: Use effective interrupt affinity

2020-12-14 Thread Saeed Mahameed
pace, > but the architecture can or even must reduce the mask to the > effective set, > which means that checking the affinity mask itself does not really > tell > about the actual target CPUs. > > Signed-off-by: Thomas Gleixner > Cc: Saeed Mahameed > Cc: Leon Romanovsky >

Re: [patch 22/30] net/mlx5: Replace irq_to_desc() abuse

2020-12-14 Thread Saeed Mahameed
c->num_tc = params->num_tc; > c->xdp = !!params->xdp_prog; > c->stats= &priv->channel_stats[ix].ch; > - c->irq_desc = irq_to_desc(irq); > + c->aff_mask = irq_get_affinity_mask(irq); as long as the affinity mask pointer stays the same for the lifetime of the irq vector. Assuming that: Acked-by: Saeed Mahameed

Re: [PATCH net-next] net/mlx5: simplify the return expression of mlx5_esw_offloads_pair()

2020-12-14 Thread Saeed Mahameed
On Tue, 2020-12-08 at 16:25 -0800, David Miller wrote: > From: Zheng Yongjun > Date: Tue, 8 Dec 2020 21:56:25 +0800 > > > Simplify the return expression. > > > > Signed-off-by: Zheng Yongjun > > Applied. > Hey Dave, it's great to have you back! I still don't see this patch in net-next, i wi

Re: [PATCH -next v2] net/mlx5_core: remove unused including

2020-12-14 Thread Saeed Mahameed
On Wed, 2020-12-09 at 15:01 +0800, Zou Wei wrote: > Remove including that don't need it. > > Fixes: 17a7612b99e6 ("net/mlx5_core: Clean driver version and name") > Signed-off-by: Zou Wei > --- Applied to net-next-mlx5. Thanks!

Re: [PATCH 2/3] net/mlx5e: make VXLAN support conditional

2016-05-05 Thread Saeed Mahameed
On Wed, May 4, 2016 at 3:31 PM, Arnd Bergmann wrote: > VXLAN can be disabled at compile-time or it can be a loadable > module while mlx5 is built-in, which leads to a link error: > > drivers/net/built-in.o: In function `mlx5e_create_netdev': > ntb_netdev.c:(.text+0x106de4): undefined reference to

Re: [PATCH 2/3] net/mlx5e: make VXLAN support conditional

2016-05-08 Thread Saeed Mahameed
On Fri, May 6, 2016 at 10:35 PM, David Miller wrote: > From: Arnd Bergmann > Date: Thu, 05 May 2016 20:09:19 +0200 > >> For reference, I've tried it out on the MLX4 driver, and it does >> seem nicer that way, see below. > > Is it possible to wind down this conversation and have someone submit > w

Re: [PATCH 3/3] net/mlx5e: don't build RFS without ethernet

2016-05-04 Thread Saeed Mahameed
On Wed, May 4, 2016 at 3:32 PM, Arnd Bergmann wrote: > The RFS acceleration support in mlx5 is enabled whenever CONFIG_RFS_ACCEL > is in use. However, this fails if a user turns off CONFIG_MLX5_CORE_EN, > because the rfs code now calls into the ethernet portion of the > driver: > > ERROR: "mlx5e_d

Re: [PATCH 3/3] net/mlx5e: don't build RFS without ethernet

2016-05-04 Thread Saeed Mahameed
On Wed, May 4, 2016 at 5:23 PM, Arnd Bergmann wrote: > On Wednesday 04 May 2016 16:09:16 Saeed Mahameed wrote: >> On Wed, May 4, 2016 at 3:32 PM, Arnd Bergmann wrote: >> > The RFS acceleration support in mlx5 is enabled whenever CONFIG_RFS_ACCEL >> > is in use. Ho

Re: [PATCH] net/mlx5e: avoid stack overflow in mlx5e_open_channels

2016-04-26 Thread Saeed Mahameed
On Tue, Apr 26, 2016 at 6:49 PM, Arnd Bergmann wrote: > On Tuesday 26 April 2016 17:41:45 Saeed Mahameed wrote: >> On Tue, Apr 26, 2016 at 4:53 PM, Arnd Bergmann wrote: >> > >> > Sure, do you want to just edit this when you forward the patch, or >> > do you

Re: [PATCH v2] net/mlx5e: avoid stack overflow in mlx5e_open_channels

2016-04-26 Thread Saeed Mahameed
; a fast path, so the easiest workaround is to use another kzalloc > for allocating the channel parameters. > > Signed-off-by: Arnd Bergmann > Fixes: d3c9bc2743dc ("net/mlx5e: Added ICO SQs") Acked-by: Saeed Mahameed

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

2016-04-27 Thread Saeed Mahameed
On Wed, Apr 27, 2016 at 5:01 AM, Stephen Rothwell wrote: > Hi all, > > Today's linux-next merge of the net-next tree got a conflict in: > > drivers/net/ethernet/mellanox/mlx5/core/en_main.c > > between commit: > > d8edd2469ace ("et/mlx5e: Fix minimum MTU") > > from the net tree and commit: > >

Re: [PATCH] net/mlx5e: make VXLAN support conditional

2016-02-28 Thread Saeed Mahameed
On Fri, Feb 26, 2016 at 11:13 PM, Arnd Bergmann wrote: > VXLAN can be disabled at compile-time or it can be a loadable > module while mlx5 is built-in, which leads to a link error: > > drivers/net/built-in.o: In function `mlx5e_create_netdev': > ntb_netdev.c:(.text+0x106de4): undefined reference t

Re: [PATCH] net/mlx5e: avoid stack overflow in mlx5e_open_channels

2016-04-26 Thread Saeed Mahameed
On Mon, Apr 25, 2016 at 4:15 PM, Arnd Bergmann wrote: > struct mlx5e_channel_param is a large structure that is allocated > on the stack of mlx5e_open_channels, and with a recent change > it has grown beyond the warning size for the maximum stack > that a single function should use: > > mellanox/m

Re: [PATCH] net/mlx5e: avoid stack overflow in mlx5e_open_channels

2016-04-26 Thread Saeed Mahameed
On Tue, Apr 26, 2016 at 4:53 PM, Arnd Bergmann wrote: > > Sure, do you want to just edit this when you forward the patch, or > do you need me to do it? > Well, I won't say no if you want to do it :) Saeed

Re: [PATCH] net/mlx5: reduce stack usage in FW tracer

2019-09-09 Thread Saeed Mahameed
On Fri, 2019-09-06 at 17:11 +0200, Arnd Bergmann wrote: > It's generally not ok to put a 512 byte buffer on the stack, as > kernel > stack is a scarce resource: > > drivers/net/ethernet/mellanox/mlx5/core/diag/fw_tracer.c:660:13: > error: stack frame size of 1032 bytes in function > 'mlx5_fw_trace

Re: [PATCH] net/mlx5: reduce stack usage in FW tracer

2019-09-09 Thread Saeed Mahameed
On Mon, 2019-09-09 at 22:18 +0200, Arnd Bergmann wrote: > On Mon, Sep 9, 2019 at 9:39 PM Saeed Mahameed > wrote: > > On Fri, 2019-09-06 at 17:11 +0200, Arnd Bergmann wrote: > > > --- a/drivers/net/ethernet/mellanox/mlx5/core/diag/fw_tracer.c > > > +++ b/drivers/n

Re: [PATCH v3 03/11] net/mlx5e: Remove unlikely() from WARN*() condition

2019-08-29 Thread Saeed Mahameed
On Thu, 2019-08-29 at 19:50 +0300, Denis Efremov wrote: > "unlikely(WARN_ON_ONCE(x))" is excessive. WARN_ON_ONCE() already uses > unlikely() internally. > > Signed-off-by: Denis Efremov > Cc: Boris Pismenny > Cc: Saeed Mahameed > Cc: Leon Romanovsky > Cc

Re: linux-next: Tree for Aug 29 (mlx5)

2019-08-29 Thread Saeed Mahameed
On Thu, 2019-08-29 at 12:55 -0700, Randy Dunlap wrote: > On 8/29/19 12:54 PM, Randy Dunlap wrote: > > On 8/29/19 4:08 AM, Stephen Rothwell wrote: > > > Hi all, > > > > > > Changes since 20190828: > > > > > > > on x86_64: > > when CONFIG_PCI_HYPERV=m > > and CONFIG_PCI_HYPERV_INTERFACE=m > Hai

Re: linux-next: Tree for Aug 29 (mlx5)

2019-08-29 Thread Saeed Mahameed
On Thu, 2019-08-29 at 21:48 +, Haiyang Zhang wrote: > > -Original Message- > > From: Saeed Mahameed > > Sent: Thursday, August 29, 2019 2:32 PM > > To: s...@canb.auug.org.au; Eran Ben Elisha ; > > linux- > > n...@vger.kernel.org; rdun...@infradead.o

Re: [PATCH -next] net: mlx5: Kconfig: Fix MLX5_CORE_EN dependencies

2019-08-30 Thread Saeed Mahameed
On Tue, 2019-08-27 at 11:12 +0800, Mao Wenan wrote: > When MLX5_CORE_EN=y and PCI_HYPERV_INTERFACE is not set, below errors The issue happens when PCI_HYPERV_INTERFACE is a module and mlx5_core is built-in. > are found: > drivers/net/ethernet/mellanox/mlx5/core/en_main.o: In function > `mlx5e_nic

Re: [PATCH] net/mlx5: Use PTR_ERR_OR_ZERO rather than its implementation

2019-09-03 Thread Saeed Mahameed
])) > - return PTR_ERR(flow->rule[0]); > - > - return 0; > + return PTR_ERR_OR_ZERO(flow->rule[0]); > } > > static void mlx5e_tc_del_nic_flow(struct mlx5e_priv *priv, Acked-by: Saeed Mahameed

Re: [PATCH] net: Adding parameter detection in __ethtool_get_link_ksettings.

2019-08-27 Thread Saeed Mahameed
On Mon, 2019-08-26 at 17:47 +0800, Dongxu Liu wrote: > > On 8/26/19 9:23 AM, Dongxu Liu wrote: > > The __ethtool_get_link_ksettings symbol will be exported, > > and external users may use an illegal address. > > We should check the parameters before using them, > > otherwise the system will crash.

Re: [PATCH -next] net: mlx5: Kconfig: Fix MLX5_CORE_EN dependencies

2019-08-27 Thread Saeed Mahameed
On Tue, 2019-08-27 at 11:12 +0800, Mao Wenan wrote: > When MLX5_CORE_EN=y and PCI_HYPERV_INTERFACE is not set, below errors > are found: > drivers/net/ethernet/mellanox/mlx5/core/en_main.o: In function > `mlx5e_nic_enable': > en_main.c:(.text+0xb649): undefined reference to > `mlx5e_hv_vhca_stats_c

Re: [PATCH -next] net: mlx5: Kconfig: Fix MLX5_CORE_EN dependencies

2019-08-27 Thread Saeed Mahameed
On Tue, 2019-08-27 at 17:51 +0800, maowenan wrote: > > On 2019/8/27 15:24, walter harms wrote: > > > > Am 27.08.2019 05:12, schrieb Mao Wenan: > > > When MLX5_CORE_EN=y and PCI_HYPERV_INTERFACE is not set, below > > > errors are found: > > > drivers/net/ethernet/mellanox/mlx5/core/en_main.o: In f

Re: [PATCH] net/mlx5: fix a -Wstringop-truncation warning

2019-08-27 Thread Saeed Mahameed
On Tue, 2019-08-27 at 16:12 -0400, Qian Cai wrote: > On Mon, 2019-08-26 at 21:11 +0000, Saeed Mahameed wrote: > > On Fri, 2019-08-23 at 15:56 -0400, Qian Cai wrote: > > > In file included from ./arch/powerpc/include/asm/paca.h:15, > > > from ./arch/power

Re: [PATCH] net/mlx5: fix a -Wstringop-truncation warning

2019-08-27 Thread Saeed Mahameed
On Fri, 2019-08-23 at 15:56 -0400, Qian Cai wrote: > In file included from ./arch/powerpc/include/asm/paca.h:15, > from ./arch/powerpc/include/asm/current.h:13, > from ./include/linux/thread_info.h:21, > from ./include/asm-generic/preempt.h:5, >

Re: [PATCH net-next,v5, 0/6] Add software backchannel and mlx5e HV VHCA stats

2019-08-22 Thread Saeed Mahameed
On Thu, 2019-08-22 at 15:39 -0700, David Miller wrote: > From: Haiyang Zhang > Date: Thu, 22 Aug 2019 22:37:13 + > > > The v5 is pretty much the same as v4, except Eran had a fix to > patch #3 in response to > > Leon Romanovsky . > > Well you now have to send me a patch relative to v4 in ord

Re: [PATCH] net/mlx5: fix a -Wstringop-truncation warning

2019-08-26 Thread Saeed Mahameed
On Fri, 2019-08-23 at 15:18 -0700, David Miller wrote: > Saeed, I assume I'll get this from you. Yes, i will handle it.

Re: [PATCH] net/mlx5: fix a -Wstringop-truncation warning

2019-08-26 Thread Saeed Mahameed
On Fri, 2019-08-23 at 15:56 -0400, Qian Cai wrote: > In file included from ./arch/powerpc/include/asm/paca.h:15, > from ./arch/powerpc/include/asm/current.h:13, > from ./include/linux/thread_info.h:21, > from ./include/asm-generic/preempt.h:5, >

Re: [PATCH] net/mlx5: Use PTR_ERR_OR_ZERO rather than its implementation

2019-09-04 Thread Saeed Mahameed
On Tue, 2019-09-03 at 20:08 +, Saeed Mahameed wrote: > On Tue, 2019-09-03 at 14:56 +0800, zhong jiang wrote: > > PTR_ERR_OR_ZERO contains if(IS_ERR(...)) + PTR_ERR. It is better > > to use it directly. hence just replace it. > > > > Signed-off-by: zhong jian

Re: [PATCH][next] net/mlx5: fix spelling mistake "offlaods" -> "offloads"

2019-09-04 Thread Saeed Mahameed
On Wed, 2019-09-04 at 20:38 +0100, Colin King wrote: > From: Colin Ian King > > There is a spelling mistake in a NL_SET_ERR_MSG_MOD error message. > Fix it. > > Signed-off-by: Colin Ian King > Applied to net-next-mlx5. Thanks, Saeed.

Re: [PATCH][next] net/mlx5: fix missing assignment of variable err

2019-09-04 Thread Saeed Mahameed
On Wed, 2019-09-04 at 20:29 +0100, Colin King wrote: > From: Colin Ian King > > The error return from a call to mlx5_flow_namespace_set_peer is not > being assigned to variable err and hence the error check following > the call is currently not working. Fix this by assigning ret as > intended. >

Re: [PATCH net-next 2/2] mlx5: fix type mismatch

2019-09-10 Thread Saeed Mahameed
On Mon, 2019-09-09 at 21:50 +0200, Arnd Bergmann wrote: > In mlx5, pointers to 'phys_addr_t' and 'u64' are mixed since the > addition > of the pool memory allocator, leading to incorrect behavior on 32-bit > architectures and this compiler warning: > > drivers/net/ethernet/mellanox/mlx5/core/steer

Re: [PATCH] net/mlx5: Declare 'rt' as corresponding enum type

2019-09-10 Thread Saeed Mahameed
On Tue, 2019-09-10 at 18:27 +0900, Austin Kim wrote: > When building kernel with clang, we can observe below warning > message: > > drivers/net/ethernet/mellanox/mlx5/core/steering/dr_action.c:1080:9: > warning: implicit conversion from enumeration type 'enum > mlx5_reformat_ctx_type' > to differe

Re: [PATCH] net/mlx5: reduce stack usage in FW tracer

2019-09-10 Thread Saeed Mahameed
On Tue, 2019-09-10 at 15:38 +, David Laight wrote: > From: Arnd Bergmann > > Sent: 10 September 2019 09:15 > ... > > > I am not sure how this would work, since the format parameters > > > can > > > changes depending on the FW string and the specific traces. > > > > Ah, so the format string com

Re: [PATCH] net/mlx5: Remove unneeded variable in mlx5_unload_one

2019-09-13 Thread Saeed Mahameed
mlx5_drain_health_wq(dev); > @@ -1257,7 +1255,7 @@ static int mlx5_unload_one(struct mlx5_core_dev > *dev, bool cleanup) > mlx5_function_teardown(dev, cleanup); > out: > mutex_unlock(&dev->intf_state_mutex); > - return err; > + return 0; >

Re: [PATCH] net/mlx5: Remove unneeded variable in mlx5_unload_one

2019-09-23 Thread Saeed Mahameed
On Sun, 2019-09-15 at 19:53 +0100, David Miller wrote: > From: zhong jiang > Date: Fri, 13 Sep 2019 00:59:02 +0800 > > > mlx5_unload_one do not need local variable to store different > value, > > Hence just remove it. > > > > Signed-off-by: zhong jiang > > Saeed, just take this directly via on

Re: [PATCH] net/mlx5: Fix a memory leak bug

2019-08-20 Thread Saeed Mahameed
On Tue, 2019-08-13 at 03:21 -0500, Wenwen Wang wrote: > In mlx5_cmd_invoke(), 'ent' is allocated through kzalloc() in > alloc_cmd(). > After the work is queued, wait_func() is invoked to wait the > completion of > the work. If wait_func() returns -ETIMEDOUT, the following execution > will > be term

Re: [PATCH v2] net/mlx5: Replace kfree with kvfree

2019-07-18 Thread Saeed Mahameed
dump") > Signed-off-by: Chuhong Yuan Acked-by: Saeed Mahameed Dave, i guess this can go to net. Thanks, Saeed. > --- > Changes in v2: > - Add corresponding Fixes tag > > drivers/net/ethernet/mellanox/mlx5/core/health.c | 2 +- > 1 file changed, 1 insertion(+), 1 d

Re: [PATCH 1/1] net/mlx5: Call pci_disable_sriov() on remove

2020-04-30 Thread Saeed Mahameed
On Thu, 2020-04-30 at 14:03 +0200, Niklas Schnelle wrote: > as described in Documentation/PCI/pci-iov-howto.rst a driver with SR- > IOV > support should call pci_disable_sriov() in the remove handler. Hi Niklas, looking at the documentation, it doesn't say "should" it just gives the code as examp

Re: [PATCH 0/1] net/mlx5: Call pci_disable_sriov() on remove

2020-04-30 Thread Saeed Mahameed
On Thu, 2020-04-30 at 14:03 +0200, Niklas Schnelle wrote: > Hello, > > I'm currently working on improvements in PF-VF handling on s390. One > thing that > may be a bit special for us is that the s390 hotplug code supports > shutting > down a single PF of a multi-function device such as a ConnectX-

Re: [PATCH] net/mlx5: reduce stack usage in qp_read_field

2020-04-28 Thread Saeed Mahameed
re. Unfortunately there is no good error handling > in case the allocation fails. > I don't really mind this, since this is only for debugfs and 0 is not a valid value anyway. Acked-by: Saeed Mahameed this should go to mlx5-next, i will let Leon decide and pick this up. > Fixes: 57

  1   2   3   >