[Intel-wired-lan] [PATCH net-next v1] iavf: Add helper function to go from pci_dev to adapter

Jankowski, Konrad0 konrad0.jankowski at intel.com
Wed Oct 27 08:56:07 UTC 2021


> -----Original Message-----
> From: Intel-wired-lan <intel-wired-lan-bounces at osuosl.org> On Behalf Of
> Karen Sornek
> Sent: środa, 15 września 2021 08:41
> To: intel-wired-lan at lists.osuosl.org
> Cc: Sornek, Karen <karen.sornek at intel.com>
> Subject: [Intel-wired-lan] [PATCH net-next v1] iavf: Add helper function to go
> from pci_dev to adapter
> 
> Add helper function to go from pci_dev to adapter to make work simple - to
> go from a pci_dev to the adapter structure and make netdev assigment
> instead of having to go to the net_device then the adapter.
> 
> Signed-off-by: Brett Creeley <brett.creeley at intel.com>
> Signed-off-by: Karen Sornek <karen.sornek at intel.com>
> ---
>  drivers/net/ethernet/intel/iavf/iavf_main.c | 24 +++++++++++++++------
>  1 file changed, 17 insertions(+), 7 deletions(-)
> 
> diff --git a/drivers/net/ethernet/intel/iavf/iavf_main.c
> b/drivers/net/ethernet/intel/iavf/iavf_main.c
> index 80437ef26..39620fe6c 100644
> --- a/drivers/net/ethernet/intel/iavf/iavf_main.c
> +++ b/drivers/net/ethernet/intel/iavf/iavf_main.c
> @@ -51,6 +51,15 @@ MODULE_LICENSE("GPL v2");  static const struct
> net_device_ops iavf_netdev_ops;  struct workqueue_struct *iavf_wq;
> 

Tested-by: Konrad Jankowski <konrad0.jankowski at intel.com>


More information about the Intel-wired-lan mailing list