[PATCH v6 5/9] net/zxdh: add msg chan enable implementation

Junlong Wang wang.junlong1 at zte.com.cn
Mon Oct 21 12:56:36 CEST 2024


>> Add msg chan enable implementation to support
>> send msg to get infos.

> Would be interesting to explain which module is receiving the message.	

  Send messages to the backend (device side) to obtain information.



> I am curious about the spinlock function below.
> What is it doing exactly?

>> +static int32_t zxdh_spinlock_lock(uint32_t virt_lock_id, uint64_t virt_addr,
>> +					uint64_t label_addr, uint16_t primary_id)
>> +{
>> +	uint32_t lock_rd_cnt = 0;
>> +
>> +	do {
>> +		/* read to lock */
>> +		uint8_t spl_val = spinklock_read(virt_addr, virt_lock_id);


   Using locks to ensure message consistency when accessing backend information for multiple pf/vf.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mails.dpdk.org/archives/dev/attachments/20241021/7773aa86/attachment.htm>


More information about the dev mailing list