Files
cabletest/load-ixgbe
T

14 lines
566 B
Bash
Executable File

#!/usr/bin/env bash
set -euo pipefail
# Dev-host module swap: builds the bench ixgbe (the product patch plus the
# bench-only extras) out of tree and replaces the running driver. Does not
# survive a reboot; the appliance image gets the product patch from
# kernel/ixgbe-sff.patch via mkimage instead.
src=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
src=$(dirname "$src")/ixgbe-sff
make -C "/usr/lib/modules/$(uname -r)/build" "M=$src" modules
sudo rmmod ixgbe
sudo insmod "$src/ixgbe.ko" allow_unsupported_sfp=1
sudo sh -c 'ls /sys/kernel/debug/ixgbe/*/sff_i2c'