Results 1 to 2 of 2

Thread: How to make network ring buffer settings permanent at reboot

  1. 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

  2. #2

    Re: How to make network ring buffer settings permanent at re

    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 <devname> 
                    ;;
    
            *)
                    exit 0
    esac
    Don't forget the execute flag:

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

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •