From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from out-176.mta1.migadu.com (out-176.mta1.migadu.com [95.215.58.176]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C0F601C1F22 for ; Thu, 1 May 2025 18:51:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=95.215.58.176 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1746125501; cv=none; b=eajZ7vd/hMmr8tUU4qeJhLI5GNWubSBSl6SztfIFKZTpDSpUxHI7yUNRmYyGqYt0jbS9TggYmMrp3rP4rmTRhAiAuvPc2GglZM6EfPrOYKZ4glvzf+FQELUqmICOogMHzwRLjF77abDOV7spiq6RRxZc6bjRFQ/vDBfQ0m5gQdg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1746125501; c=relaxed/simple; bh=vlX16ahkrnRI+fWtzG96SrbEd+czSy19gNPyq2adnA4=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=eQeNo/At8cRQ0CLqkSDF2U4wgPDYYW0kwnvw5ZLLWrvoxg8yT6LO25CXXnNz/gnoxa7zlAaFXQrF5wDvD76uN3lOQGlTQA7KkbhlResyB90ScV7HHz3VQam7aNMgyUxM6WWfZDWrR0rYBFVkWvrFZJ5gk5FuJegqRvO7xuuqXgY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b=SqIMwacW; arc=none smtp.client-ip=95.215.58.176 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="SqIMwacW" Message-ID: <44fa2bcd-d35e-44bc-b782-ed1b9a8ba8b9@linux.dev> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1746125486; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=VnVuHYefkb7SdggBx989aGc4OzbcRVqXDi+q644JknA=; b=SqIMwacW8o+PjCRmb+WSVTH3LiTuv8WoQUTUm+nvthePrPtyIU0xERZ+253VIVooRWUB1w TzCgeyWz6QiItvCMomL60Rf+I47vumzoZbjtJEA9sAEhcGus+FZSmknscUys39qC6NymBm JWhDBtzik0KwSoMm7rylDsVt5ddFTD0= Date: Thu, 1 May 2025 11:51:22 -0700 Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Subject: Re: [PATCH v6 bpf-next 5/7] bpf: udp: Avoid socket skips and repeats during iteration To: Jordan Rife Cc: Aditi Ghag , Daniel Borkmann , Willem de Bruijn , Kuniyuki Iwashima , Alexei Starovoitov , netdev@vger.kernel.org, bpf@vger.kernel.org References: <20250428180036.369192-1-jordan@jrife.io> <20250428180036.369192-6-jordan@jrife.io> X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Martin KaFai Lau Content-Language: en-US In-Reply-To: <20250428180036.369192-6-jordan@jrife.io> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Migadu-Flow: FLOW_OUT On 4/28/25 11:00 AM, Jordan Rife wrote: > @@ -3895,6 +3922,8 @@ static int bpf_iter_init_udp(void *priv_data, struct bpf_iter_aux_info *aux) > if (ret) > bpf_iter_fini_seq_net(priv_data); > > + iter->state.bucket = -1; ah. I think this can be moved to patch 3. > + > return ret; > } >