From mboxrd@z Thu Jan 1 00:00:00 1970 From: Magnus Karlsson Subject: [PATCH bpf v2 0/4] Bug fixes to the SKB TX path of AF_XDP Date: Fri, 29 Jun 2018 09:48:16 +0200 Message-ID: <1530258500-9126-1-git-send-email-magnus.karlsson@intel.com> Cc: qi.z.zhang@intel.com, pavel@fastnetmon.com To: magnus.karlsson@intel.com, bjorn.topel@intel.com, ast@fb.com, daniel@iogearbox.net, netdev@vger.kernel.org, eric.dumazet@gmail.com, liu.song.a23@gmail.com Return-path: Received: from mga05.intel.com ([192.55.52.43]:27112 "EHLO mga05.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934407AbeF2H7c (ORCPT ); Fri, 29 Jun 2018 03:59:32 -0400 Sender: netdev-owner@vger.kernel.org List-ID: This patch set fixes three bugs in the SKB TX path of AF_XDP. Details in the individual commits. The structure of the patch set is as follows: Patch 1: Fix for lost completion message Patch 2-3: Fix for possible multiple completions of single packet Patch 4: Fix potential race during error Changes from v1: * Added explanation of race in commit message of patch 4. /Magnus Magnus Karlsson (4): xsk: fix potential lost completion message in SKB path xsk: frame could be completed more than once in SKB path samples/bpf: deal with EBUSY return code from sendmsg in xdpsock sample xsk: fix potential race in SKB TX completion code include/net/xdp_sock.h | 4 ++++ net/xdp/xsk.c | 10 +++++++--- net/xdp/xsk_queue.h | 9 ++------- samples/bpf/xdpsock_user.c | 2 +- 4 files changed, 14 insertions(+), 11 deletions(-)