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

Remove driver version check #37

Merged
merged 2 commits into from
May 22, 2024

Conversation

zeeke
Copy link
Member

@zeeke zeeke commented May 9, 2024

Avoid checking the driver version against a user
defined map. If the netlink collector is not supported by
the Physical Function, the next provided collector (e.g. sysfs)
is used.

superseeds:

cc @Eoghan1232 , @SchSeba

@zeeke zeeke force-pushed the remove-version-map branch from e59e9f2 to de241a2 Compare May 9, 2024 12:19
Copy link
Collaborator

@SchSeba SchSeba left a comment

Choose a reason for hiding this comment

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

just a small nit and we can merge this one

README.md Outdated
@@ -9,7 +9,10 @@ The SR-IOV Network Metrics Exporter is designed with the Kubernetes SR-IOV stack
The sysfs collector for Virtual Function telemetry supports NICs with drivers that implement the SR-IOV sysfs management interface e.g. ice, i40e, mlnx_en and mlnx_ofed.

The netlink collector relies on driver support and a kernel version of 4.4 or higher.
To support netlink, we recommend these driver versions: an i40e driver of 2.11+ or higher for Intel® 700 series NICs and ice driver 1.2+ for Intel® 800 series NICs.
To support netlink, we recommend these driver versions:
Copy link
Collaborator

Choose a reason for hiding this comment

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

maybe something about minimal supported driver version or something like that?

Copy link
Member Author

Choose a reason for hiding this comment

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

I rephrased as:

The netlink collector relies on driver support and a kernel version of 4.4 or higher.
Also, the following minimum driver versions are required for this collector:
- `i40e` - 2.11+ for Intel® 700 series NICs 
- `ice` - 1.2+ for Intel® 800 series NICs
- `mlx5_core` - 5.15+ for Mellanox NICs

does it sound better?

@zeeke zeeke force-pushed the remove-version-map branch 2 times, most recently from 12efd05 to 224ef7e Compare May 13, 2024 12:09
Avoid checking the driver version against a user
defined map. If the netlink collector is not supported by
the Physical Function, the next provided collector (e.g. `sysfs`)
is used.

Signed-off-by: Andrea Panattoni <[email protected]>
@zeeke zeeke force-pushed the remove-version-map branch from 224ef7e to 0cc1c86 Compare May 13, 2024 17:34
@zeeke
Copy link
Member Author

zeeke commented May 20, 2024

@Eoghan1232 please take a look at this

Copy link
Collaborator

@Eoghan1232 Eoghan1232 left a comment

Choose a reason for hiding this comment

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

I very much like this approach!
Makes changes down the line easier too, without the hassle of driver validation due to so many variations of namings.
LGTM!

Copy link
Collaborator

@SchSeba SchSeba left a comment

Choose a reason for hiding this comment

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

LGTM

nice work!

@SchSeba SchSeba merged commit e3dd690 into k8snetworkplumbingwg:master May 22, 2024
9 checks passed
zeeke added a commit to zeeke/sriov-network-metrics-exporter that referenced this pull request Jun 10, 2024
As a leftover of:
- Remove driver version check  k8snetworkplumbingwg#37

the daemonset deployment file must be updated
removing  related references.

Signed-off-by: Andrea Panattoni <[email protected]>
Eoghan1232 pushed a commit that referenced this pull request Jun 11, 2024
As a leftover of:
- Remove driver version check  #37

the daemonset deployment file must be updated
removing  related references.

Signed-off-by: Andrea Panattoni <[email protected]>
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.

3 participants