projects
/
chef.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cf651d7
)
Disable scatter-gather offload for HP NC362i network controllers
author
Tom Hughes
<tom@compton.nu>
Tue, 27 Oct 2015 14:07:50 +0000
(14:07 +0000)
committer
Tom Hughes
<tom@compton.nu>
Tue, 27 Oct 2015 14:08:00 +0000
(14:08 +0000)
cookbooks/devices/templates/default/udev.rules.erb
patch
|
blob
|
history
diff --git
a/cookbooks/devices/templates/default/udev.rules.erb
b/cookbooks/devices/templates/default/udev.rules.erb
index 26fcec1da2761281f95eb3d63de84390367c4ef9..1683ba7a87b62c240f908d01aa40211d5334f553 100644
(file)
--- a/
cookbooks/devices/templates/default/udev.rules.erb
+++ b/
cookbooks/devices/templates/default/udev.rules.erb
@@
-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"