# misc rules for NICs
# e1000: errata for Intel 82546GB adapters corrupting memory if TSO enabled (#25910)
SUBSYSTEM=="net", ACTION=="add", ATTRS{vendor}=="0x8086", ATTRS{device}=="0x1079", RUN+="/lib/udev/nic-disable-tso"
SUBSYSTEM=="net", ACTION=="add", ATTRS{vendor}=="0x8086", ATTRS{device}=="0x107b", RUN+="/lib/udev/nic-disable-tso"
# e1000e: errata for Intel 82583V adapters corrupting memory if TSO enabled (#27887)
SUBSYSTEM=="net", ACTION=="add", ATTRS{vendor}=="0x8086", ATTRS{device}=="0x150c", RUN+="/lib/udev/nic-disable-tso"
# e1000e: disable ASPM on Intel 82583V (#30711)
SUBSYSTEM=="net", ACTION=="add", ATTRS{vendor}=="0x8086", ATTRS{device}=="0x150c", RUN+="/lib/udev/nic-disable-aspm"
# e1000e: disable TSO for Intel 82574L (errata 17, #30345)
SUBSYSTEM=="net", ACTION=="add", ATTRS{vendor}=="0x8086", ATTRS{device}=="0x10d3", RUN+="/lib/udev/nic-disable-tso"
SUBSYSTEM=="net", ACTION=="add", ATTRS{vendor}=="0x8086", ATTRS{device}=="0x10f6", RUN+="/lib/udev/nic-disable-tso"
# e1000e: disable TSO for 82572EI (errata 7, #30669)
SUBSYSTEM=="net", ACTION=="add", ATTRS{vendor}=="0x8086", ATTRS{device}=="0x107d", RUN+="/lib/udev/nic-disable-tso"
SUBSYSTEM=="net", ACTION=="add", ATTRS{vendor}=="0x8086", ATTRS{device}=="0x107e", RUN+="/lib/udev/nic-disable-tso"
SUBSYSTEM=="net", ACTION=="add", ATTRS{vendor}=="0x8086", ATTRS{device}=="0x107f", RUN+="/lib/udev/nic-disable-tso"
SUBSYSTEM=="net", ACTION=="add", ATTRS{vendor}=="0x8086", ATTRS{device}=="0x10b9", RUN+="/lib/udev/nic-disable-tso"
# e1000e: disable TSO for 82571EB (errata 7, #34608)
SUBSYSTEM=="net", ACTION=="add", ATTRS{vendor}=="0x8086", ATTRS{device}=="0x105f", RUN+="/lib/udev/nic-disable-tso"
# bnx2x: avoid driver bug by disabling GRO (#28846)
SUBSYSTEM=="net", ACTION=="add", ATTRS{vendor}=="0x14e4", ATTRS{device}=="0x168e", RUN+="/lib/udev/nic-disable-gro"
# e1000e: diable GRO for some affected versions of 82546GB
SUBSYSTEM=="net", ACTION=="add", ATTRS{vendor}=="0x8086", ATTRS{device}=="0x10b5", ATTRS{subsystem_vendor}=="0x8086", ATTRS{subsystem_device}=="0x1199", RUN+="/lib/udev/nic-disable-gro"
#i40e: disable TSO to avoid network issues on X710 for 10GbE SFP+
SUBSYSTEM=="net", ACTION=="add", ATTRS{vendor}=="0x8086",ATTRS{device}=="0x1572", RUN+="/lib/udev/nic-disable-tso"