How to make network ring buffer settings permanent at reboot

Hi,

I can use the ‘ethtool -G|–set-ring devname’ options to set the RX/TX ring buffer settings.
But how can I set the new settings on reboot? What file/directory location do I need to edit?

Thanks

This solution is only for network cards managed by NetworkManager (under SLED12 SP4).

[CODE]#!/bin/bash
#########################################################################

/etc/NetworkManager/dispatcher.d/ethtool.sh

#########################################################################

INTERFACE=$1
ACTION=$2

paranoia

umask 022
PATH=/bin:/usr/bin
export PATH

case “$2” in
up)
/usr/sbin/ethtool --set-ring
;;

    *)
            exit 0

esac
[/CODE]

Don’t forget the execute flag:

chmod u+x,g+x,o+x /etc/NetworkManager/dispatcher.d/ethtool.sh