ExportXMLWordPrintable

    • Type: Bug
    • Resolution: Unresolved
    • Priority: Medium
    • None
    • Affects Version/s: None
    • None
    • 3
    • 9223372036854775807

      With the ioctl API, lnetctl peer show -v 4 lists, under udsp info of each peer NI, the local NIDs it prefers ("Preferred source NIDs", from create_remote_udsp_info() in liblnetconfig.c). These come from UDSP src/dst rules, and are the only way to check from user space that such a rule was applied.

      The netlink API, which lnetctl uses by default, never sends them. lnet_udsp_info_send() in api-ni.c gets cud_pref_nid[] from lnet_udsp_get_construct_info(), but puts only the net priority, the NID priority and LNET_UDSP_INFO_ATTR_PREF_RTR_NIDS_LIST (preferred gateways). LNET_UDSP_INFO_ATTR_PREF_NIDS_LIST is defined in lib-types.h and has an entry in the key table, but is never filled in.

      After lnetctl udsp add --src ...@tcp --dst <peer NID>, the output is the same as with no rule:

      -     primary nid: 192.168.100.201@tcp
            -     nid: 192.168.100.201@tcp
                  udsp info:
                        net priority: -1
                        nid priority: -1
      

      This hid LU-15747, where the first preferred NID was lost: the netlink output could not show it, so the sanity-lnet test for that fix has to measure traffic instead.

            Assignee:
            Cyril Bordage
            Reporter:
            Cyril Bordage
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: