summaryrefslogtreecommitdiffstats
tag namemlx5-socket-direct-v3 (903343256998fa5310f4f7378c2eed31834d7d70)
tag date2024-03-07 00:40:40 -0800
tagged bySaeed Mahameed <saeedm@nvidia.com>
tagged objectcommit 77d9ec3f6c...
downloadlinux-mlx5-socket-direct-v3.tar.gz
Support Multi-PF netdev (Socket Direct)
This series adds support for combining multiple devices (PFs) of the same port under one netdev instance. Passing traffic through different devices belonging to different NUMA sockets saves cross-numa traffic and allows apps running on the same netdev from different numas to still feel a sense of proximity to the device and achieve improved performance. We achieve this by grouping PFs together, and creating the netdev only once all group members are probed. Symmetrically, we destroy the netdev once any of the PFs is removed. The channels are distributed between all devices, a proper configuration would utilize the correct close numa when working on a certain app/cpu. We pick one device to be a primary (leader), and it fills a special role. The other devices (secondaries) are disconnected from the network in the chip level (set to silent mode). All RX/TX traffic is steered through the primary to/from the secondaries. Currently, we limit the support to PFs only, and up to two devices (sockets). V6: - Address documentation comments from Jakub. V5: - Address documentation comments from Przemek Kitszel. V4: - Improve documentation for better user observability and understanding of the feature, in terms of queues and their expected NUMA/CPU/IRQ affinity. V3: - Fix documentation per Jakubs feedback. - Fix typos - Link new documentation in the networking index.rst V2: - Add documentation in a new patch. - Add debugfs in a new patch. - Add mlx5_ifc bit for MPIR cap check and use it before query. -----BEGIN PGP SIGNATURE----- iQEzBAABCAAdFiEEGhZs6bAKwk/OTgTpSD+KveBX+j4FAmXpfYgACgkQSD+KveBX +j5jIAf/VGIX/UQttq74MzK9pWgJNKtf7l8aSYtZuKXx68pmpr+25DfsxbKEeVfy KzjvGFx5peoKisWILyaljQXSn7snmSqOsQf/IwDzmsmF/2ZTDyf6NPC6gND0bIjJ Uu6cJ2T6Sa9ktg+ANz/gLDvGBBfPqSYTYIXrJnNQKsnW6nV8mDvy4WVf6etvCxOi rMjfcqwNijf3GPTJd/qkaWhwneDG2AFWd5HzdORpNh6iuv8Cbc9aNhWgAPh18o7v VWuAiFraTgaz6jj2H/NfziAk4ZrtVsCqhaFjJe3eLO+MCk/bZ/SizsAcR61JLkjL pFqh5wqxA6v+5YJm4zVatZqPLIt4gQ== =GZBa -----END PGP SIGNATURE-----