* [PATCH 2.6.23 1/2] Make the iw_cxgb3 module parameters writable.
@ 2007-07-29 20:12 Steve Wise
2007-07-29 20:12 ` [ofa-general] [PATCH 2.6.23 2/2] iw_cxgb3: Always call low level send function via cxgb3_ofld_send() Steve Wise
` (2 more replies)
0 siblings, 3 replies; 6+ messages in thread
From: Steve Wise @ 2007-07-29 20:12 UTC (permalink / raw)
To: rdreier; +Cc: general, linux-kernel, netdev
Make the iw_cxgb3 module parameters writable.
Signed-off-by: Steve Wise <swise@opengridcomputing.com>
---
drivers/infiniband/hw/cxgb3/iwch_cm.c | 16 ++++++++--------
1 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/drivers/infiniband/hw/cxgb3/iwch_cm.c b/drivers/infiniband/hw/cxgb3/iwch_cm.c
index 9574088..fa95dce 100644
--- a/drivers/infiniband/hw/cxgb3/iwch_cm.c
+++ b/drivers/infiniband/hw/cxgb3/iwch_cm.c
@@ -63,37 +63,37 @@ static char *states[] = {
};
static int ep_timeout_secs = 10;
-module_param(ep_timeout_secs, int, 0444);
+module_param(ep_timeout_secs, int, 0644);
MODULE_PARM_DESC(ep_timeout_secs, "CM Endpoint operation timeout "
"in seconds (default=10)");
static int mpa_rev = 1;
-module_param(mpa_rev, int, 0444);
+module_param(mpa_rev, int, 0644);
MODULE_PARM_DESC(mpa_rev, "MPA Revision, 0 supports amso1100, "
"1 is spec compliant. (default=1)");
static int markers_enabled = 0;
-module_param(markers_enabled, int, 0444);
+module_param(markers_enabled, int, 0644);
MODULE_PARM_DESC(markers_enabled, "Enable MPA MARKERS (default(0)=disabled)");
static int crc_enabled = 1;
-module_param(crc_enabled, int, 0444);
+module_param(crc_enabled, int, 0644);
MODULE_PARM_DESC(crc_enabled, "Enable MPA CRC (default(1)=enabled)");
static int rcv_win = 256 * 1024;
-module_param(rcv_win, int, 0444);
+module_param(rcv_win, int, 0644);
MODULE_PARM_DESC(rcv_win, "TCP receive window in bytes (default=256)");
static int snd_win = 32 * 1024;
-module_param(snd_win, int, 0444);
+module_param(snd_win, int, 0644);
MODULE_PARM_DESC(snd_win, "TCP send window in bytes (default=32KB)");
static unsigned int nocong = 0;
-module_param(nocong, uint, 0444);
+module_param(nocong, uint, 0644);
MODULE_PARM_DESC(nocong, "Turn off congestion control (default=0)");
static unsigned int cong_flavor = 1;
-module_param(cong_flavor, uint, 0444);
+module_param(cong_flavor, uint, 0644);
MODULE_PARM_DESC(cong_flavor, "TCP Congestion control flavor (default=1)");
static void process_work(struct work_struct *work);
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [ofa-general] [PATCH 2.6.23 2/2] iw_cxgb3: Always call low level send function via cxgb3_ofld_send().
2007-07-29 20:12 [PATCH 2.6.23 1/2] Make the iw_cxgb3 module parameters writable Steve Wise
@ 2007-07-29 20:12 ` Steve Wise
2007-08-02 21:05 ` [ofa-general] " Roland Dreier
2007-07-30 20:20 ` [ofa-general] Re: [PATCH 2.6.23 1/2] Make the iw_cxgb3 module parameters writable Roland Dreier
2007-08-02 21:06 ` [ofa-general] " Roland Dreier
2 siblings, 1 reply; 6+ messages in thread
From: Steve Wise @ 2007-07-29 20:12 UTC (permalink / raw)
To: rdreier; +Cc: netdev, linux-kernel, general
iw_cxgb3: Always call low level send function via cxgb3_ofld_send().
Avoids deadlocks.
Signed-off-by: Steve Wise <swise@opengridcomputing.com>
---
drivers/infiniband/hw/cxgb3/iwch_cm.c | 16 ++++++++--------
1 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/drivers/infiniband/hw/cxgb3/iwch_cm.c b/drivers/infiniband/hw/cxgb3/iwch_cm.c
index fa95dce..20ba372 100644
--- a/drivers/infiniband/hw/cxgb3/iwch_cm.c
+++ b/drivers/infiniband/hw/cxgb3/iwch_cm.c
@@ -139,7 +139,7 @@ static void release_tid(struct t3cdev *t
req->wr.wr_hi = htonl(V_WR_OP(FW_WROPCODE_FORWARD));
OPCODE_TID(req) = htonl(MK_OPCODE_TID(CPL_TID_RELEASE, hwtid));
skb->priority = CPL_PRIORITY_SETUP;
- tdev->send(tdev, skb);
+ cxgb3_ofld_send(tdev, skb);
return;
}
@@ -161,7 +161,7 @@ int iwch_quiesce_tid(struct iwch_ep *ep)
req->val = cpu_to_be64(1 << S_TCB_RX_QUIESCE);
skb->priority = CPL_PRIORITY_DATA;
- ep->com.tdev->send(ep->com.tdev, skb);
+ cxgb3_ofld_send(ep->com.tdev, skb);
return 0;
}
@@ -183,7 +183,7 @@ int iwch_resume_tid(struct iwch_ep *ep)
req->val = 0;
skb->priority = CPL_PRIORITY_DATA;
- ep->com.tdev->send(ep->com.tdev, skb);
+ cxgb3_ofld_send(ep->com.tdev, skb);
return 0;
}
@@ -784,7 +784,7 @@ static int update_rx_credits(struct iwch
OPCODE_TID(req) = htonl(MK_OPCODE_TID(CPL_RX_DATA_ACK, ep->hwtid));
req->credit_dack = htonl(V_RX_CREDITS(credits) | V_RX_FORCE_ACK(1));
skb->priority = CPL_PRIORITY_ACK;
- ep->com.tdev->send(ep->com.tdev, skb);
+ cxgb3_ofld_send(ep->com.tdev, skb);
return credits;
}
@@ -1152,7 +1152,7 @@ static int listen_start(struct iwch_list
req->opt1 = htonl(V_CONN_POLICY(CPL_CONN_POLICY_ASK));
skb->priority = 1;
- ep->com.tdev->send(ep->com.tdev, skb);
+ cxgb3_ofld_send(ep->com.tdev, skb);
return 0;
}
@@ -1186,7 +1186,7 @@ static int listen_stop(struct iwch_liste
req->cpu_idx = 0;
OPCODE_TID(req) = htonl(MK_OPCODE_TID(CPL_CLOSE_LISTSRV_REQ, ep->stid));
skb->priority = 1;
- ep->com.tdev->send(ep->com.tdev, skb);
+ cxgb3_ofld_send(ep->com.tdev, skb);
return 0;
}
@@ -1264,7 +1264,7 @@ static void reject_cr(struct t3cdev *tde
rpl->opt0l_status = htonl(CPL_PASS_OPEN_REJECT);
rpl->opt2 = 0;
rpl->rsvd = rpl->opt2;
- tdev->send(tdev, skb);
+ cxgb3_ofld_send(tdev, skb);
}
}
@@ -1557,7 +1557,7 @@ static int peer_abort(struct t3cdev *tde
rpl->wr.wr_lo = htonl(V_WR_TID(ep->hwtid));
OPCODE_TID(rpl) = htonl(MK_OPCODE_TID(CPL_ABORT_RPL, ep->hwtid));
rpl->cmd = CPL_ABORT_NO_RST;
- ep->com.tdev->send(ep->com.tdev, rpl_skb);
+ cxgb3_ofld_send(ep->com.tdev, rpl_skb);
if (state != ABORTING) {
state_set(&ep->com, DEAD);
release_ep_resources(ep);
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [ofa-general] Re: [PATCH 2.6.23 1/2] Make the iw_cxgb3 module parameters writable.
2007-07-29 20:12 [PATCH 2.6.23 1/2] Make the iw_cxgb3 module parameters writable Steve Wise
2007-07-29 20:12 ` [ofa-general] [PATCH 2.6.23 2/2] iw_cxgb3: Always call low level send function via cxgb3_ofld_send() Steve Wise
@ 2007-07-30 20:20 ` Roland Dreier
2007-07-31 17:57 ` Steve Wise
2007-08-02 21:06 ` [ofa-general] " Roland Dreier
2 siblings, 1 reply; 6+ messages in thread
From: Roland Dreier @ 2007-07-30 20:20 UTC (permalink / raw)
To: Steve Wise; +Cc: netdev, linux-kernel, general
ugh, missed these before my last merge...
anyway:
why do we want to parameters writable? a good changelog tells me
what, why and how, and this changelog just covered the "what". Also,
I assume you've checked that it's OK for these variables to change at
any time?
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH 2.6.23 1/2] Make the iw_cxgb3 module parameters writable.
2007-07-30 20:20 ` [ofa-general] Re: [PATCH 2.6.23 1/2] Make the iw_cxgb3 module parameters writable Roland Dreier
@ 2007-07-31 17:57 ` Steve Wise
0 siblings, 0 replies; 6+ messages in thread
From: Steve Wise @ 2007-07-31 17:57 UTC (permalink / raw)
To: Roland Dreier; +Cc: general, linux-kernel, netdev
Roland Dreier wrote:
> ugh, missed these before my last merge...
>
> anyway:
>
> why do we want to parameters writable? a good changelog tells me
> what, why and how, and this changelog just covered the "what". Also,
> I assume you've checked that it's OK for these variables to change at
> any time?
I want to be able to changes these parameters at run time. Eventually,
if we might want these parameters as rdma connection setup parameters.
For now, its useful to be able to set them without reloading.
Also, it is safe to change them at any time. All of these are read once
and utilized at connection setup. So changing them is safe in that
existing connections aren't affected, and only subsequent connections
will utilize the new values.
Sorry for the terse changelog...
Steve.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [ofa-general] Re: [PATCH 2.6.23 2/2] iw_cxgb3: Always call low level send function via cxgb3_ofld_send().
2007-07-29 20:12 ` [ofa-general] [PATCH 2.6.23 2/2] iw_cxgb3: Always call low level send function via cxgb3_ofld_send() Steve Wise
@ 2007-08-02 21:05 ` Roland Dreier
0 siblings, 0 replies; 6+ messages in thread
From: Roland Dreier @ 2007-08-02 21:05 UTC (permalink / raw)
To: Steve Wise; +Cc: netdev, linux-kernel, general
thanks, applied.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [ofa-general] Re: [PATCH 2.6.23 1/2] Make the iw_cxgb3 module parameters writable.
2007-07-29 20:12 [PATCH 2.6.23 1/2] Make the iw_cxgb3 module parameters writable Steve Wise
2007-07-29 20:12 ` [ofa-general] [PATCH 2.6.23 2/2] iw_cxgb3: Always call low level send function via cxgb3_ofld_send() Steve Wise
2007-07-30 20:20 ` [ofa-general] Re: [PATCH 2.6.23 1/2] Make the iw_cxgb3 module parameters writable Roland Dreier
@ 2007-08-02 21:06 ` Roland Dreier
2 siblings, 0 replies; 6+ messages in thread
From: Roland Dreier @ 2007-08-02 21:06 UTC (permalink / raw)
To: Steve Wise; +Cc: netdev, linux-kernel, general
thanks... I actually applied this for 2.6.24, since it's not really a
fix for anything, and the 2.6.23 window is closed.
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2007-08-02 21:06 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-07-29 20:12 [PATCH 2.6.23 1/2] Make the iw_cxgb3 module parameters writable Steve Wise
2007-07-29 20:12 ` [ofa-general] [PATCH 2.6.23 2/2] iw_cxgb3: Always call low level send function via cxgb3_ofld_send() Steve Wise
2007-08-02 21:05 ` [ofa-general] " Roland Dreier
2007-07-30 20:20 ` [ofa-general] Re: [PATCH 2.6.23 1/2] Make the iw_cxgb3 module parameters writable Roland Dreier
2007-07-31 17:57 ` Steve Wise
2007-08-02 21:06 ` [ofa-general] " Roland Dreier
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).