numam-dpdk/drivers/net/i40e/base
Zhirun Yan 38827a0481 net/i40e: fix port close
Port reset will call i40evf_uninit_vf() to release resource. It wants
to call i40evf_dev_close() to release resources. Before this patch,
hw->adapter_stopped was used to mark the status about start/stop and
close. So it will never call i40evf_dev_close() after stopping the port.

This patch added hw->adapter_closed flag in i40evf_dev_close() and
i40e_dev_close() to control the status of close.

Fixes: 4861cde461 ("i40e: new poll mode driver")
Cc: stable@dpdk.org

Signed-off-by: Zhirun Yan <zhirun.yan@intel.com>
Signed-off-by: Haiyue Wang <haiyue.wang@intel.com>
Acked-by: Qi Zhang <qi.z.zhang@intel.com>
2018-12-13 17:44:52 +00:00
..
i40e_adminq_cmd.h net/i40e/base: fix comment referencing internal data 2018-11-20 12:42:50 +01:00
i40e_adminq.c net/i40e/base: add capability flag for stopping FW LLDP 2018-10-11 18:53:48 +02:00
i40e_adminq.h net/i40e/base: replace license text with SPDX tag 2018-10-11 18:53:47 +02:00
i40e_alloc.h net/i40e/base: replace license text with SPDX tag 2018-10-11 18:53:47 +02:00
i40e_common.c net/i40e/base: add new TR bits used for cloud filters 2018-10-11 18:53:48 +02:00
i40e_dcb.c net/i40e/base: read LLDP config area with correct endianness 2018-10-11 18:53:47 +02:00
i40e_dcb.h net/i40e/base: replace license text with SPDX tag 2018-10-11 18:53:47 +02:00
i40e_devids.h net/i40e/base: add support for Carlsville device 2018-10-11 18:53:48 +02:00
i40e_diag.c add missing static keyword to globals 2018-10-29 02:01:08 +01:00
i40e_diag.h add missing static keyword to globals 2018-10-29 02:01:08 +01:00
i40e_hmc.c net/i40e/base: replace license text with SPDX tag 2018-10-11 18:53:47 +02:00
i40e_hmc.h net/i40e/base: replace license text with SPDX tag 2018-10-11 18:53:47 +02:00
i40e_lan_hmc.c net/i40e/base: properly clean resources 2018-10-11 18:53:47 +02:00
i40e_lan_hmc.h net/i40e/base: replace license text with SPDX tag 2018-10-11 18:53:47 +02:00
i40e_nvm.c net/i40e/base: replace license text with SPDX tag 2018-10-11 18:53:47 +02:00
i40e_osdep.h drivers/net: use sleep delay by default for Intel NICs 2018-10-26 22:14:06 +02:00
i40e_prototype.h net/i40e/base: add AQ command for rearrange NVM structure 2018-10-11 18:53:48 +02:00
i40e_register.h net/i40e/base: replace license text with SPDX tag 2018-10-11 18:53:47 +02:00
i40e_status.h net/i40e/base: replace license text with SPDX tag 2018-10-11 18:53:47 +02:00
i40e_type.h net/i40e: fix port close 2018-12-13 17:44:52 +00:00
meson.build net/*/base: allow use of experimental APIs in base code 2018-09-28 01:41:01 +02:00
README net/i40e/base: update version 2018-10-11 18:53:48 +02:00
virtchnl.h net/i40e/base: replace license text with SPDX tag 2018-10-11 18:53:47 +02:00

..
     BSD LICENSE

     Copyright(c) 2017 Intel Corporation. All rights reserved.
     All rights reserved.

     Redistribution and use in source and binary forms, with or without
     modification, are permitted provided that the following conditions
     are met:

       * Redistributions of source code must retain the above copyright
         notice, this list of conditions and the following disclaimer.
       * Redistributions in binary form must reproduce the above copyright
         notice, this list of conditions and the following disclaimer in
         the documentation and/or other materials provided with the
         distribution.
       * Neither the name of Intel Corporation nor the names of its
         contributors may be used to endorse or promote products derived
         from this software without specific prior written permission.

     THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
     "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
     LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
     A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
     OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
     SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
     LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
     DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
     THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
     (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
     OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Intel® I40E driver
==================

This directory contains source code of FreeBSD i40e driver of version
cid-i40e.2018.09.13.tar.gz released by the team which develops
basic drivers for any i40e NIC. The directory of base/ contains the
original source package.
This driver is valid for the product(s) listed below

* Intel® Ethernet Converged Network Adapters X710
* Intel® Ethernet Converged Network Adapters XL710
* Intel® Ethernet Network Adapter XXV710
* Intel® Ethernet Connection X722 for 10GBASE-T
* Intel® Ethernet Connection X722 for 10GbE backplane
* Intel® Ethernet Connection X722 for 10GbE SFP+
* Intel® Ethernet Connection X722 for 1GbE
* Intel® Ethernet Controller X710 and XL710 Family
* Intel® Ethernet Controller XXV710 for 25GbE backplane
* Intel® Ethernet Controller XXV710 for 25GbE SFP28

Updating the driver
===================

NOTE: The source code in this directory should not be modified apart from
the following file(s):

    i40e_osdep.h