]> git.openstreetmap.org Git - chef.git/commitdiff
Disable scatter-gather offload for HP NC362i network controllers
authorTom Hughes <tom@compton.nu>
Tue, 27 Oct 2015 14:07:50 +0000 (14:07 +0000)
committerTom Hughes <tom@compton.nu>
Tue, 27 Oct 2015 14:08:00 +0000 (14:08 +0000)
cookbooks/devices/templates/default/udev.rules.erb

index 26fcec1da2761281f95eb3d63de84390367c4ef9..1683ba7a87b62c240f908d01aa40211d5334f553 100644 (file)
@@ -29,3 +29,6 @@ ACTION=="add", SUBSYSTEM=="block", ENV{ID_BUS}=="<%= device[:bus] %>", ENV{ID_SE
 # Rule from 14.04 udev for 12.04 machines running newer kernels
 ACTION=="add", SUBSYSTEM=="cpu", ENV{MODALIAS}=="?*", RUN+="/sbin/modprobe -bv $env{MODALIAS}"
 <% end -%>
+
+# Disable scatter-gather offload for HP NC362i network controllers
+SUBSYSTEM=="net", ACTION=="add", ATTRS{vendor}=="0x8086", ATTRS{device}=="0x10c9", ATTRS{subsystem_vendor}=="0x103c", ATTRS{subsystem_device}=="0x323f", RUN+="/sbin/ethtool -K $name sg off"