blob: bdfa4629849ad9c9dfaf79713b4863804d8c80c7 [file] [log] [blame]
# Copyright 2024 The Chromium OS Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
[Unit]
Description=Disable martian logging for CX7 network cards
Requires=network-online.target
After=network-online.target
[Service]
Type=oneshot
# vendor: 15b3 (Mellanox Technologies), device: 101e (ConnectX-7)
ExecCondition=bash -c 'test -n "$(lspci -d 15b3:101e)"'
ExecStart=sysctl -w net.ipv4.conf.gpu0rdma0.log_martians=0
ExecStart=sysctl -w net.ipv4.conf.gpu1rdma0.log_martians=0
ExecStart=sysctl -w net.ipv4.conf.gpu2rdma0.log_martians=0
ExecStart=sysctl -w net.ipv4.conf.gpu3rdma0.log_martians=0
ExecStart=sysctl -w net.ipv4.conf.gpu4rdma0.log_martians=0
ExecStart=sysctl -w net.ipv4.conf.gpu5rdma0.log_martians=0
ExecStart=sysctl -w net.ipv4.conf.gpu6rdma0.log_martians=0
ExecStart=sysctl -w net.ipv4.conf.gpu7rdma0.log_martians=0
[Install]
WantedBy=multi-user.target