i40e: Refactor argument of several client notification functions
authorIvan Vecera <ivecera@redhat.com>
Sat, 27 Apr 2024 07:26:03 +0000 (09:26 +0200)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Tue, 30 Apr 2024 16:32:57 +0000 (09:32 -0700)
commit54c4664e48eea52f2b296c73ddb8f5629b958678
tree42b16dc45cf8a47c9ddf1c83ee63290fa6be9ca5
parentb92379dc94c1ee52aa92a64bd4487c1a81db7254
i40e: Refactor argument of several client notification functions

Commit 0ef2d5afb12d ("i40e: KISS the client interface") simplified
the client interface so in practice it supports only one client
per i40e netdev. But we have still 2 notification functions that
uses as parameter a pointer to VSI of netdevice associated with
the client. After the mentioned commit only possible and used
VSI is the main (LAN) VSI.
So refactor these functions so they are called with PF pointer argument
and the associated VSI (LAN) is taken inside them.

Reviewed-by: Michal Schmidt <mschmidt@redhat.com>
Tested-by: Pucha Himasekhar Reddy <himasekharx.reddy.pucha@intel.com>
Signed-off-by: Ivan Vecera <ivecera@redhat.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
drivers/net/ethernet/intel/i40e/i40e.h
drivers/net/ethernet/intel/i40e/i40e_client.c
drivers/net/ethernet/intel/i40e/i40e_main.c