[Intel-wired-lan] [PATCH 2/4] iavf: use appropriate enum for comparison

Bowers, AndrewX andrewx.bowers at intel.com
Wed Jun 10 22:27:14 UTC 2020


> -----Original Message-----
> From: Intel-wired-lan <intel-wired-lan-bounces at osuosl.org> On Behalf Of
> Tony Nguyen
> Sent: Friday, June 5, 2020 10:10 AM
> To: intel-wired-lan at lists.osuosl.org
> Subject: [Intel-wired-lan] [PATCH 2/4] iavf: use appropriate enum for
> comparison
> 
> From: Aleksandr Loktionov <aleksandr.loktionov at intel.com>
> 
> adapter->link_speed has type enum virtchnl_link_speed but our
> adapter->comparisons
> are against enum iavf_aq_link_speed. Though they are, currently, the same
> values, change the comparison to the matching enum virtchnl_link_speed
> since that may not always be the case.
> 
> Signed-off-by: Aleksandr Loktionov <aleksandr.loktionov at intel.com>
> Signed-off-by: Piotr Kwapulinski <piotr.kwapulinski at intel.com>
> Signed-off-by: Tony Nguyen <anthony.l.nguyen at intel.com>
> ---
>  drivers/net/ethernet/intel/iavf/iavf_ethtool.c  | 17 ++++++-----------
>  drivers/net/ethernet/intel/iavf/iavf_main.c     | 12 ++++++------
>  drivers/net/ethernet/intel/iavf/iavf_txrx.c     | 12 ++++++------
>  drivers/net/ethernet/intel/iavf/iavf_virtchnl.c | 12 ++++++------
>  4 files changed, 24 insertions(+), 29 deletions(-)

Tested-by: Andrew Bowers <andrewx.bowers at intel.com>




More information about the Intel-wired-lan mailing list