How to enable Jumbo frames at TX2?

Hello,
I work with Gige-V Frameworks.
When i try to increase the size and number of buffers available to the NIC driver the system shows me this message:

nvidia@nvidia-desktop:/media/nvidia/JetsonSSD/DALSA/GigeV/bin$ sudo ./gev_nettweak eth0
mtu setting for eth0 is now 8960
net.ipv4.udp_rmem_min = 12288
net.core.netdev_max_backlog = 4096
net.unix.max_dgram_qlen = 7488
Cannot get device ring settings: Operation not supported
Cannot get device ring settings: Operation not supported
rx unmodified, ignoring
no pause parameters changed, aborting

For some reason it doesnt want to increase net.core.rmem_max, and net.core.rmem_default parameters.

How can i fix that?
The network tuning script provided with the API using a standard tool named “ethtool”.
The gev_nettweak tuning script is shown below.

max_cameras=2
image_size=$((3840*2160))
IPCONFIG=$(which ifconfig)
if [[ $IPCONFIG ]] ; then
   #
   # Find availabe net interfaces (with ifconfig)
   #
   available_netif=`$IPCONFIG -s | sed 1d | awk "(\$1 != \"lo\") { printf \$1 \" \"}"`
else
   #
   # Find availabe ipv4 net interfaces (with ip link show  - from iproute)
   #
   IPTOOL=$(which ip)
   if [[ $IPTOOL ]] ; then
      available_netif=`$IPTOOL -4 link show | cut -d" " -f2 | awk "(\$1 != \"lo:\") { printf \$1 \" \"}" | sed "s/[:,]//g"`
   else
      echo " "
      echo "Neither ifconfig (from net-tools) or ip (from iproute2) are installed"
      echo "Install one of these to properly configure network devices"
      exit 1
   fi
fi

#
# Set up the net interface number.
if [ $# -eq 0 ] ; then
    echo "Usage : $0 <netif_name>"
    echo "    e.g. $0 eth0"
    echo "    Available net if names : $available_netif" 
    exit 1
else
    netif_name=$1
    present=`echo $available_netif | grep $netif_name`
    if [ "$present" == "" ] ; then 
        echo "Error: net if $1 : Not Present"
        echo "    Available net if names : $available_netif" 
        exit 1
    fi
fi 
#
#
if [ $UID != 0 ]; then
   echo "You have to be the superuser to run this program!"
   echo "Either use sudo (preferred) or switch to root user"
   exit 1
fi

#
# Figure out a decent (supported) MTU here.
# (Genie camera max is 9152 - so start at 9216 and work downwards by 128).
netif_mtu=9216
netif_mtu_dec=128
status=0
while [ $status -eq 0 ] 
do
   if [[ $IPCONFIG ]] ; then
      result="$($IPCONFIG $netif_name mtu $netif_mtu 2>&1)"
   else
      result="$($IPTOOL link set mtu $netif_mtu dev $netif_name 2>&1)"
   fi
   if [ "$result" != "" ] ; then
       ((netif_mtu-=netif_mtu_dec))
   else
      status=1
   fi
done
# Make sure that 1500 is the minimum mtu.
if [ $netif_mtu -lt 1500 ] ; then
    netif_mtu=1500
fi
echo "mtu setting for $netif_name is now $netif_mtu"
#
#
# Adjust the MTU for jumbo frames (9152 maximum)
if [[ $IPCONFIG ]] ; then
   $IPCONFIG $netif_name mtu $netif_mtu
else
   $IPTOOL link set mtu $netif_mtu dev $netif_name
fi
# 
# Adjust the minimum receive buffer allocation
# (Has PAGESIZE granularity - assume PAGESIZE is 4096).
if [ $netif_mtu -gt 4096 ] ; then
    if [ $netif_mtu -gt 8192 ] ; then
        sysctl -w net.ipv4.udp_rmem_min=12288
    else
        sysctl -w net.ipv4.udp_rmem_min=8192
    fi
else
    sysctl -w net.ipv4.udp_rmem_min=4096
fi
#
# Adjust the network device backlog here
# (This helps when intercepting packets at the device
#  using the PF_PACKET interface).
backlogmax=4096
backlog=$(cat /proc/sys/net/core/netdev_max_backlog)
if [ "$backlog" != "" ] ; then
    if [ $backlog -lt $backlogmax ] ; then
        newbacklog=$backlogmax
    else
        newbacklog=$backlog
    fi
else
    newbacklog=$backlogmax
fi 
sysctl -w net.core.netdev_max_backlog=$newbacklog
#
# Adjust the network stack settings here.
# Tuning is based on the number of cameras expected
# in the system and the image size the cameras will output.
#
# Ensure 2 frames can be queued on the stack.
#
#
# Adjust the queue length for UDP packets
#
qlength=$(( 2*max_cameras*(image_size / netif_mtu) ))
sysctl -w net.unix.max_dgram_qlen=$qlength
#
# Adjust the default (and maximum) memory for receiving network packets
#
defrmem=$((image_size))
maxrmem=$((2*image_size))
rmemdefault=$(cat /proc/sys/net/core/rmem_default)
rmemmax=$(cat /proc/sys/net/core/rmem_max)
if [ $rmemmax -lt $maxrmem ] ; then
    sysctl -w net.core.rmem_max=$maxrmem
fi
if [ $rmemdefault -lt $defrmem ] ; then
    sysctl -w net.core.rmem_default=$defrmem
fi
#
# Use "ethtool" to adjust the setting of the network device drivers
# to optimize the rx_ring for maximum throughput. We need this to
# receive image data packets from the cameras. (Sending to the camera
# is not as critical)
#
#ETHTOOL="/usr/sbin/ethtool -g $(netif_name)"
ETHTOOL=$(which ethtool)
if [[ $ETHTOOL ]] ; then
    if [ -x $ETHTOOL ] ; then
        RX_JUMBO=`$ETHTOOL -g $netif_name  | awk "\$2 == \"Jumbo:\" { print \$3 }" -`
        RX_JUMBOMAX=`echo $RX_JUMBO | awk """ { print \$1 }" -`
        RX_JUMBOCUR=`echo $RX_JUMBO | awk """ { print \$2 }" -`
        if [ "$RX_JUMBOMAX" != "$RX_JUMBOCUR" ] ; then
            if [ "$RX_JUMBOMAX" != "" ] ; then
                $ETHTOOL -G $netif_name rx-jumbo $RX_JUMBOMAX
            fi
        fi
        RX_VALUE=`$ETHTOOL -g $netif_name  | awk "\$1 == \"RX:\" { print \$2 }" -`
        RX_MAXIMUM=`echo $RX_VALUE | awk """ { print \$1 }" -`
        RX_CURRENT=`echo $RX_VALUE | awk """ { print \$2 }" -`
        if [ "$RX_MAXIMUM" != "$RX_CURRENT" ] ; then
            if [ "$RX_MAXIMUM" != "" ] ; then
                $ETHTOOL -G $netif_name rx $RX_MAXIMUM
            fi
        fi
        # Turn off PAUSE on rx operations
        $ETHTOOL -A $netif_name rx off
    fi
else
    echo "*** Unable to adjust NIC driver settings ***"
    echo "*** ethtool utility not found  ***"
fi

Thank you for any help.

Please refer to:
https://devtalk.nvidia.com/default/topic/1050836/tx1-and-tx2-1g-ethernet-support-jumbo-frame/