Re: [PATCH net-next 1/4] PCI/VPD: Remove Chelsio T3 quirk

2021-02-05 Thread Raju Rangoju
On Tuesday, February 02/02/21, 2021 at 21:35:55 +0100, Heiner Kallweit wrote: > cxgb3 driver doesn't use the PCI core code for VPD access, it has its own > implementation. Therefore we don't need a quirk for it in the core code. > > Signed-off-by: Heiner Kallweit > --- > drivers/pci/vpd.c | 13 +

Re: [PATCH net-next] cxgb4: Add new T6 PCI device id 0x6092

2021-02-04 Thread Raju Rangoju
On Wednesday, February 02/03/21, 2021 at 18:23:37 -0800, Jakub Kicinski wrote: > On Tue, 2 Feb 2021 23:55:11 +0530 Raju Rangoju wrote: > > Signed-off-by: Raju Rangoju > > Does this device require any code which only exists in net-next? > No code dependency exists in net-next

[PATCH net-next] cxgb4: Add new T6 PCI device id 0x6092

2021-02-02 Thread Raju Rangoju
Signed-off-by: Raju Rangoju --- drivers/net/ethernet/chelsio/cxgb4/t4_pci_id_tbl.h | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/ethernet/chelsio/cxgb4/t4_pci_id_tbl.h b/drivers/net/ethernet/chelsio/cxgb4/t4_pci_id_tbl.h index 0c5373462ced..0b1b5f9c67d4 100644 --- a/drivers

Re: [PATCH net-next] cxgb4: remove redundant NULL check

2021-01-26 Thread Raju Rangoju
On Tuesday, January 01/26/21, 2021 at 10:50:13 +0800, Yang Li wrote: > Fix below warnings reported by coccicheck: > ./drivers/net/ethernet/chelsio/cxgb4/clip_tbl.c:323:3-9: WARNING: > NULL check before some freeing functions is not needed. > ./drivers/net/ethernet/chelsio/cxgb4/cudbg_lib.c:3554:2-8

Re: [PATCH 4/4] cxgb4: remove redundant NULL check

2021-01-26 Thread Raju Rangoju
On Monday, January 01/25/21, 2021 at 17:47:25 +0800, Yang Li wrote: > Fix below warnings reported by coccicheck: > ./drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_u32.c:533:2-8: WARNING: > NULL check before some freeing functions is not needed. > > Reported-by: Abaci Robot > Signed-off-by: Yang Li

Re: [PATCH 3/4] cxgb4: remove redundant NULL check

2021-01-26 Thread Raju Rangoju
On Monday, January 01/25/21, 2021 at 17:47:24 +0800, Yang Li wrote: > Fix below warnings reported by coccicheck: > ./drivers/net/ethernet/chelsio/cxgb4/cxgb4_cudbg.c:161:2-7: WARNING: > NULL check before some freeing functions is not needed. > > Reported-by: Abaci Robot > Signed-off-by: Yang Li

how to determine if buffers are in user-space/kernel-space

2021-01-18 Thread Raju Rangoju
Hi, We have an out-of-tree kernel module which was using segment_eq(get_fs(), KERNEL_DS) to determine whether buffers are in Kernel space vs User space. However, with the get_fs() and its friends removed[1], we are out of ideas on how to determine if buffers are in user space or kernel space. Can

[PATCH net-next] cxgb4: enable interrupt based Tx completions for T5

2021-01-15 Thread Raju Rangoju
is generated immediately whenever hardware catches up with driver (i.e. CIDX == PIDX is reached), which is often the case for slow traffic. Signed-off-by: Raju Rangoju --- drivers/net/ethernet/chelsio/cxgb4/sge.c | 38 +++- 1 file changed, 33 insertions(+), 5

Re: [PATCH net] cxgb3: fix error return code in t3_sge_alloc_qset()

2020-12-02 Thread Raju Rangoju
; Reported-by: Hulk Robot > Signed-off-by: Zhang Changzhong > --- Acked-by: Raju Rangoju > drivers/net/ethernet/chelsio/cxgb3/sge.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/net/ethernet/chelsio/cxgb3/sge.c > b/drivers/net/ethernet/chelsio/cxgb3/sge.c >

[PATCH net] cxgb4: fix the panic caused by non smac rewrite

2020-11-18 Thread Raju Rangoju
SMT entry is allocated only when loopback Source MAC rewriting is requested. Accessing SMT entry for non smac rewrite cases results in kernel panic. Fix the panic caused by non smac rewrite Fixes: 937d84205884 ("cxgb4: set up filter action after rewrites") Signed-off-by: Ra

[PATCH net] MAINTAINERS: update cxgb4 and cxgb3 maintainer

2020-11-16 Thread Raju Rangoju
Update cxgb4 and cxgb3 driver maintainer Signed-off-by: Raju Rangoju --- MAINTAINERS | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/MAINTAINERS b/MAINTAINERS index 4a34b25ecc1f..a72d35490cbf 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -4710,7 +4710,7 @@ T

[PATCH net] cxgb4: set up filter action after rewrites

2020-10-23 Thread Raju Rangoju
s or only after everything else is set up for rewrites. Fixes: 12b276fbf6e0 ("cxgb4: add support to create hash filters") Signed-off-by: Raju Rangoju --- drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c | 56 +++ drivers/net/ethernet/chelsio/cxgb4/t4_tcb.h |

[PATCH net] cxgb4: fix memory leak during module unload

2020-09-16 Thread Raju Rangoju
Fix the memory leak in mps during module unload path by freeing mps reference entries if the list adpter->mps_ref is not already empty Fixes: 28b3870578ef ("cxgb4: Re-work the logic for mps refcounting") Signed-off-by: Raju Rangoju --- drivers/net/ethernet/chelsio/cxgb4/cxgb4_mp

[PATCH net-next] cxgb4: add error handlers to LE intr_handler

2020-08-24 Thread Raju Rangoju
cxgb4 does not look for HASHTBLMEMCRCERR and CMDTIDERR bits in LE_DB_INT_CAUSE register, but these are enabled in LE_DB_INT_ENABLE. So, add error handlers to LE interrupt handler to emit a warning or alert message for hash table mem crc and cmd tid errors Signed-off-by: Raju Rangoju --- drivers

[PATCH net] cxgb4: request the TX CIDX updates to status page

2019-10-23 Thread Raju Rangoju
improvement in BW is noticed at lower IO sizes. Fixes: d429005fdf2c ("cxgb4/cxgb4vf: Add support for SGE doorbell queue timer") Signed-off-by: Raju Rangoju --- drivers/net/ethernet/chelsio/cxgb4/sge.c | 8 ++-- 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/drivers/ne

[PATCH v3 net-next 4/4] cxgb4: Add MPS refcounting for alloc/free mac filters

2019-06-24 Thread Raju Rangoju
This patch adds reference counting support for alloc/free mac filters Signed-off-by: Raju Rangoju --- drivers/net/ethernet/chelsio/cxgb4/cxgb4.h | 6 +++ drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c | 12 +++-- drivers/net/ethernet/chelsio/cxgb4/cxgb4_mps.c | 72

[PATCH v3 net-next 0/4] cxgb4: Reference count MPS TCAM entries within a PF

2019-06-24 Thread Raju Rangoju
: Use refcount_t type instead of atomic_t for mps reference count Raju Rangoju (4): cxgb4: Re-work the logic for mps refcounting cxgb4: Add MPS TCAM refcounting for raw mac filters cxgb4: Add MPS TCAM refcounting for cxgb4 change mac cxgb4: Add MPS refcounting for alloc/free mac filters drive

[PATCH v3 net-next 3/4] cxgb4: Add MPS TCAM refcounting for cxgb4 change mac

2019-06-24 Thread Raju Rangoju
This patch adds TCAM reference counting support for cxgb4 change mac path Signed-off-by: Raju Rangoju --- drivers/net/ethernet/chelsio/cxgb4/cxgb4.h | 7 +++ drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c | 14 +++--- drivers/net/ethernet/chelsio/cxgb4/cxgb4_mps.c | 15

[PATCH v3 net-next 2/4] cxgb4: Add MPS TCAM refcounting for raw mac filters

2019-06-24 Thread Raju Rangoju
This patch adds TCAM reference counting support for raw mac filters. Signed-off-by: Raju Rangoju --- drivers/net/ethernet/chelsio/cxgb4/cxgb4.h | 16 + drivers/net/ethernet/chelsio/cxgb4/cxgb4_mps.c | 46 ++ 2 files changed, 62 insertions(+) diff --git a

[PATCH v3 net-next 1/4] cxgb4: Re-work the logic for mps refcounting

2019-06-24 Thread Raju Rangoju
Remove existing mps refcounting code which was added only for encap filters and add necessary data structures/functions to support mps reference counting for all the mac filters. Also add wrapper functions for allocating and freeing encap mac filters. Signed-off-by: Raju Rangoju --- drivers/net

Re: [PATCH v2 net-next 0/4] cxgb4: Reference count MPS TCAM entries within a PF

2019-06-24 Thread Raju Rangoju
On Monday, June 06/24/19, 2019 at 07:53:23 -0700, David Miller wrote: > From: David Miller > Date: Mon, 24 Jun 2019 07:51:32 -0700 (PDT) > > > From: Raju Rangoju > > Date: Mon, 24 Jun 2019 14:20:33 +0530 > > > >> Firmware reference counts the MPS TCAM entrie

[PATCH v2 net-next 4/4] cxgb4: Add MPS refcounting for alloc/free mac filters

2019-06-24 Thread Raju Rangoju
This patch adds reference counting support for alloc/free mac filters Signed-off-by: Raju Rangoju --- drivers/net/ethernet/chelsio/cxgb4/cxgb4.h | 6 +++ drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c | 12 +++-- drivers/net/ethernet/chelsio/cxgb4/cxgb4_mps.c | 72

[PATCH v2 net-next 3/4] cxgb4: Add MPS TCAM refcounting for cxgb4 change mac

2019-06-24 Thread Raju Rangoju
This patch adds TCAM reference counting support for cxgb4 change mac path Signed-off-by: Raju Rangoju --- drivers/net/ethernet/chelsio/cxgb4/cxgb4.h | 7 +++ drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c | 14 +++--- drivers/net/ethernet/chelsio/cxgb4/cxgb4_mps.c | 15

[PATCH v2 net-next 0/4] cxgb4: Reference count MPS TCAM entries within a PF

2019-06-24 Thread Raju Rangoju
Firmware reference counts the MPS TCAM entries by PF and VF, but it does not do it for usage within a PF or VF. This patch adds the support to track MPS TCAM entries within a PF. v1->v2: Use refcount_t type instead of atomic_t for mps reference count Raju Rangoju (4): cxgb4: Re-work the lo

[PATCH v2 net-next 1/4] cxgb4: Re-work the logic for mps refcounting

2019-06-24 Thread Raju Rangoju
Remove existing mps refcounting code which was added only for encap filters and add necessary data structures/functions to support mps reference counting for all the mac filters. Also add wrapper functions for allocating and freeing encap mac filters. Signed-off-by: Raju Rangoju --- drivers/net

[PATCH v2 net-next 2/4] cxgb4: Add MPS TCAM refcounting for raw mac filters

2019-06-24 Thread Raju Rangoju
This patch adds TCAM reference counting support for raw mac filters. Signed-off-by: Raju Rangoju --- drivers/net/ethernet/chelsio/cxgb4/cxgb4.h | 16 + drivers/net/ethernet/chelsio/cxgb4/cxgb4_mps.c | 46 ++ 2 files changed, 62 insertions(+) diff --git a

Re: [PATCH net-next 1/4] cxgb4: Re-work the logic for mps refcounting

2019-06-24 Thread Raju Rangoju
On Sunday, June 06/23/19, 2019 at 11:34:23 -0700, David Miller wrote: > From: Raju Rangoju > Date: Fri, 21 Jun 2019 20:06:33 +0530 > > > +struct mps_entries_ref { > > + struct list_head list; > > + u8 addr[ETH_ALEN]; > > + u8 mask[ETH_ALEN]; > &g

[PATCH net-next 2/4] cxgb4: Add MPS TCAM refcounting for raw mac filters

2019-06-21 Thread Raju Rangoju
This patch adds TCAM reference counting support for raw mac filters. Signed-off-by: Raju Rangoju --- drivers/net/ethernet/chelsio/cxgb4/cxgb4.h | 16 + drivers/net/ethernet/chelsio/cxgb4/cxgb4_mps.c | 46 ++ 2 files changed, 62 insertions(+) diff --git a

[PATCH net-next 1/4] cxgb4: Re-work the logic for mps refcounting

2019-06-21 Thread Raju Rangoju
Remove existing mps refcounting code which was added only for encap filters and add necessary data structures/functions to support mps reference counting for all the mac filters. Also add wrapper functions for allocating and freeing encap mac filters. Signed-off-by: Raju Rangoju --- drivers/net

[PATCH net-next 3/4] cxgb4: Add MPS TCAM refcounting for cxgb4 change mac

2019-06-21 Thread Raju Rangoju
This patch adds TCAM reference counting support for cxgb4 change mac path Signed-off-by: Raju Rangoju --- drivers/net/ethernet/chelsio/cxgb4/cxgb4.h | 7 +++ drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c | 14 +++--- drivers/net/ethernet/chelsio/cxgb4/cxgb4_mps.c | 15

[PATCH net-next 4/4] cxgb4: Add MPS refcounting for alloc/free mac filters

2019-06-21 Thread Raju Rangoju
This patch adds reference counting support for alloc/free mac filters Signed-off-by: Raju Rangoju --- drivers/net/ethernet/chelsio/cxgb4/cxgb4.h | 6 +++ drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c | 12 +++-- drivers/net/ethernet/chelsio/cxgb4/cxgb4_mps.c | 72

[PATCH net-next 0/4] cxgb4: Reference count MPS TCAM entries within a PF

2019-06-21 Thread Raju Rangoju
Firmware reference counts the MPS TCAM entries by PF and VF, but it does not do it for usage within a PF or VF. This patch adds the support to track MPS TCAM entries within a PF. Raju Rangoju (4): cxgb4: Re-work the logic for mps refcounting cxgb4: Add MPS TCAM refcounting for raw mac filters

[PATCH net] cxgb4: offload VLAN flows regardless of VLAN ethtype

2019-05-23 Thread Raju Rangoju
ff-by: Raju Rangoju --- drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_flower.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_flower.c b/drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_flower.c index 6e2d80008a79..cfaf8f618d1f 1

[PATCH net-next] cxgb4: use firmware API for validating filter spec

2019-05-23 Thread Raju Rangoju
from indirect register. Signed-off-by: Raju Rangoju --- drivers/net/ethernet/chelsio/cxgb4/cxgb4.h| 1 + drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c | 3 +- drivers/net/ethernet/chelsio/cxgb4/t4_hw.c| 47 --- drivers/net/ethernet/chelsio/cxgb4/t4fw_api.h

Re: [rdma-rc PATCH 2/2] iw_cxgb4: cq/qp mask depends on bar2 pages in a host page

2019-02-14 Thread Raju Rangoju
On Thursday, February 02/14/19, 2019 at 15:41:34 +, Jason Gunthorpe wrote: > On Thu, Feb 14, 2019 at 05:40:54PM +0530, Raju Rangoju wrote: > > Adjust the cq/qp mask based on no.of bar2 pages in a host page. > > > > For user-mode rdma, the granularity of the BAR2 memory

[rdma-rc PATCH 2/2] iw_cxgb4: cq/qp mask depends on bar2 pages in a host page

2019-02-14 Thread Raju Rangoju
contexts are in a bar2 page. So the rdev->qpmask and rdev->cqmask in iw_cxgb4 need to now be adjusted based on how many sge bar2 pages are in a host page. Fixes: 2391b0030e ("cxgb4: Remove SGE_HOST_PAGE_SIZE dependency on page size") Signed-off-by: Raju Rangoju --- drivers/inf

[rdma-rc PATCH 0/2] iw_cxgb4: Adjust the cq/qp mask

2019-02-14 Thread Raju Rangoju
cleanly on both net-next and rdma-for-rc and doesn't cause any merge conflicts. Raju Rangoju (2): cxgb4: export sge_host_page_size to ulds iw_cxgb4: cq/qp mask depends on bar2 pages in a host page drivers/infiniband/hw/cxgb4/device.c | 15 +-- drivers/net/eth

[rdma-rc PATCH 1/2] cxgb4: export sge_host_page_size to ulds

2019-02-14 Thread Raju Rangoju
Export the sge_host_page_size field to ULDs via cxgb4_lld_info, so that iw_cxgb4 can make use of this in calculating the correct qp/cq mask. Fixes: 2391b0030e ("cxgb4: Remove SGE_HOST_PAGE_SIZE dependency on page size") Signed-off-by: Raju Rangoju --- drivers/net/ethernet/che

[PATCH 3/3] iw_cxgb4: fix srqidx leak during connection abort

2019-02-06 Thread Raju Rangoju
uish the srqidx properly. Signed-off-by: Raju Rangoju --- drivers/infiniband/hw/cxgb4/cm.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/infiniband/hw/cxgb4/cm.c b/drivers/infiniband/hw/cxgb4/cm.c index 7aca5d73c19e..f45044d8de4d 100644 --- a/drivers/infiniban

[PATCH 2/3] iw_cxgb4: complete the cached SRQ buffers

2019-02-06 Thread Raju Rangoju
TF_RX_PDU_OUT (bit 49 of t_flags) in order to determine if there's a rx PDU feedback event pending. Signed-off-by: Raju Rangoju --- drivers/infiniband/hw/cxgb4/cm.c | 161 +++-- drivers/infiniband/hw/cxgb4/iw_cxgb4.h | 3 + drivers/infiniband/hw/cxgb4/t4.h | 1

[PATCH 0/3] iw_cxgb4: add support for completing cached SRQ buffers

2019-02-06 Thread Raju Rangoju
rdma repo. I have made sure this series applies cleanly on both net-next and rdma-for-next and doesn't cause any merge conflicts. Raju Rangoju (3): cxgb4: add tcb flags and tcb rpl struct iw_cxgb4: complete the cached SRQ buffers iw_cxgb4: fix srqidx leak during connection abort dr

[PATCH 1/3] cxgb4: add tcb flags and tcb rpl struct

2019-02-06 Thread Raju Rangoju
This patch adds the tcb flags and structures needed for querying tcb information. Signed-off-by: Raju Rangoju --- drivers/net/ethernet/chelsio/cxgb4/t4_msg.h | 8 drivers/net/ethernet/chelsio/cxgb4/t4_tcb.h | 12 2 files changed, 20 insertions(+) diff --git a/drivers/net

[PATCH v3 net-next 1/5] cxgb4: Adds CPL support for Shared Receive Queues

2018-03-20 Thread Raju Rangoju
- Add srq table query cpl support for srq - Add cpl_abort_req_rss6 and cpl_abort_rpl_rss6 structs. - Add accessors, macros to get the SRQ IDX value. Signed-off-by: Raju Rangoju Reviewed-by: Steve Wise Signed-off-by: Ganesh Goudar --- drivers/net/ethernet/chelsio/cxgb4/t4_msg.h | 71

[PATCH v3 net-next 3/5] cxgb4: Add support to query HW SRQ parameters

2018-03-20 Thread Raju Rangoju
This patch adds support to query FW for the HW SRQ table start/end, and advertise that for ULDs. Signed-off-by: Raju Rangoju Reviewed-by: Steve Wise Signed-off-by: Ganesh Goudar --- drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c | 20 drivers/net/ethernet/chelsio/cxgb4

[PATCH v3 net-next 2/5] cxgb4: Add support to initialise/read SRQ entries

2018-03-20 Thread Raju Rangoju
- This patch adds support to initialise srq table and read srq entries Signed-off-by: Raju Rangoju Reviewed-by: Steve Wise Signed-off-by: Ganesh Goudar --- drivers/net/ethernet/chelsio/cxgb4/Makefile | 2 +- drivers/net/ethernet/chelsio/cxgb4/cxgb4.h | 2 + drivers/net/ethernet/chelsio

[PATCH v3 net-next 5/5] cxgb4: Support firmware rdma write completion work request.

2018-03-20 Thread Raju Rangoju
If FW supports RDMA WRITE_COMPLETION functionality, then advertise that to the ULDs. This will be used by iw_cxgb4 to allow WRITE_COMPLETION work requests. Signed-off-by: Potnuri Bharat Teja Signed-off-by: Raju Rangoju Signed-off-by: Ganesh Goudar Signed-off-by: Steve Wise --- drivers/net

[PATCH v3 net-next 0/5] Add support for RDMA enhancements in cxgb4

2018-03-20 Thread Raju Rangoju
Stefano's suggestion v2: fixed the patching issues and also fixed the following based on review comments of Stefano Brivio - using kvzalloc instead of vzalloc - using #define instead of enum Raju Rangoju (5): cxgb4: Adds CPL support for Shared Receive Queues cxgb4: Add suppo

[PATCH v3 net-next 4/5] cxgb4: Support firmware rdma write with immediate work request.

2018-03-20 Thread Raju Rangoju
If FW supports RDMA WRITE_WITH_IMMEDATE functionality, then advertise that to the ULDs. This will be used by iw_cxgb4 to allow WRITE_WITH_IMMEDIATE work requests. Signed-off-by: Potnuri Bharat Teja Signed-off-by: Raju Rangoju Signed-off-by: Ganesh Goudar Signed-off-by: Steve Wise --- drivers

Re: [PATCH v2 net-next 2/5] cxgb4: Add support to initialise/read SRQ entries

2018-03-20 Thread Raju Rangoju
On Tuesday, March 03/20/18, 2018 at 07:59:22 +0100, Stefano Brivio wrote: > On Tue, 20 Mar 2018 07:58:39 +0100 > Stefano Brivio wrote: > > > On Tue, 20 Mar 2018 11:43:34 +0530 > > Raju Rangoju wrote: > > > > > +struct srq_data *t4_init_srq(int srq_size)

[PATCH v2 net-next 5/5] cxgb4: Support firmware rdma write completion work request.

2018-03-19 Thread Raju Rangoju
If FW supports RDMA WRITE_COMPLETION functionality, then advertise that to the ULDs. This will be used by iw_cxgb4 to allow WRITE_COMPLETION work requests. Signed-off-by: Potnuri Bharat Teja Signed-off-by: Raju Rangoju Signed-off-by: Ganesh Goudar Signed-off-by: Steve Wise --- drivers/net

[PATCH v2 net-next 4/5] cxgb4: Support firmware rdma write with immediate work request.

2018-03-19 Thread Raju Rangoju
If FW supports RDMA WRITE_WITH_IMMEDATE functionality, then advertise that to the ULDs. This will be used by iw_cxgb4 to allow WRITE_WITH_IMMEDIATE work requests. Signed-off-by: Potnuri Bharat Teja Signed-off-by: Raju Rangoju Signed-off-by: Ganesh Goudar Signed-off-by: Steve Wise --- drivers

[PATCH v2 net-next 1/5] cxgb4: Adds CPL support for Shared Receive Queues

2018-03-19 Thread Raju Rangoju
- Add srq table query cpl support for srq - Add cpl_abort_req_rss6 and cpl_abort_rpl_rss6 structs. - Add accessors, macros to get the SRQ IDX value. Signed-off-by: Raju Rangoju Reviewed-by: Steve Wise Signed-off-by: Ganesh Goudar --- drivers/net/ethernet/chelsio/cxgb4/t4_msg.h | 71

[PATCH v2 net-next 2/5] cxgb4: Add support to initialise/read SRQ entries

2018-03-19 Thread Raju Rangoju
- This patch adds support to initialise srq table and read srq entries Signed-off-by: Raju Rangoju Reviewed-by: Steve Wise Signed-off-by: Ganesh Goudar --- drivers/net/ethernet/chelsio/cxgb4/Makefile | 2 +- drivers/net/ethernet/chelsio/cxgb4/cxgb4.h | 2 + drivers/net/ethernet/chelsio

[PATCH v2 net-next 3/5] cxgb4: Add support to query HW SRQ parameters

2018-03-19 Thread Raju Rangoju
This patch adds support to query FW for the HW SRQ table start/end, and advertise that for ULDs. Signed-off-by: Raju Rangoju Reviewed-by: Steve Wise Signed-off-by: Ganesh Goudar --- drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c | 20 drivers/net/ethernet/chelsio/cxgb4

[PATCH v2 net-next 0/5] Add support for RDMA enhancements in cxgb4

2018-03-19 Thread Raju Rangoju
also fixed the following based on review comments of Stefano Brivio - using kvzalloc instead of vzalloc - using #define instead of enum Raju Rangoju (5): cxgb4: Adds CPL support for Shared Receive Queues cxgb4: Add support to initialise/read SRQ entries cxgb4: Add support to query HW SRQ

Re: [PATCH net-next 0/5] Add support for RDMA enhancements in cxgb4

2018-03-19 Thread Raju Rangoju
On Saturday, March 03/17/18, 2018 at 20:19:15 -0400, David Miller wrote: > From: Raju Rangoju > Date: Sat, 17 Mar 2018 12:52:24 +0530 > > > Allocates the HW-resources and provide the necessary routines for the > > upper layer driver (rdma/iw_cxgb4) to enable the RDMA SRQ sup

[PATCH net-next 5/5] cxgb4: Support firmware rdma write completion work request.

2018-03-17 Thread Raju Rangoju
From: Potnuri Bharat Teja If FW supports RDMA WRITE_COMPLETION functionality, then advertise that to the ULDs. This will be used by iw_cxgb4 to allow WRITE_COMPLETION work requests. Signed-off-by: Potnuri Bharat Teja Signed-off-by: Raju Rangoju Signed-off-by: Ganesh Goudar Signed-off-by

[PATCH net-next 4/5] cxgb4: Support firmware rdma write with immediate work request.

2018-03-17 Thread Raju Rangoju
From: Potnuri Bharat Teja If FW supports RDMA WRITE_WITH_IMMEDATE functionality, then advertise that to the ULDs. This will be used by iw_cxgb4 to allow WRITE_WITH_IMMEDIATE work requests. Signed-off-by: Potnuri Bharat Teja Signed-off-by: Raju Rangoju Signed-off-by: Ganesh Goudar Signed-off

[PATCH net-next 3/5] cxgb4: Add support to query HW SRQ parameters

2018-03-17 Thread Raju Rangoju
This patch adds support to query FW for the HW SRQ table start/end, and advertise that for ULDs. Signed-off-by: Raju Rangoju Reviewed-by: Steve Wise Signed-off-by: Ganesh Goudar --- drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c | 20 drivers/net/ethernet/chelsio/cxgb4

[PATCH net-next 2/5] cxgb4: Add support to initialise/read SRQ entries

2018-03-17 Thread Raju Rangoju
- This patch adds support to initialise srq table and read srq entries Signed-off-by: Raju Rangoju Reviewed-by: Steve Wise Signed-off-by: Ganesh Goudar --- drivers/net/ethernet/chelsio/cxgb4/Makefile | 2 +- drivers/net/ethernet/chelsio/cxgb4/cxgb4.h | 1 + drivers/net/ethernet/chelsio

[PATCH net-next 1/5] cxgb4: Adds CPL support for Shared Receive Queues

2018-03-17 Thread Raju Rangoju
- Add srq table query cpl support for srq - Add cpl_abort_req_rss6 and cpl_abort_rpl_rss6 structs. - Add accessors, macros to get the SRQ IDX value. Signed-off-by: Raju Rangoju Reviewed-by: Steve Wise Signed-off-by: Ganesh Goudar --- drivers/net/ethernet/chelsio/cxgb4/t4_msg.h | 71

[PATCH net-next 0/5] Add support for RDMA enhancements in cxgb4

2018-03-17 Thread Raju Rangoju
: Support firmware rdma write with immediate work request. cxgb4: Support firmware rdma write completion work request. Raju Rangoju (3): cxgb4: Adds CPL support for Shared Receive Queues cxgb4: Add support to initialise/read SRQ entries cxgb4: Add support to query HW SRQ parameters drivers/net