Files
Jiping Ma 606b1954d1 bnxt_en: Upgrade the Broadcom NIC driver
This commit upgrade Broadcom's bnxt_en and bnxt_re out-of-tree
drivers, version 1.10.3-232.0.155.5 to StarlingX. (For clarity,
the main driver package file name is "bcm_232.1.132.8c.tar.gz".)

 bnxt_en-1.10.3-232.0.155.5
 bnxt_re-232.0.155.5
 libbnxt_re-232.0.155.5

bnxt_en/re:
 * updates the bnxt_en and bnxt_re device drivers to use the
   irq_update_affinity_hint function instead of the
   irq_set_affinity_hint function, so that StarlingX's CPU
   affinity requirements for interrupts are met.
bnxt_en:
 * We fix the build error reference the upstream commit
   49675f5bdf9a "net: remove IFF_* re-definition" that
   remove all IFF_* definition, which casue IFF_RXFH_CONFIGURED
   undefined.
   https://git.yoctoproject.org/linux-yocto/commit/?h=49675f5bdf9a
 * Change "make" to "$(MAKE)" to support the parallelized build.
bnxt_re:
 * Adapt Makefile to make build pass. Also modify the parameter
   type for the fuction bnxt_re_reg_user_mr_dmabuf() to fix the
   the incompatible API issue.

Verification:
- Build module success for kernel-std/kernel-rt.
- Installation of the ISO image is successful with standard and
  low-latency profiles.
- Physical function interfaces are up and pass packets.
- Create vfs, ensure that the interface can come up and pass packets.
- RDMA/Infiniband over Ethernet functionalities of the Broadcom adapters
  were successfully tested using the Linux RDMA community's perftest
  package.

Story: 2011384
Task: 51889

Depends-On: https://review.opendev.org/c/starlingx/kernel/+/946013
Depends-On: https://review.opendev.org/c/starlingx/kernel/+/945449
Change-Id: I0edbadf3f1090701d55acbbefe3ff560de64f853
Signed-off-by: Jiping Ma <jiping.ma2@windriver.com>
2025-04-18 01:27:57 +00:00

52 lines
1.6 KiB
Bash
Executable File

#!/bin/bash
#
# Copyright (c) 2022 Wind River Systems, Inc.
#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. The ASF licenses this
# file to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
#
# The only parameter is the name of the new directory that will contain
# the extracted source code. Be aware that this new directory will be
# created in the same directory as where this script is located when
# building.
# Tools needed: mkdir, rm, tar
DL_TARBALL=bcm_232.1.132.8c.tar.gz
SRC_TARBALL=drivers_linux/bnxt_rocelib/libbnxt_re-232.0.155.5.tar.gz
TMPDIR="bcm_tmp"
DESTDIR="${1}"
if test -z "${DESTDIR}"; then
echo "Missing destination directory on command line."
exit 1
fi
rm -rf "${TMPDIR}"
mkdir -p "${TMPDIR}"
if ! tar -C "${TMPDIR}" --strip-components=1 -xvf "${DL_TARBALL}"; then
echo "Could not extract into ${TMPDIR}: ${DL_TARBALL}"
exit 1
fi
mkdir -p "${DESTDIR}"
if ! tar -C "${DESTDIR}" --strip-components=1 -xvf "${TMPDIR}/${SRC_TARBALL}"; then
echo "Could not extract into ${DESTDIR}: ${TMPDIR}/${SRC_TARBALL}"
exit 1
fi
rm -rf "${TMPDIR}"