[brussels-dev] [networking-discuss] Brussels- nddcompat code review
Cathy Zhou
Cathy.Zhou at Sun.COM
Thu Mar 20 05:05:33 PDT 2008
Sowmini.Varadhan at Sun.COM wrote:
> Hi Cathy,
>
>> Hi Sowmini,
>>
>> I am still reviewing your code and since I am busy with my moving to
>> US, I am not sure
>> whether I can finish the review before March 26th.
>
> no problem- Seb mentioned this to me, and has offered to review
> the code, since you/meem are busy with moving. But any comments
> that you have are welcome, of course.
>
>> So far I have only one question:
>>
>> the fix of bug 6672490: I think you could simply change the Why
>> don't simply change the
>> second argument of get_linkduplex() and get_linkstate() from
>> B_FALSE to B_TRUE?
>
> You are right, that also looks like it would work. But would this
> work for devices that are not renamed? If yes, then why don't
> we always assume islink?
>
Basically, if the given name is a link name, we set "islink" to true, and when the given
name is a device instance name, we set "islink" to false. In the former case, we query the
"link" kstats (in the form of "link":0:<link name>:<stat name>), and in the latter case,
we query the old kstats form (<driver>:<instance>:<device instance name>:<stat name>).
Further, note some network devices do not have the first form of kstats, for example,
links of media types that are not supported by GLDv3.
Thanks
- Cathy
More information about the brussels-dev
mailing list