Re: [Patch v2 net-next 6/7] octeontx2-pf: ethtool physical link status

2021-01-30 Thread Hariprasad Kelam
an ; > Geethasowjanya Akula ; Jerin Jacob Kollanukkaran > ; Subbaraya Sundeep Bhatta ; > Christina Jacob > Subject: [EXT] Re: [Patch v2 net-next 6/7] octeontx2-pf: ethtool physical link > status > > > +static void otx2_get_link_mode_info(u64 index, int mode, > > +

Re: [Patch v2 net-next 6/7] octeontx2-pf: ethtool physical link status

2021-01-27 Thread Andrew Lunn
> +static void otx2_get_link_mode_info(u64 index, int mode, > + struct ethtool_link_ksettings > + *link_ksettings) > +{ > + u64 ethtool_link_mode = 0; > + int bit_position = 0; > + u64 link_modes = 0; > + > + /* CGX lin

[Patch v2 net-next 6/7] octeontx2-pf: ethtool physical link status

2021-01-26 Thread Hariprasad Kelam
From: Christina Jacob Register get_link_ksettings callback to get link status information from the driver. As virtual function (vf) shares same physical link same API is used for both the drivers and for loop back drivers simply returns the fixed values as its does not have physical link. ethtoo