[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <5dbb95b5-96c1-4bbc-a4e0-c0616efa7ac2@linux.intel.com>
Date: Sat, 6 Jul 2024 00:58:40 +0800
From: "Abdul Rahim, Faizal" <faizal.abdul.rahim@...ux.intel.com>
To: Simon Horman <horms@...nel.org>
Cc: "David S. Miller" <davem@...emloft.net>,
Eric Dumazet <edumazet@...gle.com>, Jakub Kicinski <kuba@...nel.org>,
Paolo Abeni <pabeni@...hat.com>,
Jesse Brandeburg <jesse.brandeburg@...el.com>,
Tony Nguyen <anthony.l.nguyen@...el.com>,
Vinicius Costa Gomes <vinicius.gomes@...el.com>,
intel-wired-lan@...ts.osuosl.org, netdev@...r.kernel.org,
linux-kernel@...r.kernel.org, stable@...r.kernel.org,
richardcochran@...il.com
Subject: Re: [PATCH iwl-net v1 1/4] igc: Fix qbv_config_change_errors logics
>> diff --git a/drivers/net/ethernet/intel/igc/igc_tsn.c b/drivers/net/ethernet/intel/igc/igc_tsn.c
>> index 22cefb1eeedf..02dd41aff634 100644
>> --- a/drivers/net/ethernet/intel/igc/igc_tsn.c
>> +++ b/drivers/net/ethernet/intel/igc/igc_tsn.c
>> @@ -78,6 +78,17 @@ void igc_tsn_adjust_txtime_offset(struct igc_adapter *adapter)
>> wr32(IGC_GTXOFFSET, txoffset);
>> }
>>
>> +bool igc_tsn_is_taprio_activated_by_user(struct igc_adapter *adapter)
>> +{
>> + struct igc_hw *hw = &adapter->hw;
>> +
>> + if ((rd32(IGC_BASET_H) || rd32(IGC_BASET_L)) &&
>> + adapter->taprio_offload_enable)
>> + return true;
>> + else
>> + return false;
>
> As per my response to patch 2/4, I think something like this is a bit
> nicer:
>
> (Completely untested!)
>
> return (rd32(IGC_BASET_H) || rd32(IGC_BASET_L)) &&
> adapter->taprio_offload_enable;
>
>
Will update, thanks.
Powered by blists - more mailing lists