Giter Club home page Giter Club logo

sriovnet's Issues

Check possible issues with SerRepresentorPeerMacAddress when there are mediated devices

need to make sure this method functions properly when there are mediated devices in the system

a mediated device shares the same uplink physical port name as the uplink which may cause issues when determining the uplink pf name

cat /sys/class/net/enp3s0f0s0/phys_port_name 
p0
cat /sys/class/net/p0/phys_port_name 
p0
root@k8s-dpu-worker-2:~/dpu-operator/operator# devlink dev
pci/0000:03:00.0
pci/0000:03:00.1
auxiliary/mlx5_core.sf.2
auxiliary/mlx5_core.sf.3
root@k8s-dpu-worker-2:~/dpu-operator/operator# devlink port
pci/0000:03:00.0/262143: type eth netdev p0 flavour physical port 0
pci/0000:03:00.0/196608: type eth netdev pf0hpf flavour pcipf pfnum 0
pci/0000:03:00.1/327679: type eth netdev p1 flavour physical port 1
pci/0000:03:00.1/262144: type eth netdev pf1hpf flavour pcipf pfnum 1
auxiliary/mlx5_core.sf.2/6619136: type eth netdev enp3s0f0s0 flavour physical port 0
auxiliary/mlx5_core.sf.3/8716288: type eth netdev enp3s0f1s0 flavour physical port 0

Missing comparsion for detecting uplink rep

Cited code [1] missed to detect uplink rep netdev correctly.
It doesn't read the physical port name to prove that if its uplink rep or not. (p0/p1) etc.

Hence fix it to do
(a) Use devlink port APIs (once its available)
until than,
(b) Read the phys_port_name; compare it with p0,p1,p2,p3.
If (b) fails on older kernel,
default to current way to find out if its uplink or not.

(b) and (c) is still needed as this code may run on kernel that may not have the devlink output.

[1] https://github.com/Mellanox/sriovnet/blob/4bbe16c3b7c65c44cb1d749b374679b076bb3469/sriovnet_switchdev.go#L60

GO Import broken

Hi ,

I'm getting the following error when importing the lib

go: finding module for package github.com/k8snetworkplumbingwg/sriovnet
go: found github.com/k8snetworkplumbingwg/sriovnet in github.com/k8snetworkplumbingwg/sriovnet v1.1.0
go: github.com/gavmckee80/mlx6 imports
        github.com/k8snetworkplumbingwg/sriovnet: github.com/k8snetworkplumbingwg/[email protected]: parsing go.mod:
        module declares its path as: github.com/Mellanox/sriovnet
                but was required as: github.com/k8snetworkplumbingwg/sriovnet

Can someone advise ?

Release sriovnet 1.2.0

its been a while since we last release.
in addition we did not release after moving this project to k8snetworkplumbingwg.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.