Skip to content

Commit

Permalink
Don't run ethtool cmd on hostbacked pods
Browse files Browse the repository at this point in the history
Signed-off-by: Zinkelburger <[email protected]>
Zinkelburger committed Apr 24, 2024
1 parent 79b2904 commit ca3d714
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions validateOffload.py
Original file line number Diff line number Diff line change
@@ -96,6 +96,8 @@ def stat(self, duration: int) -> Result:
self.ethtool_cmd = (
f'exec -n default {self.pod_name} -- /bin/sh -c "ethtool -S {vf_rep}"'
)
if vf_rep == "ovn-k8s-mp0":
return Result(out="Hostbacked pod", err="", returncode=0)
if vf_rep == "external":
return Result(out="External Iperf Server", err="", returncode=0)

0 comments on commit ca3d714

Please sign in to comment.