]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/devices/templates/default/udev.rules.erb
Disable scatter-gather offload for HP NC362i network controllers
[chef.git] / 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"