[PATCH net] libcxgb: fix incorrect ppmax calculation

2019-04-03 Thread Varun Prakash
BITS_TO_LONGS() uses DIV_ROUND_UP() because of this ppmax value can be greater than available per cpu page pods. This patch removes BITS_TO_LONGS() to fix this issue. Signed-off-by: Varun Prakash --- drivers/net/ethernet/chelsio/libcxgb/libcxgb_ppm.c | 9 - 1 file changed, 8 insertions

Re: [PATCH] cxgbit: use T6 specific macro to set force bit

2017-01-24 Thread Varun Prakash
On Wed, Jan 25, 2017 at 02:41:40AM +0530, Joe Perches wrote: > On Tue, 2017-01-24 at 17:07 +0530, Varun Prakash wrote: > > For T6 adapters use T6 specific macro to set > > force bit. > [] > > diff --git a/drivers/net/ethernet/chelsio/cxgb4/t4_msg.h > > b/driv

Re: [PATCH] cxgbit: use T6 specific macro to set force bit

2017-01-24 Thread Varun Prakash
On Wed, Jan 25, 2017 at 01:56:16AM +0530, David Miller wrote: > From: Varun Prakash > Date: Tue, 24 Jan 2017 17:07:02 +0530 > > > For T6 adapters use T6 specific macro to set > > force bit. > > > > Signed-off-by: Varun Prakash > > What tree is this for

[PATCH] cxgbit: use T6 specific macro to set force bit

2017-01-24 Thread Varun Prakash
For T6 adapters use T6 specific macro to set force bit. Signed-off-by: Varun Prakash --- drivers/net/ethernet/chelsio/cxgb4/t4_msg.h | 4 drivers/target/iscsi/cxgbit/cxgbit_target.c | 4 +++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/drivers/net/ethernet/chelsio/cxgb4

[PATCH net] libcxgb: fix error check for ip6_route_output()

2017-01-03 Thread Varun Prakash
ip6_route_output() never returns NULL so check dst->error instead of !dst. Signed-off-by: Varun Prakash --- drivers/net/ethernet/chelsio/libcxgb/libcxgb_cm.c | 12 +--- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/drivers/net/ethernet/chelsio/libcxgb/libcxgb_cm.c

[PATCH scsi 3/3] scsi: cxgb4i,libcxgbi,cxgb4: add T6 iSCSI completion feature

2016-12-01 Thread Varun Prakash
T6 adapters reduce number of completions to host by generating single completion for all the directly placed(DDP) iSCSI pdus in a sequence. This patch adds new structure for completion hw cmd (struct cpl_rx_iscsi_cmp) and implements T6 completion feature. Signed-off-by: Varun Prakash

[PATCH scsi 2/3] scsi: cxgb4i,libcxgbi: add active open cmd for T6 adapters

2016-12-01 Thread Varun Prakash
Add T6 active open cmd to open active connections on T6 adapters. Signed-off-by: Varun Prakash --- drivers/scsi/cxgbi/cxgb4i/cxgb4i.c | 86 -- drivers/scsi/cxgbi/libcxgbi.c | 6 +-- 2 files changed, 77 insertions(+), 15 deletions(-) diff --git a

[PATCH scsi 0/3] cxgb4i: add support for Chelsio T6 adapters

2016-12-01 Thread Varun Prakash
This patch series adds support for Chelsio T6 adapters in iSCSI initiator offload driver(cxgb4i). Varun Prakash (3): scsi: cxgb4i: use cxgb4_tp_smt_idx() to get smt_idx scsi: cxgb4i,libcxgbi: add active open cmd for T6 adapters scsi: cxgb4i,libcxgbi,cxgb4: add T6 iSCSI completion feature

[PATCH scsi 1/3] scsi: cxgb4i: use cxgb4_tp_smt_idx() to get smt_idx

2016-12-01 Thread Varun Prakash
cxgb4_tp_smt_idx() is defined in cxgb4 driver, it returns smt_idx for T4,T5,T6 adapters. Signed-off-by: Varun Prakash --- drivers/scsi/cxgbi/cxgb4i/cxgb4i.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/scsi/cxgbi/cxgb4i/cxgb4i.c b/drivers/scsi/cxgbi/cxgb4i

Re: [net-next PATCH 00/11] iw_cxgb4,cxgbit: remove duplicate code

2016-09-15 Thread Varun Prakash
Hi Or, On Wed, Sep 14, 2016 at 02:02:43PM +0530, Or Gerlitz wrote: > On Tue, Sep 13, 2016 at 6:53 PM, Varun Prakash wrote: > > This patch series removes duplicate code from > > iw_cxgb4 and cxgbit by adding common function definitions in libcxgb. > > Is that bunch of misc f

[net-next PATCH 00/11] iw_cxgb4,cxgbit: remove duplicate code

2016-09-13 Thread Varun Prakash
This patch series removes duplicate code from iw_cxgb4 and cxgbit by adding common function definitions in libcxgb. Please review. Thanks Varun Varun Prakash (11): libcxgb,iw_cxgb4,cxgbit: add cxgb_get_4tuple() libcxgb,iw_cxgb4,cxgbit: add cxgb_find_route() libcxgb,iw_cxgb4,cxgbit: add

[net-next PATCH 07/11] libcxgb,iw_cxgb4,cxgbit: add cxgb_mk_tid_release()

2016-09-13 Thread Varun Prakash
Add cxgb_mk_tid_release() to remove duplicate code to form CPL_TID_RELEASE hardware command. Signed-off-by: Varun Prakash --- drivers/infiniband/hw/cxgb4/cm.c | 10 -- drivers/net/ethernet/chelsio/libcxgb/libcxgb_cm.h | 13 + drivers/target/iscsi/cxgbit

[net-next PATCH 04/11] libcxgb,iw_cxgb4,cxgbit: add cxgb_is_neg_adv()

2016-09-13 Thread Varun Prakash
Add cxgb_is_neg_adv() in libcxgb_cm.h to remove it's duplicate definitions from cxgb4/cm.c and cxgbit/cxgbit_cm.c. Signed-off-by: Varun Prakash --- drivers/infiniband/hw/cxgb4/cm.c | 15 +++ drivers/net/ethernet/chelsio/libcxgb/libcxgb_cm.h | 9 + dr

[net-next PATCH 10/11] libcxgb,iw_cxgb4,cxgbit: add cxgb_mk_abort_rpl()

2016-09-13 Thread Varun Prakash
Add cxgb_mk_abort_rpl() to remove duplicate code to form CPL_ABORT_RPL hardware command. Signed-off-by: Varun Prakash --- drivers/infiniband/hw/cxgb4/cm.c | 10 -- drivers/net/ethernet/chelsio/libcxgb/libcxgb_cm.h | 14 ++ drivers/target/iscsi/cxgbit

[net-next PATCH 08/11] libcxgb,iw_cxgb4,cxgbit: add cxgb_mk_close_con_req()

2016-09-13 Thread Varun Prakash
Add cxgb_mk_close_con_req() to remove duplicate code to form CPL_CLOSE_CON_REQ hardware command. Signed-off-by: Varun Prakash --- drivers/infiniband/hw/cxgb4/cm.c | 13 - drivers/net/ethernet/chelsio/libcxgb/libcxgb_cm.h | 16 drivers/target/iscsi

[net-next PATCH 11/11] libcxgb,iw_cxgb4,cxgbit: add cxgb_mk_rx_data_ack()

2016-09-13 Thread Varun Prakash
Add cxgb_mk_rx_data_ack() to remove duplicate code to form CPL_RX_DATA_ACK hardware command. Signed-off-by: Varun Prakash --- drivers/infiniband/hw/cxgb4/cm.c | 19 --- drivers/net/ethernet/chelsio/libcxgb/libcxgb_cm.h | 15 +++ drivers/target/iscsi

[net-next PATCH 09/11] libcxgb,iw_cxgb4,cxgbit: add cxgb_mk_abort_req()

2016-09-13 Thread Varun Prakash
Add cxgb_mk_abort_req() to remove duplicate code to form CPL_ABORT_REQ hardware command. Signed-off-by: Varun Prakash --- drivers/infiniband/hw/cxgb4/cm.c | 13 - drivers/net/ethernet/chelsio/libcxgb/libcxgb_cm.h | 16 drivers/target/iscsi/cxgbit

[net-next PATCH 03/11] libcxgb,iw_cxgb4,cxgbit: add cxgb_find_route6()

2016-09-13 Thread Varun Prakash
Add cxgb_find_route6() in libcxgb_cm.c to remove it's duplicate definitions from cxgb4/cm.c and cxgbit/cxgbit_cm.c. Signed-off-by: Varun Prakash --- drivers/infiniband/hw/cxgb4/cm.c | 70 ++- drivers/net/ethernet/chelsio/libcxgb/libcxgb_cm.c

[net-next PATCH 05/11] libcxgb,iw_cxgb4,cxgbit: add cxgb_best_mtu()

2016-09-13 Thread Varun Prakash
Add cxgb_best_mtu() in libcxgb_cm.h to remove it's duplicate definitions from cxgb4/cm.c and cxgbit/cxgbit_cm.c Signed-off-by: Varun Prakash --- drivers/infiniband/hw/cxgb4/cm.c | 32 +++ drivers/net/ethernet/chelsio/libcxgb/libcxgb_cm.h

[net-next PATCH 01/11] libcxgb,iw_cxgb4,cxgbit: add cxgb_get_4tuple()

2016-09-13 Thread Varun Prakash
Add cxgb_get_4tuple() in libcxgb_cm.c to remove it's duplicate definitions from cxgb4/cm.c and cxgbit/cxgbit_cm.c. Signed-off-by: Varun Prakash --- drivers/infiniband/hw/cxgb4/Kconfig | 1 + drivers/infiniband/hw/cxgb4/Makefile | 1 + drivers/infiniband/hw/

[net-next PATCH 02/11] libcxgb,iw_cxgb4,cxgbit: add cxgb_find_route()

2016-09-13 Thread Varun Prakash
Add cxgb_find_route() in libcxgb_cm.c to remove it's duplicate definitions from cxgb4/cm.c and cxgbit/cxgbit_cm.c. Signed-off-by: Varun Prakash --- drivers/infiniband/hw/cxgb4/cm.c | 53 +++ drivers/net/ethernet/chelsio/libcxgb/libcxgb_cm.c

[net-next PATCH 06/11] libcxgb,iw_cxgb4,cxgbit: add cxgb_compute_wscale()

2016-09-13 Thread Varun Prakash
Add cxgb_compute_wscale() in libcxgb_cm.h to remove it's duplicate definitions from cxgb4/cm.c and cxgbit/cxgbit_cm.c. Signed-off-by: Varun Prakash --- drivers/infiniband/hw/cxgb4/cm.c | 12 ++-- drivers/infiniband/hw/cxgb4/iw_cxgb4.h| 9 - dr

[net-next v3 6/6] cxgb3i,cxgb4i: fix symbol not declared sparse warning

2016-07-21 Thread Varun Prakash
Fix following sparse warnings warning: symbol 'cxgb3i_ofld_init' was not declared. Should it be static? warning: symbol 'cxgb4i_cplhandlers' was not declared. Should it be static? warning: symbol 'cxgb4i_ofld_init' was not declared. Should it be static? Signed-off-

[net-next v3 3/6] cxgb4i,libcxgbi: add iSCSI DDP support

2016-07-21 Thread Varun Prakash
Add iSCSI DDP support in cxgb4i driver using common iSCSI DDP Page Pod Manager. Signed-off-by: Varun Prakash --- drivers/scsi/cxgbi/Makefile| 2 + drivers/scsi/cxgbi/cxgb3i/Kbuild | 1 + drivers/scsi/cxgbi/cxgb3i/Kconfig | 1 + drivers/scsi/cxgbi/cxgb4i/Kbuild | 1

[net-next v3 5/6] libcxgb: export ppm release and tagmask set api

2016-07-21 Thread Varun Prakash
Export cxgbi_ppm_release() to release ppod manager and cxgbi_tagmask_set() to set tag mask, they are used by cxgb3i, cxgb4i and cxgbit. Signed-off-by: Varun Prakash Reviewed-by: Steve Wise --- drivers/net/ethernet/chelsio/libcxgb/libcxgb_ppm.c | 2 ++ drivers/scsi/cxgbi/cxgb3i/cxgb3i.c

[net-next v3 4/6] cxgb3i: add iSCSI DDP support

2016-07-21 Thread Varun Prakash
Add iSCSI DDP support in cxgb3i driver using common iSCSI DDP Page Pod Manager. Signed-off-by: Varun Prakash Reviewed-by: Steve Wise --- drivers/scsi/cxgbi/cxgb3i/cxgb3i.c | 119 - 1 file changed, 118 insertions(+), 1 deletion(-) diff --git a/drivers/scsi

[net-next v3 2/6] cxgb3i,cxgb4i,libcxgbi: remove iSCSI DDP support

2016-07-21 Thread Varun Prakash
Remove old ddp code from cxgb3i,cxgb4i,libcxgbi. Next two commits adds DDP support using common iSCSI DDP Page Pod Manager. Signed-off-by: Varun Prakash --- drivers/scsi/cxgbi/cxgb3i/cxgb3i.c | 128 drivers/scsi/cxgbi/cxgb4i/cxgb4i.c | 142 - drivers/scsi/cxgbi/libcxgbi.c

[net-next v3 0/6] common library for Chelsio drivers.

2016-07-21 Thread Varun Prakash
CONFIG_CHELSIO_LIB to an invisible option - changed libcxgb.ko module license from GPL to Dual BSD/GPL Varun Prakash (6): libcxgb: add library module for Chelsio drivers cxgb3i,cxgb4i,libcxgbi: remove iSCSI DDP support cxgb4i,libcxgbi: add iSCSI DDP support cxgb3i: add iSCSI DDP support

[net-next v3 1/6] libcxgb: add library module for Chelsio drivers

2016-07-21 Thread Varun Prakash
have common connection management and hardware specific code that can be shared by multiple Chelsio drivers. Signed-off-by: Varun Prakash Reviewed-by: Steve Wise --- drivers/net/ethernet/chelsio/Kconfig | 16 +++- drivers/net/ethernet/chelsio/Makefile | 1

[net-next v2 6/6] cxgb3i,cxgb4i: fix symbol not declared sparse warning

2016-07-16 Thread Varun Prakash
Fix following sparse warnings warning: symbol 'cxgb3i_ofld_init' was not declared. Should it be static? warning: symbol 'cxgb4i_cplhandlers' was not declared. Should it be static? warning: symbol 'cxgb4i_ofld_init' was not declared. Should it be static? Signed-off-

[net-next v2 4/6] cxgb3i: add iSCSI DDP support

2016-07-16 Thread Varun Prakash
Add iSCSI DDP support in cxgb3i driver using common iSCSI DDP Page Pod Manager. Signed-off-by: Varun Prakash Reviewed-by: Steve Wise --- drivers/scsi/cxgbi/cxgb3i/cxgb3i.c | 119 - 1 file changed, 118 insertions(+), 1 deletion(-) diff --git a/drivers/scsi

[net-next v2 5/6] libcxgb: export ppm release and tagmask set api

2016-07-16 Thread Varun Prakash
Export cxgbi_ppm_release() to release ppod manager and cxgbi_tagmask_set() to set tag mask, they are used by cxgb3i, cxgb4i and cxgbit. Signed-off-by: Varun Prakash Reviewed-by: Steve Wise --- drivers/net/ethernet/chelsio/libcxgb/libcxgb_ppm.c | 2 ++ drivers/scsi/cxgbi/cxgb3i/cxgb3i.c

[net-next v2 3/6] cxgb4i,libcxgbi: add iSCSI DDP support

2016-07-16 Thread Varun Prakash
Add iSCSI DDP support in cxgb4i driver using common iSCSI DDP Page Pod Manager. Signed-off-by: Varun Prakash --- drivers/scsi/cxgbi/Makefile| 2 + drivers/scsi/cxgbi/cxgb3i/Kbuild | 1 + drivers/scsi/cxgbi/cxgb3i/Kconfig | 1 + drivers/scsi/cxgbi/cxgb4i/Kbuild | 1

[net-next v2 0/6] common library for Chelsio drivers

2016-07-16 Thread Varun Prakash
libcxgb.ko module license from GPL to Dual BSD/GPL Varun Prakash (6): libcxgb: add library module for Chelsio drivers cxgb3i,cxgb4i,libcxgbi: remove iSCSI DDP support cxgb4i,libcxgbi: add iSCSI DDP support cxgb3i: add iSCSI DDP support libcxgb: export ppm release and tagmask set api cxgb3i

[net-next v2 1/6] libcxgb: add library module for Chelsio drivers

2016-07-16 Thread Varun Prakash
have common connection management and hardware specific code that can be shared by multiple Chelsio drivers. Signed-off-by: Varun Prakash Reviewed-by: Steve Wise --- drivers/net/ethernet/chelsio/Kconfig | 16 ++- drivers/net/ethernet/chelsio/Makefile | 1 + drivers

[net-next v2 2/6] cxgb3i,cxgb4i,libcxgbi: remove iSCSI DDP support

2016-07-16 Thread Varun Prakash
Remove old ddp code from cxgb3i,cxgb4i,libcxgbi. Next two commits adds DDP support using common iSCSI DDP Page Pod Manager. Signed-off-by: Varun Prakash --- drivers/scsi/cxgbi/cxgb3i/cxgb3i.c | 128 drivers/scsi/cxgbi/cxgb4i/cxgb4i.c | 142 - drivers/scsi/cxgbi/libcxgbi.c

Re: [net-next 3/6] cxgb4i,libcxgbi: add iSCSI DDP support

2016-07-16 Thread Varun Prakash
On Fri, Jul 15, 2016 at 07:43:10PM +0530, Steve Wise wrote: > > Add iSCSI DDP support in cxgb4i driver > > using common iSCSI DDP Page Pod Manager. > > > > Signed-off-by: Varun Prakash > > --- > > drivers/scsi/cxgbi/Makefile| 2 + > >

Re: [net-next 2/6] cxgb3i,cxgb4i,libcxgbi: remove iSCSI DDP support

2016-07-16 Thread Varun Prakash
On Fri, Jul 15, 2016 at 07:35:32PM +0530, Steve Wise wrote: > > Remove old ddp code from cxgb3i,cxgb4i,libcxgbi. > > > > Next two commits adds DDP support using > > common iSCSI DDP Page Pod Manager. > > > > Signed-off-by: Varun Prakash > > --- >

[net-next 5/6] libcxgb: export ppm release and tagmask set api

2016-07-08 Thread Varun Prakash
Export cxgbi_ppm_release() to release ppod manager and cxgbi_tagmask_set() to set tag mask, they are used by cxgb3i, cxgb4i and cxgbit. Signed-off-by: Varun Prakash --- drivers/net/ethernet/chelsio/libcxgb/libcxgb_ppm.c | 2 ++ drivers/scsi/cxgbi/cxgb3i/cxgb3i.c | 1 + drivers

[net-next 6/6] cxgb3i,cxgb4i: fix symbol not declared sparse warning

2016-07-08 Thread Varun Prakash
Fix following sparse warnings warning: symbol 'cxgb3i_ofld_init' was not declared. Should it be static? warning: symbol 'cxgb4i_cplhandlers' was not declared. Should it be static? warning: symbol 'cxgb4i_ofld_init' was not declared. Should it be static? Signed-off-b

[net-next 3/6] cxgb4i,libcxgbi: add iSCSI DDP support

2016-07-08 Thread Varun Prakash
Add iSCSI DDP support in cxgb4i driver using common iSCSI DDP Page Pod Manager. Signed-off-by: Varun Prakash --- drivers/scsi/cxgbi/Makefile| 2 + drivers/scsi/cxgbi/cxgb3i/Kbuild | 1 + drivers/scsi/cxgbi/cxgb3i/Kconfig | 1 + drivers/scsi/cxgbi/cxgb4i/Kbuild | 1

[net-next 2/6] cxgb3i,cxgb4i,libcxgbi: remove iSCSI DDP support

2016-07-08 Thread Varun Prakash
Remove old ddp code from cxgb3i,cxgb4i,libcxgbi. Next two commits adds DDP support using common iSCSI DDP Page Pod Manager. Signed-off-by: Varun Prakash --- drivers/scsi/cxgbi/cxgb3i/cxgb3i.c | 128 drivers/scsi/cxgbi/cxgb4i/cxgb4i.c | 142 - drivers/scsi/cxgbi/libcxgbi.c

[net-next 1/6] libcxgb: add library module for Chelsio drivers

2016-07-08 Thread Varun Prakash
have common connection management and hardware specific code that can be shared by multiple Chelsio drivers. Signed-off-by: Varun Prakash --- drivers/net/ethernet/chelsio/Kconfig | 18 ++-- drivers/net/ethernet/chelsio/Makefile | 1 + drivers/net/ethernet

[net-next 4/6] cxgb3i: add iSCSI DDP support

2016-07-08 Thread Varun Prakash
Add iSCSI DDP support in cxgb3i driver using common iSCSI DDP Page Pod Manager. Signed-off-by: Varun Prakash --- drivers/scsi/cxgbi/cxgb3i/cxgb3i.c | 119 - 1 file changed, 118 insertions(+), 1 deletion(-) diff --git a/drivers/scsi/cxgbi/cxgb3i/cxgb3i.c b

[net-next 0/6] common library for Chelsio drivers

2016-07-08 Thread Varun Prakash
, cxgb4i, cxgbit. In future this module will have common connection management and hardware specific code that can be shared by multiple Chelsio drivers(cxgb4, csiostor, iw_cxgb4, cxgb4i, cxgbit). Please review. Thanks Varun Varun Prakash (6): libcxgb: add library module for Chelsio drivers

[target-pending 09/12] cxgb4: move VLAN_NONE macro definition

2016-03-13 Thread Varun Prakash
move VLAN_NONE macro definition from l2t.c to l2t.h Signed-off-by: Varun Prakash --- drivers/net/ethernet/chelsio/cxgb4/l2t.c | 2 -- drivers/net/ethernet/chelsio/cxgb4/l2t.h | 2 ++ 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/ethernet/chelsio/cxgb4/l2t.c b

[target-pending 10/12] cxgb4, iw_cxgb4: move delayed ack macro definitions

2016-03-13 Thread Varun Prakash
move delayed ack macro definitions to common header file t4_msg.h. Signed-off-by: Varun Prakash --- drivers/infiniband/hw/cxgb4/t4fw_ri_api.h | 9 - drivers/net/ethernet/chelsio/cxgb4/t4_msg.h | 9 + 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/drivers

[target-pending 08/12] cxgb4: update struct cxgb4_lld_info definition

2016-03-13 Thread Varun Prakash
add members for iSCSI DDP. Signed-off-by: Varun Prakash --- drivers/net/ethernet/chelsio/cxgb4/cxgb4.h | 2 ++ drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c | 4 drivers/net/ethernet/chelsio/cxgb4/cxgb4_uld.h | 4 3 files changed, 10 insertions(+) diff --git a/drivers/net

[target-pending 07/12] cxgb4: add definitions for iSCSI target ULD

2016-03-13 Thread Varun Prakash
add structure, macro and constant definitions for iSCSI Tx and Rx. Signed-off-by: Varun Prakash --- drivers/net/ethernet/chelsio/cxgb4/t4_msg.h | 107 ++ drivers/net/ethernet/chelsio/cxgb4/t4fw_api.h | 7 ++ 2 files changed, 114 insertions(+) diff --git a/drivers

[target-pending 11/12] cxgb4: add iSCSI DDP page pod manager

2016-03-13 Thread Varun Prakash
add files for common page pod manager, both iSCSI initiator and target ULDs will use common ppod manager for DDP. Signed-off-by: Varun Prakash --- drivers/net/ethernet/chelsio/cxgb4/cxgb4_ppm.c | 464 + drivers/net/ethernet/chelsio/cxgb4/cxgb4_ppm.h | 310

[target-pending 04/12] cxgb4, iw_cxgb4: move definitions to common header file

2016-03-13 Thread Varun Prakash
move struct tcp_options, struct cpl_pass_accept_req, enum defining congestion control algorithms and associated macros to common header file t4_msg.h Signed-off-by: Varun Prakash --- drivers/infiniband/hw/cxgb4/t4fw_ri_api.h | 81 - drivers/net/ethernet/chelsio

[target-pending 06/12] cxgb4, cxgb4i: move struct cpl_rx_data_ddp definition

2016-03-13 Thread Varun Prakash
move struct cpl_rx_data_ddp definition to common header file t4_msg.h. Signed-off-by: Varun Prakash --- drivers/net/ethernet/chelsio/cxgb4/t4_msg.h | 15 +++ drivers/scsi/cxgbi/cxgb4i/cxgb4i.h | 12 2 files changed, 15 insertions(+), 12 deletions(-) diff --git

[target-pending 02/12] cxgb4: allocate resources for CXGB4_ULD_ISCSIT

2016-03-13 Thread Varun Prakash
allocate rxqs for non T4 adapters, dump rxqs sge qinfo through debugfs. Signed-off-by: Varun Prakash --- drivers/net/ethernet/chelsio/cxgb4/cxgb4.h | 11 - drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c | 34 +- drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c| 53

[target-pending 12/12] cxgb4: update Kconfig and Makefile

2016-03-13 Thread Varun Prakash
update Kconfig and Makefile for enabling iSCSI DDP page pod manager. Signed-off-by: Varun Prakash --- drivers/net/ethernet/chelsio/Kconfig| 11 +++ drivers/net/ethernet/chelsio/cxgb4/Makefile | 1 + 2 files changed, 12 insertions(+) diff --git a/drivers/net/ethernet/chelsio

[target-pending 05/12] cxgb4, iw_cxgb4, cxgb4i: remove duplicate definitions

2016-03-13 Thread Varun Prakash
move struct ulptx_idata definition to common header file t4_msg.h. Signed-off-by: Varun Prakash --- drivers/infiniband/hw/cxgb4/t4fw_ri_api.h | 9 - drivers/net/ethernet/chelsio/cxgb4/t4_msg.h | 5 + drivers/scsi/cxgbi/cxgb4i/cxgb4i.h | 5 - 3 files changed, 5

[target-pending 03/12] cxgb4: large receive offload support

2016-03-13 Thread Varun Prakash
add large receive offload(LRO) support for upper layer drivers. Signed-off-by: Varun Prakash --- drivers/net/ethernet/chelsio/cxgb4/cxgb4.h | 14 - drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c | 42 ++--- drivers/net/ethernet/chelsio/cxgb4/cxgb4_uld.h | 6

[target-pending 00/12] cxgb4 patch series for cxgbit.ko

2016-03-13 Thread Varun Prakash
Hi Nicholas, I am posting cxgb4 patch series as suggested by you in following email thread http://www.spinics.net/lists/target-devel/msg12437.html This series consists of patches from initial cxgb4 series without any change. Thanks Varun Varun Prakash (12): cxgb4: add new ULD

[target-pending 01/12] cxgb4: add new ULD type CXGB4_ULD_ISCSIT

2016-03-13 Thread Varun Prakash
Chelsio iSCSI target offload driver will register with cxgb4 driver as ULD of type CXGB4_ULD_ISCSIT. Signed-off-by: Varun Prakash --- drivers/net/ethernet/chelsio/cxgb4/cxgb4_uld.h | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/ethernet/chelsio/cxgb4/cxgb4_uld.h b/drivers/net

Re: [target-pending 00/12] cxgb4 changes for cxgbit.ko

2016-03-13 Thread Varun Prakash
On Sun, Mar 13, 2016 at 06:58:50PM +0530, Varun Prakash wrote: > Hi Nicholas, > >I am posting cxgb4 patch series as >suggested by you in following email thread > >http://www.spinics.net/lists/target-devel/msg12437.html > >This series consists of patches

[target-pending 05/12] cxgb4, iw_cxgb4, cxgb4i: remove duplicate definitions

2016-03-13 Thread Varun Prakash
move struct ulptx_idata definition to common header file t4_msg.h. Signed-off-by: Varun Prakash Signed-off-by: Nicholas Bellinger --- drivers/infiniband/hw/cxgb4/t4fw_ri_api.h | 9 - drivers/net/ethernet/chelsio/cxgb4/t4_msg.h | 5 + drivers/scsi/cxgbi/cxgb4i/cxgb4i.h

[target-pending 04/12] cxgb4, iw_cxgb4: move definitions to common header file

2016-03-13 Thread Varun Prakash
move struct tcp_options, struct cpl_pass_accept_req, enum defining congestion control algorithms and associated macros to common header file t4_msg.h Signed-off-by: Varun Prakash Signed-off-by: Nicholas Bellinger --- drivers/infiniband/hw/cxgb4/t4fw_ri_api.h | 81

[target-pending 02/12] cxgb4: allocate resources for CXGB4_ULD_ISCSIT

2016-03-13 Thread Varun Prakash
allocate rxqs for non T4 adapters, dump rxqs sge qinfo through debugfs. Signed-off-by: Varun Prakash Signed-off-by: Nicholas Bellinger --- drivers/net/ethernet/chelsio/cxgb4/cxgb4.h | 11 - drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c | 34 +- drivers/net/ethernet

[target-pending 03/12] cxgb4: large receive offload support

2016-03-13 Thread Varun Prakash
add large receive offload(LRO) support for upper layer drivers. Signed-off-by: Varun Prakash Signed-off-by: Nicholas Bellinger --- drivers/net/ethernet/chelsio/cxgb4/cxgb4.h | 14 - drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c | 42 ++--- drivers/net

[target-pending 01/12] cxgb4: add new ULD type CXGB4_ULD_ISCSIT

2016-03-13 Thread Varun Prakash
Chelsio iSCSI target offload driver will register with cxgb4 driver as ULD of type CXGB4_ULD_ISCSIT. Signed-off-by: Varun Prakash Signed-off-by: Nicholas Bellinger --- drivers/net/ethernet/chelsio/cxgb4/cxgb4_uld.h | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/ethernet

[target-pending 00/12] cxgb4 changes for cxgbit.ko

2016-03-13 Thread Varun Prakash
Hi Nicholas, I am posting cxgb4 patch series as suggested by you in following email thread http://www.spinics.net/lists/target-devel/msg12437.html This series consists of patches from initial cxgb4 series without any change. Thanks Varun Varun Prakash (12): cxgb4: add

Re: [PATCH net-next v2 1/4] cxgb4/iw_cxgb4/cxgb4i: remove duplicate definitions

2015-04-15 Thread Varun Prakash
On Mon, Apr 13, 2015 at 10:38:08AM -0600, Jason Gunthorpe wrote: > On Mon, Apr 13, 2015 at 07:34:23PM +0530, Varun Prakash wrote: > > define struct ulptx_idata in common header file t4_msg.h > > to remove duplicate definitions. > > The Infiniband side of this patch looks

[PATCH][IPROUTE2]Add missing prefix bit length for addrlabel

2008-02-14 Thread Varun Chandramohan
The prefix bit lenght value was not updated, resulting in incorrect addrlabel entry. This patch fixes that issue. Signed-off-by: Varun Chandramohan <[EMAIL PROTECTED]> --- ip/ipaddrlabel.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/ip/ipaddrlabel.

Re: [PATCH 3/3 Rev4] Initialize and fill IPv6 route age

2007-09-20 Thread Varun Chandramohan
Krishna Kumar2 wrote: > Varun Chandramohan <[EMAIL PROTECTED]> wrote on 09/20/2007 08:59:03 > PM: > > >> @@ -2123,6 +2131,7 @@ static int rt6_fill_node(struct sk_buff >> { >> struct rtmsg *rtm; >> struct nlmsghdr *nlh; >> + struct t

[PATCH 2/3 Rev4] Initilize and populate age field

2007-09-20 Thread Varun Chandramohan
The age field is filled with the current time at the time of creation of the route. When the routes are dumped then the age value stored in the route structure is subtracted from the current time value and the difference is the age expressed in secs. Signed-off-by: Varun Chandramohan <[EM

[PATCH 3/3 Rev4] Initialize and fill IPv6 route age

2007-09-20 Thread Varun Chandramohan
: Varun Chandramohan <[EMAIL PROTECTED]> --- include/net/ip6_fib.h |1 + net/ipv6/addrconf.c |5 + net/ipv6/route.c | 14 ++ 3 files changed, 20 insertions(+), 0 deletions(-) diff --git a/include/net/ip6_fib.h b/include/net/ip6_fib.h index c48ea87..e30a1cf 100644

[PATCH 1/3 Rev4] New attribute RTA_AGE

2007-09-20 Thread Varun Chandramohan
A new attribute RTA_AGE is added for the age value to be exported to userlevel using netlink Signed-off-by: Varun Chandramohan <[EMAIL PROTECTED]> --- include/linux/rtnetlink.h |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/include/linux/rtnetlink.h b/include

[PATCH 0/3 Rev-4] Age Entry For IPv4 & IPv6 Route Table

2007-09-20 Thread Varun Chandramohan
make it a bit more readable. But i think you are right. So, in this patchset i have taken care of this issue. Is this ok? Regards, Varun Original Comment: According to the RFC 4292 (IP Forwarding Table MIB) there is a need for an age entry for all the routes in therouting table. The entry in

[RESEND][PATCH 4/4 Rev-3] Initialize and fill IPv6 route age

2007-09-18 Thread Varun Chandramohan
: Varun Chandramohan <[EMAIL PROTECTED]> --- include/net/ip6_fib.h |1 + include/net/ip6_route.h |3 +++ net/ipv6/addrconf.c |5 + net/ipv6/route.c| 24 4 files changed, 29 insertions(+), 4 deletions(-) diff --git a/include/net/ip6_f

[RESEND][PATCH 2/4 Rev-3] Add new timeval_to_sec function

2007-09-18 Thread Varun Chandramohan
A new function for converting timeval to time_t is added in netlink.h. Its a common function used in differentplaces. The reason for adding this function in netlink.h is that its used by netlink for stats purpose. Signed-off-by: Varun Chandramohan <[EMAIL PROTECTED]> --- include/net/net

[RESEND][PATCH 3/4 Rev-3] Initilize and populate age field

2007-09-18 Thread Varun Chandramohan
The age field is filled with the current time at the time of creation of the route. When the routes are dumped then the age value stored in the route structure is subtracted from the current time value and the difference is the age expressed in secs. Signed-off-by: Varun Chandramohan <[EM

[RESEND][PATCH 1/4 Rev-3] New attribute RTA_AGE

2007-09-18 Thread Varun Chandramohan
A new attribute RTA_AGE is added for the age value to be exported to userlevel using netlink Signed-off-by: Varun Chandramohan <[EMAIL PROTECTED]> --- include/linux/rtnetlink.h |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/include/linux/rtnetlink.h b/include

[RESEND][PATCH 0/4 Rev-3] Age Entry For IPv4 & IPv6 Route Table

2007-09-18 Thread Varun Chandramohan
Hi Dave, Iam resending the patch set again. Let me know if you need anything else. Regards, Varun Original Comment: According to the RFC 4292 (IP Forwarding Table MIB) there is a need for an age entry for all the routes in therouting table. The entry in the RFC is inetCidrRouteAge and

wrt Age Entry For IPv4 & IPv6 Route Table

2007-09-18 Thread Varun Chandramohan
, Varun - To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html

wrt Age Entry For IPv4 & IPv6 Route Table

2007-09-06 Thread Varun Chandramohan
Hi Dave, Last week i sent out the rev-3 of the age patch set, and i got no comments . So i assume the people who reviewed it earlier are ok with it. Can you please go through it and push it upstream? Regards, Varun - To unsubscribe from this list: send the line "unsubs

[PATCH 4/4 Rev-3] Initialize and fill IPv6 route age

2007-08-29 Thread Varun Chandramohan
: Varun Chandramohan <[EMAIL PROTECTED]> --- include/net/ip6_fib.h |1 + include/net/ip6_route.h |3 +++ net/ipv6/addrconf.c |5 + net/ipv6/route.c| 24 4 files changed, 29 insertions(+), 4 deletions(-) diff --git a/include/net/ip6_f

[PATCH 3/4 Rev-3] Initilize and populate age field

2007-08-28 Thread Varun Chandramohan
The age field is filled with the current time at the time of creation of the route. When the routes are dumped then the age value stored in the route structure is subtracted from the current time value and the difference is the age expressed in secs. Signed-off-by: Varun Chandramohan <[EM

[PATCH 2/4 Rev-3] Add new timeval_to_sec function

2007-08-28 Thread Varun Chandramohan
A new function for converting timeval to time_t is added in netlink.h. Its a common function used in differentplaces. The reason for adding this function in netlink.h is that its used by netlink for stats purpose. Signed-off-by: Varun Chandramohan <[EMAIL PROTECTED]> --- include/net/net

[PATCH 1/4 Rev-3] New attribute RTA_AGE

2007-08-28 Thread Varun Chandramohan
A new attribute RTA_AGE is added for the age value to be exported to userlevel using netlink Signed-off-by: Varun Chandramohan <[EMAIL PROTECTED]> --- include/linux/rtnetlink.h |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/include/linux/rtnetlink.h b/include

[PATCH 0/4 Rev-3] Age Entry For IPv4 & IPv6 Route Table

2007-08-28 Thread Varun Chandramohan
tion Thomas Graf Signed-off-by: Varun Chandramohan <[EMAIL PROTECTED]> --- - To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: [PATCH 3/4 - rev 2] Initilize and populate age field

2007-08-21 Thread Varun Chandramohan
Thomas Graf wrote: > * Varun Chandramohan <[EMAIL PROTECTED]> 2007-08-21 16:52 > >> I know its a bit confusing but let me explain the reason. In my first >> version patch i used fn_hash_insert() (place where alias is created)as >> place to insert my current time

Re: [PATCH 3/4 - rev 2] Initilize and populate age field

2007-08-21 Thread Varun Chandramohan
Thomas Graf wrote: > * Varun Chandramohan <[EMAIL PROTECTED]> 2007-08-20 13:46 > >> The age field is filled with the current time at the time of creation of the >> route. When the routes are dumped >> then the age value stored in the route structure is subtra

Re: [PATCH 2/4 - rev2] Add new timeval_to_sec function

2007-08-21 Thread Varun Chandramohan
Bob Beers wrote: > What if the name of the function was more descriptive of what the > function actually does? Maybe timeval_ceil_sec()? > Looks ok, it can be done if everyone is ok with it. > - > To unsubscribe from this list: send the line "unsubscribe netdev" in > the body of a message to [

Re: [PATCH 2/4 - rev2] Add new timeval_to_sec function

2007-08-20 Thread Varun Chandramohan
Stephen Hemminger wrote: > On Mon, 20 Aug 2007 13:45:36 +0530 > Varun Chandramohan <[EMAIL PROTECTED]> wrote: > > >> A new function for converting timeval to time_t is added in time.h. Its a >> common function used in different >> places. >> &g

[PATCH 4/4 - rev2] Initialize and fill IPv6 route age

2007-08-20 Thread Varun Chandramohan
: Varun Chandramohan <[EMAIL PROTECTED]> --- include/net/ip6_fib.h |1 + include/net/ip6_route.h |3 +++ net/ipv6/addrconf.c |5 + net/ipv6/route.c| 24 4 files changed, 29 insertions(+), 4 deletions(-) diff --git a/include/net/ip6_f

[PATCH 2/4 - rev2] Add new timeval_to_sec function

2007-08-20 Thread Varun Chandramohan
A new function for converting timeval to time_t is added in time.h. Its a common function used in different places. Signed-off-by: Varun Chandramohan <[EMAIL PROTECTED]> --- include/linux/time.h | 12 1 files changed, 12 insertions(+), 0 deletions(-) diff --git a/include

[PATCH 3/4 - rev 2] Initilize and populate age field

2007-08-20 Thread Varun Chandramohan
The age field is filled with the current time at the time of creation of the route. When the routes are dumped then the age value stored in the route structure is subtracted from the current time value and the difference is the age expressed in secs. Signed-off-by: Varun Chandramohan <[EM

[PATCH 1/4 - rev2] New attribute RTA_AGE

2007-08-20 Thread Varun Chandramohan
A new attribute RTA_AGE is added for the age value to be exported to userlevel using netlink Signed-off-by: Varun Chandramohan <[EMAIL PROTECTED]> --- include/linux/rtnetlink.h |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/include/linux/rtnetlink.h b/include

[PATCH 0/4 - rev 2] Age Entry For IPv4 & IPv6 Route Table

2007-08-20 Thread Varun Chandramohan
-off-by: Varun Chandramohan <[EMAIL PROTECTED]> --- - To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: [PATCH 3/4 -rev1] Initilize and populate age field

2007-08-06 Thread Varun Chandramohan
Did you mean that the above should be like this? NLA_PUT_U32(skb, RTA_AGE, (unsigned int) *age); return tv->tv_sec + (tv->tv_usec ? 1 : 0); is much faster So can we say that "usec" is *always *< 100 ? Regards, Varun -

Re: [PATCH 3/4 -rev1] Initilize and populate age field

2007-07-25 Thread Varun Chandramohan
Eric Dumazet wrote: > Varun Chandramohan a écrit : >> Eric Dumazet wrote: >>> Varun Chandramohan a écrit : >>>> The age field is filled with the current time at the time of creation >>>> of the route. When the routes are dumped >>>> then the

Re: [PATCH 3/4 -rev1] Initilize and populate age field

2007-07-25 Thread Varun Chandramohan
Eric Dumazet wrote: > Varun Chandramohan a écrit : >> The age field is filled with the current time at the time of creation >> of the route. When the routes are dumped >> then the age value stored in the route structure is subtracted from >> the current time value an

[PATCH 4/4 -rev1] Initialize and fill IPv6 route age

2007-07-25 Thread Varun Chandramohan
clarity is added as per suggestion. Signed-off-by: Varun Chandramohan <[EMAIL PROTECTED]> --- include/net/ip6_fib.h |1 + include/net/ip6_route.h |3 +++ net/ipv6/addrconf.c |5 + net/ipv6/route.c| 23 +++ 4 files changed, 28 insertions(+), 4 del

[PATCH 2/4 -rev1] Add new timeval_to_sec function

2007-07-25 Thread Varun Chandramohan
A new function for converting timeval to time_t is added in time.h. Its a common function used in different places. The timeout is now rounded up as per the suggestion. Signed-off-by: Varun Chandramohan <[EMAIL PROTECTED]> --- include/linux/time.h | 11 +++ 1 files chang

[PATCH 1/4 -rev1] New attribute RTA_AGE

2007-07-25 Thread Varun Chandramohan
A new attribute RTA_AGE is added for the age value to be exported to userlevel using netlink Signed-off-by: Varun Chandramohan <[EMAIL PROTECTED]> --- include/linux/rtnetlink.h |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/include/linux/rtnetlink.h b/include

[PATCH 3/4 -rev1] Initilize and populate age field

2007-07-25 Thread Varun Chandramohan
The age field is filled with the current time at the time of creation of the route. When the routes are dumped then the age value stored in the route structure is subtracted from the current time value and the difference is the age expressed in secs. Signed-off-by: Varun Chandramohan <[EM

  1   2   >