From 617ad3af720a3827a30f52ec5faa917f6c902a8b Mon Sep 17 00:00:00 2001 From: Mr NeilBrown Date: Sun, 7 Jun 2020 19:24:30 -0400 Subject: [PATCH] LU-12678 lnet: Fix some out-of-date comments. The structures these comments describe have changed or been removed, but the comments weren't updated at the time. Test-Parameters: trivial Signed-off-by: Mr NeilBrown Change-Id: I342edb56790290a0158d4907a5e775e88361ce08 Reviewed-on: https://review.whamcloud.com/39127 Tested-by: jenkins Tested-by: Maloo Reviewed-by: James Simmons Reviewed-by: Serguei Smirnov Reviewed-by: Oleg Drokin --- lnet/klnds/socklnd/socklnd.h | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/lnet/klnds/socklnd/socklnd.h b/lnet/klnds/socklnd/socklnd.h index 950c756..abd733b 100644 --- a/lnet/klnds/socklnd/socklnd.h +++ b/lnet/klnds/socklnd/socklnd.h @@ -235,15 +235,14 @@ struct ksock_nal_data { #define SOCKNAL_INIT_DATA 1 #define SOCKNAL_INIT_ALL 2 -/* A packet just assembled for transmission is represented by 1 or more - * struct kvec fragments (the first frag contains the portals header), - * followed by 0 or more struct bio_vec fragments. +/* A packet just assembled for transmission is represented by 1 + * struct iovec fragment - the portals header - followed by 0 + * or more struct bio_vec fragments. * * On the receive side, initially 1 struct kvec fragment is posted for * receive (the header). Once the header has been received, the payload is - * received into either struct kvec or struct bio_vec fragments, depending on - * what the header matched or whether the message needs forwarding. */ - + * received into struct bio_vec fragments. + */ struct ksock_conn; /* forward ref */ struct ksock_route; /* forward ref */ struct ksock_proto; /* forward ref */ @@ -273,8 +272,6 @@ struct ksock_tx { /* transmit packet */ #define KSOCK_NOOP_TX_SIZE ((int)offsetof(struct ksock_tx, tx_payload[0])) -/* network zero copy callback descriptor embedded in struct ksock_tx */ - /* space for the rx frag descriptors; we either read a single contiguous * header, or up to LNET_MAX_IOV frags of payload of either type. */ union ksock_rxiovspace { -- 1.8.3.1