net/i40e: backport i40e fixes and share code to 20.11.4
Subsystems (2)
RFC 1/1 net/i40e: backport i40e fixes and share code to 20.11.4
Backport all the i40e share code to 20.11.4 based on cid-i40e.2022.03.08.
Backport all DPDK fixes of i40e and iavf to 20.11.4 from 22.03.
--- drivers/common/iavf/README | 4 +- drivers/common/iavf/iavf_adminq.c | 2 +- drivers/common/iavf/iavf_adminq.h | 2 +- drivers/common/iavf/iavf_adminq_cmd.h | 2 +- drivers/common/iavf/iavf_alloc.h | 2 +- drivers/common/iavf/iavf_common.c | 863 ++++++++++++++++- drivers/common/iavf/iavf_devids.h | 3 +- drivers/common/iavf/iavf_impl.c | 2 +- drivers/common/iavf/iavf_osdep.h | 7 +- drivers/common/iavf/iavf_prototype.h | 6 +- drivers/common/iavf/iavf_register.h | 2 +- drivers/common/iavf/iavf_status.h | 4 +- drivers/common/iavf/iavf_type.h | 92 +- drivers/common/iavf/meson.build | 2 +- drivers/common/iavf/siov_regs.h | 47 + drivers/common/iavf/virtchnl.h | 981 ++++++++++++++++++-- drivers/common/iavf/virtchnl_inline_ipsec.h | 562 +++++++++++ drivers/net/i40e/base/README | 2 +- drivers/net/i40e/base/i40e_adminq.c | 73 +- drivers/net/i40e/base/i40e_adminq_cmd.h | 49 +- drivers/net/i40e/base/i40e_common.c | 185 +++- drivers/net/i40e/base/i40e_dcb.c | 8 +- drivers/net/i40e/base/i40e_devids.h | 2 + drivers/net/i40e/base/i40e_osdep.h | 2 +- drivers/net/i40e/base/i40e_prototype.h | 18 + drivers/net/i40e/base/i40e_register.h | 55 +- drivers/net/i40e/base/i40e_status.h | 2 +- drivers/net/i40e/base/i40e_type.h | 25 +- drivers/net/i40e/i40e_ethdev.c | 63 +- drivers/net/i40e/i40e_ethdev_vf.c | 6 +- drivers/net/i40e/i40e_regs.h | 11 +- drivers/net/i40e/i40e_rxtx.c | 6 +- drivers/net/iavf/iavf_ethdev.c | 47 +- drivers/net/iavf/iavf_rxtx.c | 103 +- drivers/net/iavf/iavf_rxtx.h | 40 +- drivers/net/iavf/iavf_rxtx_vec_avx2.c | 2 +- drivers/net/iavf/iavf_rxtx_vec_avx512.c | 4 +- drivers/net/iavf/iavf_rxtx_vec_common.h | 2 +- drivers/net/iavf/iavf_rxtx_vec_sse.c | 4 +- drivers/net/iavf/iavf_vchnl.c | 5 +- drivers/net/ice/ice_dcf.c | 4 +- 41 files changed, 3001 insertions(+), 300 deletions(-) create mode 100644 drivers/common/iavf/siov_regs.h create mode 100644 drivers/common/iavf/virtchnl_inline_ipsec.h
drivers/common/iavf/README +2 -2
@@ -1,12 +1,12 @@ /* SPDX-License-Identifier: BSD-3-Clause - * Copyright(c) 2019-2020 Intel Corporation + * Copyright(c) 2019-2021 Intel Corporation */ Intel® IAVF driver ================= This directory contains source code of FreeBSD IAVF driver of version -cid-avf.2020.10.14.tar.gz released by the team which develops +cid-avf.2022.03.08.tar.gz released by the team which develops basic drivers for any IAVF NIC. The directory of base/ contains the original source package.
drivers/common/iavf/iavf_adminq.c +1 -1
@@ -1,5 +1,5 @@/* SPDX-License-Identifier: BSD-3-Clause -* Copyright(c) 2001-2020 Intel Corporation +* Copyright(c) 2001-2021 Intel Corporation */ #include "iavf_status.h"
drivers/common/iavf/iavf_adminq.h +1 -1
@@ -1,5 +1,5 @@/* SPDX-License-Identifier: BSD-3-Clause -* Copyright(c) 2001-2020 Intel Corporation +* Copyright(c) 2001-2021 Intel Corporation */ #ifndef _IAVF_ADMINQ_H_
drivers/common/iavf/iavf_adminq_cmd.h +1 -1
@@ -1,5 +1,5 @@/* SPDX-License-Identifier: BSD-3-Clause -* Copyright(c) 2001-2020 Intel Corporation +* Copyright(c) 2001-2021 Intel Corporation */ #ifndef _IAVF_ADMINQ_CMD_H_
drivers/common/iavf/iavf_alloc.h +1 -1
@@ -1,5 +1,5 @@/* SPDX-License-Identifier: BSD-3-Clause -* Copyright(c) 2001-2020 Intel Corporation +* Copyright(c) 2001-2021 Intel Corporation */ #ifndef _IAVF_ALLOC_H_
drivers/common/iavf/iavf_common.c +854 -9
897 lines not on this page · raw message
drivers/common/iavf/iavf_devids.h +2 -1
@@ -1,5 +1,5 @@/* SPDX-License-Identifier: BSD-3-Clause -* Copyright(c) 2001-2020 Intel Corporation +* Copyright(c) 2001-2021 Intel Corporation */ #ifndef _IAVF_DEVIDS_H_
@@ -13,5 +13,6 @@#define IAVF_DEV_ID_VF_HV 0x1571#define IAVF_DEV_ID_ADAPTIVE_VF 0x1889#define IAVF_DEV_ID_X722_VF 0x37CD +#define IAVF_DEV_ID_X722_A0_VF 0x374D#endif /* _IAVF_DEVIDS_H_ */
drivers/common/iavf/iavf_impl.c +1 -1
@@ -1,5 +1,5 @@/* SPDX-License-Identifier: BSD-3-Clause -* Copyright(c) 2019-2020 Intel Corporation +* Copyright(c) 2019-2021 Intel Corporation */ #include <stdio.h>
drivers/common/iavf/iavf_osdep.h +6 -1
@@ -1,5 +1,5 @@/* SPDX-License-Identifier: BSD-3-Clause -* Copyright(c) 2017-2020 Intel Corporation +* Copyright(c) 2017-2021 Intel Corporation */ #ifndef _IAVF_OSDEP_H_
@@ -123,6 +123,11 @@ writeq(uint64_t value, volatile void *addr)#define IAVF_PCI_REG_WRITE (reg, value) writel(value, reg)#define IAVF_PCI_REG_WRITE_RELAXED (reg, value) writel_relaxed(value, reg) +#define IAVF_PCI_REG_WC_WRITE (reg, value) \ + rte_write32_wc((rte_cpu_to_le_32(value)), reg) +#define IAVF_PCI_REG_WC_WRITE_RELAXED (reg, value) \ + rte_write32_wc_relaxed((rte_cpu_to_le_32(value)), reg) +#define IAVF_READ_REG (hw, reg) rd32(hw, reg)#define IAVF_WRITE_REG (hw, reg, value) wr32(hw, reg, value)
drivers/common/iavf/iavf_prototype.h +3 -3
@@ -1,5 +1,5 @@/* SPDX-License-Identifier: BSD-3-Clause -* Copyright(c) 2001-2020 Intel Corporation +* Copyright(c) 2001-2021 Intel Corporation */ #ifndef _IAVF_PROTOTYPE_H_
@@ -69,7 +69,7 @@ enum iavf_status iavf_set_mac_type(struct iavf_hw *hw);extern struct iavf_rx_ptype_decoded iavf_ptype_lookup[]; -STATIC INLINE struct iavf_rx_ptype_decoded decode_rx_desc_ptype(u8 ptype) +STATIC INLINE struct iavf_rx_ptype_decoded decode_rx_desc_ptype(u16 ptype) {return iavf_ptype_lookup[ptype]; }
@@ -87,7 +87,7 @@ enum iavf_status iavf_vf_reset(struct iavf_hw *hw);__rte_internal enum iavf_status iavf_aq_send_msg_to_pf(struct iavf_hw *hw,enum virtchnl_ops v_opcode, -enum iavf_status v_retval, +enum virtchnl_status_code v_retval,u8 *msg,u16 msglen,struct iavf_asq_cmd_details *cmd_details); enum iavf_status iavf_aq_debug_dump(struct iavf_hw *hw, u8 cluster_id,
drivers/common/iavf/iavf_register.h +1 -1
@@ -1,5 +1,5 @@/* SPDX-License-Identifier: BSD-3-Clause -* Copyright(c) 2001-2020 Intel Corporation +* Copyright(c) 2001-2021 Intel Corporation */ #ifndef _IAVF_REGISTER_H_
drivers/common/iavf/iavf_status.h +2 -2
@@ -1,5 +1,5 @@/* SPDX-License-Identifier: BSD-3-Clause -* Copyright(c) 2001-2020 Intel Corporation +* Copyright(c) 2001-2021 Intel Corporation */ #ifndef _IAVF_STATUS_H_
@@ -19,7 +19,7 @@ enum iavf_status {IAVF_ERR_ADAPTER_STOPPED =-9 ,IAVF_ERR_INVALID_MAC_ADDR =-10 ,IAVF_ERR_DEVICE_NOT_SUPPORTED =-11 , -IAVF_ERR_MASTER_REQUESTS_PENDING =-12 , +IAVF_ERR_PRIMARY_REQUESTS_PENDING =-12 ,IAVF_ERR_INVALID_LINK_SETTINGS =-13 ,IAVF_ERR_AUTONEG_NOT_COMPLETE =-14 , IAVF_ERR_RESET_FAILED = -15,
drivers/common/iavf/iavf_type.h +90 -2
132 lines not on this page · raw message
drivers/common/iavf/meson.build +1 -1
@@ -1,5 +1,5 @@ # SPDX-License-Identifier: BSD-3-Clause -# Copyright(c) 2019-2020 Intel Corporation +# Copyright(c) 2019-2021 Intel Corporation sources = files('iavf_adminq.c', 'iavf_common.c', 'iavf_impl.c')
drivers/common/iavf/siov_regs.h new file +47 -0
47 lines not on this page · raw message
drivers/common/iavf/virtchnl.h +901 -80
1,207 lines not on this page · raw message
drivers/common/iavf/virtchnl_inline_ipsec.h new file +562 -0
562 lines not on this page · raw message
drivers/net/i40e/base/README +1 -1
@@ -6,7 +6,7 @@ Intel® I40E driver ================== This directory contains source code of FreeBSD i40e driver of version -cid-i40e.2020.08.27.tar.gz released by the team which develops +cid-i40e.2022.03.08.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
drivers/net/i40e/base/i40e_adminq.c +65 -8
26 lines not on this page · raw message
drivers/net/i40e/base/i40e_adminq_cmd.h +40 -9
49 lines not on this page · raw message
drivers/net/i40e/base/i40e_common.c +161 -24
185 lines not on this page · raw message
drivers/net/i40e/base/i40e_prototype.h +18 -0
Lines of this file are not shown. View the raw message.
drivers/net/i40e/base/i40e_register.h +18 -37
55 lines not on this page · raw message
drivers/net/i40e/i40e_ethdev.c +49 -14
63 lines not on this page · raw message
drivers/net/iavf/iavf_ethdev.c +44 -3
47 lines not on this page · raw message
drivers/net/iavf/iavf_rxtx.c +74 -29
103 lines not on this page · raw message
drivers/net/iavf/iavf_rxtx_vec_avx512.c +2 -2
Lines of this file are not shown. View the raw message.
drivers/net/iavf/iavf_rxtx_vec_common.h +1 -1
Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
Signature · 1 line
2.27.0
Part of the diff is not shown here. View the raw message.
RFC v2 1/1 net/i40e: backport i40e fixes and share code to 20.11.4
Backport all the i40e share code to 20.11.4 based on cid-i40e.2022.03.08.
Backport all DPDK fixes of i40e and iavf to 20.11.4 from 22.03.
---
v2: add new device id for i40e.
--- drivers/common/iavf/README | 4 +- drivers/common/iavf/iavf_adminq.c | 2 +- drivers/common/iavf/iavf_adminq.h | 2 +- drivers/common/iavf/iavf_adminq_cmd.h | 2 +- drivers/common/iavf/iavf_alloc.h | 2 +- drivers/common/iavf/iavf_common.c | 863 ++++++++++++++++- drivers/common/iavf/iavf_devids.h | 3 +- drivers/common/iavf/iavf_impl.c | 2 +- drivers/common/iavf/iavf_osdep.h | 7 +- drivers/common/iavf/iavf_prototype.h | 6 +- drivers/common/iavf/iavf_register.h | 2 +- drivers/common/iavf/iavf_status.h | 4 +- drivers/common/iavf/iavf_type.h | 92 +- drivers/common/iavf/meson.build | 2 +- drivers/common/iavf/siov_regs.h | 47 + drivers/common/iavf/virtchnl.h | 981 ++++++++++++++++++-- drivers/common/iavf/virtchnl_inline_ipsec.h | 562 +++++++++++ drivers/net/i40e/base/README | 2 +- drivers/net/i40e/base/i40e_adminq.c | 73 +- drivers/net/i40e/base/i40e_adminq_cmd.h | 49 +- drivers/net/i40e/base/i40e_common.c | 185 +++- drivers/net/i40e/base/i40e_dcb.c | 8 +- drivers/net/i40e/base/i40e_devids.h | 2 + drivers/net/i40e/base/i40e_osdep.h | 2 +- drivers/net/i40e/base/i40e_prototype.h | 18 + drivers/net/i40e/base/i40e_register.h | 55 +- drivers/net/i40e/base/i40e_status.h | 2 +- drivers/net/i40e/base/i40e_type.h | 25 +- drivers/net/i40e/i40e_ethdev.c | 66 +- drivers/net/i40e/i40e_ethdev_vf.c | 6 +- drivers/net/i40e/i40e_regs.h | 11 +- drivers/net/i40e/i40e_rxtx.c | 6 +- drivers/net/iavf/iavf_ethdev.c | 47 +- drivers/net/iavf/iavf_rxtx.c | 103 +- drivers/net/iavf/iavf_rxtx.h | 40 +- drivers/net/iavf/iavf_rxtx_vec_avx2.c | 2 +- drivers/net/iavf/iavf_rxtx_vec_avx512.c | 4 +- drivers/net/iavf/iavf_rxtx_vec_common.h | 2 +- drivers/net/iavf/iavf_rxtx_vec_sse.c | 4 +- drivers/net/iavf/iavf_vchnl.c | 5 +- drivers/net/ice/ice_dcf.c | 4 +- 41 files changed, 3004 insertions(+), 300 deletions(-) create mode 100644 drivers/common/iavf/siov_regs.h create mode 100644 drivers/common/iavf/virtchnl_inline_ipsec.h
drivers/common/iavf/README +2 -2
@@ -1,12 +1,12 @@ /* SPDX-License-Identifier: BSD-3-Clause - * Copyright(c) 2019-2020 Intel Corporation + * Copyright(c) 2019-2021 Intel Corporation */ Intel® IAVF driver ================= This directory contains source code of FreeBSD IAVF driver of version -cid-avf.2020.10.14.tar.gz released by the team which develops +cid-avf.2022.03.08.tar.gz released by the team which develops basic drivers for any IAVF NIC. The directory of base/ contains the original source package.
drivers/common/iavf/iavf_adminq.c +1 -1
@@ -1,5 +1,5 @@/* SPDX-License-Identifier: BSD-3-Clause -* Copyright(c) 2001-2020 Intel Corporation +* Copyright(c) 2001-2021 Intel Corporation */ #include "iavf_status.h"
drivers/common/iavf/iavf_adminq.h +1 -1
@@ -1,5 +1,5 @@/* SPDX-License-Identifier: BSD-3-Clause -* Copyright(c) 2001-2020 Intel Corporation +* Copyright(c) 2001-2021 Intel Corporation */ #ifndef _IAVF_ADMINQ_H_
drivers/common/iavf/iavf_adminq_cmd.h +1 -1
@@ -1,5 +1,5 @@/* SPDX-License-Identifier: BSD-3-Clause -* Copyright(c) 2001-2020 Intel Corporation +* Copyright(c) 2001-2021 Intel Corporation */ #ifndef _IAVF_ADMINQ_CMD_H_
drivers/common/iavf/iavf_alloc.h +1 -1
@@ -1,5 +1,5 @@/* SPDX-License-Identifier: BSD-3-Clause -* Copyright(c) 2001-2020 Intel Corporation +* Copyright(c) 2001-2021 Intel Corporation */ #ifndef _IAVF_ALLOC_H_
drivers/common/iavf/iavf_common.c +854 -9
897 lines not on this page · raw message
drivers/common/iavf/iavf_devids.h +2 -1
@@ -1,5 +1,5 @@/* SPDX-License-Identifier: BSD-3-Clause -* Copyright(c) 2001-2020 Intel Corporation +* Copyright(c) 2001-2021 Intel Corporation */ #ifndef _IAVF_DEVIDS_H_
@@ -13,5 +13,6 @@#define IAVF_DEV_ID_VF_HV 0x1571#define IAVF_DEV_ID_ADAPTIVE_VF 0x1889#define IAVF_DEV_ID_X722_VF 0x37CD +#define IAVF_DEV_ID_X722_A0_VF 0x374D#endif /* _IAVF_DEVIDS_H_ */
drivers/common/iavf/iavf_impl.c +1 -1
@@ -1,5 +1,5 @@/* SPDX-License-Identifier: BSD-3-Clause -* Copyright(c) 2019-2020 Intel Corporation +* Copyright(c) 2019-2021 Intel Corporation */ #include <stdio.h>
drivers/common/iavf/iavf_osdep.h +6 -1
@@ -1,5 +1,5 @@/* SPDX-License-Identifier: BSD-3-Clause -* Copyright(c) 2017-2020 Intel Corporation +* Copyright(c) 2017-2021 Intel Corporation */ #ifndef _IAVF_OSDEP_H_
@@ -123,6 +123,11 @@ writeq(uint64_t value, volatile void *addr)#define IAVF_PCI_REG_WRITE (reg, value) writel(value, reg)#define IAVF_PCI_REG_WRITE_RELAXED (reg, value) writel_relaxed(value, reg) +#define IAVF_PCI_REG_WC_WRITE (reg, value) \ + rte_write32_wc((rte_cpu_to_le_32(value)), reg) +#define IAVF_PCI_REG_WC_WRITE_RELAXED (reg, value) \ + rte_write32_wc_relaxed((rte_cpu_to_le_32(value)), reg) +#define IAVF_READ_REG (hw, reg) rd32(hw, reg)#define IAVF_WRITE_REG (hw, reg, value) wr32(hw, reg, value)
drivers/common/iavf/iavf_prototype.h +3 -3
@@ -1,5 +1,5 @@/* SPDX-License-Identifier: BSD-3-Clause -* Copyright(c) 2001-2020 Intel Corporation +* Copyright(c) 2001-2021 Intel Corporation */ #ifndef _IAVF_PROTOTYPE_H_
@@ -69,7 +69,7 @@ enum iavf_status iavf_set_mac_type(struct iavf_hw *hw);extern struct iavf_rx_ptype_decoded iavf_ptype_lookup[]; -STATIC INLINE struct iavf_rx_ptype_decoded decode_rx_desc_ptype(u8 ptype) +STATIC INLINE struct iavf_rx_ptype_decoded decode_rx_desc_ptype(u16 ptype) {return iavf_ptype_lookup[ptype]; }
@@ -87,7 +87,7 @@ enum iavf_status iavf_vf_reset(struct iavf_hw *hw);__rte_internal enum iavf_status iavf_aq_send_msg_to_pf(struct iavf_hw *hw,enum virtchnl_ops v_opcode, -enum iavf_status v_retval, +enum virtchnl_status_code v_retval,u8 *msg,u16 msglen,struct iavf_asq_cmd_details *cmd_details); enum iavf_status iavf_aq_debug_dump(struct iavf_hw *hw, u8 cluster_id,
drivers/common/iavf/iavf_register.h +1 -1
@@ -1,5 +1,5 @@/* SPDX-License-Identifier: BSD-3-Clause -* Copyright(c) 2001-2020 Intel Corporation +* Copyright(c) 2001-2021 Intel Corporation */ #ifndef _IAVF_REGISTER_H_
drivers/common/iavf/iavf_status.h +2 -2
@@ -1,5 +1,5 @@/* SPDX-License-Identifier: BSD-3-Clause -* Copyright(c) 2001-2020 Intel Corporation +* Copyright(c) 2001-2021 Intel Corporation */ #ifndef _IAVF_STATUS_H_
@@ -19,7 +19,7 @@ enum iavf_status {IAVF_ERR_ADAPTER_STOPPED =-9 ,IAVF_ERR_INVALID_MAC_ADDR =-10 ,IAVF_ERR_DEVICE_NOT_SUPPORTED =-11 , -IAVF_ERR_MASTER_REQUESTS_PENDING =-12 , +IAVF_ERR_PRIMARY_REQUESTS_PENDING =-12 ,IAVF_ERR_INVALID_LINK_SETTINGS =-13 ,IAVF_ERR_AUTONEG_NOT_COMPLETE =-14 , IAVF_ERR_RESET_FAILED = -15,
drivers/common/iavf/iavf_type.h +90 -2
132 lines not on this page · raw message
drivers/common/iavf/meson.build +1 -1
@@ -1,5 +1,5 @@ # SPDX-License-Identifier: BSD-3-Clause -# Copyright(c) 2019-2020 Intel Corporation +# Copyright(c) 2019-2021 Intel Corporation sources = files('iavf_adminq.c', 'iavf_common.c', 'iavf_impl.c')
drivers/common/iavf/siov_regs.h new file +47 -0
47 lines not on this page · raw message
drivers/common/iavf/virtchnl.h +901 -80
1,207 lines not on this page · raw message
drivers/common/iavf/virtchnl_inline_ipsec.h new file +562 -0
562 lines not on this page · raw message
drivers/net/i40e/base/README +1 -1
@@ -6,7 +6,7 @@ Intel® I40E driver ================== This directory contains source code of FreeBSD i40e driver of version -cid-i40e.2020.08.27.tar.gz released by the team which develops +cid-i40e.2022.03.08.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
drivers/net/i40e/base/i40e_adminq.c +65 -8
26 lines not on this page · raw message
drivers/net/i40e/base/i40e_adminq_cmd.h +40 -9
49 lines not on this page · raw message
drivers/net/i40e/base/i40e_common.c +161 -24
185 lines not on this page · raw message
drivers/net/i40e/base/i40e_prototype.h +18 -0
Lines of this file are not shown. View the raw message.
drivers/net/i40e/base/i40e_register.h +18 -37
55 lines not on this page · raw message
drivers/net/i40e/i40e_ethdev.c +52 -14
66 lines not on this page · raw message
drivers/net/iavf/iavf_ethdev.c +44 -3
47 lines not on this page · raw message
drivers/net/iavf/iavf_rxtx.c +74 -29
103 lines not on this page · raw message
drivers/net/iavf/iavf_rxtx_vec_avx512.c +2 -2
Lines of this file are not shown. View the raw message.
drivers/net/iavf/iavf_rxtx_vec_common.h +1 -1
Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
Signature · 1 line
2.27.0
Part of the diff is not shown here. View the raw message.