Whamcloud - gitweb
LU-12678 lnet: Fix some out-of-date comments. 27/39127/2
authorMr NeilBrown <neilb@suse.de>
Sun, 7 Jun 2020 23:24:30 +0000 (19:24 -0400)
committerOleg Drokin <green@whamcloud.com>
Sun, 28 Jun 2020 02:49:03 +0000 (02:49 +0000)
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 <neilb@suse.de>
Change-Id: I342edb56790290a0158d4907a5e775e88361ce08
Reviewed-on: https://review.whamcloud.com/39127
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: James Simmons <jsimmons@infradead.org>
Reviewed-by: Serguei Smirnov <ssmirnov@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lnet/klnds/socklnd/socklnd.h

index 950c756..abd733b 100644 (file)
@@ -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 {