From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ye Xiaolong Subject: Re: [PATCH v3 1/5] net/af_xdp: introduce AF XDP PMD driver Date: Fri, 22 Mar 2019 10:04:26 +0800 Message-ID: <20190322020426.GE84243@intel.com> References: <20190301080947.91086-1-xiaolong.ye@intel.com> <20190321091845.78495-1-xiaolong.ye@intel.com> <20190321091845.78495-2-xiaolong.ye@intel.com> <20190321082705.1ee71f1f@shemminger-XPS-13-9360> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: dev@dpdk.org, Qi Zhang , Karlsson Magnus , Topel Bjorn To: Stephen Hemminger Return-path: Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by dpdk.org (Postfix) with ESMTP id 7F4701B55A for ; Fri, 22 Mar 2019 03:08:32 +0100 (CET) Content-Disposition: inline In-Reply-To: <20190321082705.1ee71f1f@shemminger-XPS-13-9360> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On 03/21, Stephen Hemminger wrote: >On Thu, 21 Mar 2019 17:18:41 +0800 >Xiaolong Ye wrote: > >> static void kick_tx(struct pkt_tx_queue *txq) >> +{ >> + struct xsk_umem_info *umem = txq->pair->umem; >> + >> + while (send(xsk_socket__fd(txq->pair->xsk), NULL, >> + 0, MSG_DONTWAIT) < 0) { >> + /* some thing unexpected */ >> + if (errno != EBUSY && errno != EAGAIN) >> + break; >> + >> + /* pull from complete qeueu to leave more space */ >> + if (errno == EAGAIN) >> + pull_umem_cq(umem, ETH_AF_XDP_TX_BATCH_SIZE); >> + } > >What about EINTR?? >You should retry the send then. Will do.