Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] Added subclass for recognize InfiniBand cards (bsc#903190) #383

Closed
wants to merge 9 commits into from

Conversation

teclator
Copy link
Contributor

No description provided.

Fri Feb 12 17:31:48 UTC 2016 - knut.anderssen@suse.com

- bsc#903190
- Recognized netcards with subclass 02 as InfiniBand (ib) which
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  1. AFAIK it should be 06
  2. I'd go for more "user's" friendly description here. Something like "Improved detection of InfiniBand cards".

@teclator teclator changed the title Added subclass for recognize InfiniBand cards (bsc#903190) [WIP] Added subclass for recognize InfiniBand cards (bsc#903190) Feb 15, 2016
subclass_id = Ops.get_integer(hwdevice, "sub_class_id", -1)
return "modem" if hwdevice["subclass"] == "Modem" || modem_controller?(class_id)
return "isdn" if hwdevice["subclass"] == "ISDN" || isdn_controller?(class_id)
return "dsl" if hwdevice["subclass"] == "DSL" || dsl_controller?(class_id)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think, when refactoring this you should check if these returns are needed ... modem / isdn / dsl support was dropped from yast some time ago

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So if it was dropped i could drop all references for it and for example only support ReadHardware("netcard")

# Read HW information
# @param [String] hwtype type of devices to read (netcard|modem|isdn)
# Read HW netcards information
# @param [String] not needed anymore
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think correct comment is do nothing unless empty or "netcard".

@teclator teclator force-pushed the mellanox_support branch 3 times, most recently from 58a5a1b to 573e659 Compare February 25, 2016 10:56

- bsc#903190
- Recognized netcards with subclass 07 as InfiniBand (ib) which
now are not filtered out.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the same description as for 3.1.143 below?!

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see, apparently #385 was merged because this PR was taking too long?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Exactly, the fix was merged but i will continue with the clean up, just after i finish with yast/yast-snapper#40 and yast/yast-snapper#39 i'm working on it currently.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.6%) to 46.147% when pulling fdfa1e7 on teclator:mellanox_support into a5698c2 on yast:master.

@teclator teclator closed this Nov 14, 2016
@teclator
Copy link
Contributor Author

I will create a new PR that will supersede this one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants