Skip to content

Commit

Permalink
Merge pull request #385 from randomvariable/hw-offload-off
Browse files Browse the repository at this point in the history
Disable H/W tx offload for ethernet devices on Photon
  • Loading branch information
k8s-ci-robot authored Sep 23, 2020
2 parents 01c5110 + 98363ed commit 4b12f51
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
ACTION=="add", SUBSYSTEM=="net", KERNEL=="eth*", TAG+="netif_hw_tx_offload_disable"
ACTION=="add", SUBSYSTEM=="net", KERNEL=="en*", TAG+="netif_hw_tx_offload_disable"
TAG=="netif_hw_tx_offload_disable", RUN+="/usr/sbin/ethtool -K $name tx off"
12 changes: 11 additions & 1 deletion images/capi/ansible/roles/node/tasks/photon.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,17 @@
# limitations under the License.

---
- name: Ensure Bandwidth for TCP connections should 1 Mb (same as Ubuntu)
# Due to https://github.com/vmware/photon/issues/1047
# We disable tx offload for ethernet devices
- name: Disable transmission HW offload
copy:
src: etc/udev/rules.d/90-netif-disable-hw-offload.rules
dest: /etc/udev/rules.d/90-netif-disable-hw-offload.rules
owner: root
group: root
mode: 0644

- name: Double TCP small queue limit to be the same as Ubuntu
sysctl:
name: net.ipv4.tcp_limit_output_bytes
value: "524288"
Expand Down

0 comments on commit 4b12f51

Please sign in to comment.