Skip to content

Commit

Permalink
OPENSHIFTP-237: refactor the offloading setting and mtu setting
Browse files Browse the repository at this point in the history
Signed-off-by: Paul Bastide <pbastide@us.ibm.com>
  • Loading branch information
prb112 committed Sep 26, 2024
1 parent 38578af commit 8c45ddd
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions modules/2_pvs_prepare/bastion/bastion.tf
Original file line number Diff line number Diff line change
Expand Up @@ -308,8 +308,12 @@ resource "null_resource" "bastion_fix_up_networks" {
# ip link set env2 mtu 9000
provisioner "remote-exec" {
inline = [<<EOF
ip link set env2 mtu 9000
/sbin/ethtool --offload env2 tx-checksumming off
for IFNAME in $(ip --json link show | jq -r '.[] | select(.ifname != "lo").ifname')
do
echo "IFNAME: $${IFNAME}"
ip link set $$IFNAME mtu 9000
/sbin/ethtool --offload $$IFNAME tx-checksumming off
done
EOF
]
}
Expand Down

0 comments on commit 8c45ddd

Please sign in to comment.