From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f65.google.com (mail-wm0-f65.google.com [74.125.82.65]) by dpdk.org (Postfix) with ESMTP id 8A6AE1B7E8 for ; Tue, 24 Oct 2017 15:16:40 +0200 (CEST) Received: by mail-wm0-f65.google.com with SMTP id r68so16270046wmr.3 for ; Tue, 24 Oct 2017 06:16:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=Wt9O5raDHg5ne4Q6TcSL7bn5Pb4ylQIdRjK/RxutGBU=; b=mDXXJyWxLP+Ak92nOZBtock6/5/EChva2o82zZxidKISY5QXjkQl+8VuJDrsO3D4k6 bY8v19pdhuUB6R+xlUQDlRP9OqAaTilzXS8NQyFhrTkH/jepQuIbsDuKFPp0OD6PL2nx abcGdotb754Bjw9sSu3JYcKk69FT8tKSokMeCa+DqaIF//xGPQWhcKvL24SRhSLOiM0f AQMvfB6SSs2BFviby4stLJgVyXsOYc1f1WRGAJ02PIxMdQPCDpiOOGHYjJZCg4+FtHZA iMUPMZrZfrhUsDYWivwJzR3cRZRRLPz4Ou8S6mZzgolrw/EPdFAgggJBQuRwm4YHrmy9 MmOA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=Wt9O5raDHg5ne4Q6TcSL7bn5Pb4ylQIdRjK/RxutGBU=; b=l5NtEk47uzDrPeaDqFs4F2k2bawmkKgnlou0xnKHgNxP5UiyIt2uYDN/yI1YfuUNQ6 CAGSdfTJVxUbKt/Qcby/vswOrGWMZiyOJf/9YcakDXW7YUOdWzqhyR/hQggxqPvhfuVc k9BDu83kIqmVhrA266HzDqqxj977NgVJuwdFY8XZ1b/Nks1TsPT0VzEGddQNGKlnUAwI j4mzAn35hGYkiwqQerXOWrn4WP8ZwueHnmGxfzhdIIN0Y6r+3m2J3S+GvpJHVp4DAYMU cJ/jXYDYN0UK/aIJa0x3R97rIgozqg8cg6uWo6XfnBVwBzINQBK1eEsHrkFPQKwF8t2T pugA== X-Gm-Message-State: AMCzsaUZ0/JwCCqOm5koka3P7isFAZHvXb/e/uXxhW5Bnbt8acuC8AAs +mSg5ZXx8T+LNpNbVkUYP36QeFOI X-Google-Smtp-Source: ABhQp+TBiIjQu0cEXoKJqrG14UqI78x0sk0klaLmwaDU0+Ag5m9CN9M4f01wRg1KAapv5e5nErIJkg== X-Received: by 10.80.224.74 with SMTP id g10mr20630523edl.128.1508850999923; Tue, 24 Oct 2017 06:16:39 -0700 (PDT) Received: from localhost ([213.251.34.151]) by smtp.gmail.com with ESMTPSA id s6sm205438edc.2.2017.10.24.06.16.38 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 24 Oct 2017 06:16:39 -0700 (PDT) From: luca.boccassi@gmail.com To: dev@dpdk.org Cc: wenzhuo.lu@intel.com, wei.dai@intel.com, remy.horton@intel.com Date: Tue, 24 Oct 2017 14:16:27 +0100 Message-Id: <20171024131630.16595-1-luca.boccassi@gmail.com> X-Mailer: git-send-email 2.11.0 Subject: [dpdk-dev] [PATCH 0/3] RFC: implement VF reset for i40e, e1000 and ixgbe X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 24 Oct 2017 13:16:40 -0000 From: Luca Boccassi These patches were originally sent by Wenzhuo Lu: http://dpdk.org/dev/patchwork/patch/14009/ http://dpdk.org/dev/patchwork/patch/14010/ http://dpdk.org/dev/patchwork/patch/14011/ The current rte_eth_dev_reset API does not correctly reset the VF when the PF flaps on the host. With these patches, at least the ixgbe driver with a X540 card (Linux kernel 4.9 on the host) appears to work correctly. The test is as simple ip link down/up on the host, and then check that traffic still flows through the VF in the guest. I am not an expert in these PMDs hence the RFC mark - I would like to ask for feedback and help from the PMD maintainers and developers. Thanks! Luca Boccassi (3): net/i40e: implement VF reset net/e1000: implement VF reset net/ixgbe: implement VF reset drivers/net/e1000/igb_ethdev.c | 59 ++++++++++++++++++++++++++++++++++++++ drivers/net/i40e/i40e_ethdev.h | 3 ++ drivers/net/i40e/i40e_ethdev_vf.c | 56 +++++++++++++++++++++++++++++++++--- drivers/net/i40e/i40e_rxtx.c | 11 +++++++ drivers/net/i40e/i40e_rxtx.h | 4 +++ drivers/net/ixgbe/ixgbe_ethdev.c | 60 ++++++++++++++++++++++++++++++++++----- drivers/net/ixgbe/ixgbe_ethdev.h | 2 +- drivers/net/ixgbe/ixgbe_rxtx.c | 12 ++++++-- 8 files changed, 192 insertions(+), 15 deletions(-) -- 2.11.0