From: Ben Evans <bevans@cray.com>
To: lustre-devel@lists.lustre.org
Subject: [lustre-devel] [PATCH] Example of better reformatting Signed-off-by: Ben Evans <bevans@cray.com>
Date: Fri, 21 Aug 2015 20:57:09 +0000 [thread overview]
Message-ID: <D1FD0861.9C9%jevans@cray.com> (raw)
In-Reply-To: <D1FCEB5D.102FC2%andreas.dilger@intel.com>
Jeff, would you like to continue the patch along the lines I provided, or
would you prefer I submit the patch, then you follow up?
-Ben
On 8/21/15, 4:53 PM, "Dilger, Andreas" <andreas.dilger@intel.com> wrote:
>On 2015/08/20, 2:45 PM, "Ben Evans <bevans@cray.com>" wrote:
>
>>I'm with James on the previous patch being ugly. Something like this is
>>much cleaner. My opinion may not necessarily align with anyone elses.
>
>I'd agree this is much better than the other patch, but you need to send
>this to Greg KH and fix the summary line for it to be accepted instead.
>
>Cheers, Andreas
>
>>---
>> .../staging/lustre/lnet/klnds/o2iblnd/o2iblnd.h | 58
>>+++++++++-----------
>> 1 files changed, 26 insertions(+), 32 deletions(-)
>>
>>diff --git a/drivers/staging/lustre/lnet/klnds/o2iblnd/o2iblnd.h
>>b/drivers/staging/lustre/lnet/klnds/o2iblnd/o2iblnd.h
>>index f5d1d9f..cc4872d 100644
>>--- a/drivers/staging/lustre/lnet/klnds/o2iblnd/o2iblnd.h
>>+++ b/drivers/staging/lustre/lnet/klnds/o2iblnd/o2iblnd.h
>>@@ -79,39 +79,33 @@
>> #define IBLND_N_SCHED_HIGH 4
>>
>> typedef struct {
>>- int *kib_dev_failover; /* HCA failover */
>>+ int *kib_dev_failover; /* HCA failover */
>> unsigned int *kib_service; /* IB service number */
>>- int *kib_min_reconnect_interval; /* first failed connection
>>- * retry... */
>>- int *kib_max_reconnect_interval; /* ...exponentially
>>increasing
>>- * to this */
>>- int *kib_cksum; /* checksum kib_msg_t? */
>>- int *kib_timeout; /* comms timeout (seconds) */
>>- int *kib_keepalive; /* keepalive timeout (seconds) */
>>- int *kib_ntx; /* # tx descs */
>>- int *kib_credits; /* # concurrent sends */
>>- int *kib_peertxcredits; /* # concurrent sends to 1 peer */
>>- int *kib_peerrtrcredits; /* # per-peer router buffer
>>- * credits */
>>- int *kib_peercredits_hiw; /* # when eagerly to return
>>- * credits */
>>- int *kib_peertimeout; /* seconds to consider peer dead
>>*/
>>- char **kib_default_ipif; /* default IPoIB interface */
>>- int *kib_retry_count;
>>- int *kib_rnr_retry_count;
>>- int *kib_concurrent_sends; /* send work queue sizing */
>>- int *kib_ib_mtu; /* IB MTU */
>>- int *kib_map_on_demand; /* map-on-demand if RD has more
>>- * fragments than this value, 0
>>- * disable map-on-demand */
>>- int *kib_pmr_pool_size; /* # physical MR in pool */
>>- int *kib_fmr_pool_size; /* # FMRs in pool */
>>- int *kib_fmr_flush_trigger; /* When to trigger FMR flush */
>>- int *kib_fmr_cache; /* enable FMR pool cache? */
>>- int *kib_require_priv_port; /* accept only privileged ports */
>>- int *kib_use_priv_port; /* use privileged port for active
>>- * connect */
>>- int *kib_nscheds; /* # threads on each CPT */
>>+ int *kib_min_reconnect_interval; /* first failed connection retry */
>>+ int *kib_max_reconnect_interval; /* exponentially increase to this */
>>+ int *kib_cksum; /* checksum kib_msg_t? */
>>+ int *kib_timeout; /* comms timeout (seconds) */
>>+ int *kib_keepalive; /* keepalive timeout (seconds) */
>>+ int *kib_ntx; /* # tx descs */
>>+ int *kib_credits; /* # concurrent sends */
>>+ int *kib_peertxcredits; /* # concurrent sends to 1 peer */
>>+ int *kib_peerrtrcredits; /* # per-peer router buffer credits */
>>+ int *kib_peercredits_hiw; /* # when eagerly to return credits */
>>+ int *kib_peertimeout; /* seconds to consider peer dead */
>>+ char **kib_default_ipif; /* default IPoIB interface */
>>+ int *kib_retry_count;
>>+ int *kib_rnr_retry_count;
>>+ int *kib_concurrent_sends; /* send work queue sizing */
>>+ int *kib_ib_mtu; /* IB MTU */
>>+ int *kib_map_on_demand; /* map-on-demand if RD has more fragments
>>+ than this value, 0=disable */
>>+ int *kib_pmr_pool_size; /* # physical MR in pool */
>>+ int *kib_fmr_pool_size; /* # FMRs in pool */
>>+ int *kib_fmr_flush_trigger; /* When to trigger FMR flush */
>>+ int *kib_fmr_cache; /* enable FMR pool cache? */
>>+ int *kib_require_priv_port; /* accept only privileged ports */
>>+ int *kib_use_priv_port; /* use priv. port for active connect */
>>+ int *kib_nscheds; /* # threads on each CPT */
>> } kib_tunables_t;
>>
>> extern kib_tunables_t kiblnd_tunables;
>>--
>>1.6.5.6
>>
>>_______________________________________________
>>lustre-devel mailing list
>>lustre-devel at lists.lustre.org
>>http://lists.lustre.org/listinfo.cgi/lustre-devel-lustre.org
>>
>
>
>Cheers, Andreas
>--
>Andreas Dilger
>
>Lustre Software Architect
>Intel High Performance Data Division
>
>
next prev parent reply other threads:[~2015-08-21 20:57 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-08-20 20:45 [lustre-devel] [PATCH] Example of better reformatting Signed-off-by: Ben Evans <bevans@cray.com> Ben Evans
2015-08-20 21:39 ` Jeff Becker
2015-08-21 13:57 ` Ben Evans
2015-08-21 20:53 ` Dilger, Andreas
2015-08-21 20:57 ` Ben Evans [this message]
2015-08-21 21:02 ` Jeff Becker
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=D1FD0861.9C9%jevans@cray.com \
--to=bevans@cray.com \
--cc=lustre-devel@lists.lustre.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.