You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add virtual function detection and annotation to NIC table (#525)
* Initial plan
* Add virtual function detection to NIC table
- Modified NIC info script to detect virtual functions via physfn symlink
- Added IsVirtual field to nicInfo struct
- Updated parseNicInfo to parse Virtual Function field
- Updated nicTableValues to annotate virtual interfaces with "(virtual)"
- Added comprehensive tests for virtual function detection
Co-authored-by: harp-intel <[email protected]>
* Add test for NIC table with virtual function annotation
- Added TestNicTableValuesWithVirtualFunction to verify "(virtual)" annotation
- Test ensures virtual functions are properly annotated in table output
- Test ensures physical functions are not annotated
Co-authored-by: harp-intel <[email protected]>
* Replace HasPrefix + TrimPrefix with CutPrefix for go-modernize
Use CutPrefix instead of HasPrefix followed by TrimPrefix for virtual
function detection, following modern Go idioms.
Co-authored-by: harp-intel <[email protected]>
---------
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: harp-intel <[email protected]>
{Name: "tx-usecs", Description: "Sets the delay, in microseconds, before an interrupt is generated after transmitting a packet. Higher values reduce CPU usage (by batching packets), but increase latency. Lower values reduce latency, but increase interrupt rate and CPU load."},
CPU Affinity: 124:0-143;125:0-143;126:0-143;127:0-143;128:0-143;129:0-143;130:0-143;131:0-143;132:0-143;133:0-143;134:0-143;135:0-143;136:0-143;137:0-143;138:0-143;139:0-143;140:0-143;141:0-143;142:0-143;143:0-143;144:0-143;145:0-143;146:0-143;147:0-143;148:0-143;149:0-143;150:0-143;151:0-143;152:0-143;153:0-143;154:0-143;155:0-143;156:0-143;157:0-143;158:0-143;159:0-143;160:0-143;161:0-143;162:0-143;163:0-143;164:0-143;165:0-143;166:0-143;167:0-143;168:0-143;169:0-143;170:0-143;171:0-143;172:0-143;173:0-143;174:0-143;175:0-143;176:0-143;177:0-143;178:0-143;179:0-143;180:0-143;181:0-143;182:0-143;184:0-143;185:0-143;186:0-143;187:0-143;188:0-143;189:0-143;190:0-143;191:0-143;192:0-143;193:0-143;194:0-143;195:0-143;196:0-143;197:0-143;198:0-143;
765
917
IRQ Balance: Disabled
766
918
----------------------------------------
@@ -819,6 +971,7 @@ tx-usecs-irq: 0
819
971
tx-frames-irq: 0
820
972
MAC Address: 04:32:01:f3:e1:a5
821
973
NUMA Node: 0
974
+
Virtual Function: no
822
975
CPU Affinity: 454:0-143;455:0-143;456:0-143;457:0-143;458:0-143;459:0-143;460:0-143;461:0-143;462:0-143;463:0-143;464:0-143;465:0-143;466:0-143;467:0-143;468:0-143;469:0-143;470:0-143;471:0-143;472:0-143;473:0-143;474:0-143;475:0-143;476:0-143;477:0-143;478:0-143;479:0-143;480:0-143;481:0-143;482:0-143;483:0-143;484:0-143;485:0-143;486:0-143;487:0-143;488:0-143;489:0-143;490:0-143;491:0-143;492:0-143;493:0-143;494:0-143;495:0-143;496:0-143;497:0-143;498:0-143;499:0-143;500:0-143;501:0-143;502:0-143;503:0-143;504:0-143;505:0-143;506:0-143;507:0-143;508:0-143;509:0-143;510:0-143;511:0-143;512:0-143;513:0-143;514:0-143;515:0-143;516:0-143;517:0-143;518:0-143;519:0-143;520:0-143;521:0-143;522:0-143;523:0-143;524:0-143;525:0-143;526:0-143;527:0-143;
0 commit comments