[Intel-wired-lan] [PATCH iwl-next v6 14/15] idpf: add ethtool callbacks
Singh, Krishneil K
krishneil.k.singh at intel.com
Tue May 30 23:05:48 UTC 2023
> -----Original Message-----
> From: Intel-wired-lan <intel-wired-lan-bounces at osuosl.org> On Behalf Of
> Pavan Kumar Linga
> Sent: Monday, May 22, 2023 5:23 PM
> To: intel-wired-lan at lists.osuosl.org
> Cc: willemb at google.com; pabeni at redhat.com; leon at kernel.org;
> mst at redhat.com; simon.horman at corigine.com; Brandeburg, Jesse
> <jesse.brandeburg at intel.com>; stephen at networkplumber.org;
> edumazet at google.com; Nguyen, Anthony L
> <anthony.l.nguyen at intel.com>; netdev at vger.kernel.org; kuba at kernel.org;
> Burra, Phani R <phani.r.burra at intel.com>; decot at google.com;
> davem at davemloft.net; shannon.nelson at amd.com
> Subject: [Intel-wired-lan] [PATCH iwl-next v6 14/15] idpf: add ethtool
> callbacks
>
> From: Alan Brady <alan.brady at intel.com>
>
> Initialize all the ethtool ops that are supported by the driver and
> add the necessary support for the ethtool callbacks. Also add
> asynchronous link notification virtchnl support where the device
> Control Plane sends the link status and link speed as an
> asynchronous event message. Driver report the link speed on
> ethtool .idpf_get_link_ksettings query.
>
> Introduce soft reset function which is used by some of the ethtool
> callbacks such as .set_channels, .set_ringparam etc. to change the
> existing queue configuration. It deletes the existing queues by sending
> delete queues virtchnl message to the CP and calls the 'vport_stop' flow
> which disables the queues, vport etc. New set of queues are requested to
> the CP and reconfigure the queue context by calling the 'vport_open'
> flow. Soft reset flow also adjusts the number of vectors associated to a
> vport if .set_channels is called.
>
> Signed-off-by: Alan Brady <alan.brady at intel.com>
> Co-developed-by: Alice Michael <alice.michael at intel.com>
> Signed-off-by: Alice Michael <alice.michael at intel.com>
> Co-developed-by: Joshua Hay <joshua.a.hay at intel.com>
> Signed-off-by: Joshua Hay <joshua.a.hay at intel.com>
> Co-developed-by: Phani Burra <phani.r.burra at intel.com>
> Signed-off-by: Phani Burra <phani.r.burra at intel.com>
> Co-developed-by: Pavan Kumar Linga <pavan.kumar.linga at intel.com>
> Signed-off-by: Pavan Kumar Linga <pavan.kumar.linga at intel.com>
> Reviewed-by: Sridhar Samudrala <sridhar.samudrala at intel.com>
> Reviewed-by: Willem de Bruijn <willemb at google.com>
> ---
> drivers/net/ethernet/intel/idpf/Makefile | 1 +
> drivers/net/ethernet/intel/idpf/idpf.h | 42 +-
> .../net/ethernet/intel/idpf/idpf_ethtool.c | 1331 +++++++++++++++++
> drivers/net/ethernet/intel/idpf/idpf_lib.c | 158 ++
> drivers/net/ethernet/intel/idpf/idpf_txrx.c | 3 +-
> drivers/net/ethernet/intel/idpf/idpf_txrx.h | 14 +
> .../net/ethernet/intel/idpf/idpf_virtchnl.c | 248 ++-
> 7 files changed, 1792 insertions(+), 5 deletions(-)
> create mode 100644 drivers/net/ethernet/intel/idpf/idpf_ethtool.c
>
Tested-by: Krishneil Singh <krishneil.k.singh at intel.com>
More information about the Intel-wired-lan
mailing list