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 26fcec1..1683ba7 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"