.nf_match_addr = cfs_ip_addr_match,
.nf_is_contiguous = cfs_ip_is_contiguous,
.nf_min_max = cfs_ip_min_max
+ },
+ {
+ .nf_type = PTL4LND,
+ .nf_name = "ptlf",
+ .nf_modname = "kptl4lnd",
+ .nf_addr2str = libcfs_decnum_addr2str,
+ .nf_str2addr = libcfs_num_str2addr,
+ .nf_parse_addrlist = libcfs_num_parse,
+ .nf_print_addrlist = libcfs_num_addr_range_print,
+ .nf_match_addr = libcfs_num_match,
+ .nf_is_contiguous = cfs_num_is_contiguous,
+ .nf_min_max = cfs_num_min_max
}
};
MXLND = 12,
GNILND = 13,
GNIIPLND = 14,
+ PTL4LND = 15,
};
struct list_head;
.nf_match_addr = cfs_ip_addr_match,
.nf_is_contiguous = cfs_ip_is_contiguous,
.nf_min_max = cfs_ip_min_max },
+ { .nf_type = PTL4LND,
+ .nf_name = "ptlf",
+ .nf_modname = "kptl4lnd",
+ .nf_addr2str = libcfs_decnum_addr2str,
+ .nf_str2addr = libcfs_num_str2addr,
+ .nf_parse_addrlist = libcfs_num_parse,
+ .nf_print_addrlist = libcfs_num_addr_range_print,
+ .nf_match_addr = libcfs_num_match,
+ .nf_is_contiguous = cfs_num_is_contiguous,
+ .nf_min_max = cfs_num_min_max},
};
static const size_t libcfs_nnetstrfns = ARRAY_SIZE(libcfs_netstrfns);
int
jt_ptl_print_peers (int argc, char **argv)
{
- struct libcfs_ioctl_data data;
- lnet_process_id_t id;
+ struct libcfs_ioctl_data data;
+ lnet_process_id_t id;
char buffer[2][HOST_NAME_MAX + 1];
- int index;
- int rc;
+ int index;
+ int rc;
- if (!g_net_is_compatible (argv[0], SOCKLND, O2IBLND, GNILND, 0))
- return -1;
+ if (!g_net_is_compatible(argv[0], SOCKLND, O2IBLND, GNILND,
+ PTL4LND, 0))
+ return -1;
for (index = 0;;index++) {
LIBCFS_IOC_INIT(data);
int
jt_ptl_del_peer (int argc, char **argv)
{
- struct libcfs_ioctl_data data;
- lnet_nid_t nid = LNET_NID_ANY;
- lnet_pid_t pid = LNET_PID_ANY;
- __u32 ip = 0;
- int rc;
+ struct libcfs_ioctl_data data;
+ lnet_nid_t nid = LNET_NID_ANY;
+ lnet_pid_t pid = LNET_PID_ANY;
+ __u32 ip = 0;
+ int rc;
- if (!g_net_is_compatible(argv[0], SOCKLND, O2IBLND, GNILND, 0))
- return -1;
+ if (!g_net_is_compatible(argv[0], SOCKLND, O2IBLND, GNILND,
+ PTL4LND, 0))
+ return -1;
if (g_net_is_compatible(NULL, SOCKLND, 0)) {
if (argc > 3) {
[LOLND] = { "LOLND", lolnd_nid2hostname },
[RALND] = { "RALND", external_nid2hostname },
[MXLND] = { "MXLND", external_nid2hostname },
+ [PTL4LND] = { "PTL4LND", external_nid2hostname },
};
#define LND_MAX (sizeof(converter) / sizeof(converter[0]))