From 1d16fd2e22ce0a444df3df82f8c99a93347698c2 Mon Sep 17 00:00:00 2001 From: Drew Hess Date: Fri, 15 Sep 2023 11:45:06 +0100 Subject: [PATCH] feat: add Chelsio support MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add Chelsio drivers. Fixes: #807 Closes: #808 ```bash ❯ diff -r --color _out/kernel-b/lib/modules/6.1.51-talos/modules.dep _out/lib/modules/6.1.51-talos/modules.dep 34a35,39 > kernel/drivers/net/ethernet/chelsio/inline_crypto/ch_ipsec/ch_ipsec.ko: kernel/drivers/net/ethernet/chelsio/cxgb4/cxgb4.ko > kernel/drivers/net/ethernet/chelsio/cxgb/cxgb.ko: kernel/drivers/net/mdio.ko > kernel/drivers/net/ethernet/chelsio/cxgb3/cxgb3.ko: kernel/drivers/net/mdio.ko > kernel/drivers/net/ethernet/chelsio/cxgb4/cxgb4.ko: > kernel/drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf.ko: pkgs on  feat/chelsio-drivers ❯ du -sh _out/lib/modules/6.1.51-talos/kernel/drivers/net/ethernet/chelsio/ 2.2M _out/lib/modules/6.1.51-talos/kernel/drivers/net/ethernet/chelsio/ ``` Signed-off-by: Drew Hess Signed-off-by: Noel Georgi --- kernel/build/config-amd64 | 16 +++++++++++----- kernel/build/config-arm64 | 14 ++++++++++---- kernel/build/pkg.yaml | 2 +- 3 files changed, 22 insertions(+), 10 deletions(-) diff --git a/kernel/build/config-amd64 b/kernel/build/config-amd64 index 06d36a454..595100a2b 100644 --- a/kernel/build/config-amd64 +++ b/kernel/build/config-amd64 @@ -1,6 +1,6 @@ # # Automatically generated file; DO NOT EDIT. -# Linux/x86_64 6.1.51 Kernel Configuration +# Linux/x86 6.1.51 Kernel Configuration # CONFIG_CC_VERSION_TEXT="gcc (GCC) 12.3.0" CONFIG_CC_IS_GCC=y @@ -2436,10 +2436,14 @@ CONFIG_CAVIUM_PTP=y # CONFIG_LIQUIDIO is not set # CONFIG_LIQUIDIO_VF is not set CONFIG_NET_VENDOR_CHELSIO=y -# CONFIG_CHELSIO_T1 is not set -# CONFIG_CHELSIO_T3 is not set -# CONFIG_CHELSIO_T4 is not set -# CONFIG_CHELSIO_T4VF is not set +CONFIG_CHELSIO_T1=m +# CONFIG_CHELSIO_T1_1G is not set +CONFIG_CHELSIO_T3=m +CONFIG_CHELSIO_T4=m +# CONFIG_CHELSIO_T4_DCB is not set +CONFIG_CHELSIO_T4VF=m +CONFIG_CHELSIO_INLINE_CRYPTO=y +CONFIG_CHELSIO_IPSEC_INLINE=m CONFIG_NET_VENDOR_CISCO=y CONFIG_ENIC=m CONFIG_NET_VENDOR_CORTINA=y @@ -4388,6 +4392,7 @@ CONFIG_INFINIBAND=y CONFIG_INFINIBAND_ADDR_TRANS=y CONFIG_INFINIBAND_VIRT_DMA=y # CONFIG_INFINIBAND_BNXT_RE is not set +# CONFIG_INFINIBAND_CXGB4 is not set # CONFIG_INFINIBAND_IRDMA is not set # CONFIG_MLX4_INFINIBAND is not set # CONFIG_MLX5_INFINIBAND is not set @@ -5512,6 +5517,7 @@ CONFIG_CRYPTO_HW=y # CONFIG_CRYPTO_DEV_QAT_C3XXXVF is not set # CONFIG_CRYPTO_DEV_QAT_C62XVF is not set # CONFIG_CRYPTO_DEV_NITROX_CNN55XX is not set +# CONFIG_CRYPTO_DEV_CHELSIO is not set CONFIG_CRYPTO_DEV_VIRTIO=y # CONFIG_CRYPTO_DEV_SAFEXCEL is not set # CONFIG_CRYPTO_DEV_AMLOGIC_GXL is not set diff --git a/kernel/build/config-arm64 b/kernel/build/config-arm64 index 69f894aa7..04aeb7e3a 100644 --- a/kernel/build/config-arm64 +++ b/kernel/build/config-arm64 @@ -2743,10 +2743,14 @@ CONFIG_CAVIUM_PTP=y # CONFIG_LIQUIDIO is not set # CONFIG_LIQUIDIO_VF is not set CONFIG_NET_VENDOR_CHELSIO=y -# CONFIG_CHELSIO_T1 is not set -# CONFIG_CHELSIO_T3 is not set -# CONFIG_CHELSIO_T4 is not set -# CONFIG_CHELSIO_T4VF is not set +CONFIG_CHELSIO_T1=m +# CONFIG_CHELSIO_T1_1G is not set +CONFIG_CHELSIO_T3=m +CONFIG_CHELSIO_T4=m +# CONFIG_CHELSIO_T4_DCB is not set +CONFIG_CHELSIO_T4VF=m +CONFIG_CHELSIO_INLINE_CRYPTO=y +CONFIG_CHELSIO_IPSEC_INLINE=m CONFIG_NET_VENDOR_CISCO=y CONFIG_ENIC=y CONFIG_NET_VENDOR_CORTINA=y @@ -5696,6 +5700,7 @@ CONFIG_INFINIBAND_ADDR_TRANS=y CONFIG_INFINIBAND_ADDR_TRANS_CONFIGFS=y CONFIG_INFINIBAND_VIRT_DMA=y # CONFIG_INFINIBAND_BNXT_RE is not set +# CONFIG_INFINIBAND_CXGB4 is not set # CONFIG_INFINIBAND_HNS is not set # CONFIG_INFINIBAND_IRDMA is not set # CONFIG_MLX4_INFINIBAND is not set @@ -8064,6 +8069,7 @@ CONFIG_CRYPTO_DEV_SUN8I_SS=y CONFIG_CRYPTO_DEV_ROCKCHIP=y # CONFIG_CRYPTO_DEV_ZYNQMP_AES is not set # CONFIG_CRYPTO_DEV_ZYNQMP_SHA3 is not set +# CONFIG_CRYPTO_DEV_CHELSIO is not set CONFIG_CRYPTO_DEV_VIRTIO=y CONFIG_CRYPTO_DEV_BCM_SPU=y # CONFIG_CRYPTO_DEV_SAFEXCEL is not set diff --git a/kernel/build/pkg.yaml b/kernel/build/pkg.yaml index 14fb99806..d54453848 100644 --- a/kernel/build/pkg.yaml +++ b/kernel/build/pkg.yaml @@ -6,7 +6,7 @@ dependencies: steps: - env: CARCH: {{ if eq .ARCH "aarch64"}}arm64{{ else if eq .ARCH "x86_64" }}amd64{{ else }}unsupported{{ end }} - ARCH: {{ if eq .ARCH "aarch64"}}arm64{{ else if eq .ARCH "x86_64" }}x86_64{{ else }}unsupported{{ end }} + ARCH: {{ if eq .ARCH "aarch64"}}arm64{{ else if eq .ARCH "x86_64" }}x86{{ else }}unsupported{{ end }} prepare: - | cd /src