How can I use udev to set txqueuelen on a NIC ?
How can I use udev to set txqueuelen on a NIC ?
https://access.redhat.com/solutions/774123
Solution Verified - Updated August 5 2024 at 7:23 AM - English Environment Red Hat Enterprise Linux 6 Red Hat Enterprise Linux 7 Network interfaces with transmit queues (qdisc and txqueuelen) Issue How can I use udev to set txqueuelen on a NIC? How can we set txqueuelen on a NIC in a persistent way? We need to set a custom txqueuelen on our macvtap NICs What is the best way to change the txqueuelen and make it persistent? Resolution Create a file like /etc/rules.d/71-net-txqueuelen.rules
Add the following line where the KERNEL parameter matches the interface name. Wildcards can be used. The following example will change all devices starting with vnet:
Raw SUBSYSTEM==”net”, ACTION==”add”, KERNEL==”vnet*”, ATTR{tx_queue_len}=”10000” Product(s) Red Hat Enterprise LinuxComponent udevTags network udev This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.
Was this helpful?
People who viewed this solution also viewed Loopback txqueuelen Discussion - 19 Dec 2019 How do I modify txqueuelen of my network interface card (NIC)? Solution - 7 Aug 2024 How do I increase the txqueuelen on a vnet or macvtap interface? Solution - 5 Aug 2024 Get notified when this content is updated Comments Newbie Add your comment: Add comment Send notifications to content followers Submit Community Member 44 points May 9, 2018 12:04 AM Darren says: Should this be /etc/rules.d or /etc/udev/rules.d?
I put it in /etc/udev/rules.d and it worked so that’s what I’m doing, just wondering if /etc/rules.d is actually a valid place to put udev rules.
This is RHEL 6 btw.