[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <6cb65005-aa47-4924-803d-cc7c3758c756@intel.com>
Date: Mon, 12 Feb 2024 15:07:15 -0800
From: Jacob Keller <jacob.e.keller@...el.com>
To: Brett Creeley <bcreeley@....com>, Yahui Cao <yahui.cao@...el.com>,
<intel-wired-lan@...ts.osuosl.org>
CC: <kevin.tian@...el.com>, <yishaih@...dia.com>, <brett.creeley@....com>,
<kvm@...r.kernel.org>, <sridhar.samudrala@...el.com>, <edumazet@...gle.com>,
<shameerali.kolothum.thodi@...wei.com>, <alex.williamson@...hat.com>,
<madhu.chittim@...el.com>, <jgg@...dia.com>, <netdev@...r.kernel.org>,
<kuba@...nel.org>, <pabeni@...hat.com>, <davem@...emloft.net>
Subject: Re: [Intel-wired-lan] [PATCH iwl-next v4 03/12] ice: Introduce VF
state ICE_VF_STATE_REPLAYING_VC for migration
On 12/8/2023 2:28 PM, Brett Creeley wrote:
>> -int
>> -ice_vc_send_msg_to_vf(struct ice_vf *vf, u32 v_opcode,
>> - enum virtchnl_status_code v_retval, u8 *msg, u16 msglen)
>> +static int
>> +ice_vc_send_response_to_vf(struct ice_vf *vf, u32 v_opcode,
>> + enum virtchnl_status_code v_retval,
>> + u8 *msg, u16 msglen)
>
> Is all of this rework needed? It seems like it's just a name change with
> additional logic to check the REPLAYING state. IMHO the naming isn't
> really any cleaner.
>
> Would it make more sense to just modify the current
> ice_vc_send_msg_to_vf() to handle the REPLAYING state? It seems like
> that would simplify this patch quite a bit.
>
> Is there a reason for these changes in follow up patches that I missed?
>
> Thanks,
>
> Brett
I remember making the suggestion to switch from "ice_vc_send_msg_to_vf"
to "ice_vc_send_response_to_vf" irrespective of the live migration.
I guess i could see it as just thrash, but it reads more clear ot me
that the action is about sending a response to the VF vs the generic
"send_msg_to_vf" which could be about any type of message whether its in
response or not. But to some extend thats just bike shedding.
I'll drop this change in the next version regardless, because I'm going
to move away from the virtchnl as the serialization format for the live
migration data.
Thanks,
Jake
Powered by blists - more mailing lists