RE: [PATCH bpf-next 4/4] samples/bpf: xdpsock: add time-out for cleaning Tx

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



>>   static void complete_tx_only_all(void)
>>   {
>> +	u32 retries = 3;
>>   	bool pending;
>>   	int i;
>>
>> @@ -1421,7 +1422,8 @@ static void complete_tx_only_all(void)
>>   				pending = !!xsks[i]->outstanding_tx;
>>   			}
>>   		}
>> -	} while (pending);
>> +		sleep(opt_interval);
>
>Why/how is this connected with the 'opt_interval' ?
>
>(Which is used by the pthtread 'poller' dumping stats)
>
The original thought was to use the poller interval since
it is what user would experience from terminal. In next rev,
I plan to make it configurable with second granularity as
suggested by Song Liu.

Thanks




[Index of Archives]     [Linux Samsung SoC]     [Linux Rockchip SoC]     [Linux Actions SoC]     [Linux for Synopsys ARC Processors]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]


  Powered by Linux