Unverified Commit 0d70fbe9 authored by Kroese's avatar Kroese Committed by GitHub
Browse files

feat: Make Passt MTU configurable (#884)

parent 1e20e38b
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -20,6 +20,7 @@ set -Eeuo pipefail
: "${VM_NET_MASK:="255.255.255.0"}"

: "${PASST:="passt"}"
: "${PASST_MTU:=""}"
: "${PASST_OPTS:=""}"
: "${PASST_DEBUG:=""}"

@@ -338,6 +339,9 @@ configurePasst() {
  PASST_OPTS+=" -g $gateway"
  PASST_OPTS+=" -n $VM_NET_MASK"

  [[ "${ADAPTER,,}" == "rtl8139" ]] && [ -z "$PASST_MTU" ] && PASST_MTU="$MTU"  
  [ -n "$PASST_MTU" ] && PASST_OPTS+=" -m $PASST_MTU"

  exclude=$(getHostPorts "$HOST_PORTS")

  if [ -z "$exclude" ]; then