Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp50912pxu; Tue, 1 Dec 2020 06:01:20 -0800 (PST) X-Google-Smtp-Source: ABdhPJynHObnDRI/Xn/1vEL0/maIrcK3DrE+pYJ+uXEJpXj9LB1f9VNxS5FNDP0uNJC+76Ca0w7p X-Received: by 2002:a2e:3204:: with SMTP id y4mr1287159ljy.342.1606831279671; Tue, 01 Dec 2020 06:01:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606831279; cv=none; d=google.com; s=arc-20160816; b=g0ODU9Wr1bB10Ab1IV95/KrMvw1dSslIiTK9iLFWeyxsT/xGpH/aLe9FtHFLeiI0oM GwHEvFcQ8juEuw4HjU7XbYEBkCm4+4SLhJVNXcOMjJCgJvrxkLLEM+LwFIlygl147gX/ YzvX5sfrH0QXrx1w0WE3LfeD6/j6gM4pw7L6PE08oIpcXjfRkg95cNHfTP3dOlAkOgYn nKPGagLxWUD0l5jllg1D82GpgJZ9tXgQcik5eFR/7yrH359hXnHXXA49+hekWbbsN1f8 OtG5k6BZEad3rDS91ZNks3oyY+S8PWY12I9whtoUvHUjSLJekAPQOeDYoiZm3An9iujK plKQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :cc:to:from; bh=aPc+sL47ata0wQnTAF2bkoTKUssbp/HYXq7rLybRhzc=; b=njvSWijnW95q4m8gBW75itLiOyVF9lw3V7JyUH4cWickedtyD2b3+lNgAk9n7/5sTL cqfXmRoYkXjwfOl0UzcnsN4Bmue8S23MnNAY2jRSly5M0eLCV20m37YnLbuU67/oSJWR Cl06QfOuWNOdXkQvvdly9hjkkEAZ1zlZzP/EUiYce+yHakRpCDG18oLdYzzp9A8Ux8RS waGXz6YCyFGR1JpnYnfa8aBczy8p4cB4xqJXsu6+4HmF6sqdOjs+vIllCelCZugu2fOe 5dBcIJNe1d940CCU3R0PwPRPhkP5fH+gS02XnwWi8b5Yeh0nH2sMGN+x83ZCQCmmE1VT b4pA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d8si964489ejw.38.2020.12.01.06.00.55; Tue, 01 Dec 2020 06:01:19 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2391400AbgLAN5q (ORCPT + 99 others); Tue, 1 Dec 2020 08:57:46 -0500 Received: from out30-132.freemail.mail.aliyun.com ([115.124.30.132]:44354 "EHLO out30-132.freemail.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2391267AbgLAN5p (ORCPT ); Tue, 1 Dec 2020 08:57:45 -0500 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R441e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01e04420;MF=xuanzhuo@linux.alibaba.com;NM=1;PH=DS;RN=17;SR=0;TI=SMTPD_---0UHBq6Xj_1606831018; Received: from localhost(mailfrom:xuanzhuo@linux.alibaba.com fp:SMTPD_---0UHBq6Xj_1606831018) by smtp.aliyun-inc.com(127.0.0.1); Tue, 01 Dec 2020 21:56:59 +0800 From: Xuan Zhuo To: magnus.karlsson@intel.com, daniel@iogearbox.net Cc: =?UTF-8?q?Bj=C3=B6rn=20T=C3=B6pel?= , Jonathan Lemon , "David S. Miller" , Jakub Kicinski , Alexei Starovoitov , Jesper Dangaard Brouer , John Fastabend , Andrii Nakryiko , Martin KaFai Lau , Song Liu , Yonghong Song , KP Singh , netdev@vger.kernel.org (open list:XDP SOCKETS (AF_XDP)), bpf@vger.kernel.org (open list:XDP SOCKETS (AF_XDP)), linux-kernel@vger.kernel.org (open list) Subject: [PATCH bpf V3 0/2] xsk: fix for xsk_poll writeable Date: Tue, 1 Dec 2020 21:56:56 +0800 Message-Id: X-Mailer: git-send-email 1.8.3.1 In-Reply-To: References: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org V2: #2 patch made some changes following magnus' opinions. V3: Regarding the function xskq_cons_present_entries, I think daniel are right, I have modified it. Xuan Zhuo (2): xsk: replace datagram_poll by sock_poll_wait xsk: change the tx writeable condition net/xdp/xsk.c | 20 ++++++++++++++++---- net/xdp/xsk_queue.h | 6 ++++++ 2 files changed, 22 insertions(+), 4 deletions(-) -- 1.8.3.1