Skip to content

Commit 1c63686

Browse files
kuba-mooPaolo Abeni
authored andcommitted
docs: networking: fix indentation errors in multi-pf-netdev
Stephen reports new warnings in the docs: Documentation/networking/multi-pf-netdev.rst:94: ERROR: Unexpected indentation. Documentation/networking/multi-pf-netdev.rst:106: ERROR: Unexpected indentation. Fixes: 77d9ec3 ("Documentation: networking: Add description for multi-pf netdev") Reported-by: Stephen Rothwell <[email protected]> Link: https://lore.kernel.org/all/[email protected]/ Signed-off-by: Jakub Kicinski <[email protected]> Reviewed-by: Tariq Toukan <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Paolo Abeni <[email protected]>
1 parent 7278c70 commit 1c63686

File tree

1 file changed

+29
-29
lines changed

1 file changed

+29
-29
lines changed

Documentation/networking/multi-pf-netdev.rst

Lines changed: 29 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -87,35 +87,35 @@ all using the same instance under "priv->mdev".
8787

8888
Observability
8989
=============
90-
The relation between PF, irq, napi, and queue can be observed via netlink spec:
91-
92-
$ ./tools/net/ynl/cli.py --spec Documentation/netlink/specs/netdev.yaml --dump queue-get --json='{"ifindex": 13}'
93-
[{'id': 0, 'ifindex': 13, 'napi-id': 539, 'type': 'rx'},
94-
{'id': 1, 'ifindex': 13, 'napi-id': 540, 'type': 'rx'},
95-
{'id': 2, 'ifindex': 13, 'napi-id': 541, 'type': 'rx'},
96-
{'id': 3, 'ifindex': 13, 'napi-id': 542, 'type': 'rx'},
97-
{'id': 4, 'ifindex': 13, 'napi-id': 543, 'type': 'rx'},
98-
{'id': 0, 'ifindex': 13, 'napi-id': 539, 'type': 'tx'},
99-
{'id': 1, 'ifindex': 13, 'napi-id': 540, 'type': 'tx'},
100-
{'id': 2, 'ifindex': 13, 'napi-id': 541, 'type': 'tx'},
101-
{'id': 3, 'ifindex': 13, 'napi-id': 542, 'type': 'tx'},
102-
{'id': 4, 'ifindex': 13, 'napi-id': 543, 'type': 'tx'}]
103-
104-
$ ./tools/net/ynl/cli.py --spec Documentation/netlink/specs/netdev.yaml --dump napi-get --json='{"ifindex": 13}'
105-
[{'id': 543, 'ifindex': 13, 'irq': 42},
106-
{'id': 542, 'ifindex': 13, 'irq': 41},
107-
{'id': 541, 'ifindex': 13, 'irq': 40},
108-
{'id': 540, 'ifindex': 13, 'irq': 39},
109-
{'id': 539, 'ifindex': 13, 'irq': 36}]
110-
111-
Here you can clearly observe our channels distribution policy:
112-
113-
$ ls /proc/irq/{36,39,40,41,42}/mlx5* -d -1
114-
/proc/irq/36/mlx5_comp1@pci:0000:08:00.0
115-
/proc/irq/39/mlx5_comp1@pci:0000:09:00.0
116-
/proc/irq/40/mlx5_comp2@pci:0000:08:00.0
117-
/proc/irq/41/mlx5_comp2@pci:0000:09:00.0
118-
/proc/irq/42/mlx5_comp3@pci:0000:08:00.0
90+
The relation between PF, irq, napi, and queue can be observed via netlink spec::
91+
92+
$ ./tools/net/ynl/cli.py --spec Documentation/netlink/specs/netdev.yaml --dump queue-get --json='{"ifindex": 13}'
93+
[{'id': 0, 'ifindex': 13, 'napi-id': 539, 'type': 'rx'},
94+
{'id': 1, 'ifindex': 13, 'napi-id': 540, 'type': 'rx'},
95+
{'id': 2, 'ifindex': 13, 'napi-id': 541, 'type': 'rx'},
96+
{'id': 3, 'ifindex': 13, 'napi-id': 542, 'type': 'rx'},
97+
{'id': 4, 'ifindex': 13, 'napi-id': 543, 'type': 'rx'},
98+
{'id': 0, 'ifindex': 13, 'napi-id': 539, 'type': 'tx'},
99+
{'id': 1, 'ifindex': 13, 'napi-id': 540, 'type': 'tx'},
100+
{'id': 2, 'ifindex': 13, 'napi-id': 541, 'type': 'tx'},
101+
{'id': 3, 'ifindex': 13, 'napi-id': 542, 'type': 'tx'},
102+
{'id': 4, 'ifindex': 13, 'napi-id': 543, 'type': 'tx'}]
103+
104+
$ ./tools/net/ynl/cli.py --spec Documentation/netlink/specs/netdev.yaml --dump napi-get --json='{"ifindex": 13}'
105+
[{'id': 543, 'ifindex': 13, 'irq': 42},
106+
{'id': 542, 'ifindex': 13, 'irq': 41},
107+
{'id': 541, 'ifindex': 13, 'irq': 40},
108+
{'id': 540, 'ifindex': 13, 'irq': 39},
109+
{'id': 539, 'ifindex': 13, 'irq': 36}]
110+
111+
Here you can clearly observe our channels distribution policy::
112+
113+
$ ls /proc/irq/{36,39,40,41,42}/mlx5* -d -1
114+
/proc/irq/36/mlx5_comp1@pci:0000:08:00.0
115+
/proc/irq/39/mlx5_comp1@pci:0000:09:00.0
116+
/proc/irq/40/mlx5_comp2@pci:0000:08:00.0
117+
/proc/irq/41/mlx5_comp2@pci:0000:09:00.0
118+
/proc/irq/42/mlx5_comp3@pci:0000:08:00.0
119119

120120
Steering
121121
========

0 commit comments

Comments
 (0)