All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: [ewg] [PATCH] node description patch
       [not found] ` <4C2744E8AD2982428C5BFE523DF8CDCB49A488D73B-amwN6d8PyQWXx9kJd3VG2h2eb7JE58TQ@public.gmane.org>
@ 2010-06-14  7:43   ` Or Gerlitz
       [not found]     ` <4C15DD8A.3010806-hKgKHo2Ms0FWk0Htik3J/w@public.gmane.org>
  0 siblings, 1 reply; 2+ messages in thread
From: Or Gerlitz @ 2010-06-14  7:43 UTC (permalink / raw)
  To: Mike Heinz; +Cc: Jack Morgenstein, linux-rdma

Mike Heinz wrote:
> This patch fixes a problem with the openibd initialization script. 
> On machines using slower DHCP servers, openibd frequently sets the HCA's node description 
> to HCA-1. This patch modifies openibd to add a "@" instead of the hostname and adds a 
> small hook in the core drivers to replace the "@" sign with the system's utsname().
> Because this patch depends on changes to openibd, it cannot be submitted 
> to the upstream kernel, but it still corrects an outstanding issue with OFED 

Mike, 

The fact that you patch is both to user and kernel space code doesn't mean the kernel part can't be submitted upstream. I suggested you re post the patches to linux-rdma in a series made of two patches, one to the kernel and one to the service script. The kernel part then could be picked by the maintainer and will come into play once there's user space code plugging to it. This is similar to cases where people have kernel netlink agent code, merging is not dependent on the existence of specific matching user space code.

As for the user space part, the IB stack provided by the distros does have a service script and this service script attempts to set the node descriptor, e.g here's the RHEL6 beta rdma service code 

> # grep -A 13 "node description" /etc/rc.d/init.d/rdma
>     # Add node description to sysfs
>     IBSYSDIR="/sys/class/infiniband"
>     if [ -d ${IBSYSDIR} ]; then
>         declare -i hca_id=1
>         for hca in ${IBSYSDIR}/*
>         do
>             if [ -w ${hca}/node_desc ]; then
>                 echo -n "$(hostname | cut -f 1 -d .) HCA-${hca_id}" >> ${hca}/node_desc 2> /dev/null
>             fi
>             let hca_id++
>         done
>     fi
> 
>     errata_58

If you want to patch this, you can here open a bugzilla case with the relevant distro and propose a patch.

Or.
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 2+ messages in thread

* RE: [ewg] [PATCH] node description patch
       [not found]     ` <4C15DD8A.3010806-hKgKHo2Ms0FWk0Htik3J/w@public.gmane.org>
@ 2010-06-14 13:05       ` Mike Heinz
  0 siblings, 0 replies; 2+ messages in thread
From: Mike Heinz @ 2010-06-14 13:05 UTC (permalink / raw)
  To: Or Gerlitz; +Cc: Jack Morgenstein, linux-rdma

Or, 

Thanks. I'll prep the updated script.
________________________________________
From: Or Gerlitz [ogerlitz-smomgflXvOZWk0Htik3J/w@public.gmane.org]
Sent: Monday, June 14, 2010 2:43 AM
To: Mike Heinz
Cc: Jack Morgenstein; linux-rdma
Subject: Re: [ewg] [PATCH] node description patch

Mike Heinz wrote:
> This patch fixes a problem with the openibd initialization script.
> On machines using slower DHCP servers, openibd frequently sets the HCA's node description
> to HCA-1. This patch modifies openibd to add a "@" instead of the hostname and adds a
> small hook in the core drivers to replace the "@" sign with the system's utsname().
> Because this patch depends on changes to openibd, it cannot be submitted
> to the upstream kernel, but it still corrects an outstanding issue with OFED

Mike,

The fact that you patch is both to user and kernel space code doesn't mean the kernel part can't be submitted upstream. I suggested you re post the patches to linux-rdma in a series made of two patches, one to the kernel and one to the service script. The kernel part then could be picked by the maintainer and will come into play once there's user space code plugging to it. This is similar to cases where people have kernel netlink agent code, merging is not dependent on the existence of specific matching user space code.

As for the user space part, the IB stack provided by the distros does have a service script and this service script attempts to set the node descriptor, e.g here's the RHEL6 beta rdma service code

> # grep -A 13 "node description" /etc/rc.d/init.d/rdma
>     # Add node description to sysfs
>     IBSYSDIR="/sys/class/infiniband"
>     if [ -d ${IBSYSDIR} ]; then
>         declare -i hca_id=1
>         for hca in ${IBSYSDIR}/*
>         do
>             if [ -w ${hca}/node_desc ]; then
>                 echo -n "$(hostname | cut -f 1 -d .) HCA-${hca_id}" >> ${hca}/node_desc 2> /dev/null
>             fi
>             let hca_id++
>         done
>     fi
>
>     errata_58

If you want to patch this, you can here open a bugzilla case with the relevant distro and propose a patch.

Or.
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-06-14 13:05 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <4C2744E8AD2982428C5BFE523DF8CDCB49A488D73B@MNEXMB1.qlogic.org>
     [not found] ` <4C2744E8AD2982428C5BFE523DF8CDCB49A488D73B-amwN6d8PyQWXx9kJd3VG2h2eb7JE58TQ@public.gmane.org>
2010-06-14  7:43   ` [ewg] [PATCH] node description patch Or Gerlitz
     [not found]     ` <4C15DD8A.3010806-hKgKHo2Ms0FWk0Htik3J/w@public.gmane.org>
2010-06-14 13:05       ` Mike Heinz

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.